Queries products as an administrator.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PortfolioId | string | No | The ID of the product portfolio. | port-bp1yt7582g**** |
Filters | object [] | No | The filter conditions. | |
Key | string | No | The name of the filter condition. Valid values:
| ProductName |
Value | string | No | The value of the filter condition. | DEMO-Create an ECS instance |
SortBy | string | No | The field that is used to sort the queried data. Set the value to CreateTime, which specifies the time when the product was created. | CreateTime |
SortOrder | string | No | The order in which you want to sort the queried data. Valid values:
| Desc |
PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10. | 10 |
Scope | string | No | The query scope. Valid values:
| Local |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"ProductDetails": [
{
"ProductArn": "acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****",
"Description": "The description of the product.\n",
"CreateTime": "2022-04-12T06:10:37Z",
"ProductId": "prod-bp18r7q127****",
"ProductName": "DEMO-Create an ECS instance\n",
"ProviderName": "IT team\n",
"ProductType": "Ros",
"TemplateType": "RosTerraformTemplate"
}
],
"TotalCount": 2,
"PageNumber": 1,
"PageSize": 10
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
500 | InternalError | A system error occurred. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2024-02-27 | The response structure of the API has changed | see changesets | ||
|