Update a specific registry entry
put
/api/v2/registries/{registry_id}
Updates a specific registry. You identify the registry using the registry_id parameter.
Request
Supported Media Types
- application/json
Path Parameters
-
registry_id: string
registry_id
Body parameters
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- application/json
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to update an existing registry. You perform this task by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "PUT"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/v2/registries/"
-d '{"registry_id":"ffea6b9477d7701a",
"url":"index.docker.io",
"email":"example@oracle.com",
"username":"admin",
"password":"password",
"description":"Public Docker Hub Registry"}'
Example of Response Body
{
"elapsed_time": 0.000655836,
"registries": [
{
"registry_id": "ffea6b9477d7701a",
"url": "index.docker.io",
"email": "",
"username": "",
"password": "",
"description": "Public Docker Hub Registry"
}
],
"total_results": 1
}