Skip to content

Latest commit

 

History

History
71 lines (55 loc) · 3.47 KB

File metadata and controls

71 lines (55 loc) · 3.47 KB

Documentation for API Endpoints

All URIs are relative to https://PSM-IP-addr

Class Method HTTP request Description
DiagnosticsV1Api debug POST /configs/diagnostics/v1/modules/{O.Name}/Debug Request Diagnostics information for a module
DiagnosticsV1Api get_module GET /configs/diagnostics/v1/modules/{O.Name} Get Module object
DiagnosticsV1Api label_module POST /configs/diagnostics/v1/modules/{O.Name}/label Label Module object
DiagnosticsV1Api list_module GET /configs/diagnostics/v1/modules List Module objects
DiagnosticsV1Api update_module PUT /configs/diagnostics/v1/modules/{O.Name} Update Module object
DiagnosticsV1Api watch_module GET /configs/diagnostics/v1/watch/modules Watch Module objects. Supports WebSockets or HTTP long poll

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in psm.apis and psm.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from psm.api.default_api import DefaultApi
  • from psm.model.pet import Pet

Solution 1: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
import psm
from psm.apis import *
from psm.models import *