@itentialopensource/adapter-opsgenie
Version:
This adapter integrates with system described as: opsgenieRestApi.
187 lines • 4.92 kB
JSON
{
"actions": [
{
"name": "createPolicy",
"protocol": "REST",
"method": "POST",
"entitypath": "{base_path}/{version}/v2/policies?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": ""
}
]
},
{
"name": "getV2PoliciesAlert",
"protocol": "REST",
"method": "GET",
"entitypath": "{base_path}/{version}/v2/policies/alert?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"sendGetBody": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": ""
}
]
},
{
"name": "listNotificationPolicies",
"protocol": "REST",
"method": "GET",
"entitypath": "{base_path}/{version}/v2/policies/notification?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"sendGetBody": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": ""
}
]
},
{
"name": "deletePolicy",
"protocol": "REST",
"method": "DELETE",
"entitypath": "{base_path}/{version}/v2/policies/{pathv1}?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": "mockdatafiles/deletePolicy-default.json"
}
]
},
{
"name": "getPolicy",
"protocol": "REST",
"method": "GET",
"entitypath": "{base_path}/{version}/v2/policies/{pathv1}?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"sendGetBody": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": ""
}
]
},
{
"name": "updatePolicy",
"protocol": "REST",
"method": "PUT",
"entitypath": "{base_path}/{version}/v2/policies/{pathv1}?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": "mockdatafiles/updatePolicy-default.json"
}
]
},
{
"name": "enablePolicy",
"protocol": "REST",
"method": "POST",
"entitypath": "{base_path}/{version}/v2/policies/{pathv1}/enable?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": "mockdatafiles/enablePolicy-default.json"
}
]
},
{
"name": "disablePolicy",
"protocol": "REST",
"method": "POST",
"entitypath": "{base_path}/{version}/v2/policies/{pathv1}/disable?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": "mockdatafiles/disablePolicy-default.json"
}
]
},
{
"name": "changePolicyOrder",
"protocol": "REST",
"method": "POST",
"entitypath": "{base_path}/{version}/v2/policies/{pathv1}/change-order?{query}",
"requestSchema": "schema.json",
"responseSchema": "schema.json",
"timeout": 0,
"sendEmpty": false,
"requestDatatype": "JSON",
"responseDatatype": "JSON",
"headers": {},
"responseObjects": [
{
"type": "default",
"key": "",
"mockFile": "mockdatafiles/changePolicyOrder-default.json"
}
]
}
]
}