purity_fb.ArraysApi

All URIs are relative to https://purity_fb_server/api

Method HTTP request Description
list_arrays_http_specific_performance GET /1.2/arrays/http-specific-performance
list_arrays_performance GET /1.2/arrays/performance
list_arrays_s3_specific_performance GET /1.2/arrays/s3-specific-performance
list_arrays_space GET /1.2/arrays/space

list_arrays_http_specific_performance

ArrayHttpPerformanceResponse list_arrays_http_specific_performance(names=names, filter=filter, sort=sort, start=start, limit=limit, token=token, start_time=start_time, end_time=end_time, resolution=resolution)

List instant or historical http specific performance

Example

from purity_fb import PurityFb, rest

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:
        res = fb.arrays.list_arrays_http_specific_performance()
        print(res)
        # list http specific performance and sort by sample time (latest first)
        res = fb.alerts.list_arrays_http_specific_performance(sort='time-')
        # list historical http performance
        res = fb.alerts.list_arrays_http_specific_performance(
            start_time=START_TIME,
            end_time=END_TIME,
            resolution=30000)
    except rest.ApiException as e:
        print("Exception when listing http performance: %s\n" % e)

Parameters

Name Type Description Notes
names list[str] A list of names. [optional]
filter str The filter to be used for query. [optional]
sort str The way to order the results. [optional]
start int start [optional]
limit int limit, should be >= 0 [optional]
token str token [optional]
start_time int time to start sample in milliseconds since epoch [optional]
end_time int time to end sample in milliseconds since epoch [optional]
resolution int sample frequency in milliseconds [optional] [default to 30000]

Return type

ArrayHttpPerformanceResponse

Authorization

AuthTokenHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to Overview]

list_arrays_performance

ArrayPerformanceResponse list_arrays_performance(names=names, filter=filter, sort=sort, start=start, limit=limit, token=token, start_time=start_time, end_time=end_time, resolution=resolution, protocol=protocol)

List instant or historical array performance

Example

from purity_fb import PurityFb, rest

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:
        res = fb.arrays.list_arrays_performance()
        print(res)
        # list array performance and sort by sample time (latest first)
        res = fb.alerts.list_arrays_performance(sort='time-')
        # list array performance for http
        res = fb.alerts.list_arrays_performance(protocol='http')
        # list array performance for s3
        res = fb.alerts.list_arrays_performance(protocol='s3')
        # list array performance for nfs
        res = fb.alerts.list_arrays_performance(protocol='nfs')
        # list historical array performance
        res = fb.alerts.list_arrays_performance(
            start_time=START_TIME,
            end_time=END_TIME,
            resolution=30000)
    except rest.ApiException as e:
        print("Exception when listing array performance: %s\n" % e)

Parameters

Name Type Description Notes
names list[str] A list of names. [optional]
filter str The filter to be used for query. [optional]
sort str The way to order the results. [optional]
start int start [optional]
limit int limit, should be >= 0 [optional]
token str token [optional]
start_time int time to start sample in milliseconds since epoch [optional]
end_time int time to end sample in milliseconds since epoch [optional]
resolution int sample frequency in milliseconds [optional] [default to 30000]
protocol str to sample performance of a certain protocol [optional]

Return type

ArrayPerformanceResponse

Authorization

AuthTokenHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to Overview]

list_arrays_s3_specific_performance

ArrayS3PerformanceResponse list_arrays_s3_specific_performance(names=names, filter=filter, sort=sort, start=start, limit=limit, token=token, start_time=start_time, end_time=end_time, resolution=resolution)

List instant or historical object store specific performance

Example

from purity_fb import PurityFb, rest

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:
        res = fb.arrays.list_arrays_s3_specific_performance()
        print(res)
        # list s3 specific performance and sort by sample time (latest first)
        res = fb.alerts.list_arrays_s3_specific_performance(sort='time-')
        # list historical s3 performance
        res = fb.alerts.list_arrays_s3_specific_performance(
            start_time=START_TIME,
            end_time=END_TIME,
            resolution=30000)
    except rest.ApiException as e:
        print("Exception when listing s3 performance: %s\n" % e)

Parameters

Name Type Description Notes
names list[str] A list of names. [optional]
filter str The filter to be used for query. [optional]
sort str The way to order the results. [optional]
start int start [optional]
limit int limit, should be >= 0 [optional]
token str token [optional]
start_time int time to start sample in milliseconds since epoch [optional]
end_time int time to end sample in milliseconds since epoch [optional]
resolution int sample frequency in milliseconds [optional] [default to 30000]

Return type

ArrayS3PerformanceResponse

Authorization

AuthTokenHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to Overview]

list_arrays_space

ArraySpaceResponse list_arrays_space(names=names, filter=filter, sort=sort, start=start, limit=limit, token=token, start_time=start_time, end_time=end_time, resolution=resolution, type=type)

List instant or historical array space

Example

from purity_fb import PurityFb, rest

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:
        res = fb.arrays.list_arrays_space()
        print(res)
        # list array space and sort by capacity
        res = fb.arrays.list_arrays_space(sort='capacity')
        print(res)
        # list array space of file systems
        res = fb.arrays.list_arrays_space(type='file-system')
        print(res)
        # list historical array space
        res = fb.arrays.list_arrays_space(start_time=START_TIME,
                                          end_time=END_TIME,
                                          resolution=30000)
    except rest.ApiException as e:
        print("Exception when listing array space: %s\n" % e)

Parameters

Name Type Description Notes
names list[str] A list of names. [optional]
filter str The filter to be used for query. [optional]
sort str The way to order the results. [optional]
start int start [optional]
limit int limit, should be >= 0 [optional]
token str token [optional]
start_time int time to start sample in milliseconds since epoch [optional]
end_time int time to end sample in milliseconds since epoch [optional]
resolution int sample frequency in milliseconds [optional] [default to 30000]
type str to sample space of either file systems or object store [optional]

Return type

ArraySpaceResponse

Authorization

AuthTokenHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to Overview]