Skip to main content

standards

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

Overview

Namestandards
TypeResource
Idazure.security.standards

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
descriptiontextfield from the properties object
assessmentstextfield from the properties object
cloud_providerstextfield from the properties object
display_nametextfield from the properties object
metadatatextfield from the properties object
policy_set_definition_idtextfield from the properties object
scopetextfield from the properties object
standardIdtextfield from the properties object
standard_typetextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTscope, standardIdGet a specific security standard for the requested scope by standardId
listSELECTscopeGet a list of all relevant security standards over a scope
create_or_updateINSERTscope, standardIdCreates or updates a security standard over a given scope
deleteDELETEscope, standardIdDelete a security standard over a given scope

SELECT examples

Get a list of all relevant security standards over a scope

SELECT
id,
name,
description,
assessments,
cloud_providers,
display_name,
metadata,
policy_set_definition_id,
scope,
standardId,
standard_type,
type
FROM azure.security.vw_standards
WHERE scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new standards resource.

/*+ create */
INSERT INTO azure.security.standards (
scope,
standardId,
properties
)
SELECT
'{{ scope }}',
'{{ standardId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified standards resource.

/*+ delete */
DELETE FROM azure.security.standards
WHERE scope = '{{ scope }}'
AND standardId = '{{ standardId }}';