Locations - Get
Get the specified location.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/locations/{location}?api-version=2015-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
The AzureStack location. |
subscription
|
path | True |
string |
Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client Api Version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Unexpected Error |
Security
azure_auth
Azure Active Directory OAuth2 flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get the specified location.
Sample request
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Subscriptions.Admin/locations/local?api-version=2015-11-01
Sample response
{
"id": "/subscriptions/8ab2551d-41e5-489b-9273-1cdf1cbc7dc6/providers/Microsoft.Subscriptions.Admin/locations/local",
"name": "local",
"displayName": "local",
"latitude": "",
"longitude": ""
}
Definitions
Name | Description |
---|---|
Error |
Error response. |
Error |
Error definition. |
Location |
Contains information about a geographical location where resource providers can be deployed. |
Error
Error response.
Name | Type | Description |
---|---|---|
error |
The error details. |
ErrorDefinition
Error definition.
Name | Type | Description |
---|---|---|
code |
string |
Service specific error code which serves as the substatus for the HTTP error code. |
details |
Internal error details. |
|
message |
string |
Description of the error. |
Location
Contains information about a geographical location where resource providers can be deployed.
Name | Type | Description |
---|---|---|
displayName |
string |
Display name of the location. |
id |
string |
Location identifier. |
latitude |
string |
Latitude of the location. |
longitude |
string |
Longitude of the location. |
name |
string |
Location name. |