MENU
      Usage Planの照会

        Usage Planの照会


        記事の要約

        Classic/VPC環境で利用できます。

        指定した Usage Planの詳細情報を照会します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET/usage-plans/{usage-plan-id}

        リクエストヘッダ

        API Gatewayで共通して使用されるヘッダの詳細は、API Gatewayのリクエストヘッダをご参照ください。

        リクエストパスパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        usage-plan-idStringRequired照会対象の Usage Plan ID

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request GET 'https://apigateway.apigw.ntruss.com/api/v1/usage-plans/***wthl***"' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        レスポンス

        レスポンス形式を説明します。

        レスポンス構文

        レスポンス構文は次の通りです。

        {
            "usagePlan" : {
                "domainCode" : "domainCode",
                "usagePlanId" : "usagePlanId",
                "modifier" : "modifier",
                "associatedStagesCount" : 0,
                "dayQuotaRequest" : 6,
                "permission" : "permission",
                "rateRps" : 5,
                "usagePlanName" : "usagePlanName",
                "monthQuotaRequest" : 1,
                "tenantId" : "tenantId",
                "disabled" : true,
                "usagePlanDescription" : "usagePlanDescription",
                "quotaCondition" : "quotaCondition",
                "actionName" : "actionName"
          }
        }
        JSON

        レスポンスステータスコード

        API Gatewayで共通して使用されるレスポンスステータスコードの詳細は、API Gatewayのレスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンスのサンプルコードは次の通りです。

        {
            "usagePlan": {
                "tenantId": "***e230cebc1402ba89b148896951***",
                "usagePlanId": "***wthl***",
                "rateRps": 2,
                "usagePlanName": "usageplan000",
                "usagePlanDescription": "usage plan",
                "dayQuotaRequest": 5,
                "monthQuotaRequest": 10,
                "domainCode": "PUB",
                "associatedStagesCount": 0
            }
        }
        JSON

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.