Melanjutkan pembuatan stack setelah stack gagal dibuat.
Deskripsi operasi
This topic provides an example on how to continue to create a stack after the stack fails to be created. In this example, the stack whose ID is 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** is created in the China (Hangzhou) region.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ContinueCreateStack |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| StackId |
string |
Yes |
ID stack. |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
| RegionId |
string |
Yes |
ID Wilayah stack. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| RamRoleName |
string |
No |
Nama Peran RAM. Resource Orchestration Service (ROS) mengasumsikan Peran RAM untuk membuat stack dan menggunakan kredensial peran tersebut untuk memanggil API layanan Alibaba Cloud. |
test-role |
| Mode |
string |
No |
Mode ROS untuk melanjutkan pembuatan stack. Nilai valid:
Catatan
RecreatingResources.N, TemplateBody, TemplateURL, dan Parameters berlaku hanya saat Mode disetel ke Recreate.
Catatan
Mode ini hanya tersedia untuk stack ROS. |
Recreate |
| TemplateBody |
string |
No |
Struktur yang berisi badan templat. Badan templat harus memiliki panjang 1 hingga 524.288 byte. Template ROS tunduk pada batasan berikut:
Catatan
|
{"ROSTemplateFormatVersion": "2015-09-01"} |
| TemplateURL |
string |
No |
URL file yang berisi badan templat. URL harus mengarah ke templat yang berada di server web HTTP atau HTTPS atau di Bucket OSS (Object Storage Service), seperti oss://ros/template/demo atau oss://ros/template/demo?RegionId=ap-southeast-1. Badan templat dapat memiliki panjang hingga 524.288 byte. Jika Anda tidak menentukan ID Wilayah dari Bucket OSS, nilai RegionId akan digunakan. Catatan
|
oss://ros-template/demo |
| DryRun |
boolean |
No |
Apakah hanya akan memvalidasi stack di permintaan. Nilai valid:
|
false |
| TemplateId |
string |
No |
ID templat. Parameter ini berlaku untuk templat bersama dan privat. Catatan
|
5ecd1e10-b0e9-4389-a565-e4c15efc**** |
| TemplateVersion |
string |
No |
Versi templat. Parameter ini berlaku hanya saat TemplateId ditentukan. |
v1 |
| RecreatingResources |
array |
No |
Sumber daya yang dilanjutkan pembuatannya oleh ROS setelah Sumber daya tersebut gagal dibuat. Anda dapat menambahkan Sumber daya baru ke Sumber daya yang dilanjutkan pembuatannya oleh ROS. ROS melanjutkan pembuatan semua dependensi Sumber daya baru tersebut. Catatan
Parameter ini hanya tersedia untuk stack ROS. |
WebServer |
|
string |
No |
The resource that ROS continues to create after the resource failed to be created. You can add new resources to the resources that ROS continues to create. ROS continues to create all dependencies of the new resources. Catatan
This parameter is available only for ROS stacks. |
WebServer |
|
| Parameters |
array<object> |
No |
Parameter templat yang ingin Anda gunakan untuk menggantikan parameter tertentu. |
|
|
object |
No |
|||
| ParameterKey |
string |
Yes |
The name of template parameter N that you want to use to override a specific parameter. If you do not specify the name and value of a template parameter, ROS uses the name and value specified in the previous operation that was performed to create the stack. Maximum value of N: 200. Catatan
This parameter takes effect only when Mode is set to Recreate. |
Amount |
| ParameterValue |
string |
Yes |
The value of template parameter N that you want to use to override a specific parameter. Maximum value of N: 200. For ROS stacks, the template parameters that you use to override specific parameters are subject to the following limits:
Catatan
This parameter takes effect only when Mode is set to Recreate. |
12 |
| Parallelism |
integer |
No |
Jumlah maksimum operasi konkuren yang dapat dilakukan pada Sumber daya. Secara default, parameter ini kosong. Anda dapat menetapkan parameter ini ke bilangan bulat yang lebih besar dari atau sama dengan 0. Catatan
|
1 |
| RecreatingOptions |
array |
No |
Opsi yang diadopsi ROS saat ROS melanjutkan pembuatan stack. |
|
|
string |
No |
The option that ROS adopts when ROS continues to create the stack. This parameter takes effect when
Catatan
|
CreateNewPrepaidInstance |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
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 validation result. |
|
| ParametersAllowedToBeModified |
array |
The parameters that can be modified. |
|
|
string |
The parameter that can be modified. The operation that is performed to modify the parameters does not cause a validation error. Catatan
This parameter is returned only if DryRun is set to |
description |
|
| ParametersConditionallyAllowedToBeModified |
array |
The parameters that can be modified under specific conditions. |
|
|
string |
The parameter that can be modified under specific conditions. The new values of the parameters determine whether the operation that is performed to modify the parameters causes a validation error. Catatan
This parameter is returned only if DryRun is set to |
name |
|
| ParametersNotAllowedToBeModified |
array |
The parameters that cannot be modified. |
|
|
string |
The parameter that cannot be modified. The operation that is performed to modify the parameters causes a validation error. Catatan
This parameter is returned only if DryRun is set to |
cidr |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6",
"StackId": "4a6c9851-3b0f-4f5f-b4ca-a14bf691****",
"DryRunResult": {
"ParametersAllowedToBeModified": [
"description"
],
"ParametersConditionallyAllowedToBeModified": [
"name"
],
"ParametersNotAllowedToBeModified": [
"cidr"
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.