Subscription - Get
指定した Subscription エンティティを取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}?api-version=2022-08-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
resource
|
path | True |
string |
リソース グループの名前。 名前の大文字と小文字は区別されます。 |
service
|
path | True |
string |
API Management サービスの名前。 Regex pattern: |
sid
|
path | True |
string |
サブスクリプション エンティティ識別子。 エンティティは、API Managementのユーザーと製品の間の関連付けを表します。 Regex pattern: |
subscription
|
path | True |
string |
ターゲット サブスクリプションの ID。 |
api-version
|
query | True |
string |
この操作に使用する API バージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
応答本文には、指定された Subscription エンティティが含まれています。 Headers ETag: string |
|
Other Status Codes |
操作に失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントの借用 |
例
ApiManagementGetSubscription
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/subscriptions/5931a769d8d14f0ad8ce13b8?api-version=2022-08-01
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/subscriptions/5931a769d8d14f0ad8ce13b8",
"type": "Microsoft.ApiManagement/service/subscriptions",
"name": "5931a769d8d14f0ad8ce13b8",
"properties": {
"ownerId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512a88c680b",
"scope": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/products/5600b59475ff190048060002",
"displayName": "Unlimited",
"state": "submitted",
"createdDate": "2017-06-02T17:59:06.223Z"
}
}
定義
名前 | 説明 |
---|---|
Error |
エラー フィールド コントラクト。 |
Error |
エラー応答。 |
Subscription |
サブスクリプションの詳細。 |
Subscription |
サブスクリプションの状態。 可能な状態は * アクティブです。 サブスクリプションがアクティブで、 * 中断 – サブスクリプションがブロックされ、サブスクライバーは製品の API を呼び出すことができません。* 送信済み - サブスクリプション要求は開発者によって行われましたが、まだ承認または拒否されていません。* 拒否 – サブスクリプション要求が管理者によって拒否されました。* 取り消されました。 * 有効期限切れ – サブスクリプションが有効期限に達し、非アクティブ化されました。 |
ErrorFieldContract
エラー フィールド コントラクト。
名前 | 型 | 説明 |
---|---|---|
code |
string |
プロパティ レベルのエラー コード。 |
message |
string |
プロパティ レベルエラーの人間が判読できる表現。 |
target |
string |
プロパティ名。 |
ErrorResponse
エラー応答。
名前 | 型 | 説明 |
---|---|---|
error.code |
string |
サービスによって定義されたエラー コード。 このコードは、応答に指定された HTTP エラー コードのサブステータスとして機能します。 |
error.details |
検証エラーが発生した場合に要求で送信される無効なフィールドの一覧。 |
|
error.message |
string |
人が判読できるエラーの表現。 |
SubscriptionContract
サブスクリプションの詳細。
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
リソースの名前 |
properties.allowTracing |
boolean |
トレースが有効になっているかどうかを判断します |
properties.createdDate |
string |
サブスクリプションの作成日。 日付は、ISO 8601 標準で指定されている形式 |
properties.displayName |
string |
サブスクリプションの名前。サブスクリプションに名前がない場合は null。 |
properties.endDate |
string |
サブスクリプションが取り消されたか期限切れになった日付。 この設定は監査のみを目的としており、サブスクリプションは自動的に取り消されません。 サブスクリプションのライフサイクルは、 プロパティを使用 |
properties.expirationDate |
string |
サブスクリプションの有効期限。 この設定は監査のみを目的としており、サブスクリプションの有効期限が自動的に切れるわけではありません。 サブスクリプションのライフサイクルは、 プロパティを使用 |
properties.notificationDate |
string |
今後のサブスクリプションの有効期限の通知日。 日付は、ISO 8601 標準で指定されている形式 |
properties.ownerId |
string |
サブスクリプション所有者のユーザー リソース識別子。 値は、/users/{userId} 形式の有効な相対 URL です。{userId} はユーザー識別子です。 |
properties.primaryKey |
string |
サブスクリプションの主キー。 このプロパティは 'GET' 操作では入力されません。 値を取得するには、'/listSecrets' POST 要求を使用します。 |
properties.scope |
string |
/products/{productId} や /apis または /apis/{apiId} などのスコープ。 |
properties.secondaryKey |
string |
サブスクリプションのセカンダリ キー。 このプロパティは 'GET' 操作では入力されません。 値を取得するには、'/listSecrets' POST 要求を使用します。 |
properties.startDate |
string |
サブスクリプションのアクティブ化日。 この設定は監査のみを目的としており、サブスクリプションは自動的にアクティブ化されません。 サブスクリプションのライフサイクルは、 プロパティを使用 |
properties.state |
サブスクリプションの状態。 可能な状態は * アクティブです。 サブスクリプションがアクティブで、 * 中断 – サブスクリプションがブロックされ、サブスクライバーは製品の API を呼び出すことができません。* 送信済み - サブスクリプション要求は開発者によって行われましたが、まだ承認または拒否されていません。* 拒否 – サブスクリプション要求が管理者によって拒否されました。* 取り消されました。 * 有効期限切れ – サブスクリプションが有効期限に達し、非アクティブ化されました。 |
|
properties.stateComment |
string |
状態が 'rejected' に変更されたときに管理者によって追加されたオプションのサブスクリプション コメント。 |
type |
string |
リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
SubscriptionState
サブスクリプションの状態。 可能な状態は * アクティブです。 サブスクリプションがアクティブで、 * 中断 – サブスクリプションがブロックされ、サブスクライバーは製品の API を呼び出すことができません。* 送信済み - サブスクリプション要求は開発者によって行われましたが、まだ承認または拒否されていません。* 拒否 – サブスクリプション要求が管理者によって拒否されました。* 取り消されました。 * 有効期限切れ – サブスクリプションが有効期限に達し、非アクティブ化されました。
名前 | 型 | 説明 |
---|---|---|
active |
string |
|
cancelled |
string |
|
expired |
string |
|
rejected |
string |
|
submitted |
string |
|
suspended |
string |