All URIs are relative to https://purity_fb_server/api
Method | HTTP request | Description |
---|---|---|
list_support | GET /1.12/support | |
test_support | GET /1.12/support/test | |
update_support | PATCH /1.12/support |
SupportResponse list_support()
List support
from purity_fb import PurityFb, rest
fb = PurityFb("10.255.9.28", version=__version__) # assume the array IP is 10.255.9.28
fb.disable_verify_ssl()
try:
res = fb.login(API_TOKEN) # login to the array with your API_TOKEN
except rest.ApiException as e:
print("Exception when logging in to the array: %s\n" % e)
if res:
try:
# List support
res = fb.support.list_support()
print(res.items)
except rest.ApiException as e:
print("Exception when listing support settings: %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 Overview]
TestResultResponse test_support(filter=filter, sort=sort, test_type=test_type)
Test support
from purity_fb import PurityFb, rest
fb = PurityFb("10.255.9.28", version=__version__) # assume the array IP is 10.255.9.28
fb.disable_verify_ssl()
try:
res = fb.login(API_TOKEN) # login to the array with your API_TOKEN
except rest.ApiException as e:
print("Exception when logging in to the array: %s\n" % e)
if res:
try:
# Test phonehome
res = fb.support.test_support(test_type='phonehome')
# print the results
print(res.items)
# Test remote assist
res = fb.support.test_support(test_type='remote-assist')
# print the results
print(res.items)
# Test both
res = fb.support.test_support()
# print the results
print(res.items)
except rest.ApiException as e:
print("Exception when testing support: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
filter | str | The filter to be used for query. | [optional] |
sort | str | Sort the response by the specified fields (in descending order if '-' is appended to the field name). | [optional] |
test_type | str | Specify the type of test, either "phonehome" or "remote-assist". | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to Overview]
SupportResponse update_support(support)
Update support
from purity_fb import PurityFb, rest, Support
fb = PurityFb("10.255.9.28") # assume the array IP is 10.255.9.28
fb.disable_verify_ssl()
try:
res = fb.login(API_TOKEN) # login to the array with your API_TOKEN
except rest.ApiException as e:
print("Exception when logging in to the array: %s\n" % e)
if res:
try:
# update support settings to enable phonehome and set a proxy
proxy = 'https://my-proxy:my-password.com:8888'
phonehome_enabled = True
support_settings_updates = Support(proxy=proxy, phonehome_enabled=phonehome_enabled)
res = fb.support.update_support(support=support_settings_updates)
# print our response containing our updates
print(res.items)
# open a remote assist session
remote_assist_active = True
open_ra_settings = Support(remote_assist_active=remote_assist_active)
res = fb.support.update_support(support=support_settings_updates)
# print our response, which will now have the time that our remote assist session was opened
# and when it will expire
print(res.items)
except rest.ApiException as e:
print("Exception when updating support settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
support | Support |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to Overview]