All Products
Search
Document Center

Service Catalog:ListProvisionedProductPlans

Last Updated:Mar 03, 2024

Queries a list of plans. You can query plans from the end user dimension or from the review dimension.

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
Filtersobject []No

An array that consists of filter conditions.

KeystringNo

The name of the filter condition. Valid values:

  • ProvisionedProductPlanName: performs exact matches by plan name. Plan names are not case-sensitive.
  • ProvisionedProductPlanApprover: performs exact matches by reviewer. You must specify a reviewer in the RamUser/RamRole:<Name of the reviewer> format. You can specify multiple reviewers.
  • ProvisionedProductPlanApproverName: performs matches by reviewer name. You must specify the Resource Access Management (RAM) entity name of the reviewer. You can specify multiple reviewer names.
  • ProvisionedProductPlanStatus: performs matches by plan status. You must specify the state of the plan. You can specify multiple states.
  • ProvisionedProductPlanOwnerUid: performs exact matches by ID of Alibaba Cloud account to which a plan belongs.
  • FullTextSearch: performs fuzzy full-text searches by plan name.
FullTextSearch
ValuestringNo

The value of the filter condition.

ECS
SortBystringNo

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
SortOrderstringNo

The order in which you want to sort the query results. Valid values:

  • Asc: the ascending order
  • Desc (default): the descending order.
Desc
PageNumberintegerNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page.

Valid values: 1 to 100. Minimum value: 1. Default value: 10.

10
AccessLevelFilterstringNo

The access filter. Valid values:

  • User (default): queries the plans that are created by the current requester.
  • Account: queries the plans that belong to the current Alibaba Cloud account.
  • ResourceDirectory: queries the plans that belong to the current resource directory.
User
ApprovalFilterstringNo

The access filter of the review dimension. Valid values:

  • ReceivedRequests: queries plans that are pending for review.
  • ApprovalHistory: queries review history.
  • AccountRequests: queries all plans that belong to the current Alibaba Cloud account.
  • AccountRequests: queries all plans that belong to the current Alibaba Cloud account.
ReceivedRequests
ProvisionedProductIdstringNo

The ID of the product instance.

pp-bp1ddg1n2a****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

0FEEF92D-4052-5202-87D0-3D8EC16F****
PlanDetailsobject []

An array that consists of plans.

PlanIdstring

The ID of the plan.

plan-bp18mmdh2u****
PlanNamestring

The name of the plan.

DEMO-Create an ECS instance-637\*\*\*\*
PlanTypestring

The type of the plan.

The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).

Ros
PortfolioIdstring

The ID of the product portfolio.

port-bp1438kf2j****
ProductIdstring

The ID of the product.

prod-bp1rtrnh2c****
ProductVersionIdstring

The ID of the product version.

pv-bp19udk22v****
ProvisionedProductIdstring

The ID of the product instance.

pp-bp1c35162d****
Parametersobject []

An array that consists of the parameters in the template.

ParameterKeystring

The name of the parameter in the template.

role_name
ParameterValuestring

The value of the parameter in the template.

Test-8
ProvisionedProductNamestring

The name of the product instance.

rds-MYSQL-875****
StackIdstring

The ID of the ROS stack.

2599090a-309e-4306-b989-17ba66a9****
StackRegionIdstring

The ID of the region to which the ROS stack belongs.

cn-hangzhou
Statusstring

The state of the plan. Valid values:

  • PreviewInProgress: The plan is being prechecked.
  • PreviewSuccess: The precheck is successful.
  • PreviewFailed: The precheck fails.
  • ApplicationInProgress: The plan is being reviewed.
  • ApplicationApproved: The plan is approved.
  • ApplicationRejected: The approval is rejected.
  • ExecuteInProgress: The plan is being run.
  • ExecuteSuccess: The plan is run.
  • ExecuteFailed: The plan fails to be run.
  • Canceled: The plan is canceled.
PreviewSuccess
StatusMessagestring

The message returned for the state.

Note This parameter is returned only when PreviewFailed or ExecuteFailed is returned for the Status parameter.
Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...
CreateTimestring

The time when the plan was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2022-09-13T02:01:22Z
UpdateTimestring

The last time when the task was modified.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2022-07-18T06:02:35.075Z
Tagsobject []

An array that consists of custom tags.

Keystring

The key of the custom tag.

k1
Valuestring

The value of the custom tag.

v1
OperationTypestring

The purpose of the plan. Valid values:

  • LaunchProduct: launches the product. This is the default value.
  • UpdateProvisionedProduct: updates the information about the product instance.
  • TerminateProvisionedProduct: terminates the product instance.
LaunchProduct
AssignedApproversobject []

An array that consists of reviewers.

PrincipalTypestring

The type of the RAM entity of the reviewer. Valid values:

  • RamUser: a RAM user
  • RamRole: a RAM role
RamUser
PrincipalNamestring

The RAM entity name of the reviewer.

endUser
ProductNamestring

The name of the product.

Create an ECS instance
Descriptionstring

The description of the plan.

For development team.
OwnerPrincipalTypestring

The type of the RAM entity to which the plan belongs. Valid values:

  • RamUser: a RAM user
  • RamRole: a RAM role
RamUser
OwnerPrincipalIdstring

The ID of the RAM entity to which the plan belongs.

24477111603637****
OwnerPrincipalNamestring

The name of the RAM entity to which the plan belongs.

enduser
Uidstring

The ID of the Alibaba Cloud account to which the plan belongs.

146611588617****
TotalCountinteger

The total number of entries returned.

16
PageNumberinteger

The page number of the returned page.

Pages start from page 1. Default value: 1.

1
PageSizeinteger

The number of entries returned per page.

Valid values: 1 to 100. Minimum value: 1. Default value: 10.

10

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 codeError codeError message
500InternalErrorA system error occurred.

For a list of error codes, visit the Service error codes.