Subscriptions - List

テナントのすべてのサブスクリプションを取得します。

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

URI パラメーター

名前 / 必須 説明
api-version
query True

string

この操作に使用する API バージョン。

応答

名前 説明
200 OK

SubscriptionListResult

OK - サブスクリプションの配列を返します。

Other Status Codes

CloudError

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

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

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

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": "..."
}

定義

名前 説明
CloudError

リソース管理要求のエラー応答。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorDetail

エラーの詳細。

ErrorResponse

エラー応答

ManagedByTenant

サブスクリプションを管理するテナントに関する情報。

spendingLimit

サブスクリプションの使用制限。

Subscription

サブスクリプション情報です。

SubscriptionListResult

サブスクリプションのリスト操作の応答です。

SubscriptionPolicies

サブスクリプション ポリシー。

SubscriptionState

サブスクリプションの状態。 有効な値は、Enabled、Warned、PastDue、Disabled、Deleted です。

CloudError

リソース管理要求のエラー応答。

名前 説明
error

ErrorResponse

エラー応答
失敗した操作のエラーの詳細を返す、すべての Azure Resource Manager API に対する一般的なエラー応答 (これは OData エラー応答形式にも従います)。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細です。

message

string

エラー メッセージ。

target

string

エラーのターゲット。

ErrorResponse

エラー応答

名前 説明
error

ErrorDetail

error オブジェクト。

ManagedByTenant

サブスクリプションを管理するテナントに関する情報。

名前 説明
tenantId

string

管理しているテナントのテナント ID。 これは GUID です。

spendingLimit

サブスクリプションの使用制限。

名前 説明
CurrentPeriodOff

string

Off

string

On

string

Subscription

サブスクリプション情報です。

名前 説明
authorizationSource

string

要求の承認ソース。 有効な値は、レガシ、RoleBased、Bypassed、Direct、Management の 1 つ以上の組み合わせです。 たとえば、'Legacy, RoleBased' などです。

displayName

string

サブスクリプションの表示名。

id

string

サブスクリプションの完全修飾 ID。 たとえば、/subscriptions/8d65815f-a5b6-402f-9298-045155da7d74

managedByTenants

ManagedByTenant[]

サブスクリプションを管理するテナントを含む配列。

state

SubscriptionState

サブスクリプションの状態。 有効な値は、Enabled、Warned、PastDue、Disabled、Deleted です。

subscriptionId

string

サブスクリプション ID です。

subscriptionPolicies

SubscriptionPolicies

サブスクリプション ポリシー。

tags

object

サブスクリプションにアタッチされているタグ。

tenantId

string

サブスクリプション テナント ID。

SubscriptionListResult

サブスクリプションのリスト操作の応答です。

名前 説明
nextLink

string

次の結果セットを取得する URL。

value

Subscription[]

サブスクリプションの配列。

SubscriptionPolicies

サブスクリプション ポリシー。

名前 説明
locationPlacementId

string

サブスクリプションの場所の配置 ID。 ID は、サブスクリプションに表示されるリージョンを示します。 たとえば、場所の配置 ID が Public_2014-09-01 のサブスクリプションは、Azure パブリック リージョンにアクセスできます。

quotaId

string

サブスクリプション クォータ ID。

spendingLimit

spendingLimit

サブスクリプションの使用制限。

SubscriptionState

サブスクリプションの状態。 有効な値は、Enabled、Warned、PastDue、Disabled、Deleted です。

名前 説明
Deleted

string

Disabled

string

Enabled

string

PastDue

string

Warned

string