All URIs are relative to https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080
Method | HTTP request | Description |
---|---|---|
create_zone | POST /platform/3/zones | |
delete_zone | DELETE /platform/3/zones/{ZoneId} | |
get_zone | GET /platform/3/zones/{ZoneId} | |
list_zones | GET /platform/3/zones | |
update_zone | PUT /platform/3/zones/{ZoneId} |
CreateResponse create_zone(zone)
Create a new access zone.
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.ZonesApi(isi_sdk_8_0.ApiClient(configuration))
zone = isi_sdk_8_0.ZoneCreateParams() # ZoneCreateParams |
try:
api_response = api_instance.create_zone(zone)
pprint(api_response)
except ApiException as e:
print("Exception when calling ZonesApi->create_zone: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
zone | ZoneCreateParams |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_zone(zone_id)
Delete the access zone.
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.ZonesApi(isi_sdk_8_0.ApiClient(configuration))
zone_id = 56 # int | Delete the access zone.
try:
api_instance.delete_zone(zone_id)
except ApiException as e:
print("Exception when calling ZonesApi->delete_zone: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
zone_id | int | Delete the access zone. |
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]
Zones get_zone(zone_id)
Retrieve the access zone information.
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.ZonesApi(isi_sdk_8_0.ApiClient(configuration))
zone_id = 56 # int | Retrieve the access zone information.
try:
api_response = api_instance.get_zone(zone_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ZonesApi->get_zone: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
zone_id | int | Retrieve the access zone information. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ZonesExtended list_zones()
List all access zones.
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.ZonesApi(isi_sdk_8_0.ApiClient(configuration))
try:
api_response = api_instance.list_zones()
pprint(api_response)
except ApiException as e:
print("Exception when calling ZonesApi->list_zones: %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]
update_zone(zone, zone_id)
Modify the access zone. All input fields are optional, but one or more must be supplied.
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.ZonesApi(isi_sdk_8_0.ApiClient(configuration))
zone = isi_sdk_8_0.Zone() # Zone |
zone_id = 56 # int | Modify the access zone. All input fields are optional, but one or more must be supplied.
try:
api_instance.update_zone(zone, zone_id)
except ApiException as e:
print("Exception when calling ZonesApi->update_zone: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
zone | Zone | ||
zone_id | int | Modify the access zone. All input fields are optional, but one or more must be supplied. |
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]