salesforce_incident_organizations
Creates, updates, deletes, gets or lists a salesforce_incident_organizations resource.
Overview
| Name | salesforce_incident_organizations |
| Type | Resource |
| Id | datadog.integrations.salesforce_incident_organizations |
Fields
The following fields are returned by SELECT queries:
- get_salesforce_organizations
| Name | Datatype | Description |
|---|---|---|
id | string | The Datadog-assigned ID of the connected Salesforce organization. (example: 596da4af-0563-4097-90ff-07230c3f9db3) |
attributes | object | Attributes of a Salesforce organization connected to the Datadog Salesforce integration. |
type | string | Salesforce organization resource type. (salesforce-incidents-org) (default: salesforce-incidents-org, example: salesforce-incidents-org) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_salesforce_organizations | select | Get all Salesforce organizations connected to your Datadog organization<br />through the Salesforce integration. Salesforce organizations are connected<br />through the OAuth setup flow in the Datadog Salesforce integration page. | ||
delete_salesforce_organization | delete | salesforce_org_id | Disconnect a Salesforce organization from your Datadog organization.<br />This also deletes any incident templates referencing the organization. |
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 |
|---|---|---|
salesforce_org_id | string | The Datadog-assigned ID of the connected Salesforce organization. |
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. |
SELECT examples
- get_salesforce_organizations
Get all Salesforce organizations connected to your Datadog organization<br />through the Salesforce integration. Salesforce organizations are connected<br />through the OAuth setup flow in the Datadog Salesforce integration page.
SELECT
id,
attributes,
type
FROM datadog.integrations.salesforce_incident_organizations
;
DELETE examples
- delete_salesforce_organization
Disconnect a Salesforce organization from your Datadog organization.<br />This also deletes any incident templates referencing the organization.
DELETE FROM datadog.integrations.salesforce_incident_organizations
WHERE salesforce_org_id = '{{ salesforce_org_id }}' --required
;