Get details of a specific registry

get

/api/v2/registries/{registry_id}

Retrieves details of a specific registry. You identify the registry using the registry_id parameter.

Request

Path Parameters
Security
Back to Top

Response

Supported Media Types

200 Response

200 Response
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : registries
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

Default Response

Error Payload
Body ()
Root Schema : schema
Type: array
Show Source
Back to Top

Examples

The following example shows how to get detailed information about a registry. You perform this task by submitting a GET 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 "GET" 
     -H "Authorization: Bearer b39f09c71c297f1d" 
     "https://rest_server_url/api/v2/registries/20b2fe7922bec3f3"

In this example, 20b2fe7922bec3f3 is the registry_id.

Example of Response Body

{
  "elapsed_time": 0.000678076,
  "registries": [
    {
      "registry_id": "20b2fe7922bec3f3",
      "url": "docker.oracle.com",
      "email": "example@oracle.com",
      "username": "admin",
      "password": "",
      "description": "Oracle Example Registry"
    }
  ],
  "total_results": 1
}
Back to Top