次の方法で共有


Subscriptions - List

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

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

URI パラメーター

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

string

minLength: 1

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

応答

名前 説明
200 OK

SubscriptionListResult

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

Other Status Codes

CloudError

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

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

GetAllSubscriptions

要求のサンプル

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

応答のサンプル

{
  "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

エラー オブジェクト。

ManagedByTenant

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

名前 説明
tenantId

string

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

spendingLimit

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

説明
CurrentPeriodOff
Off
On

Subscription

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

名前 説明
authorizationSource

string

要求の承認ソース。 有効な値は、レガシ、RoleBased、Bypassed、Direct、Management の 1 つ以上の組み合わせです。 たとえば、"レガシ、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 は、サブスクリプションに対して表示されるリージョンを示します。 たとえば、Public_2014-09-01 の場所配置 ID を持つサブスクリプションは、Azure パブリック リージョンにアクセスできます。

quotaId

string

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

spendingLimit

spendingLimit

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

SubscriptionState

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

説明
Deleted
Disabled
Enabled
PastDue
Warned