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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id represents the complete path to the resource.
namestringResource name associated with the resource.
eTagstringOptional ETag.
locationstringResource location.
propertiesobjectResourceGuardResource properties
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.
typestringResource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, subscriptionId, resourceGuardsName
patchupdateresourceGroupName, subscriptionId, resourceGuardsName
putreplaceresourceGroupName, subscriptionId, resourceGuardsName
deletedeleteresourceGroupName, subscriptionId, resourceGuardsName

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
resourceGuardsNamestringThe name of ResourceGuard
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

OK

SELECT
id,
name,
eTag,
location,
properties,
systemData,
tags,
type
FROM azure.data_protection.resource_guards
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGuardsName = '{{ resourceGuardsName }}' -- required
;

UPDATE examples

No description available.

UPDATE azure.data_protection.resource_guards
SET
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGuardsName = '{{ resourceGuardsName }}' --required
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type;

REPLACE examples

No description available.

REPLACE azure.data_protection.resource_guards
SET
data__eTag = '{{ eTag }}',
data__location = '{{ location }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGuardsName = '{{ resourceGuardsName }}' --required
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type;

DELETE examples

No description available.

DELETE FROM azure.data_protection.resource_guards
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceGuardsName = '{{ resourceGuardsName }}' --required
;