Update repository metadata

Update a repository's metadata.

Base path: https://<Cluster Master Host>:<Cluster Master API Port>/image-manager/api/v1/repositories/<repo>

The <Cluster Master Host> and <Cluster Master API Port> parameters are defined in Master endpoints.

Where repo is the name of an image, including tags. For example, if you push the image mycluster.icp:8500/default/tomcat to the image registry, then default/tomcat is the name of the repository.

API version
3.1.2
API URI components
Scheme
HTTPS
Host name
Cluster Master Host
Port number
Cluster Master API Port
Base path
/image-manager/api/v1/repositories/{namespace}/{repo}
Command
PUT
Command output format
application/json

The sample curl command resembles the following code:

curl -X PUT -d '{"scope": "global"}' -H "Authorization: Bearer $ID_TOKEN" https://<Cluster Master Host>:<Cluster Master API Port>/image-manager/api/v1/repositories/<repo> --insecure

The response resembles the following code:

curl -X PUT -d '{"scope": "global"}' -H "Authorization:Bearer $ID_TOKEN" https://mycluster.icp:8443/image-manager/api/v1/repositories/default/cam-broker --insecure

OK

Parameters

Table 1. The parameters used to update a repository
Type Name Description Schema Default Required
Body "scope": Update the repository image at a global or namespace level. Values: "global" or "namespace" string Yes
Body namespace Namespace where the repository is string Yes
Body repo:.* Name of repository string Yes

Responses

Table 2. The responses that are returned when you update a repository metadata
HTTP Code Description Schema
200 OK No content