Deletes a stack, optionally retaining 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 |
Whether to retain all resources in the stack. Valid values:
|
false |
| RegionId |
string |
Yes |
The region ID of the stack. Call DescribeRegions to query available regions. |
cn-hangzhou |
| RamRoleName |
string |
No |
The RAM role name. ROS assumes this role to create the stack and call Alibaba Cloud service APIs. |
test-role |
| RetainResources |
array |
No |
Resources to retain. |
WebServer |
|
string |
No |
Names of resources to retain. |
my_disk |
|
| DeleteOptions |
array |
No |
Stack deletion options. |
|
|
string |
No |
Stack deletion option. Valid values:
|
["ThrowErrorWithSubscriptionResources"] |
|
| Parallelism |
integer |
No |
Maximum number of concurrent resource operations. Default: empty. Accepts an integer >= 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.