All URIs are relative to https://app.atera.com
| Method | HTTP request | Description |
|---|---|---|
| alert_delete | DELETE /api/v3/alerts/{alertId} | Delete specified alert |
| alert_get | GET /api/v3/alerts | Find alerts |
| alert_get_0 | GET /api/v3/alerts/{alertId} | Find specified alert |
| alert_post | POST /api/v3/alerts | Create alert |
Object alert_delete(alert_id)
Delete specified alert
Deletes a specified alert. Requires the alert ID.
from __future__ import print_function
import time
import atera_client
from atera_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = atera_client.AlertApi()
alert_id = 789 # int | Required - System alert ID
try:
# Delete specified alert
api_response = api_instance.alert_delete(alert_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->alert_delete: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| alert_id | int | Required - System alert ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
APIResultWrapperAlertQueryDTO alert_get(page=page, items_in_page=items_in_page, alert_status=alert_status)
Find alerts
Returns a list of alerts.
from __future__ import print_function
import time
import atera_client
from atera_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = atera_client.AlertApi()
page = 56 # int | Optional - Page index, based on items per page (default is 20) (optional)
items_in_page = 56 # int | Optional - Number of items per page (default is 20) (optional)
alert_status = 'alert_status_example' # str | (optional)
try:
# Find alerts
api_response = api_instance.alert_get(page=page, items_in_page=items_in_page, alert_status=alert_status)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->alert_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| page | int | Optional - Page index, based on items per page (default is 20) | [optional] |
| items_in_page | int | Optional - Number of items per page (default is 20) | [optional] |
| alert_status | str | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AlertQueryDTO alert_get_0(alert_id)
Find specified alert
Returns an alert. Requires the alert ID.
from __future__ import print_function
import time
import atera_client
from atera_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = atera_client.AlertApi()
alert_id = 789 # int | Required - System alert ID
try:
# Find specified alert
api_response = api_instance.alert_get_0(alert_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->alert_get_0: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| alert_id | int | Required - System alert ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Result alert_post(alert)
Create alert
Creates a new alert. Requires the device's global unique identifier (GUID).
from __future__ import print_function
import time
import atera_client
from atera_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = atera_client.AlertApi()
alert = atera_client.CreateAlertDTO() # CreateAlertDTO | Required - System alert object
try:
# Create alert
api_response = api_instance.alert_post(alert)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertApi->alert_post: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| alert | CreateAlertDTO | Required - System alert object |
No authorization required
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]