Status API

Available in Nexus Repository OSS and Nexus Repository Pro

Introduction

This set of endpoints is used to determine the status of an instance. This is useful when conducting some maintenance activities.

Endpoints

Status

GET /service/rest/v1/status

This endpoint allows us to query if the instance can successfully serve read requests.

curl -X GET http://localhost:8081/service/rest/v1/status

The response code contains the information.  A 200 indicates the instance can serve read requests, a 503 otherwise.

Writable

GET /service/rest/v1/status/writable

This endpoint allows us to query if the instance can successfully serve write and read requests.

curl -X GET http://localhost:8081/service/rest/v1/status/writable

The response code contains the information.  A 200 indicates the instance can serve write and read requests, a 503 otherwise.