Deploys a cluster quickly.
Operation description
-
You must select HSM instances from at least two zones.
-
You must select at least two vSwitches from different zones.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-hsm:QuickDeployCluster |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VSwitchIdList |
array |
Yes |
The list of vSwitches for the cluster. |
|
|
string |
No |
The vSwitch ID. |
vsw-2zeqkh8ar8yey5ejv**** |
|
| VpcId |
string |
Yes |
The ID of the VPC to which the HSM instance belongs. |
vpc-7xvkh90cw39p0**** |
| WhiteList |
array |
No |
The access whitelist for the cluster. |
|
|
string |
No |
The cluster access whitelist. |
18.68.XX.XX |
|
| InstanceList |
array |
Yes |
The list of HSM instances. |
|
|
string |
No |
The ID of the HSM instance. |
hsm-cn-vj30bil8**** |
|
| ClusterName |
string |
Yes |
The cluster name. |
cluster_on**** |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| CertManaged |
boolean |
No |
Specifies whether to automatically generate a certificate.
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The return value. |
||
| RequestId |
string |
The request ID. |
4C467B38-3910-447D-87BC-AC049166F216 |
| Job |
object |
The details of the task. |
|
| JobId |
string |
The task ID. |
job-202401250936hze747fd7e0007005 |
| Type |
string |
The operation type.
|
create |
| Completed |
boolean |
Indicates whether the task is complete.
|
true |
| CreateTime |
string |
The time when the task was created. This is a UNIX timestamp in milliseconds. |
1653274407000 |
| Status |
string |
The status of the task.
|
success |
| Response |
string |
The response that is returned if the task is successful. |
success |
| Error |
string |
The error message that is returned if the task fails. |
OperationTimeout |
| Progress |
integer |
The progress of the task. Unit: percent. |
86 |
Examples
Success response
JSON format
{
"RequestId": "4C467B38-3910-447D-87BC-AC049166F216",
"Job": {
"JobId": "job-202401250936hze747fd7e0007005",
"Type": "create",
"Completed": true,
"CreateTime": "1653274407000",
"Status": "success",
"Response": "success",
"Error": "OperationTimeout",
"Progress": 86
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidApiParam.Error | api param is invalid | |
| 400 | InvalidVSwitch | Invalid parameter vSwitch | |
| 400 | Whitelist.TooLong | Whitelist too long, exceeds 10 CIDR blocks. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | Unknown error caused request processing to fail. |
| 403 | NoPermission | caller has no permission | |
| 403 | QuickDeployCluster.InstanceAlreadyInitialized | Instance already initialized. | |
| 403 | QuickDeployCluster.InstanceIncorrectState | Instance not in Enable/Pending state. | |
| 403 | QuickDeployCluster.InstanceInvalidRegion | Instance region invalid. | |
| 403 | QuickDeployCluster.InstanceVersionInvalid | Instance device version is invalid | |
| 403 | QuickDeployCluster.InstanceListInvalid | Cluster contains instances not in the instance list. | |
| 403 | QuickDeployCluster.InstanceBelongsToOtherCluster | Instance has been in other cluster. | |
| 403 | QuickDeployCluster.InvalidVpcId | The param vpcId is not the same as existed vpcId of cluster. | |
| 403 | QuickDeployCluster.InvalidVSwitchIdCount | VSwitch count is less than 2. | |
| 403 | QuickDeployCluster.DuplicateZone | VSwitches should not contain duplicate zones. | |
| 403 | QuickDeployCluster.InstanceCountInvalid | Instance number less than 2. | |
| 403 | QuickDeployCluster.InstanceTypeInvalid | Instance type invalid. | |
| 403 | QuickDeployCluster.InstanceTypeNotSame | Instance type not same. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.