Skip to main content

ListStacks

Description

call the ListStacks interface to query the resource stack list.

Request Method

POST

Request Path

/apsara/route/ROS/ListStacks

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Tag.N.KeyBODYstringNousagetag key of the resource stack. The value range of N is: 1~20.
PageSizeBODYlongNo10the number of rows per page set during paging query. Maximum value: 50. default value: 10.
ShowNestedStackBODYbooleanNotruewhether to list nested resource stacks. Value: true false (default) description if ParentStackId is specified, the value is true.
Status.NBODYrepeatlistNoCREATE_COMPLETEresource stack status, value: CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE UPDATE_IN_PROGRESS UPDATE_FAILED UPDATE_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED DELETE_COMPLETE CREATE_ROLLBACK_IN_PROGRESS CREATE_ROLLBACK_FAILED CREATE_ROLLBACK_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE CHECK_IN_PROGRESS CHECK_FAILED CHECK_COMPLETE REVIEW_IN_PROGRESS IMPORT_CREATE_IN_PROGRESS IMPORT_CREATE_FAILED IMPORT_CREATE_COMPLETE IMPORT_CREATE_ROLLBACK_IN_PROGRESS IMPORT_CREATE_ROLLBACK_FAILED IMPORT_CREATE_ROLLBACK_COMPLETE IMPORT_UPDATE_IN_PROGRESS IMPORT_UPDATE_FAILED IMPORT_UPDATE_COMPLETE IMPORT_UPDATE_ROLLBACK_IN_PROGRESS IMPORT_UPDATE_ROLLBACK_FAILED IMPORT_UPDATE_ROLLBACK_COMPLETE The value range of N is: 1~5.
ParentStackIdBODYstringNo4a6c9851-3b0f-4f5f-b4ca-a14bf691****parent stack ID.
versionBODYstringNo2016-01-01version of api
PageNumberBODYlongNo1page number of the resource stack list. starting value: 1. default value: 1.
regionIdBODYstringYesNo sample value for this parameter.region id
Tag.N.ValueBODYstringNotestthe label value of the resource stack. The value range of N is: 1~20.
RegionIdBODYstringYescn-hangzhouthe region ID to which the resource stack belongs.
StackName.NBODYrepeatlistNoMyStackresource stack name. must be no more than 255 characters in length and must start with a number or an English letter, which can contain numbers, English letters, dashes (-), and underscores (_). Fuzzy search using asterisks (*) is supported. The value range of N is: 1~5.
StackIdBODYstringNo4a6c9851-3b0f-4f5f-b4ca-a14bf691****resource stack ID. If you do not need stack details, you can specify this parameter instead of GetStack the interface.

Return data

NameTypeSample valueDescription
StatusstringCREATE_COMPLETEresource stack status, value: CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE UPDATE_IN_PROGRESS UPDATE_FAILED UPDATE_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED DELETE_COMPLETE CREATE_ROLLBACK_IN_PROGRESS CREATE_ROLLBACK_FAILED CREATE_ROLLBACK_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE CHECK_IN_PROGRESS CHECK_FAILED CHECK_COMPLETE REVIEW_IN_PROGRESS IMPORT_CREATE_IN_PROGRESS IMPORT_CREATE_FAILED IMPORT_CREATE_COMPLETE IMPORT_CREATE_ROLLBACK_IN_PROGRESS IMPORT_CREATE_ROLLBACK_FAILED IMPORT_CREATE_ROLLBACK_COMPLETE IMPORT_UPDATE_IN_PROGRESS IMPORT_UPDATE_FAILED IMPORT_UPDATE_COMPLETE IMPORT_UPDATE_ROLLBACK_IN_PROGRESS IMPORT_UPDATE_ROLLBACK_FAILED IMPORT_UPDATE_ROLLBACK_COMPLETE
PageSizeinteger10the number of rows per page set during paging query. Maximum value: 50. default value: 10.
RequestIdstringB288A0BE-D927-4888-B0F7-B35EF84B6E6Frequest ID.
ParentStackIdstring4a6c9851-3b0f-4f5f-b4ca-a14bf692****parent stack ID.
StatusReasonstringStack successfully createdresource stack status reason.
CreateTimestring2019-08-01T04:07:39creation time. According to the ISO8601 standard, UTC time is required, format: YYYY-MM-DDThh:mm:ss.
StackTypestringROSresource stack type. The value is ROS, which indicates the resource stack that uses the ROS template.
TotalCountinteger1total number of resource stacks.
PageNumberinteger1page number of the resource stack list.
UpdateTimestring2019-08-01T04:07:39resource stack update time. According to the ISO8601 standard, UTC time is required, format: YYYY-MM-DDThh:mm:ss.
Stacksarray of stackNo sample value for this parameter.resource stack list.
DriftDetectionTimestring2020-02-27T07:47:47the time of the last successful deviation detection of the resource stack.
RegionIdstringcn-hangzhouthe region ID to which the resource stack belongs.
StackDriftStatusstringIN_SYNCresource stack status in the latest successful deviation detection of the resource stack, value: DRIFTED: the resource stack is in the detection state. NOT_CHECKED: no successful deviation detection has been performed on the resource stack. IN_SYNC: the resource stack is synchronized.
DisableRollbackbooleanfalsewhether to disable the rollback policy when the resource stack creation fails. Value: true: disable rollback, that is, no rollback is performed when the resource stack creation fails. false (default): rollback is not disabled, that is, rollback is performed when the resource stack creation fails.
StackNamestringMyStackresource stack name.
StackIdstring4a6c9851-3b0f-4f5f-b4ca-a14bf691****resource stack ID.
TimeoutInMinutesinteger10timeout for creating the resource stack. Unit: Minutes.

Example

Successful Response example

{
"Status":"CREATE_COMPLETE",
"PageSize":"10",
"RequestId":"B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"ParentStackId":"4a6c9851-3b0f-4f5f-b4ca-a14bf692****",
"StatusReason":"Stack successfully created",
"CreateTime":"2019-08-01T04:07:39",
"StackType":"ROS",
"TotalCount":"1",
"PageNumber":"1",
"UpdateTime":"2019-08-01T04:07:39",
"Stacks":"",
"DriftDetectionTime":"2020-02-27T07:47:47",
"RegionId":"cn-hangzhou",
"StackDriftStatus":"IN_SYNC",
"DisableRollback":"false",
"StackName":"MyStack",
"StackId":"4a6c9851-3b0f-4f5f-b4ca-a14bf691****",
"TimeoutInMinutes":"10"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}