Manage a cluster
Suggest changes
You can manage a Kubernetes cluster so that data protection can be performed.
Step 1: Select the cluster to manage
Perform the workflow List clusters and select the desired cluster. The property managedState
of the cluster must be unmanaged
.
Step 2: Optionally, select the storage class
Optionally perform the workflow List storage classes and select the desired storage class.
If you don't provide a storage class on the call to manage the cluster, your default storage class will be used. |
Step 3: Manage the cluster
Perform the following REST API call to manage the cluster.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
POST |
/accounts/{account_id}/topology/v1/managedClusters |
Curl example
curl --request POST \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/topology/v1/managedClusters" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN" \
--data @JSONinput
JSON input example
{
"type": "application/astra-managedCluster",
"version": "1.0",
"id": "d0fdf455-4330-476d-bb5d-4d109714e07d"
}