You are not logged in.
RestoreCluster
This API is used to restore clusters using the snapshot.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
snapshot_id | string | path | Yes | ID of the snapshot to be restored |
project_id | string | path | Yes | Project ID |
Name | Type | Mandatory | Description |
---|---|---|---|
restore | Restore object | Yes | Object to be restored |
Name | Type | Mandatory | Description |
---|---|---|---|
name | string | Yes | Cluster name,which must be unique. The cluster name must contain 4 to 64 characters,which must start with a letter.Only letters,digits, hyphens(-), and underscores (_) are allowed. |
subnet_id | string | No | Subnet ID, which is used for configuring cluster network.The default value is the same as that of the original cluster. |
security_group_id | string | No | Security group ID, which is used for configuring cluster network.The default value is the same as that of the original cluster. |
vpc_id | string | No | VPC ID, which is used for configuring cluster network.The default value is the same as that of the original cluster. |
availability_zone | string | No | AZ of a cluster.The default value is the same as that of the original cluster. |
port | integer | No | Service port of a cluster. The value ranges from 8000 to 30000. |
public_ip | PublicIp object | No | Public IP address. If the parameter is not specified, public connection is not used by default.。 |
enterprise_project_id | string | No | Enterprise project. The default enterprise project ID is 0. |
ipv6_enable | boolean | No | Specifies the network protocol type, indicating whether IPv6 is supported. By default, IPv6 is not used. |
Name | Type | Mandatory | Description |
---|---|---|---|
public_bind_type | string | No | Binding type of an EIP. The value can be one of the following:
|
eip_id | string | No | EIP ID |
Normal
Name | Type | Description |
---|---|---|
cluster | Cluster object | Cluster object |
Name | Type | Description |
---|---|---|
id | string | Cluster ID |
Request error.
Authorization failed.
No operation permission.
No resources found.
Internal service error.
The service is unavailable.
"POST https://{Endpoint}/v1.0/89cd04f168b84af6be287f71730fdb4b/snapshots/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/actions"
{
"restore": {
"name": "dws-1",
"subnet_id": "374eca02-cfc4-4de7-8ab5-dbebf7d9a720",
"security_group_id": "dc3ec145-9029-4b39-b5a3-ace5a01f772b",
"vpc_id": "85b20d7e-9eb7-4b2a-98f3-3c8843ea3574",
"availability_zone": "az1.dc1",
"port": 8000,
"public_ip": {
"public_bind_type": "auto_assign",
"eip_id": ""
},
"enterprise_project_id": "aca4e50a-266f-4786-827c-f8d6cc3fbada"
}
}
Normal
{
"cluster": {
"id": "7d85f602-a948-4a30-afd4-e84f47471c15"
}
}