--- title: "API Keyサブスクリプションの照会" slug: "apigateway-apikey-subscription-detail" updated: 2026-09-17T09:57:24Z published: 2026-09-17T09:57:24Z canonical: "api.ncloud-docs.com/apigateway-apikey-subscription-detail" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # API Keyサブスクリプションの照会 Classic/VPC環境で利用できます。 API Keyと関連付けられた Stage(サブスクリプション中の Stage)情報を照会します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | GET | /api/v1/api-keys/{api-key-id}/subscription-detail | ### リクエストヘッダ API Gatewayで共通して使用されるヘッダの詳細は、[API Gatewayのリクエストヘッダ](/docs/ja/ai-application-service-apigateway#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `api-key-id` | String | Required | サブスクリプション情報照会対象の API Key ID | ### リクエストクエリパラメータ リクエストクエリパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `offset` | Long | Optional | 照会対象のデータリストからスタートする位置 - 0~9,223,372,036,854,775,807 | | `limit` | Long | Optional | 一度に照会するデータ数 - 1~9,223,372,036,854,775,807 | | `apiId` | String | Optional | Stageが属する API ID | | `stageId` | String | Optional | API Keyと関連付けられた Stage ID | | `productId` | String | Required | API Keyと関連付けられた Product ID | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl -X POST 'https://apigateway.apigw.ntruss.com/api/v1/api-keys/{api-key-id}/subscription-detail?productId=*****n0bk' \ --header 'Content-Type: application/json' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンス構文 レスポンス構文は次の通りです。 ``` { "apiKeyRelations": { "content": [ { "apiId": "apiId", "apiName": "apiName", "stageId": "stageId", "stageName": "stageName", "apiKeyId": "apiKeyId", "apiKeyName": "apiKeyName", "usagePlanId": "usagePlanId", "usagePlanName": "usagePlanName", "regTime": "2024-05-07T08:34:37Z", "modTime": "2024-05-07T08:34:37Z", "dayCallCount": 0, "monthCallCount": 0, "domainCode": "domainCode" } ], "total": 0 } } ``` ### レスポンスステータスコード API Gatewayで共通して使用されるレスポンスステータスコードの詳細は、[API Gatewayのレスポンスステータスコード](/docs/ja/ai-application-service-apigateway#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "apiKeyRelations": { "content": [ { "apiId": "*****uwtk", "apiName": "api-***", "stageId": "*****7mhdv", "stageName": "v1", "apiKeyId": "*****g079", "apiKeyName": "apiKey-***", "usagePlanId": "*****w2111", "usagePlanName": "usagePlan-***", "regTime": "2024-05-07T08:34:37Z", "modTime": "2024-05-07T08:34:37Z", "dayCallCount": 0, "monthCallCount": 0, "domainCode": "PUB" } ], "total": 1 } } ```