Subscriptions - Get
指定したサブスクリプションに関する詳細を取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}?api-version=2022-12-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
subscription
|
path | True |
string |
ターゲット サブスクリプションの ID。 |
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 | ユーザー アカウントを偽装する |
例
GetASingleSubscription
要求のサンプル
応答のサンプル
{
"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": "Bypassed",
"managedByTenants": [
{
"tenantId": "8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7"
}
],
"tags": {
"tagKey1": "tagValue1",
"tagKey2": "tagValue2"
}
}
定義
名前 | 説明 |
---|---|
Cloud |
リソース管理要求のエラー応答。 |
Error |
リソース管理エラーの追加情報。 |
Error |
エラーの詳細。 |
Error |
エラー応答 |
Managed |
サブスクリプションを管理しているテナントに関する情報。 |
spending |
サブスクリプションの使用制限。 |
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
サブスクリプションの使用制限。
値 | 説明 |
---|---|
CurrentPeriodOff | |
Off | |
On |
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。 |
SubscriptionPolicies
サブスクリプション ポリシー。
名前 | 型 | 説明 |
---|---|---|
locationPlacementId |
string |
サブスクリプションの場所の配置 ID。 この ID は、サブスクリプションに対して表示されるリージョンを示します。 たとえば、Public_2014-09-01 の場所配置 ID を持つサブスクリプションは、Azure パブリック リージョンにアクセスできます。 |
quotaId |
string |
サブスクリプション クォータ ID。 |
spendingLimit |
サブスクリプションの使用制限。 |
SubscriptionState
サブスクリプションの状態。 使用可能な値は、Enabled、Warned、PastDue、Disabled、Deleted です。
値 | 説明 |
---|---|
Deleted | |
Disabled | |
Enabled | |
PastDue | |
Warned |