Hide

RegistryUI Documentation

Display
Print

/udr/v1api/setoffline

EndpointMethodDescription
/udr/v1api/setofflinePOSTSets the Docker Registry offline.

Authentication

Basic Authorization header required. The specified user must have administrator privileges.

Query String Arguments

ArgumentTypeDescription
(none)

Response

A JSON object is returned. If an error occurs, the "error" field will contain a descriptive error message (see Standard API Response).

FieldTypeDescription
dataBooleanContains true if the Docker Registry is offline, false otherwise.

Example

curl -u username:usertoken  -d "" https://registry.yoursite.com/udr/v1api/setoffline

Response:
{"error":null,"data":true}