All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
delete_policies_delete | DELETE /policies/{id} | |
get_policies_get | GET /policies/{id} | |
get_policies_get_all | GET /policies | |
post_policies_post | POST /policies | |
put_policies_put | PUT /policies/{id} |
PolicySchema delete_policies_delete(id)
- Api Key Authentication (auth_token):
import time
import os
import labs_alert_manager_client
from labs_alert_manager_client.models.policy_schema import PolicySchema
from labs_alert_manager_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = labs_alert_manager_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: auth_token
configuration.api_key['auth_token'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['auth_token'] = 'Bearer'
# Enter a context with an instance of the API client
with labs_alert_manager_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = labs_alert_manager_client.PoliciesApi(api_client)
id = 'id_example' # str |
try:
api_response = api_instance.delete_policies_delete(id)
print("The response of PoliciesApi->delete_policies_delete:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->delete_policies_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PolicySchema get_policies_get(id)
- Api Key Authentication (auth_token):
import time
import os
import labs_alert_manager_client
from labs_alert_manager_client.models.policy_schema import PolicySchema
from labs_alert_manager_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = labs_alert_manager_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: auth_token
configuration.api_key['auth_token'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['auth_token'] = 'Bearer'
# Enter a context with an instance of the API client
with labs_alert_manager_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = labs_alert_manager_client.PoliciesApi(api_client)
id = 'id_example' # str |
try:
api_response = api_instance.get_policies_get(id)
print("The response of PoliciesApi->get_policies_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->get_policies_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginationSchema get_policies_get_all()
- Api Key Authentication (auth_token):
import time
import os
import labs_alert_manager_client
from labs_alert_manager_client.models.pagination_schema import PaginationSchema
from labs_alert_manager_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = labs_alert_manager_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: auth_token
configuration.api_key['auth_token'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['auth_token'] = 'Bearer'
# Enter a context with an instance of the API client
with labs_alert_manager_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = labs_alert_manager_client.PoliciesApi(api_client)
try:
api_response = api_instance.get_policies_get_all()
print("The response of PoliciesApi->get_policies_get_all:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->get_policies_get_all: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PolicySchema post_policies_post(request_body=request_body)
- Api Key Authentication (auth_token):
import time
import os
import labs_alert_manager_client
from labs_alert_manager_client.models.policy_schema import PolicySchema
from labs_alert_manager_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = labs_alert_manager_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: auth_token
configuration.api_key['auth_token'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['auth_token'] = 'Bearer'
# Enter a context with an instance of the API client
with labs_alert_manager_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = labs_alert_manager_client.PoliciesApi(api_client)
request_body = labs_alert_manager_client.PolicySchema() # PolicySchema | (optional)
try:
api_response = api_instance.post_policies_post(request_body=request_body)
print("The response of PoliciesApi->post_policies_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->post_policies_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
request_body | PolicySchema | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PolicySchema put_policies_put(id, request_body=request_body)
- Api Key Authentication (auth_token):
import time
import os
import labs_alert_manager_client
from labs_alert_manager_client.models.policy_schema import PolicySchema
from labs_alert_manager_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = labs_alert_manager_client.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: auth_token
configuration.api_key['auth_token'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['auth_token'] = 'Bearer'
# Enter a context with an instance of the API client
with labs_alert_manager_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = labs_alert_manager_client.PoliciesApi(api_client)
id = 'id_example' # str |
request_body = labs_alert_manager_client.PolicySchema() # PolicySchema | (optional)
try:
api_response = api_instance.put_policies_put(id, request_body=request_body)
print("The response of PoliciesApi->put_policies_put:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->put_policies_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
request_body | PolicySchema | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]