Skip to main content

oci_tenancies

Creates, updates, deletes, gets or lists an oci_tenancies resource.

Overview​

Nameoci_tenancies
TypeResource
Iddatadog.integrations.oci_tenancies

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe OCID of the OCI tenancy.
attributesobjectAttributes of an OCI tenancy integration configuration, including authentication details, region settings, and collection options.
typestringOCI tenancy resource type. (oci_tenancy) (default: oci_tenancy, example: oci_tenancy)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tenancy_configselecttenancy_ocidGet a single tenancy config object by its OCID. Returns detailed configuration including authentication credentials, enabled services, region settings, and collection preferences.
get_tenancy_configsselectGet a list of all configured OCI tenancy integrations. Returns basic information about each tenancy including authentication credentials, region settings, and collection preferences for metrics, logs, and resources.
create_tenancy_configinsertdataCreate a new tenancy config to establish monitoring and data collection from your OCI environment. Requires OCI authentication credentials and tenancy details. Warning: Datadog recommends interacting with this endpoint only through the Datadog web UI to ensure all necessary OCI resources have been created and configured properly.
update_tenancy_configupdatetenancy_ocid, dataUpdate an existing tenancy config. You can modify authentication credentials, enable/disable collection types, update service filters, and change region settings. Warning: We recommend using the Datadog web UI to avoid unintended update effects.
delete_tenancy_configdeletetenancy_ocidDelete an existing tenancy config. This will stop all data collection from the specified OCI tenancy and remove the stored configuration. This operation cannot be undone.

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
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.
tenancy_ocidstringThe OCID of the tenancy config to delete.

SELECT examples​

Get a single tenancy config object by its OCID. Returns detailed configuration including authentication credentials, enabled services, region settings, and collection preferences.

SELECT
id,
attributes,
type
FROM datadog.integrations.oci_tenancies
WHERE tenancy_ocid = '{{ tenancy_ocid }}' -- required
;

INSERT examples​

Create a new tenancy config to establish monitoring and data collection from your OCI environment. Requires OCI authentication credentials and tenancy details. Warning: Datadog recommends interacting with this endpoint only through the Datadog web UI to ensure all necessary OCI resources have been created and configured properly.

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

UPDATE examples​

Update an existing tenancy config. You can modify authentication credentials, enable/disable collection types, update service filters, and change region settings. Warning: We recommend using the Datadog web UI to avoid unintended update effects.

UPDATE datadog.integrations.oci_tenancies
SET
data = '{{ data }}'
WHERE
tenancy_ocid = '{{ tenancy_ocid }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples​

Delete an existing tenancy config. This will stop all data collection from the specified OCI tenancy and remove the stored configuration. This operation cannot be undone.

DELETE FROM datadog.integrations.oci_tenancies
WHERE tenancy_ocid = '{{ tenancy_ocid }}' --required
;