statuspage_accounts
Creates, updates, deletes, gets or lists a statuspage_accounts resource.
Overview
| Name | statuspage_accounts |
| Type | Resource |
| Id | datadog.integrations.statuspage_accounts |
Fields
The following fields are returned by SELECT queries:
- get_statuspage_account
| Name | Datatype | Description |
|---|---|---|
attributes | object | The attributes from a Statuspage account response. |
type | string | Statuspage account resource type. (statuspage-account) (default: statuspage-account, example: statuspage-account) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_statuspage_account | select | Get the Statuspage account configured for your organization. | ||
create_statuspage_account | insert | data | Create a Statuspage account for your organization. Only one Statuspage<br />account can be configured per organization. | |
update_statuspage_account | update | data | Update the Statuspage account configured for your organization. | |
delete_statuspage_account | delete | Delete the Statuspage account configured for your 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 |
|---|---|---|
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_statuspage_account
Get the Statuspage account configured for your organization.
SELECT
attributes,
type
FROM datadog.integrations.statuspage_accounts
;
INSERT examples
- create_statuspage_account
- Manifest
Create a Statuspage account for your organization. Only one Statuspage<br />account can be configured per organization.
INSERT INTO datadog.integrations.statuspage_accounts (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: statuspage_accounts
props:
- name: data
description: |
Statuspage account data for a create request.
value:
attributes:
api_key: "{{ api_key }}"
type: "{{ type }}"
UPDATE examples
- update_statuspage_account
Update the Statuspage account configured for your organization.
UPDATE datadog.integrations.statuspage_accounts
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_statuspage_account
Delete the Statuspage account configured for your organization.
DELETE FROM datadog.integrations.statuspage_accounts
;