MENU
      getCostRelationCodeList
        • PDF

        getCostRelationCodeList

        • PDF

        記事の要約

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

        費用関連のコードリストを照会します。
        費用関連コードは、使用量(getContractUsageListgetContractUsageListByDaily)または費用(getContractDemandCostListgetProductDemandCostList)の照会 APIで使用できます。

        リクエスト

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

        メソッドURI
        GET/cost/getCostRelationCodeList

        リクエストヘッダ

        Cost and Usage APIで共通して使用されるヘッダの詳細は、Cost And Usageの共通ヘッダをご参照ください。

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

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

        フィールドタイプ必須の有無説明
        contractTypeCodeStringOptional契約タイプコード
        productItemKindCodeStringOptional商品品目種類コード
        productRatingTypeCodeStringOptional商品課金タイプコード
        meteringTypeCodeStringOptionalメータリング区分コード
        productCategoryCodeStringOptional商品カテゴリコード
        responseFormatTypeStringOptionalレスポンス結果の形式
        • xml(デフォルト) | json

        リクエスト例

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

        curl --location 'https://billingapi.apigw.ntruss.com/billing/v1/cost/getCostRelationCodeList?contractTypeCode=VSVR&productItemKindCode=VSVR'
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Sub Account Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        レスポンス

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

        レスポンスボディ

        レスポンスボディの詳細は、CostRelationCodeListをご参照ください。

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

        NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。

        レスポンス例

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

        <?xml version="1.0" encoding="UTF-8"?>
        <getCostRelationCodeListResponse>
        <requestId>46ab577a-****-****-****-09d8716f0019</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <totalRows>2</totalRows>
        <costRelationCodeList>
        <costRelationCode>
        <contractType>
        <code>VSVR</code>
        <codeName>Server(VPC)</codeName>
        </contractType>
        <productItemKind>
        <code>VSVR</code>
        <codeName>VPC Server</codeName>
        </productItemKind>
        <productRatingType>
        <code>VSVR</code>
        <codeName>VPC Server</codeName>
        </productRatingType>
        <meteringType>
        <code>VSVR</code>
        <codeName>VPC Server</codeName>
        </meteringType>
        <demandType>
        <code>VSVR</code>
        <codeName>Server (VPC)</codeName>
        </demandType>
        <demandTypeDetail>
        <code>VSVR</code>
        <codeName>VPC Server</codeName>
        </demandTypeDetail>
        <productDemandType>
        <code>VSVR</code>
        <codeName>Server(VPC)</codeName>
        <regionCode/>
        </productDemandType>
          <productCategory>
                <code>COMPUTE</code>
                <codeName>Compute</codeName>
              </productCategory>
            </costRelationCode>
        <costRelationCode>
        <contractType>
        <code>VSVR</code>
        <codeName>Server(VPC)</codeName>
        </contractType>
        <productItemKind>
        <code>VSVR</code>
        <codeName>VPC Server</codeName>
        </productItemKind>
        <productRatingType>
        <code>VSVR</code>
        <codeName>VPC Server</codeName>
        </productRatingType>
        <meteringType>
        <code>VSVRT</code>
        <codeName>Server (VPC) Stop Usage</codeName>
        </meteringType>
        <demandType>
        <code>VSVR</code>
        <codeName>Server (VPC)</codeName>
        </demandType>
        <demandTypeDetail>
        <code>VSVRT</code>
        <codeName>Server (VPC) Stop Usage</codeName>
        </demandTypeDetail>
        <productDemandType>
        <code>VSVR</code>
        <codeName>Server(VPC)</codeName>
        <regionCode/>
        </productDemandType>
              <productCategory>
                <code>COMPUTE</code>
                <codeName>Compute</codeName>
              </productCategory>
        </costRelationCode>
        </costRelationCodeList>
        </getCostRelationCodeListResponse>
        XML

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

        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.