Continues the creation of a stack after the stack creation fails.
Operation description
This topic provides an example on how to resume the creation of a failed stack with the ID 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** in the China (Hangzhou) region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ContinueCreateStack |
update |
*stack
Template
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StackId |
string |
Yes |
The stack ID. |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
| 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 Resource Access Management (RAM) role. Resource Orchestration Service (ROS) assumes this role to create the stack and uses the credentials of the role to call API operations on behalf of the user. ROS always uses this role for subsequent operations on the stack. As long as you have permissions to perform operations on the stack, ROS uses this role even if you do not have permissions to assume the role. This ensures that the minimum permissions are granted to the role. If you do not specify this parameter, ROS uses the role that was previously associated with the stack. If no role is available, ROS uses temporary credentials generated from your user credentials. The RAM role name can be up to 64 bytes in length. |
test-role |
| Mode |
string |
No |
The mode for continuing stack creation. Valid values:
Note
The RecreatingResources.N, TemplateBody, TemplateURL, and Parameters parameters take effect only in this mode.
Note
This mode is available only for ROS stacks. |
Recreate |
| TemplateBody |
string |
No |
The structure of the template. The template body must be 1 to 524,288 bytes in length. If the length of the template body exceeds the upper limit, we recommend that you use the HTTP POST method and pass the parameter in the request body to prevent request failures caused by excessively long URLs. The following limits apply to ROS templates:
Note
|
{"ROSTemplateFormatVersion": "2015-09-01"} |
| TemplateURL |
string |
No |
The URL of the file that contains the template body. The URL must point to a template located on an HTTP or HTTPS web server or in an Alibaba Cloud Object Storage Service (OSS) bucket, such as oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template can be up to 524,288 bytes in length. If the region of the OSS bucket is not specified, the region of the OSS bucket is the same as the value of the RegionId parameter. Note
|
oss://ros-template/demo |
| DryRun |
boolean |
No |
Specifies whether to only precheck the request. Valid values:
|
false |
| TemplateId |
string |
No |
The template ID. Shared templates and private templates are supported. Note
|
5ecd1e10-b0e9-4389-a565-e4c15efc**** |
| TemplateVersion |
string |
No |
The template version. This parameter takes effect only when TemplateId is specified. |
v1 |
| RecreatingResources |
array |
No |
Resources that failed to be created will be recreated. You can specify a list of additional resources to be recreated. ROS will recreate all resources that depend on these resources. Note
This parameter is available only for ROS stacks. |
WebServer |
|
string |
No |
Resources that failed to be created will be recreated. You can specify a list of additional resources to be recreated. ROS will recreate all resources that depend on these resources. Note
This parameter is available only for ROS stacks. |
WebServer |
|
| Parameters |
array<object> |
No |
The template parameters to override. |
|
|
object |
No |
|||
| ParameterKey |
string |
Yes |
The name of the template parameter to override. If you do not specify the name and value of a specific parameter, ROS uses the value from the previous creation. Maximum value of N: 200. Note
This parameter takes effect only when Mode is set to Recreate. |
Amount |
| ParameterValue |
string |
Yes |
The value of the template parameter to override. Maximum value of N: 200. For ROS stacks, the overridden template parameters have the following limits:
Note
This parameter takes effect only when Mode is set to Recreate. |
12 |
| Parallelism |
integer |
No |
The maximum number of concurrent resources. Default value: empty. You can enter an integer greater than or equal to 0. Note
|
1 |
| RecreatingOptions |
array |
No |
The recreation options. |
|
|
string |
No |
The recreation options. This parameter takes effect when
Note
This option takes effect only for ROS stacks.
Note
This option takes effect only for ROS stacks.
Note
This option takes effect only for ROS stacks.
Note
|
CreateNewPrepaidInstance |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6 |
| StackId |
string |
The stack ID. |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
| DryRunResult |
object |
The precheck result. |
|
| ParametersAllowedToBeModified |
array |
The parameters that are allowed to be modified. |
|
|
string |
The parameters that are allowed to be modified. Modifying these parameters does not cause precheck errors. Note
This parameter is returned only when DryRun is set to |
description |
|
| ParametersConditionallyAllowedToBeModified |
array |
The parameters that may be allowed to be modified. |
|
|
string |
The parameters that may be allowed to be modified. Whether modifying a parameter causes a precheck error depends on the value of the parameter. Note
This parameter is returned only when DryRun is set to |
name |
|
| ParametersNotAllowedToBeModified |
array |
The parameters that are not allowed to be modified. |
|
|
string |
The parameters that are not allowed to be modified. Modifying these parameters definitely causes precheck errors. Note
This parameter is returned only when DryRun is set to |
cidr |
Examples
Success response
JSON format
{
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6",
"StackId": "4a6c9851-3b0f-4f5f-b4ca-a14bf691****",
"DryRunResult": {
"ParametersAllowedToBeModified": [
"description"
],
"ParametersConditionallyAllowedToBeModified": [
"name"
],
"ParametersNotAllowedToBeModified": [
"cidr"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.