All URIs are relative to https://api.opsgenie.com
Method | HTTP request | Description |
---|---|---|
create_integration_action | POST /v2/integrations/{id}/actions | Create Integration Action |
list_integration_actions | GET /v2/integrations/{id}/actions | List Integration Actions |
update_integration_actions | PUT /v2/integrations/{id}/actions | Update Integration Actions |
CreateIntegrationActionsResponse create_integration_action(id, body)
Create Integration Action
Creates integration actions of given integration id
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: GenieKey
configuration = swagger_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.IntegrationActionApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | Integration Id
body = swagger_client.BaseIntegrationAction() # BaseIntegrationAction | Request payload to create integration action
try:
# Create Integration Action
api_response = api_instance.create_integration_action(id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling IntegrationActionApi->create_integration_action: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Integration Id | |
body | BaseIntegrationAction | Request payload to create integration action |
CreateIntegrationActionsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListIntegrationActionsResponse list_integration_actions(id)
List Integration Actions
List integration actions of given integration id
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: GenieKey
configuration = swagger_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.IntegrationActionApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | Integration Id
try:
# List Integration Actions
api_response = api_instance.list_integration_actions(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling IntegrationActionApi->list_integration_actions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Integration Id |
ListIntegrationActionsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateIntegrationActionsResponse update_integration_actions(id, body)
Update Integration Actions
Updates integration actions of given integration id
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: GenieKey
configuration = swagger_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.IntegrationActionApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | Integration Id
body = swagger_client.ActionCategorized() # ActionCategorized | Request payload to update integration actions
try:
# Update Integration Actions
api_response = api_instance.update_integration_actions(id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling IntegrationActionApi->update_integration_actions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Integration Id | |
body | ActionCategorized | Request payload to update integration actions |
UpdateIntegrationActionsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]