Image management API
The image management API commands list, update, and delete images in the image registry.
Both Cluster administrator and Administrator can access all image management APIs commands for all resources.
To use these APIs, you must add an authorization header to your request. See Preparing to run component or management API commands.
For example,
curl --cacert /<certificate_path>/ca.crt -s -H "Authorization: Bearer $ID_TOKEN" https://<cluster_CA_domain>:8443/image-manager/api/v1
In this command:
-
<certificate_path>is the location of theca.crton your computer -
$ID_TOKENis the variable that stores the identity token for your cluster -
<cluster_CA_domain>is the certificate authority (CA) domain that was set in theconfig.yamlfile during installation.
If you have not set a CA domain, you can continue the request with an insecure connection.
For example,
curl -k -H "Authorization: Bearer $ID_TOKEN" https://<cluster_lb_address>:8443/image-manager/api/v1
Where, <cluster_lb_address> is the public or external IP address for the management services in your cluster.
Image management API data
- API version
- 3.1.0
- API URI components
-
- Scheme
HTTPS
- Host name
cluster_name or cluster_lb_address
- Port number
8443
- Base path
/image-manager/api/v1
- Command output format
application/json