opsgenie_services
Creates, updates, deletes, gets or lists an opsgenie_services resource.
Overview
| Name | opsgenie_services | 
| Type | Resource | 
| Id | datadog.integrations.opsgenie_services | 
Fields
The following fields are returned by SELECT queries:
- get_opsgenie_service
- list_opsgenie_services
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the Opsgenie service. (example: 596da4af-0563-4097-90ff-07230c3f9db3) | 
| attributes | object | The attributes from an Opsgenie service response. | 
| type | string | Opsgenie service resource type. (default: opsgenie-service, example: opsgenie-service) | 
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the Opsgenie service. (example: 596da4af-0563-4097-90ff-07230c3f9db3) | 
| attributes | object | The attributes from an Opsgenie service response. | 
| type | string | Opsgenie service resource type. (default: opsgenie-service, example: opsgenie-service) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_opsgenie_service | select | integration_service_id,region | Get a single service from the Datadog Opsgenie integration. | |
| list_opsgenie_services | select | region | Get a list of all services from the Datadog Opsgenie integration. | |
| create_opsgenie_service | insert | region,data__data | Create a new service object in the Opsgenie integration. | |
| update_opsgenie_service | update | integration_service_id,region,data__data | Update a single service object in the Datadog Opsgenie integration. | |
| delete_opsgenie_service | delete | integration_service_id,region | Delete a single service object in the Datadog Opsgenie integration. | 
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description | 
|---|---|---|
| integration_service_id | string | The UUID of the service. | 
| region | string | (default: datadoghq.com) | 
SELECT examples
- get_opsgenie_service
- list_opsgenie_services
Get a single service from the Datadog Opsgenie integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.opsgenie_services
WHERE integration_service_id = '{{ integration_service_id }}' -- required
AND region = '{{ region }}' -- required
;
Get a list of all services from the Datadog Opsgenie integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.opsgenie_services
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_opsgenie_service
- Manifest
Create a new service object in the Opsgenie integration.
INSERT INTO datadog.integrations.opsgenie_services (
data__data,
region
)
SELECT 
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: opsgenie_services
  props:
    - name: region
      value: string
      description: Required parameter for the opsgenie_services resource.
    - name: data
      value: object
      description: |
        Opsgenie service data for a create request.
UPDATE examples
- update_opsgenie_service
Update a single service object in the Datadog Opsgenie integration.
UPDATE datadog.integrations.opsgenie_services
SET 
data__data = '{{ data }}'
WHERE 
integration_service_id = '{{ integration_service_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_opsgenie_service
Delete a single service object in the Datadog Opsgenie integration.
DELETE FROM datadog.integrations.opsgenie_services
WHERE integration_service_id = '{{ integration_service_id }}' --required
AND region = '{{ region }}' --required
;