Skip to main content

statuspages

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

Overview

Namestatuspages
TypeResource
Iddatadog.service_management.statuspages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid)The ID of the status page.
attributesobjectThe attributes of a status page.
relationshipsobjectThe relationships of a status page.
typestringStatus pages resource type. (status_pages) (default: status_pages, example: status_pages)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_status_pageselectpage_idincludeRetrieves a specific status page by its ID.
list_status_pagesselectpage[offset], page[limit], filter[domain_prefix], includeLists all status pages for the organization.
create_status_pageinsertincludeCreates a new status page in an unpublished state. Use the dedicated [publish](#publish-status-page) status page endpoint to publish the page after creation.
update_status_pageupdatepage_iddelete_subscribers, includeUpdates an existing status page's attributes. To publish and unpublish status pages, use the dedicated [publish](#publish-status-page) and [unpublish](#unpublish-status-page) status page endpoints.
delete_status_pagedeletepage_idDeletes a status page by its ID.
publish_status_pageexecpage_idPublishes a status page. For pages of type public, makes the status page available on the public internet and requires the status_pages_public_page_publish permission. For pages of type internal, makes the status page available under the status-pages/$domain_prefix/view route within the Datadog organization and requires the status_pages_internal_page_publish permission.
unpublish_status_pageexecpage_idUnpublishes a status page. For pages of type public, removes the status page from the public internet and requires the status_pages_public_page_publish permission. For pages of type internal, removes the status-pages/$domain_prefix/view route from the Datadog organization and requires the status_pages_internal_page_publish permission.

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
page_idstring (uuid)The ID of the status page.
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.
delete_subscribersbooleanWhether to delete existing subscribers when updating a status page's type.
filter[domain_prefix]stringFilter status pages by exact domain prefix match. Returns at most one result.
includestringComma-separated list of resources to include. Supported values: created_by_user, last_modified_by_user.
page[limit]integer (int64)The number of status pages to return per page.
page[offset]integer (int64)Offset to use as the start of the page.

SELECT examples

Retrieves a specific status page by its ID.

SELECT
id,
attributes,
relationships,
type
FROM datadog.service_management.statuspages
WHERE page_id = '{{ page_id }}' -- required
AND include = '{{ include }}'
;

INSERT examples

Creates a new status page in an unpublished state. Use the dedicated publish status page endpoint to publish the page after creation.

INSERT INTO datadog.service_management.statuspages (
data,
include
)
SELECT
'{{ data }}',
'{{ include }}'
RETURNING
data,
included
;

UPDATE examples

Updates an existing status page's attributes. To publish and unpublish status pages, use the dedicated publish and unpublish status page endpoints.

UPDATE datadog.service_management.statuspages
SET
data = '{{ data }}'
WHERE
page_id = '{{ page_id }}' --required
AND delete_subscribers = {{ delete_subscribers}}
AND include = '{{ include}}'
RETURNING
data,
included;

DELETE examples

Deletes a status page by its ID.

DELETE FROM datadog.service_management.statuspages
WHERE page_id = '{{ page_id }}' --required
;

Lifecycle Methods

EXEC variables use wire (API) names.

Publishes a status page. For pages of type public, makes the status page available on the public internet and requires the status_pages_public_page_publish permission. For pages of type internal, makes the status page available under the status-pages/$domain_prefix/view route within the Datadog organization and requires the status_pages_internal_page_publish permission.

EXEC datadog.service_management.statuspages.publish_status_page
@page_id='{{ page_id }}' --required
;