Queries a list of plans. You can query plans from the end user dimension or from the review dimension.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Filters | object [] | No | An array that consists of filter conditions. | |
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
JSON
format
{
"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.