Skip to main content

playbooks

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

Overview​

Nameplaybooks
TypeResource
Idsumologic.monitors.playbooks

Fields​

The following fields are returned by SELECT queries:

The single monitor playbook.

NameDatatypeDescription
namestringThe name of the playbook. (example: Test)
playbook_idstringThe id of the playbook. (example: 1) (wire: playbookId)
version_idstringThe version id of the playbook. (example: 1) (wire: versionId)
descriptionstringThe description of the monitor playbook. (example: <p>30 Seconds API Will Take To Respond</p>)
typestringThe type of the playbook. (example: Analytics)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectregionplaybook_typeList all playbooks available to run.

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
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)
playbook_typestringA string value for playbook type. (example: CSE) (wire: playbookType)

SELECT examples​

List all playbooks available to run.

SELECT
name,
playbook_id,
version_id,
description,
type
FROM sumologic.monitors.playbooks
WHERE region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
AND playbook_type = '{{ playbook_type }}'
;