Skip to main content

resource_guards

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

Overview

Nameresource_guards
TypeResource
Idazure.data_protection.resource_guards

Fields

NameDatatypeDescription
idtextResource Id represents the complete path to the resource.
nametextResource name associated with the resource.
descriptiontextfield from the properties object
allow_auto_approvalstextfield from the properties object
e_tagtextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceGuardsNametextfield from the properties object
resource_guard_operationstextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
typetextResource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
vault_critical_operation_exclusion_listtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceGuardsName, subscriptionId
deleteDELETEresourceGroupName, resourceGuardsName, subscriptionId
patchUPDATEresourceGroupName, resourceGuardsName, subscriptionId
putREPLACEresourceGroupName, resourceGuardsName, subscriptionId

SELECT examples

SELECT
id,
name,
description,
allow_auto_approvals,
e_tag,
location,
provisioning_state,
resourceGroupName,
resourceGuardsName,
resource_guard_operations,
subscriptionId,
system_data,
tags,
type,
vault_critical_operation_exclusion_list
FROM azure.data_protection.vw_resource_guards
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceGuardsName = '{{ resourceGuardsName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a resource_guards resource.

/*+ update */
UPDATE azure.data_protection.resource_guards
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceGuardsName = '{{ resourceGuardsName }}'
AND subscriptionId = '{{ subscriptionId }}';

REPLACE example

Replaces all fields in the specified resource_guards resource.

/*+ update */
REPLACE azure.data_protection.resource_guards
SET
eTag = '{{ eTag }}',
location = '{{ location }}',
tags = '{{ tags }}',
systemData = '{{ systemData }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceGuardsName = '{{ resourceGuardsName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified resource_guards resource.

/*+ delete */
DELETE FROM azure.data_protection.resource_guards
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceGuardsName = '{{ resourceGuardsName }}'
AND subscriptionId = '{{ subscriptionId }}';