Queries products as a user.
Operation description
Make sure that you are granted the permissions to manage relevant products as a user by an administrator. For more information, see Manage access permissions.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| servicecatalog:ListProductsAsEndUser | get | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Filters | array<object> | No | The filter conditions. | |
| object | No | |||
| 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 data. The default value is CreateTime, which specifies the time when the product was created. | CreateTime |
| SortOrder | string | No | The method that is used to sort the returned entries. 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 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"ProductSummaries": [
{
"Description": "The description of the product.\n",
"CreateTime": "2022-04-12T06:10:37Z",
"ProductId": "prod-bp18r7q127****",
"ProductArn": "acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****",
"ProductName": "DEMO-Create an ECS instance\n",
"ProviderName": "IT team\n",
"ProductType": "Ros",
"HasDefaultLaunchOption": true,
"TemplateType": "RosTerraformTemplate"
}
],
"TotalCount": 100,
"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 | View Change Details |
