Skip to main content

information_protection_policies

Creates, updates, deletes, gets or lists an information_protection_policies resource.

Overview​

Nameinformation_protection_policies
TypeResource
Idazure.security.information_protection_policies

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
informationTypesobjectThe sensitivity information types.
labelsobjectDictionary of sensitivity labels.
lastModifiedUtcstring (date-time)Describes the last UTC time the policy was modified.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionstringDescribes the version of the policy.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, information_protection_policy_nameDetails of the information protection policy.
listselectscopeInformation protection policies of a specific management group.
create_or_updateinsertscope, information_protection_policy_nameDetails of the information protection policy.
create_or_updatereplacescope, information_protection_policy_nameDetails of the information protection policy.

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
information_protection_policy_namestringName of the information protection policy. Known values are: "effective" and "custom". Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples​

Details of the information protection policy.

SELECT
id,
name,
informationTypes,
labels,
lastModifiedUtc,
systemData,
type,
version
FROM azure.security.information_protection_policies
WHERE scope = '{{ scope }}' -- required
AND information_protection_policy_name = '{{ information_protection_policy_name }}' -- required
;

INSERT examples​

Details of the information protection policy.

INSERT INTO azure.security.information_protection_policies (
properties,
scope,
information_protection_policy_name
)
SELECT
'{{ properties }}',
'{{ scope }}',
'{{ information_protection_policy_name }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples​

Details of the information protection policy.

REPLACE azure.security.information_protection_policies
SET
properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND information_protection_policy_name = '{{ information_protection_policy_name }}' --required
RETURNING
id,
name,
properties,
systemData,
type;