Clone a Cluster on Google Cloud Platform¶
-
POST
/api/v2/clusters/<cluster ID>/clone
¶
Use this API to clone a cluster.
Required Role¶
The following users can make this API call:
- Users who belong to the system-admin or system-user group.
- Users who belong to a group associated with a role that allows creating a cluster. See Managing Groups and Managing Roles for more information.
Parameters¶
Parameters describes the list of parameters of a cluster on GCP. You can change the name of the cluster.
Request API Syntax¶
Request API Syntax explains the entire syntax for creating a GCP cluster. You can add the configuration that needs modification of an existing cluster in the Clone API payload.
Sample API Request¶
Here is a sample API request to clone a cluster with 1223 as its ID.
curl -X POST -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
-d '{
"cluster_info": {
"label": ["gcp-clone"],
"min_nodes": 1,
"max_nodes": 4,
"cluster_name": "GCP1-clone",
"node_bootstrap": "node_bootstrap.sh",
}
}' \ "https://gcp.qubole.com/api/v2/clusters/1223/clone"