All URIs are relative to http://localhost/service/rest
| Method | HTTP request | Description |
|---|---|---|
| force_release | POST /v1/read-only/force-release | Forcibly release read-only |
| freeze | POST /v1/read-only/freeze | Enable read-only |
| get | GET /v1/read-only | Get read-only state |
| release | POST /v1/read-only/release | Release read-only |
force_release()
Forcibly release read-only
Forcibly release read-only status, including System initiated tasks. Warning: may result in data loss.
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.ReadOnlyApi(api_client)
try:
# Forcibly release read-only
api_instance.force_release()
except ApiException as e:
print("Exception when calling ReadOnlyApi->force_release: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | System is no longer read-only | - |
| 403 | Authentication required | - |
| 404 | No change to read-only state | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
freeze()
Enable read-only
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.ReadOnlyApi(api_client)
try:
# Enable read-only
api_instance.freeze()
except ApiException as e:
print("Exception when calling ReadOnlyApi->freeze: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | System is now read-only | - |
| 403 | Authentication required | - |
| 404 | No change to read-only state | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReadOnlyState get()
Get read-only state
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.ReadOnlyApi(api_client)
try:
# Get read-only state
api_response = api_instance.get()
pprint(api_response)
except ApiException as e:
print("Exception when calling ReadOnlyApi->get: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
release()
Release read-only
Release administrator initiated read-only status. Will not release read-only caused by system tasks.
from __future__ import print_function
import time
import nexus_api_python_client
from nexus_api_python_client.rest import ApiException
from pprint import pprint
# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = nexus_api_python_client.ReadOnlyApi(api_client)
try:
# Release read-only
api_instance.release()
except ApiException as e:
print("Exception when calling ReadOnlyApi->release: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | System is no longer read-only | - |
| 403 | Authentication required | - |
| 404 | No change to read-only state | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]