getContractSummaryList
    • PDF

    getContractSummaryList

    • PDF

    Article summary

    Available in Classic and VPC

    Search a list of user contract summaries.
    The contract summary consists of a Region code, a contract type code, and the number of contracts.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET/cost/getContractSummaryList

    Request headers

    For headers common to all Cost and usage APIs, see Cost and usage common headers.

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    pageNoIntegerOptionalPage number
    pageSizeIntegerOptionalPage size
    • 1000 or less (default: 1000)
    isOrganizationBooleanOptionalWhether to view consolidated usage for organization sub accounts
  • Available to masters only
  • An error is returned if both isOrganization and isPartner are true
  • isPartnerBooleanOptionalWhether to view partner accounts
    • Available to partner representatives only
    • An error is returned if both isOrganization and isPartner are true
    memberNoListList<String>OptionalMember ID list
    • Only available to master or partner representatives
    contractMonthStringRequiredContract year and month to view (yyyyMM)
    • <E.g.> 202404
    contractTypeCodeStringOptionalContract type code
    contractStatusCodeStringOptionalContract status code
    • ALL (default) | NOML | NLEND
      • ALL: all
      • NOML: normal
      • NLEND: ended
    regionCodeStringOptionalRegion code
    responseFormatTypeStringOptionalResponse result format
    • xml (default) | json

    Request example

    The following is a sample request.

    curl --location 'https://billingapi.apigw.ntruss.com/billing/v1/cost/getContractSummaryList?contractMonth=202404'
    --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}'
    

    Response

    The following describes the response format.

    Response body

    See ContractSummaryList for the response body.

    Response status codes

    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    Response example

    The following is a sample response.

    <?xml version="1.0" encoding="UTF-8"?>
    <getContractSummaryListResponse>
        <requestId>db96b2c0-****-****-****-939ab748350e</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <totalRows>3</totalRows>
        <contractSummaryList>
            <contractSummary>
                <memberNo>2706412</memberNo>
                <regionCode>KR</regionCode>
                <contractCount>1</contractCount>
                <contractType>
                    <code>ARCST</code>
                    <codeName>Archive Storage</codeName>
                </contractType>
                <contractStatus>
                    <code>ALL</code>
                    <codeName>ALL</codeName>
                </contractStatus>
            </contractSummary>
            <contractSummary>
                <memberNo>2706412</memberNo>
                <regionCode>KR</regionCode>
                <contractCount>2</contractCount>
                <contractType>
                    <code>CTNRR</code>
                    <codeName>Container Registry</codeName>
                </contractType>
                <contractStatus>
                    <code>ALL</code>
                    <codeName>ALL</codeName>
                </contractStatus>
            </contractSummary>
            <contractSummary>
                <memberNo>2706412</memberNo>
                <regionCode>KR</regionCode>
                <contractCount>1</contractCount>
                <contractType>
                    <code>OBJST</code>
                    <codeName>Object Storage</codeName>
                </contractType>
                <contractStatus>
                    <code>ALL</code>
                    <codeName>ALL</codeName>
                </contractStatus>
            </contractSummary>
        </contractSummaryList>
    </getContractSummaryListResponse>
    

    Was this article helpful?

    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.