Deletes a stack. You can specify whether to retain resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:DeleteStack |
delete |
*stack
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StackId |
string |
Yes |
The ID of the stack. |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
| RetainAllResources |
boolean |
No |
Specifies whether to retain all resources in the stack. Valid values:
|
false |
| RegionId |
string |
Yes |
The region ID of the stack. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| RamRoleName |
string |
No |
The name of the RAM role. Resource Orchestration Service (ROS) assumes the RAM role to create the stack and uses the credentials of the role to call the APIs of Alibaba Cloud services. |
test-role |
| RetainResources |
array |
No |
The resources that you want to retain. |
WebServer |
|
string |
No |
The names of the resources that you want to retain. |
my_disk |
|
| DeleteOptions |
array |
No |
The options for deleting the stack. |
|
|
string |
No |
The option for deleting the stack. Valid values:
|
["ThrowErrorWithSubscriptionResources"] |
|
| Parallelism |
integer |
No |
The maximum number of concurrent operations that can be performed on resources. By default, this parameter is empty. You can set this parameter to an integer that is greater than or equal to 0. Note
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
Examples
Success response
JSON format
{
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.