Skip to main content

rules

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

Overview

Namerules
TypeResource
Idgoogle.workloadmanager.rules

Fields

NameDatatypeDescription
namestringrule name
descriptionstringdescrite rule in plain language
displayNamestringthe name display in UI
errorMessagestringthe message template for rule
primaryCategorystringthe primary category
remediationstringthe remediation for the rule
revisionIdstringOutput only. the version of the rule
secondaryCategorystringthe secondary category
severitystringthe severity of the rule
tagsarrayList of user-defined tags
uristringthe docuement url for the rule

Methods

NameAccessible byRequired ParamsDescription
listSELECTlocationsId, projectsIdLists rules in a given project.

SELECT examples

Lists rules in a given project.

SELECT
name,
description,
displayName,
errorMessage,
primaryCategory,
remediation,
revisionId,
secondaryCategory,
severity,
tags,
uri
FROM google.workloadmanager.rules
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';