Queries a list of plans. You can query plans from the end user dimension or from the review dimension.
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:ListProvisionedProductPlans | list | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Filters | array<object> | No | An array that consists of filter conditions. | |
| object | No | |||
| Key | string | No | The name of the filter condition. Valid values:
| FullTextSearch |
| Value | string | No | The value of the filter condition. | ECS |
| SortBy | string | No | The information based on which you want to sort the query results. Set the value to CreateTime, which specifies the creation time of plans. | CreateTime |
| SortOrder | string | No | The order in which you want to sort the query results. 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. Minimum value: 1. Default value: 10. | 10 |
| AccessLevelFilter | string | No | The access filter. Valid values:
| User |
| ApprovalFilter | string | No | The access filter of the review dimension. Valid values:
| ReceivedRequests |
| ProvisionedProductId | string | No | The ID of the product instance. | pp-bp1ddg1n2a**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F****",
"PlanDetails": [
{
"PlanId": "plan-bp18mmdh2u****",
"PlanName": "DEMO-Create an ECS instance-637\\*\\*\\*\\*\n",
"PlanType": "Ros",
"PortfolioId": "port-bp1438kf2j****",
"ProductId": "prod-bp1rtrnh2c****",
"ProductVersionId": "pv-bp19udk22v****",
"ProvisionedProductId": "pp-bp1c35162d****",
"Parameters": [
{
"ParameterKey": "role_name",
"ParameterValue": "Test-8"
}
],
"ProvisionedProductName": "rds-MYSQL-875****",
"StackId": "2599090a-309e-4306-b989-17ba66a9****",
"StackRegionId": "cn-hangzhou",
"Status": "PreviewSuccess",
"StatusMessage": "Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...",
"CreateTime": "2022-09-13T02:01:22Z",
"UpdateTime": "2022-07-18T06:02:35.075Z",
"Tags": [
{
"Key": "k1",
"Value": "v1"
}
],
"OperationType": "LaunchProduct",
"AssignedApprovers": [
{
"PrincipalType": "RamUser",
"PrincipalName": "endUser"
}
],
"ProductName": "Create an ECS instance\n",
"Description": "For development team.\n",
"OwnerPrincipalType": "RamUser",
"OwnerPrincipalId": "24477111603637****\n",
"OwnerPrincipalName": "enduser",
"Uid": "146611588617****"
}
],
"TotalCount": 16,
"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.
