Stop an UpCloud cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/upcloud/{cluster_id}/stop"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/upcloud/{cluster_id}/stop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/upcloud/{cluster_id}/stop \
--header 'Authorization: Bearer <token>'{
"cluster_id": "<string>",
"operation_id": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}UpCloud Clusters
Stop an UpCloud cluster
Initiate async deletion of UpCloud cloud resources (servers, networks, gateways, SSH keys) without removing the cluster from the database.
POST
/
api
/
v1
/
clusters
/
upcloud
/
{cluster_id}
/
stop
Stop an UpCloud cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/upcloud/{cluster_id}/stop"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/upcloud/{cluster_id}/stop', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/upcloud/{cluster_id}/stop \
--header 'Authorization: Bearer <token>'{
"cluster_id": "<string>",
"operation_id": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.