All URIs are relative to https://localhost/service/siesta/
Method | HTTP request | Description |
---|---|---|
force_release | POST /rest/beta/read-only/force-release | Forcibly release read-only |
freeze | POST /rest/beta/read-only/freeze | Enable read-only |
get | GET /rest/beta/read-only | Get read-only state |
release | POST /rest/beta/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 nexuscli
from nexuscli.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
nexuscli.configuration.username = 'YOUR_USERNAME'
nexuscli.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = nexuscli.ReadonlyApi()
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)
- Content-Type: application/json
- Accept: application/json
[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 nexuscli
from nexuscli.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
nexuscli.configuration.username = 'YOUR_USERNAME'
nexuscli.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = nexuscli.ReadonlyApi()
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)
- Content-Type: application/json
- Accept: application/json
[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 nexuscli
from nexuscli.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
nexuscli.configuration.username = 'YOUR_USERNAME'
nexuscli.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = nexuscli.ReadonlyApi()
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.
- Content-Type: application/json
- Accept: application/json
[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 nexuscli
from nexuscli.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
nexuscli.configuration.username = 'YOUR_USERNAME'
nexuscli.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = nexuscli.ReadonlyApi()
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)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]