All Products
Search
Document Center

Ticket System API:ListCategories

Last Updated:Jul 22, 2024

Obtains the list data of ticket problem categories.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProductIdlongYes

The ID of the product. You can call the ListProducts operation to obtain the product ID. The ProductId parameter is the ID of an Alibaba Cloud product. Multiple Categories are displayed for each product.

18550
NamestringNo

The name of the classification question. Fuzzy search is supported.

ecs
LanguagestringNo

Multi-language, support, Chinese, English. Value definition: zh: Chinese, en: English.

zh

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The response code.

200
Messagestring

The error message. If success is set to false, the message is returned.

success
RequestIdstring

The ID of the request.

CA6204AC-6AA9-4CFA-9310-7DFD20C19EBC
Successboolean

Indicates whether the request was successful. Valid values: The value true indicates a success. The value false indicates a failure.

true
Dataarray<object>

The return value, which is a list of question categories

object
CategoryNamestring

The name of the ticket issue category.

ECS
CategoryIdlong

The ID of the ticket issue category.

7161

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "CA6204AC-6AA9-4CFA-9310-7DFD20C19EBC",
  "Success": true,
  "Data": [
    {
      "CategoryName": "ECS",
      "CategoryId": 7161
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400param.illegalParams illegal.-
401illegal.authYou are not authorized to perform the operation.You are not authorized to perform this operation.
500System.errorAn error occurred while processing your request.An error occurred while processing your request. Please try again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history