connections
Creates, updates, deletes, gets or lists a connections resource.
Overview
| Name | connections |
| Type | Resource |
| Id | datadog.organization.connections |
Fields
The following fields are returned by SELECT queries:
- list_org_connections
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | The unique identifier of the org connection. (example: f9ec96b0-8c8a-4b0a-9b0a-1b2c3d4e5f6a) |
attributes | object | Org connection attributes. |
relationships | object | Related organizations and user. |
type | string | Org connection type. (org_connection) (example: org_connection) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_org_connections | select | sink_org_id, source_org_id, limit, offset | Returns a list of org connections. | |
create_org_connections | insert | data | Create a new org connection between the current org and a target org. | |
update_org_connections | update | connection_id, data | Update an existing org connection. | |
delete_org_connections | delete | connection_id | Delete an existing org connection. |
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 |
|---|---|---|
connection_id | string (uuid) | The unique identifier of the org connection. |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
limit | integer (int64) | The limit of number of entries you want to return. Default is 1000. (example: 1000) |
offset | integer (int64) | The pagination offset which you want to query from. Default is 0. (example: 0) |
sink_org_id | string | The Org ID of the sink org. (example: 0879ce27-29a1-481f-a12e-bc2a48ec9ae1) |
source_org_id | string | The Org ID of the source org. (example: 0879ce27-29a1-481f-a12e-bc2a48ec9ae1) |
SELECT examples
- list_org_connections
Returns a list of org connections.
SELECT
id,
attributes,
relationships,
type
FROM datadog.organization.connections
WHERE sink_org_id = '{{ sink_org_id }}'
AND source_org_id = '{{ source_org_id }}'
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
;
INSERT examples
- create_org_connections
- Manifest
Create a new org connection between the current org and a target org.
INSERT INTO datadog.organization.connections (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: connections
props:
- name: data
description: |
Org connection creation data.
value:
attributes:
connection_types:
- "{{ connection_types }}"
relationships:
sink_org:
data:
id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
type: "{{ type }}"
UPDATE examples
- update_org_connections
Update an existing org connection.
UPDATE datadog.organization.connections
SET
data = '{{ data }}'
WHERE
connection_id = '{{ connection_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_org_connections
Delete an existing org connection.
DELETE FROM datadog.organization.connections
WHERE connection_id = '{{ connection_id }}' --required
;