tencent cloud

Feedback

QueryPolicyProductListByCode

Last updated: 2024-12-16 15:34:34

1. API Description

Domain name for API request: intlpartnersmgt.intl.tencentcloudapi.com.

This API is used to query the product list information within the specified policy range. To call this API, contact your account manager to add it to the allowlist.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: QueryPolicyProductListByCode.
Version Yes String Common Params. The value used for this API: 2022-09-28.
Region No String Common Params. This parameter is not required.
PolicyCode Yes String Policy code
ProductCode No String Product code
ProductName No String Product name
SubProductCode No String Subproduct code
SubProductName No String Subproduct name

3. Output Parameters

Parameter Name Type Description
ProductList Array of PolicyProductList Policy product list
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying Policy List Data

This example shows you how to query policy list data by the reseller policy code and subproduct name

Input Example

POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: QueryPolicyProductListByCode
<Common request parameters>

{
    "PolicyCode": "StandardPolicy2024",
    "ProductCode": "",
    "ProductName": "",
    "SubProductCode": "",
    "SubProductName": "CBM Memory Optimized BMM5"
}

Output Example

{
    "Response": {
        "ProductList": [
            {
                "ComponentCode": "*",
                "ComponentName": "*",
                "ComponentTypeCode": "*",
                "ComponentTypeName": "*",
                "EndDate": "2024-12-31 00:00:00",
                "PolicyCode": "StandardPolicy2024",
                "ProductCode": "p_cvm",
                "ProductName": "Cloud Virtual Machine(CVM)",
                "StartDate": "2024-01-01 00:00:00",
                "SubProductCode": "sp_cvm_bmm5m",
                "SubProductName": "CBM Memory Optimized BMM5"
            }
        ],
        "RequestId": "5d1eb9c4-8e1b-4c8c-99b3-209e7ce35a34"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.