Skip to main content
PUT
/
api
/
v1
/
clusters
/
digitalocean
/
{cluster_id}
/
ssh-keys
Update Digitalocean Ssh Keys Endpoint
import requests

url = "https://platform.ankra.app/api/v1/clusters/digitalocean/{cluster_id}/ssh-keys"

payload = { "ssh_key_credential_ids": ["<string>"] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ssh_key_credential_ids: ['<string>']})
};

fetch('https://platform.ankra.app/api/v1/clusters/digitalocean/{cluster_id}/ssh-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
curl --request PUT \
--url https://platform.ankra.app/api/v1/clusters/digitalocean/{cluster_id}/ssh-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ssh_key_credential_ids": [
"<string>"
]
}
'
{
  "ssh_key_credential_ids": [
    "<string>"
  ]
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
ssh_key_credential_ids
string[]
required

Response

Successful Response

ssh_key_credential_ids
string[]
required