Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.58 KB

LogsApi.md

File metadata and controls

56 lines (37 loc) · 1.58 KB

purity_fb_1dot12.LogsApi

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

Method HTTP request Description
list_logs GET /1.12/logs

list_logs

LogDownloadResponse list_logs(end_time=end_time, start_time=start_time)

Download logs

Example

from purity_fb import PurityFb, rest

fb = PurityFb("irvm-yliu") # assume the array IP is 10.255.9.28
fb.disable_verify_ssl()
try:
    res = fb.login('T-25ef41ee-1518-426f-9c46-372babb93e1b') # 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.logs.list_logs(start_time=1527415200000, end_time=1527415200000)
        print(res)
    except rest.ApiException as e:
        print("Exception when download logs: %s\n" % e)

Parameters

Name Type Description Notes
end_time int Time to end sample in milliseconds since epoch. [optional]
start_time int Time to start sample in milliseconds since epoch. [optional]

Return type

LogDownloadResponse

Authorization

AuthTokenHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream, text/plain, application/json

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