How to Retrieve a Robot Account Details from Vultr Container Registry
-
by Blog Admin
- 12
How to Retrieve a Robot Account Details from Vultr Container Registry
Retrieves information about a specific resource from your Vultr account.
A robot account in the Vultr Container Registry is an automatically generated account designed for automated interactions with repositories. These accounts operate within a defined namespace and come with pre-configured permissions, such as pulling images from repositories. They are commonly used in CI/CD pipelines, automation scripts, and containerized deployments, ensuring secure, non-interactive access without exposing user credentials.
Follow this guide to retrieve robot account details from your container registry on your Vultr account using the Vultr API.
- Send a
GETrequest to the List Container Registries endpoint and note the target registry’s ID.console$ curl "https://api.vultr.com/v2/registries" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
GETrequest to the List Robots endpoint to list all the available robots and note the target robot’s name.console$ curl "https://api.vultr.com/v2/registry/{registry-id}/robots" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
NoteRobot account names contain special characters like
$and+, which must be URL-encoded before making API requests to prevent errors. You can either manually replace$with%24and+with%2Bin the endpoint or export the robot name as a variable, avoiding the need for manual encoding. - Send a
GETrequest to the Read Robot endpoint to retrieve the target robot details.console$ curl "https://api.vultr.com/v2/registry/{registry-id}/robot/{robot-name}" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
How to Retrieve a Robot Account Details from Vultr Container Registry Retrieves information about a specific resource from your Vultr account. A robot account in the Vultr Container Registry is an automatically generated account designed for automated interactions with repositories. These accounts operate within a defined namespace and come with…
How to Retrieve a Robot Account Details from Vultr Container Registry Retrieves information about a specific resource from your Vultr account. A robot account in the Vultr Container Registry is an automatically generated account designed for automated interactions with repositories. These accounts operate within a defined namespace and come with…