Subscriptions - List

Gets all subscriptions for a tenant.

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

URI Parameters

Name In Required Type Description
api-version
query True

string

The API version to use for the operation.

Responses

Name Type Description
200 OK

SubscriptionListResult

OK - Returns an array of subscriptions.

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

listSubscriptions

Sample Request

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

Sample Response

{
  "nextLink": "string",
  "value": [
    {
      "id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad",
      "authorizationSource": "Legacy",
      "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
      "displayName": "SubscriptionName",
      "state": "Enabled",
      "subscriptionPolicies": {
        "locationPlacementId": "Internal_2014-09-01",
        "quotaId": "Internal_2014-09-01",
        "spendingLimit": "Off"
      }
    }
  ]
}

Definitions

Name Description
spendingLimit

The subscription spending limit.

Subscription

Subscription information.

SubscriptionListResult

Subscription list operation response.

SubscriptionPolicies

Subscription policies.

SubscriptionState

The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.

spendingLimit

The subscription spending limit.

Name Type Description
CurrentPeriodOff

string

Off

string

On

string

Subscription

Subscription information.

Name Type Description
authorizationSource

string

The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.

displayName

string

The subscription display name.

id

string

The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.

state

SubscriptionState

The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.

subscriptionId

string

The subscription ID.

subscriptionPolicies

SubscriptionPolicies

The subscription policies.

tags

object

Tags for the subscription

tenantId

string

The tenant ID. For example, 00000000-0000-0000-0000-000000000000.

SubscriptionListResult

Subscription list operation response.

Name Type Description
nextLink

string

The URL to get the next set of results.

value

Subscription[]

An array of subscriptions.

SubscriptionPolicies

Subscription policies.

Name Type Description
locationPlacementId

string

The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.

quotaId

string

The subscription quota ID.

spendingLimit

spendingLimit

The subscription spending limit.

SubscriptionState

The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.

Name Type Description
Deleted

string

Disabled

string

Enabled

string

PastDue

string

Warned

string