Share via


Subscriptions - List

Hiermee haalt u alle abonnementen voor een tenant op.

GET https://management.azure.com/subscriptions?api-version=2022-12-01

URI-parameters

Name In Vereist Type Description
api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

SubscriptionListResult

OK: retourneert een matrix met abonnementen.

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

GetAllSubscriptions

Sample Request

GET https://management.azure.com/subscriptions?api-version=2022-12-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
      "subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
      "tenantId": "31c75423-32d6-4322-88b7-c478bdde4858",
      "displayName": "Example Subscription",
      "state": "Enabled",
      "subscriptionPolicies": {
        "locationPlacementId": "Internal_2014-09-01",
        "quotaId": "Internal_2014-09-01",
        "spendingLimit": "Off"
      },
      "authorizationSource": "RoleBased",
      "managedByTenants": [
        {
          "tenantId": "8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7"
        }
      ],
      "tags": {
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2"
      }
    },
    {
      "id": "/subscriptions/72ac930a-f34e-42d8-b06d-dc2a9e12ed71",
      "subscriptionId": "72ac930a-f34e-42d8-b06d-dc2a9e12ed71",
      "tenantId": "2a0ff0de-96b2-4859-bb7c-a430d07a3e0c",
      "displayName": "Example Subscription2",
      "state": "Enabled",
      "subscriptionPolicies": {
        "locationPlacementId": "Internal_2014-09-01",
        "quotaId": "Internal_2014-09-01",
        "spendingLimit": "Off"
      },
      "authorizationSource": "RoleBased",
      "managedByTenants": [
        {
          "tenantId": "8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7"
        },
        {
          "tenantId": "f7fb6af2-321d-47c8-9c0f-b0239eaad39a"
        }
      ],
      "tags": {
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2"
      }
    }
  ],
  "nextLink": "..."
}

Definities

Name Description
CloudError

Een foutreactie voor een resourcebeheeraanvraag.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

ManagedByTenant

Informatie over een tenant die het abonnement beheert.

spendingLimit

De bestedingslimiet van het abonnement.

Subscription

Abonnementsgegevens.

SubscriptionListResult

Antwoord van de bewerking abonnementslijst.

SubscriptionPolicies

Abonnementsbeleid.

SubscriptionState

De abonnementsstatus. Mogelijke waarden zijn Enabled, Warned, PastDue, Disabled en Deleted.

CloudError

Een foutreactie voor een resourcebeheeraanvraag.

Name Type Description
error

ErrorResponse

Foutreactie
Algemene foutreactie voor alle Azure Resource Manager API's om foutdetails voor mislukte bewerkingen te retourneren. (Dit volgt ook de OData-foutreactieindeling.)

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

Aanvullende informatie over de fout.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

ManagedByTenant

Informatie over een tenant die het abonnement beheert.

Name Type Description
tenantId

string

De tenant-id van de beherende tenant. Dit is een GUID.

spendingLimit

De bestedingslimiet van het abonnement.

Name Type Description
CurrentPeriodOff

string

Off

string

On

string

Subscription

Abonnementsgegevens.

Name Type Description
authorizationSource

string

De autorisatiebron van de aanvraag. Geldige waarden zijn een of meer combinaties van verouderd, op rollen gebaseerd, overgeslagen, direct en beheer. Bijvoorbeeld 'Verouderd, RoleBased'.

displayName

string

De weergavenaam van het abonnement.

id

string

De volledig gekwalificeerde id voor het abonnement. Bijvoorbeeld /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74

managedByTenants

ManagedByTenant[]

Een matrix met de tenants die het abonnement beheren.

state

SubscriptionState

De abonnementsstatus. Mogelijke waarden zijn Enabled, Warned, PastDue, Disabled en Deleted.

subscriptionId

string

De abonnements-id.

subscriptionPolicies

SubscriptionPolicies

Het abonnementsbeleid.

tags

object

De tags die zijn gekoppeld aan het abonnement.

tenantId

string

De tenant-id van het abonnement.

SubscriptionListResult

Antwoord van de bewerking abonnementslijst.

Name Type Description
nextLink

string

De URL voor het ophalen van de volgende set resultaten.

value

Subscription[]

Een matrix met abonnementen.

SubscriptionPolicies

Abonnementsbeleid.

Name Type Description
locationPlacementId

string

De locatielocatie-id van het abonnement. De id geeft aan welke regio's zichtbaar zijn voor een abonnement. Een abonnement met de locatieplaatsing-id Public_2014-09-01 heeft bijvoorbeeld toegang tot openbare Azure-regio's.

quotaId

string

De quotum-id van het abonnement.

spendingLimit

spendingLimit

De bestedingslimiet van het abonnement.

SubscriptionState

De abonnementsstatus. Mogelijke waarden zijn Enabled, Warned, PastDue, Disabled en Deleted.

Name Type Description
Deleted

string

Disabled

string

Enabled

string

PastDue

string

Warned

string