Subscriptions - List
テナントのすべてのサブスクリプションを取得します。
GET https://management.azure.com/subscriptions?api-version=2022-12-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
OK - サブスクリプションの配列を返します。 |
|
| Other Status Codes |
操作が失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| 名前 | 説明 |
|---|---|
| user_impersonation | ユーザー アカウントを偽装する |
例
GetAllSubscriptions
要求のサンプル
応答のサンプル
{
"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": "..."
}
定義
| 名前 | 説明 |
|---|---|
|
Cloud |
リソース管理要求のエラー応答。 |
|
Error |
リソース管理エラーの追加情報。 |
|
Error |
エラーの詳細。 |
|
Error |
エラー応答 |
|
Managed |
サブスクリプションを管理しているテナントに関する情報。 |
|
spending |
サブスクリプションの使用制限。 |
| Subscription |
サブスクリプション情報。 |
|
Subscription |
サブスクリプション リスト操作の応答。 |
|
Subscription |
サブスクリプション ポリシー。 |
|
Subscription |
サブスクリプションの状態。 使用可能な値は、Enabled、Warned、PastDue、Disabled、Deleted です。 |
CloudError
リソース管理要求のエラー応答。
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー応答 |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
| 名前 | 型 | 説明 |
|---|---|---|
| info |
object |
追加情報。 |
| type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
| 名前 | 型 | 説明 |
|---|---|---|
| additionalInfo |
エラーの追加情報。 |
|
| code |
string |
エラー コード。 |
| details |
エラーの詳細。 |
|
| message |
string |
エラー メッセージ。 |
| target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー オブジェクト。 |
ManagedByTenant
サブスクリプションを管理しているテナントに関する情報。
| 名前 | 型 | 説明 |
|---|---|---|
| tenantId |
string |
管理しているテナントのテナント ID。 これは GUID です。 |
spendingLimit
サブスクリプションの使用制限。
| 値 | 説明 |
|---|---|
| On | |
| Off | |
| CurrentPeriodOff |
Subscription
サブスクリプション情報。
| 名前 | 型 | 説明 |
|---|---|---|
| authorizationSource |
string |
要求の承認ソース。 有効な値は、レガシ、RoleBased、Bypassed、Direct、Management の 1 つ以上の組み合わせです。 たとえば、"レガシ、RoleBased" などです。 |
| displayName |
string |
サブスクリプションの表示名。 |
| id |
string |
サブスクリプションの完全修飾 ID。 たとえば、/subscriptions/8d65815f-a5b6-402f-9298-045155da7d74 |
| managedByTenants |
サブスクリプションを管理しているテナントを含む配列。 |
|
| state |
サブスクリプションの状態。 使用可能な値は、Enabled、Warned、PastDue、Disabled、Deleted です。 |
|
| subscriptionId |
string |
サブスクリプション ID。 |
| subscriptionPolicies |
サブスクリプション ポリシー。 |
|
| tags |
object |
サブスクリプションにアタッチされているタグ。 |
| tenantId |
string |
サブスクリプション テナント ID。 |
SubscriptionListResult
サブスクリプション リスト操作の応答。
| 名前 | 型 | 説明 |
|---|---|---|
| nextLink |
string |
次の結果セットを取得する URL。 |
| value |
サブスクリプションの配列。 |
SubscriptionPolicies
サブスクリプション ポリシー。
| 名前 | 型 | 説明 |
|---|---|---|
| locationPlacementId |
string |
サブスクリプションの場所の配置 ID。 この ID は、サブスクリプションに対して表示されるリージョンを示します。 たとえば、Public_2014-09-01 の場所配置 ID を持つサブスクリプションは、Azure パブリック リージョンにアクセスできます。 |
| quotaId |
string |
サブスクリプション クォータ ID。 |
| spendingLimit |
サブスクリプションの使用制限。 |
SubscriptionState
サブスクリプションの状態。 使用可能な値は、Enabled、Warned、PastDue、Disabled、Deleted です。
| 値 | 説明 |
|---|---|
| Enabled | |
| Warned | |
| PastDue | |
| Disabled | |
| Deleted |