All URIs are relative to https://purity_fb_server/api
Method | HTTP request | Description |
---|---|---|
list_roles | GET /1.12/roles |
RoleResponse list_roles()
List roles.
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 all roles
fb.roles.list_roles()
print(res)
except rest.ApiException as e:
print("Exception when listing roles: %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]