--- title: "Usage Planの関連付け" slug: "apigateway-stage-associate" updated: 2026-09-17T09:57:26Z published: 2026-09-17T09:57:26Z canonical: "api.ncloud-docs.com/apigateway-stage-associate" --- > ## 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. # Usage Planの関連付け Classic/VPC環境で利用できます。 指定した Stageに特定の Usage Planを関連付けます。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | POST | /api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/associate-usage-plan | ### リクエストヘッダ API Gatewayで共通して使用されるヘッダの詳細は、[API Gatewayの共通ヘッダ](/docs/ja/ai-application-service-apigateway#APIHeader)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `product-id` | String | Required | Stageが属する Product ID - 0~10文字 - [Productリストの照会](/docs/ja/apigateway-product-getproductlist)を参照 | | `api-id` | String | Required | Stageが属する API ID - 0~10文字 - [APIの照会](/docs/ja/apigateway-api-apis)を参照 | | `stage-id` | String | Required | Usage Planを関連付ける対象の Stage ID - 0~10文字 - [Stageリストの照会](/docs/ja/apigateway-stage-getstagelist)を参照 | ### リクエスト構文 リクエスト構文は次の通りです。 ``` { "usagePlanId" : "usagePlanId" } ``` ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `usagePlanId` | String | Required | 関連付け対象の Usage Plan ID - 0~10文字 - [Usage Planの照会](/docs/ja/apigateway-usageplan-getusageplanlist)を参照 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request POST 'https://apigateway.apigw.ntruss.com/api/v1/products/***ksk9***/apis/***51hs***/stages/***fh5o***/associate-usage-plan' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data '{ "usagePlanId" : "***xogj***" }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスステータスコード 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)をご参照ください。