All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

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"
        },
    ]
}
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback