Package com.azure.core.management
Class AzureEnvironment
- java.lang.Object
-
- com.azure.core.management.AzureEnvironment
-
public final class AzureEnvironment extends Object
An instance of this class describes an environment in Azure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAzureEnvironment.EndpointThe enum representing available endpoints in an environment.
-
Field Summary
Fields Modifier and Type Field Description static AzureEnvironmentAZUREProvides the settings for authentication with Azure.static AzureEnvironmentAZURE_CHINAProvides the settings for authentication with Azure China.static AzureEnvironmentAZURE_GERMANYProvides the settings for authentication with Azure Germany.static AzureEnvironmentAZURE_US_GOVERNMENTProvides the settings for authentication with Azure US Government.
-
Constructor Summary
Constructors Constructor Description AzureEnvironment(Map<String,String> endpoints)Initializes an instance of AzureEnvironment class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActiveDirectoryEndpoint()StringgetActiveDirectoryGraphApiVersion()StringgetActiveDirectoryResourceId()StringgetApplicationInsightsEndpoint()StringgetAzureDataLakeAnalyticsCatalogAndJobEndpointSuffix()StringgetAzureDataLakeStoreFileSystemEndpointSuffix()StringgetDataLakeEndpointResourceId()Map<String,String>getEndpoints()StringgetGalleryEndpoint()StringgetGraphEndpoint()StringgetKeyVaultDnsSuffix()StringgetLogAnalyticsEndpoint()StringgetManagementEndpoint()StringgetMicrosoftGraphEndpoint()StringgetPortal()StringgetPublishingProfile()StringgetResourceManagerEndpoint()StringgetSqlManagementEndpoint()StringgetSqlServerHostnameSuffix()StringgetStorageEndpointSuffix()StringgetUrlByEndpoint(AzureEnvironment.Endpoint endpoint)Gets the endpoint URL for the current environment.static List<AzureEnvironment>knownEnvironments()
-
-
-
Field Detail
-
AZURE
public static final AzureEnvironment AZURE
Provides the settings for authentication with Azure.
-
AZURE_CHINA
public static final AzureEnvironment AZURE_CHINA
Provides the settings for authentication with Azure China.
-
AZURE_US_GOVERNMENT
public static final AzureEnvironment AZURE_US_GOVERNMENT
Provides the settings for authentication with Azure US Government.
-
AZURE_GERMANY
public static final AzureEnvironment AZURE_GERMANY
Provides the settings for authentication with Azure Germany.
-
-
Method Detail
-
getEndpoints
public Map<String,String> getEndpoints()
- Returns:
- the entirety of the endpoints associated with the current environment.
-
knownEnvironments
public static List<AzureEnvironment> knownEnvironments()
- Returns:
- the list of known environments to Azure SDK.
-
getPortal
public String getPortal()
- Returns:
- the management portal URL.
-
getPublishingProfile
public String getPublishingProfile()
- Returns:
- the publish settings file URL.
-
getManagementEndpoint
public String getManagementEndpoint()
- Returns:
- the management service endpoint.
-
getResourceManagerEndpoint
public String getResourceManagerEndpoint()
- Returns:
- the resource management endpoint.
-
getSqlManagementEndpoint
public String getSqlManagementEndpoint()
- Returns:
- the sql server management endpoint for mobile commands.
-
getSqlServerHostnameSuffix
public String getSqlServerHostnameSuffix()
- Returns:
- the dns suffix for sql servers.
-
getActiveDirectoryEndpoint
public String getActiveDirectoryEndpoint()
- Returns:
- the Active Directory login endpoint.
-
getActiveDirectoryResourceId
public String getActiveDirectoryResourceId()
- Returns:
- The resource ID to obtain AD tokens for.
-
getGalleryEndpoint
public String getGalleryEndpoint()
- Returns:
- the template gallery endpoint.
-
getGraphEndpoint
public String getGraphEndpoint()
- Returns:
- the Active Directory resource ID.
-
getMicrosoftGraphEndpoint
public String getMicrosoftGraphEndpoint()
- Returns:
- the Microsoft Graph resource ID.
-
getDataLakeEndpointResourceId
public String getDataLakeEndpointResourceId()
- Returns:
- the Data Lake resource ID.
-
getActiveDirectoryGraphApiVersion
public String getActiveDirectoryGraphApiVersion()
- Returns:
- the Active Directory api version.
-
getStorageEndpointSuffix
public String getStorageEndpointSuffix()
- Returns:
- the endpoint suffix for storage accounts.
-
getKeyVaultDnsSuffix
public String getKeyVaultDnsSuffix()
- Returns:
- the keyvault service dns suffix.
-
getAzureDataLakeStoreFileSystemEndpointSuffix
public String getAzureDataLakeStoreFileSystemEndpointSuffix()
- Returns:
- the data lake store filesystem service dns suffix.
-
getAzureDataLakeAnalyticsCatalogAndJobEndpointSuffix
public String getAzureDataLakeAnalyticsCatalogAndJobEndpointSuffix()
- Returns:
- the data lake analytics job and catalog service dns suffix.
-
getLogAnalyticsEndpoint
public String getLogAnalyticsEndpoint()
- Returns:
- the log analytics endpoint.
-
getApplicationInsightsEndpoint
public String getApplicationInsightsEndpoint()
- Returns:
- the log analytics endpoint.
-
getUrlByEndpoint
public String getUrlByEndpoint(AzureEnvironment.Endpoint endpoint)
Gets the endpoint URL for the current environment.- Parameters:
endpoint- the endpoint.- Returns:
- the URL for the endpoint, null if no match.
-
-