All Products
Search
Document Center

Ticket System API:ListProducts

Last Updated:Jul 22, 2024

Obtains the data of the Alibaba Cloud product list.

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
NamestringNo

The name of the product. Fuzzy search is supported. This parameter is optional.

ecs
LanguagestringNo

The language that you use, supporting English, Chinese, and Japanese. Valid values: en, zh, and jp, which indicate English, Chinese, and Japanese, respectively.

cn

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The return code of the request result.

0
Messagestring

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

success
RequestIdstring

The unique ID of the API request. The requestID is unique for each call.

AC0AB2EC-AFBC-44BA-AE77-132A5A1EC0AD
Successboolean

Indicates whether the call is successful. A value of true indicates that the call is normal.

true
Dataarray<object>

Return value, that is, product list

object
DirectoryIdlong

The ID of the product catalog, which represents the product category, such as elastic computing

1
DirectoryNamestring

The name of the product catalog, which represents the product category, such as elastic computing

ECS
ProductListarray<object>

List of Alibaba Cloud products

object
ProductIdlong

Alibaba Cloud product ID

7160
ProductNamestring

Alibaba Cloud product name

ECS

Examples

Sample success responses

JSONformat

{
  "Code": 0,
  "Message": "success",
  "RequestId": "AC0AB2EC-AFBC-44BA-AE77-132A5A1EC0AD",
  "Success": true,
  "Data": [
    {
      "DirectoryId": 1,
      "DirectoryName": "ECS",
      "ProductList": [
        {
          "ProductId": 7160,
          "ProductName": "ECS"
        }
      ]
    }
  ]
}

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