Queries the categories of questions that are submitted for a specific product.
Debugging
Request Parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListCategories |
The operation that you want to perform. Set the value to ListCategories. |
ProductCode | String | Yes | ecs |
The product code. |
Language | String | No | zh |
The language that you use, supporting English, Chinese, and Japanese. Valid values: en, zh, and jp, which indicate English, Chinese, and Japanese, respectively. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The status code. |
Data | Struct |
The data returned after the call succeeds. |
|
List | Array |
The list of categories. |
|
Id | Integer | 793 |
The category ID. |
Name | String | Remote ECS connection failure |
The category name. |
Message | String | success |
The prompt message. |
RequestId | String | CA6204AC-6AA9-4CFA-9310-7DFD20C19EBC |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. The value true indicates a success. The value false indicates a failure. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListCategories
&ProductCode=ecs
&<Common request parameters>
Sample success responses
XML
format
<Message>success</Message>
<Data>
<List>
<Id>793</Id>
<Name>Remote ECS connection failure</Name>
</List>
<List>
<Id>794</Id>
<Name>Server connection failure</Name>
</List>
</Data>
<Code>200</Code>
<Success>true</Success>
JSON
format
{
"Message": "success",
"Data": {
"List": [
{
"Id": 793,
"Name": "Remote ECS connection failure"
},
{
"Id": 794,
"Name": "Server connection failure"
}
]
},
"Code": 200,
"Success": true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | param.illegal | The specified parameter is invalid. Please check the parameter. | The error message returned because there are invalid parameters. Modify the parameter settings as required. |
500 | System.error | An error occurred while processing your request. | The error message returned because an internal error has occurred. Try again later. |
For a list of error codes, visit the API Error Center.