Remove an etcd member
import requests
url = "https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}/nodes/{node_id}/etcd-members/remove"
payload = { "member_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({member_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}/nodes/{node_id}/etcd-members/remove', 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/hetzner/{cluster_id}/nodes/{node_id}/etcd-members/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_id": "<string>"
}
'{
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_name": "<string>",
"status": "<string>",
"completed": true,
"attached_to_existing_run": true,
"report": {},
"error_excerpt": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Hetzner Clusters
Remove an etcd member
Bearer PAT authentication; RBAC permission clusters.operate. The REST twin of the assistant’s remove_etcd_member: removes one etcd member, named by the id the member listing reported, executing on the healthy control-plane peer the path names. The job re-reads live membership and refuses to remove a healthy member, a member whose health it cannot read, the local member, or one whose removal would break quorum. It waits for the report within a bounded budget; a slower job answers the operation ids to poll.
POST
/
api
/
v1
/
clusters
/
hetzner
/
{cluster_id}
/
nodes
/
{node_id}
/
etcd-members
/
remove
Remove an etcd member
import requests
url = "https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}/nodes/{node_id}/etcd-members/remove"
payload = { "member_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({member_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/clusters/hetzner/{cluster_id}/nodes/{node_id}/etcd-members/remove', 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/hetzner/{cluster_id}/nodes/{node_id}/etcd-members/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"member_id": "<string>"
}
'{
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_name": "<string>",
"status": "<string>",
"completed": true,
"attached_to_existing_run": true,
"report": {},
"error_excerpt": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The member's id in hex, as the member listing shows it (a 0x prefix is accepted), or in decimal.