Update repository metadata
Update a repository's metadata.
Base path: https://<cluster_lb_address>:8443/image-manager/api/v1/repositories/<repo>
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.1
- API URI components
-
- Scheme
HTTPS
- Host name
cluster_name or cluster_lb_address
- Port number
8443
- 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_lb_address>:8443/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://9.21.58.24:8443/image-manager/api/v1/repositories/default/cam-broker --insecure
OK
Parameters
| 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
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | No content |