protection_intents
Creates, updates, deletes, gets or lists a protection_intents
resource.
Overview
Name | protection_intents |
Type | Resource |
Id | azure.recovery_services_backup.protection_intents |
Fields
- vw_protection_intents
- protection_intents
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
backup_management_type | text | field from the properties object |
fabricName | text | field from the properties object |
intentObjectName | text | field from the properties object |
item_id | text | field from the properties object |
policy_id | text | field from the properties object |
protection_intent_item_type | text | field from the properties object |
protection_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source_resource_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
vaultName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | Base class for backup ProtectionIntent. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, intentObjectName, resourceGroupName, subscriptionId, vaultName | Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, |
call the GetItemOperationResult API. | |||
create_or_update | INSERT | fabricName, intentObjectName, resourceGroupName, subscriptionId, vaultName | Create Intent for Enabling backup of an item. This is a synchronous operation. |
delete | DELETE | fabricName, intentObjectName, resourceGroupName, subscriptionId, vaultName | Used to remove intent from an item |
validate | EXEC | azureRegion, subscriptionId |
SELECT
examples
Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.
- vw_protection_intents
- protection_intents
SELECT
id,
name,
backup_management_type,
fabricName,
intentObjectName,
item_id,
policy_id,
protection_intent_item_type,
protection_state,
resourceGroupName,
source_resource_id,
subscriptionId,
type,
vaultName
FROM azure.recovery_services_backup.vw_protection_intents
WHERE fabricName = '{{ fabricName }}'
AND intentObjectName = '{{ intentObjectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';
SELECT
id,
name,
properties,
type
FROM azure.recovery_services_backup.protection_intents
WHERE fabricName = '{{ fabricName }}'
AND intentObjectName = '{{ intentObjectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new protection_intents
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_backup.protection_intents (
fabricName,
intentObjectName,
resourceGroupName,
subscriptionId,
vaultName,
properties
)
SELECT
'{{ fabricName }}',
'{{ intentObjectName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: protectionIntentItemType
value: string
- name: backupManagementType
value: string
- name: sourceResourceId
value: string
- name: itemId
value: string
- name: policyId
value: string
- name: protectionState
value: string
DELETE
example
Deletes the specified protection_intents
resource.
/*+ delete */
DELETE FROM azure.recovery_services_backup.protection_intents
WHERE fabricName = '{{ fabricName }}'
AND intentObjectName = '{{ intentObjectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';