GetProductCode

Last updated:2021-07-16 15:32:00

GetProductCode

You can call this operation to query the mappings between products and codes.
Note: The mappings remain unchanged within a specific period of time. You can cache the mappings as required.

Request parameters

Parameter Type Required Length (number of characters) Format Description
Action String Yes Fixed value [a-zA-Z]+ The operation that you want to perform. Set the value to GetProductCode.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
ProductCodeSet KvPair array The mappings between products and codes.

Error codes

Error code Error message HTTP status code Description
InvalidParameter There is one or more invalid parameter(%s)." 400 The error message returned because the %s parameter is invalid. For more information about the parameter, see %s.
Forbidden Request user %s forbidden request this api" 400 The error message returned because the user denies the API request. For more information about the user ID, see %s.
Server unavailable Server error 500 The error message returned because exceptions occur on the backend server.

Successful call examples

Sample requests

https://bill.api.ksyun.com/?Action=GetProductCode
&Version=2018-06-01
&Common request parameters

Sample success responses

  • XML format
<GetProductCodeResponse>
    <RequestId>ht-test</RequestId>
    <ProductCodeSet>
        <ProductCodeSet>
            <Key>EBS</Key>
            <Value>EBS</Value>
        </ProductCodeSet>
        <ProductCodeSet>
            <Key>EIP</Key>
            <Value>EIP</Value>
        </ProductCodeSet>
</GetProductCodeResponse>
  • JSON format
{
    "RequestId": "ht-test",
    "ProductCodeSet": [
        {
            "Key": "EBS",
            "Value": "EBS"
        },
        {
            "Key": "EIP",
            "Value": "EIP"
        },
    ]
}

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈