All URIs are relative to https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080
Method | HTTP request | Description |
---|---|---|
create_hardening_apply_item | POST /platform/3/hardening/apply | |
create_hardening_resolve_item | POST /platform/3/hardening/resolve | |
create_hardening_revert_item | POST /platform/3/hardening/revert | |
get_hardening_state | GET /platform/3/hardening/state | |
get_hardening_status | GET /platform/3/hardening/status |
CreateHardeningApplyItemResponse create_hardening_apply_item(hardening_apply_item)
Apply hardening on the cluster.
from __future__ import print_function
import time
import isi_sdk_8_0
from isi_sdk_8_0.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = isi_sdk_8_0.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = isi_sdk_8_0.HardeningApi(isi_sdk_8_0.ApiClient(configuration))
hardening_apply_item = isi_sdk_8_0.HardeningApplyItem() # HardeningApplyItem |
try:
api_response = api_instance.create_hardening_apply_item(hardening_apply_item)
pprint(api_response)
except ApiException as e:
print("Exception when calling HardeningApi->create_hardening_apply_item: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
hardening_apply_item | HardeningApplyItem |
CreateHardeningApplyItemResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateHardeningResolveItemResponse create_hardening_resolve_item(hardening_resolve_item, accept=accept)
Resolve issues related to hardening, found in current cluster configuration.
from __future__ import print_function
import time
import isi_sdk_8_0
from isi_sdk_8_0.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = isi_sdk_8_0.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = isi_sdk_8_0.HardeningApi(isi_sdk_8_0.ApiClient(configuration))
hardening_resolve_item = isi_sdk_8_0.HardeningResolveItem() # HardeningResolveItem |
accept = true # bool | If true, execution proceeds to resolve all issues. If false, executrion aborts. This is a required argument. (optional)
try:
api_response = api_instance.create_hardening_resolve_item(hardening_resolve_item, accept=accept)
pprint(api_response)
except ApiException as e:
print("Exception when calling HardeningApi->create_hardening_resolve_item: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
hardening_resolve_item | HardeningResolveItem | ||
accept | bool | If true, execution proceeds to resolve all issues. If false, executrion aborts. This is a required argument. | [optional] |
CreateHardeningResolveItemResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateHardeningRevertItemResponse create_hardening_revert_item(hardening_revert_item, force=force)
Revert hardening on the cluster.
from __future__ import print_function
import time
import isi_sdk_8_0
from isi_sdk_8_0.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = isi_sdk_8_0.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = isi_sdk_8_0.HardeningApi(isi_sdk_8_0.ApiClient(configuration))
hardening_revert_item = isi_sdk_8_0.Empty() # Empty |
force = true # bool | If specified, revert operation continues even in case of a failure. Default is false in which case revert stops at the first failure. (optional)
try:
api_response = api_instance.create_hardening_revert_item(hardening_revert_item, force=force)
pprint(api_response)
except ApiException as e:
print("Exception when calling HardeningApi->create_hardening_revert_item: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
hardening_revert_item | Empty | ||
force | bool | If specified, revert operation continues even in case of a failure. Default is false in which case revert stops at the first failure. | [optional] |
CreateHardeningRevertItemResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HardeningState get_hardening_state()
Get the state of the current hardening operation, if one is happening. Note that this is different from the /status resource, which returns the overall hardening status of the cluster.
from __future__ import print_function
import time
import isi_sdk_8_0
from isi_sdk_8_0.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = isi_sdk_8_0.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = isi_sdk_8_0.HardeningApi(isi_sdk_8_0.ApiClient(configuration))
try:
api_response = api_instance.get_hardening_state()
pprint(api_response)
except ApiException as e:
print("Exception when calling HardeningApi->get_hardening_state: %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]
HardeningStatus get_hardening_status()
Get a message indicating whether or not the cluster is hardened. Note that this is different from the /state resource, which returns the state of a specific hardening operation (apply or revert).
from __future__ import print_function
import time
import isi_sdk_8_0
from isi_sdk_8_0.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = isi_sdk_8_0.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = isi_sdk_8_0.HardeningApi(isi_sdk_8_0.ApiClient(configuration))
try:
api_response = api_instance.get_hardening_status()
pprint(api_response)
except ApiException as e:
print("Exception when calling HardeningApi->get_hardening_status: %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]