Rotate a registry robot's secret
import requests
url = "https://platform.ankra.app/api/v1/org/registry-robots/{robot_name}/rotate"
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/org/registry-robots/{robot_name}/rotate', 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/org/registry-robots/{robot_name}/rotate \
--header 'Authorization: Bearer <token>'{
"created_at": "<string>",
"credential_name": "<string>",
"description": "<string>",
"docker_login": "<string>",
"host": "<string>",
"name": "<string>",
"project": "<string>",
"robot_name": "<string>",
"rotated_at": "<string>",
"scope": "push",
"secret": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Credentials
Rotate a registry robot's secret
Mint a new secret for the robot and return it once. The previous secret stops working. A robot the registry no longer has is minted again under the same name and scope. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
POST
/
api
/
v1
/
org
/
registry-robots
/
{robot_name}
/
rotate
Rotate a registry robot's secret
import requests
url = "https://platform.ankra.app/api/v1/org/registry-robots/{robot_name}/rotate"
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/org/registry-robots/{robot_name}/rotate', 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/org/registry-robots/{robot_name}/rotate \
--header 'Authorization: Bearer <token>'{
"created_at": "<string>",
"credential_name": "<string>",
"description": "<string>",
"docker_login": "<string>",
"host": "<string>",
"name": "<string>",
"project": "<string>",
"robot_name": "<string>",
"rotated_at": "<string>",
"scope": "push",
"secret": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response
Available options:
push, pull