Skip to main content

deployment_gates

Creates, updates, deletes, gets or lists a deployment_gates resource.

Overview

Namedeployment_gates
TypeResource
Iddatadog.software_delivery.deployment_gates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier of the deployment gate. (example: 1111-2222-3333-4444-555566667777)
attributesobjectBasic information about a deployment gate.
typestringDeployment gate resource type. (deployment_gate) (example: deployment_gate)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deployment_gateselectidEndpoint to get a deployment gate.
list_deployment_gatesselectpage[cursor], page[size]Returns a paginated list of all deployment gates for the organization.<br />Use page&#91;cursor&#93; and page&#91;size&#93; query parameters to paginate through results.
create_deployment_gateinsertdataEndpoint to create a deployment gate.
update_deployment_gatereplaceid, dataEndpoint to update a deployment gate.
delete_deployment_gatedeleteidEndpoint to delete a deployment gate. Rules associated with the gate are also deleted.

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.

NameDatatypeDescription
idstringThe ID of the deployment gate.
sitestringThe 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.
page[cursor]stringCursor for pagination. Use the meta.page.next_cursor value from the previous response.
page[size]integer (int64)Number of results per page. Defaults to 50. Must be between 1 and 1000.

SELECT examples

Endpoint to get a deployment gate.

SELECT
id,
attributes,
type
FROM datadog.software_delivery.deployment_gates
WHERE id = '{{ id }}' -- required
;

INSERT examples

Endpoint to create a deployment gate.

INSERT INTO datadog.software_delivery.deployment_gates (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

REPLACE examples

Endpoint to update a deployment gate.

REPLACE datadog.software_delivery.deployment_gates
SET
data = '{{ data }}'
WHERE
id = '{{ id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Endpoint to delete a deployment gate. Rules associated with the gate are also deleted.

DELETE FROM datadog.software_delivery.deployment_gates
WHERE id = '{{ id }}' --required
;