Subscriptions - List Locations

Gets all available geo-locations.
This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.

GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2016-06-01

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

The ID of the target subscription.

api-version
query True
  • string

The API version to use for the operation.

Responses

Name Type Description
200 OK

OK - Returns an array of locations.

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

Definitions

Location

Location information.

LocationListResult

Location list operation response.

Location

Location information.

Name Type Description
displayName
  • string

The display name of the location.

id
  • string

The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.

latitude
  • string

The latitude of the location.

longitude
  • string

The longitude of the location.

name
  • string

The location name.

subscriptionId
  • string

The subscription ID.

LocationListResult

Location list operation response.

Name Type Description
value

An array of locations.