Skip to main content

change_request_branches

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

Overview

Namechange_request_branches
TypeResource
Iddatadog.service_management.change_request_branches

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_change_request_branchinsertchange_request_id, dataCreate a new branch in a repository for a change request.

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
change_request_idstringThe identifier of the change request. (example: CHM-1234)
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.

INSERT examples

Create a new branch in a repository for a change request.

INSERT INTO datadog.service_management.change_request_branches (
data,
change_request_id
)
SELECT
'{{ data }}' /* required */,
'{{ change_request_id }}'
RETURNING
data,
included
;