This commit is contained in:
Zubair Abid 2024-04-22 18:32:38 +05:30
Родитель 5f79a7ae82
Коммит 59f6a59c86
98 изменённых файлов: 9468 добавлений и 32 удалений

Просмотреть файл

@ -38,3 +38,15 @@ Trigger adhoc backup.
dataprotection backup-policy show -g "000pikumar" --vault-name "PratikPrivatePreviewVault1" -n "backupPolicy"
dataprotection backup-instance adhoc-backup --name "testInstance1" --rule-name "BackupWeekly" --retention-tag-override "yearly" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L2JhY2t1cA==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/backup 2024-04-01 -->
#### examples
- Fetch Backup Policy details for rule name and Trigger Adhoc Backup
```bash
dataprotection backup-policy show -g "000pikumar" --vault-name "PratikPrivatePreviewVault1" -n "backupPolicy"
dataprotection backup-instance adhoc-backup --name "testInstance1" --rule-name "BackupWeekly" --retention-tag-override "yearly" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```

Просмотреть файл

@ -36,3 +36,14 @@ Configure backup for a resource in a backup vault
```bash
dataprotection backup-instance create -g MyResourceGroup --vault-name MyVault --backup-instance backupinstance.json
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{} 2024-04-01 -->
#### examples
- create a backup instance in a backup vault
```bash
dataprotection backup-instance create -g MyResourceGroup --vault-name MyVault --backup-instance backupinstance.json
```

Просмотреть файл

@ -36,3 +36,14 @@ Delete a backup instance in a backup vault
```bash
dataprotection backup-instance delete --name "testInstance1" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{} 2024-04-01 -->
#### examples
- Delete BackupInstance
```bash
dataprotection backup-instance delete --name "testInstance1" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```

Просмотреть файл

@ -36,3 +36,14 @@ Gets backup instances belonging to a backup vault.
```bash
dataprotection backup-instance list --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2Vz/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances 2024-04-01 -->
#### examples
- List backup instances in a vault
```bash
dataprotection backup-instance list --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```

Просмотреть файл

@ -36,3 +36,14 @@ This operation will resume protection for a stopped backup instance.
```bash
dataprotection backup-instance resume-protection --name "testbi" --resource-group "testrg" --vault-name "testvault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3Jlc3VtZXByb3RlY3Rpb24=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/resumeprotection 2024-04-01 -->
#### examples
- Resume protection
```bash
dataprotection backup-instance resume-protection --name "testbi" --resource-group "testrg" --vault-name "testvault"
```

Просмотреть файл

@ -36,3 +36,14 @@ Get a backup instance with name in a backup vault
```bash
dataprotection backup-instance show --name "testInstance1" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{} 2024-04-01 -->
#### examples
- Get BackupInstance
```bash
dataprotection backup-instance show --name "testInstance1" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```

Просмотреть файл

@ -37,7 +37,7 @@ This operation will stop protection of a backup instance and data will be held f
dataprotection backup-instance stop-protection --name "testbi" --resource-group "testrg" --vault-name "testvault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3N0b3Bwcm90ZWN0aW9u/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3N0b3Bwcm90ZWN0aW9u/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/stopprotection 2024-04-01 -->

Просмотреть файл

@ -37,7 +37,7 @@ This operation will stop backup for a backup instance and retains the backup dat
dataprotection backup-instance suspend-backup --name "testbi" --resource-group "testrg" --vault-name "testvault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3N1c3BlbmRiYWNrdXBz/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3N1c3BlbmRiYWNrdXBz/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/suspendbackups 2024-04-01 -->

Просмотреть файл

@ -15,3 +15,7 @@ Update a backup instance in a backup vault
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{} 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{} 2024-04-01 -->

Просмотреть файл

@ -36,3 +36,14 @@ Validate whether adhoc backup will be successful or not
```bash
dataprotection backup-instance validate-for-backup -g sample_rg --vault-name sample_backupvault --backup-instance backup_instance.json
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vdmFsaWRhdGVmb3JiYWNrdXA=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/validateforbackup 2024-04-01 -->
#### examples
- Validate Backup
```bash
dataprotection backup-instance validate-for-backup -g sample_rg --vault-name sample_backupvault --backup-instance backup_instance.json
```

Просмотреть файл

@ -36,3 +36,14 @@ Validates if Restore can be triggered for a DataSource
```bash
dataprotection backup-instance validate-for-restore-g sample_rg --vault-name sample_backupvault --backup-instance-name sample_biname-fd53a211-3f3e-4c7e-ba45-81050e27c0be --restore-request-object restorerequestobject.json
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3ZhbGlkYXRlcmVzdG9yZQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/validaterestore 2024-04-01 -->
#### examples
- Validate Restore
```bash
dataprotection backup-instance validate-for-restore-g sample_rg --vault-name sample_backupvault --backup-instance-name sample_biname-fd53a211-3f3e-4c7e-ba45-81050e27c0be --restore-request-object restorerequestobject.json
```

Просмотреть файл

@ -11,3 +11,7 @@ List deleted backup instances belonging to a backup vault
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vZGVsZXRlZGJhY2t1cGluc3RhbmNlcw==/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vZGVsZXRlZGJhY2t1cGluc3RhbmNlcw==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances 2024-04-01 -->

Просмотреть файл

@ -11,3 +11,7 @@ Get a deleted backup instance with name in a backup vault
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vZGVsZXRlZGJhY2t1cGluc3RhbmNlcy97fQ==/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{} 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vZGVsZXRlZGJhY2t1cGluc3RhbmNlcy97fQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{} 2024-04-01 -->

Просмотреть файл

@ -11,3 +11,7 @@ Undelete soft-deleted backup instances.
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vZGVsZXRlZGJhY2t1cGluc3RhbmNlcy97fS91bmRlbGV0ZQ==/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vZGVsZXRlZGJhY2t1cGluc3RhbmNlcy97fS91bmRlbGV0ZQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete 2024-04-01 -->

Просмотреть файл

@ -23,6 +23,6 @@ Triggers restore for a BackupInstance
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/restore 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3Jlc3RvcmU=/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3Jlc3RvcmU=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/restore 2024-04-01 -->

Просмотреть файл

@ -36,3 +36,14 @@ Create a backup policy belonging to a backup vault.
```bash
dataprotection backup-policy create -g sarath-rg --vault-name sarath-vault -n mypolicy --policy policy.json
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcG9saWNpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{} 2024-04-01 -->
#### examples
- Create Backup Policy
```bash
dataprotection backup-policy create -g sarath-rg --vault-name sarath-vault -n mypolicy --policy policy.json
```

Просмотреть файл

@ -36,3 +36,14 @@ Deletes a backup policy belonging to a backup vault.
```bash
dataprotection backup-policy delete --name "OSSDBPolicy" --resource-group "000pikumar" --vault-name "PrivatePreviewVault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcG9saWNpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{} 2024-04-01 -->
#### examples
- Delete Backup Policy
```bash
dataprotection backup-policy delete --name "OSSDBPolicy" --resource-group "000pikumar" --vault-name "PrivatePreviewVault"
```

Просмотреть файл

@ -36,3 +36,14 @@ List list of backup policies belonging to a backup vault
```bash
dataprotection backup-policy list --resource-group "000pikumar" --vault-name "PrivatePreviewVault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcG9saWNpZXM=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies 2024-04-01 -->
#### examples
- List Backup Policies
```bash
dataprotection backup-policy list --resource-group "000pikumar" --vault-name "PrivatePreviewVault"
```

Просмотреть файл

@ -36,3 +36,14 @@ Get a backup policy belonging to a backup vault
```bash
dataprotection backup-policy show --name "OSSDBPolicy" --resource-group "000pikumar" --vault-name "PrivatePreviewVault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcG9saWNpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{} 2024-04-01 -->
#### examples
- Get Backup Policy
```bash
dataprotection backup-policy show --name "OSSDBPolicy" --resource-group "000pikumar" --vault-name "PrivatePreviewVault"
```

Просмотреть файл

@ -15,3 +15,7 @@ Update a backup policy belonging to a backup vault.
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcG9saWNpZXMve30=/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{} 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcG9saWNpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{} 2024-04-01 -->

Просмотреть файл

@ -68,7 +68,7 @@ Create a BackupVault resource belonging to a resource group.
dataprotection backup-vault create --type "systemAssigned" --location "WestUS" --azure-monitor-alerts-for-job-failures "Enabled" --storage-setting "[{type:'LocallyRedundant',datastore-type:'VaultStore'}]" --tags key1="val1" --resource-group "SampleResourceGroup" --vault-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2024-04-01 -->

Просмотреть файл

@ -48,7 +48,7 @@ Delete a BackupVault resource from the resource group.
dataprotection backup-vault delete --resource-group "SampleResourceGroup" --vault-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2024-04-01 -->

Просмотреть файл

@ -72,7 +72,7 @@ Gets list of backup vault in a subscription or in a resource group.
dataprotection backup-vault list -g sarath-rg
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHM=/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHM=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.dataprotection/backupvaults 2024-04-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults 2024-04-01 -->

Просмотреть файл

@ -68,7 +68,7 @@ Get a resource belonging to a resource group.
dataprotection backup-vault show --resource-group "SampleResourceGroup" --vault-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2024-04-01 -->

Просмотреть файл

@ -48,7 +48,7 @@ Updates a BackupVault resource belonging to a resource group. For example, updat
dataprotection backup-vault update --azure-monitor-alerts-for-job-failures "Enabled" --tags newKey="newVal" --resource-group "SampleResourceGroup" --vault-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{} 2024-04-01 -->

Просмотреть файл

@ -25,3 +25,14 @@ Create a ResourceGuard mapping
```bash
dataprotection backup-vault resource-guard-mapping create -n "DppResourceGuardProxy" -g "sampleRG" --vault-name "sampleVault" --resource-guard-id "/subscription/00000000-0000-0000-0000-000000000000/resourcegroups/sampleRG/providers/Microsoft.DataProtection/resourceGuards/sampleResourceGuard"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{} 2024-04-01 -->
#### examples
- Create a ResourceGuard mapping
```bash
dataprotection backup-vault resource-guard-mapping create -n "DppResourceGuardProxy" -g "sampleRG" --vault-name "sampleVault" --resource-guard-id "/subscription/00000000-0000-0000-0000-000000000000/resourcegroups/sampleRG/providers/Microsoft.DataProtection/resourceGuards/sampleResourceGuard"
```

Просмотреть файл

@ -25,3 +25,14 @@ Delete the ResourceGuard mapping
```bash
dataprotection backup-vault resource-guard-mapping delete -n "DppResourceGuardProxy" -g "sampleRG" -v "sampleVault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{} 2024-04-01 -->
#### examples
- Delete a ResourceGuard Mapping
```bash
dataprotection backup-vault resource-guard-mapping delete -n "DppResourceGuardProxy" -g "sampleRG" -v "sampleVault"
```

Просмотреть файл

@ -25,3 +25,14 @@ List the list of ResourceGuard mappings associated with the vault
```bash
dataprotection backup-vault resource-guard-mapping list -g "sampleRG" -v "sampleVault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXM=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies 2024-04-01 -->
#### examples
- List all ResourceGuard Mappings associated with a vault
```bash
dataprotection backup-vault resource-guard-mapping list -g "sampleRG" -v "sampleVault"
```

Просмотреть файл

@ -25,3 +25,14 @@ Get the ResourceGuard mapping object associated with the vault, and that matches
```bash
dataprotection backup-vault resource-guard-mapping show -n "DppResourceGuardProxy" -g "sampleRG" -v "sampleVault"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{} 2024-04-01 -->
#### examples
- Show a ResourceGuard Mapping associated with a vault
```bash
dataprotection backup-vault resource-guard-mapping show -n "DppResourceGuardProxy" -g "sampleRG" -v "sampleVault"
```

Просмотреть файл

@ -11,3 +11,7 @@ Update a ResourceGuard mapping
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30=/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{} 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{} 2024-04-01 -->

Просмотреть файл

@ -7,3 +7,7 @@ Fetches a single Cross Region Restore Job
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vZmV0Y2hjcm9zc3JlZ2lvbnJlc3RvcmVqb2I=/2023-11-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejob 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vZmV0Y2hjcm9zc3JlZ2lvbnJlc3RvcmVqb2I=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejob 2024-04-01 -->

Просмотреть файл

@ -7,3 +7,7 @@ Fetches list of Cross Region Restore job belonging to the vault
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vZmV0Y2hjcm9zc3JlZ2lvbnJlc3RvcmVqb2Jz/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejobs 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vZmV0Y2hjcm9zc3JlZ2lvbnJlc3RvcmVqb2Jz/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejobs 2024-04-01 -->

Просмотреть файл

@ -7,3 +7,7 @@ Returns a list of Secondary Recovery Points for a DataSource in a vault, that ca
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vZmV0Y2hzZWNvbmRhcnlyZWNvdmVyeXBvaW50cw==/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchsecondaryrecoverypoints 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vZmV0Y2hzZWNvbmRhcnlyZWNvdmVyeXBvaW50cw==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchsecondaryrecoverypoints 2024-04-01 -->

Просмотреть файл

@ -8,6 +8,6 @@ Triggers Cross Region Restore for BackupInstance.
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/crossregionrestore 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vY3Jvc3NyZWdpb25yZXN0b3Jl/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vY3Jvc3NyZWdpb25yZXN0b3Jl/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/crossregionrestore 2024-04-01 -->

Просмотреть файл

@ -7,3 +7,7 @@ Validates whether Cross Region Restore can be triggered for DataSource.
### [2023-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vdmFsaWRhdGVjcm9zc3JlZ2lvbnJlc3RvcmU=/2023-11-01.xml) **Experimental**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/validatecrossregionrestore 2023-11-01 -->
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9sb2NhdGlvbnMve30vdmFsaWRhdGVjcm9zc3JlZ2lvbnJlc3RvcmU=/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/validatecrossregionrestore 2024-04-01 -->

Просмотреть файл

@ -36,3 +36,14 @@ Returns list of jobs belonging to a backup vault.
```bash
dataprotection job list --resource-group "BugBash1" --vault-name "BugBashVaultForCCYv11"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3Vwam9icw==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs 2024-04-01 -->
#### examples
- Get Jobs
```bash
dataprotection job list --resource-group "BugBash1" --vault-name "BugBashVaultForCCYv11"
```

Просмотреть файл

@ -36,3 +36,14 @@ Get a job with id in a backup vault.
```bash
dataprotection job show --job-id "3c60cb49-63e8-4b21-b9bd-26277b3fdfae" --resource-group "BugBash1" --vault-name "BugBashVaultForCCYv11"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3Vwam9icy97fQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs/{} 2024-04-01 -->
#### examples
- Get Job
```bash
dataprotection job show --job-id "3c60cb49-63e8-4b21-b9bd-26277b3fdfae" --resource-group "BugBash1" --vault-name "BugBashVaultForCCYv11"
```

Просмотреть файл

@ -36,3 +36,14 @@ Returns a list of Recovery Points for a DataSource in a vault.
```bash
dataprotection recovery-point list --backup-instance-name "testInstance1" --resource- group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3JlY292ZXJ5cG9pbnRz/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints 2024-04-01 -->
#### examples
- List Recovery Points in a Vault
```bash
dataprotection recovery-point list --backup-instance-name "testInstance1" --resource- group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```

Просмотреть файл

@ -36,3 +36,14 @@ Get a Recovery Point using recoveryPointId for a Datasource.
```bash
dataprotection recovery-point show --backup-instance-name "testInstance1" --recovery- point-id "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L3JlY292ZXJ5cG9pbnRzL3t9/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints/{} 2024-04-01 -->
#### examples
- Get Recovery Point
```bash
dataprotection recovery-point show --backup-instance-name "testInstance1" --recovery- point-id "7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25" --resource-group "000pikumar" --vault-name "PratikPrivatePreviewVault1"
```

Просмотреть файл

@ -36,3 +36,14 @@ Creates or updates a ResourceGuard resource belonging to a resource group.
```bash
dataprotection resource-guard create --location "WestUS" --tags key1="val1" --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9yZXNvdXJjZWd1YXJkcy97fQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{} 2024-04-01 -->
#### examples
- Create ResourceGuard
```bash
dataprotection resource-guard create --location "WestUS" --tags key1="val1" --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample"
```

Просмотреть файл

@ -36,3 +36,14 @@ Deletes a ResourceGuard resource from the resource group.
```bash
dataprotection resource-guard delete --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9yZXNvdXJjZWd1YXJkcy97fQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{} 2024-04-01 -->
#### examples
- Delete ResourceGuard
```bash
dataprotection resource-guard delete --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample"
```

Просмотреть файл

@ -54,3 +54,20 @@ Gets list of ResourceGuards in a subscription or in a resource group.
```bash
dataprotection resource-guard list -g sarath-rg
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9yZXNvdXJjZWd1YXJkcw==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.dataprotection/resourceguards 2024-04-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards 2024-04-01 -->
#### examples
- List ResourceGuards in a subscription
```bash
dataprotection resource-guard list
```
- List ResourceGuards in a resource group
```bash
dataprotection resource-guard list -g sarath-rg
```

Просмотреть файл

@ -36,3 +36,14 @@ Returns a ResourceGuard belonging to a resource group.
```bash
dataprotection resource-guard show --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9yZXNvdXJjZWd1YXJkcy97fQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{} 2024-04-01 -->
#### examples
- Get ResourceGuard
```bash
dataprotection resource-guard show --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample"
```

Просмотреть файл

@ -26,7 +26,7 @@ Unlocks the critical operation which is protected by the resource guard
dataprotection resource-guard unlock -n "DppResourceGuardProxy" -g "sampleRG" -v "sampleVault" --resource-guard-operation-requests "DisableMUA" --resource-to-be-deleted "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sampleRG/providers/Microsoft.DataProtection/backupVaults/sampleVault/backupResourceGuardProxies/DppResourceGuardProxy"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30vdW5sb2NrZGVsZXRl/2024-04-01.xml) **Experimental**
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwcmVzb3VyY2VndWFyZHByb3hpZXMve30vdW5sb2NrZGVsZXRl/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}/unlockdelete 2024-04-01 -->

Просмотреть файл

@ -36,3 +36,14 @@ Updates protected operations associated with a ResourceGuard.
```bash
dataprotection resource-guard update --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample" --resource-type "Microsoft.RecoveryServices/vaults" --critical-operation-exclusion-list deleteProtection getSecurityPIN updatePolicy
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9yZXNvdXJjZWd1YXJkcy97fQ==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{} 2024-04-01 -->
#### examples
- Update ResourceGuard
```bash
dataprotection resource-guard update --resource-group "SampleResourceGroup" --resource-guard-name "swaggerExample" --resource-type "Microsoft.RecoveryServices/vaults" --critical-operation-exclusion-list deleteProtection getSecurityPIN updatePolicy
```

Просмотреть файл

@ -36,3 +36,14 @@ Finds the valid recovery point in time ranges for the restore.
```bash
dataprotection restorable-time-range find --backup-instance-name "zblobbackuptestsa58" --end-time "2021-02-24T00:35:17.6829685Z" --source-data-store-type "OperationalStore" --start-time "2020-10-17T23:28:17.6829685Z" --resource-group "Blob-Backup" --vault-name "ZBlobBackupVaultBVTD3"
```
### [2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9iYWNrdXB2YXVsdHMve30vYmFja3VwaW5zdGFuY2VzL3t9L2ZpbmRyZXN0b3JhYmxldGltZXJhbmdlcw==/2024-04-01.xml) **Stable**
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/findrestorabletimeranges 2024-04-01 -->
#### examples
- Find Restorable Time Ranges
```bash
dataprotection restorable-time-range find --backup-instance-name "zblobbackuptestsa58" --end-time "2021-02-24T00:35:17.6829685Z" --source-data-store-type "OperationalStore" --start-time "2020-10-17T23:28:17.6829685Z" --resource-group "Blob-Backup" --vault-name "ZBlobBackupVaultBVTD3"
```

Просмотреть файл

@ -20768,6 +20768,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -20803,6 +20813,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -20838,6 +20858,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -20913,8 +20943,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
}
@ -20998,6 +21027,25 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-policy show -g \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\" -n \"backupPolicy\"",
"dataprotection backup-instance adhoc-backup --name \"testInstance1\" --rule-name \"BackupWeekly\" --retention-tag-override \"yearly\" --resource-group \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\""
],
"name": "Fetch Backup Policy details for rule name and Trigger Adhoc Backup"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/backup",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21067,6 +21115,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance create -g MyResourceGroup --vault-name MyVault --backup-instance backupinstance.json"
],
"name": "create a backup instance in a backup vault"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21136,6 +21202,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance delete --name \"testInstance1\" --resource-group \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\""
],
"name": "Delete BackupInstance"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21205,6 +21289,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance list --resource-group \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\""
],
"name": "List backup instances in a vault"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21274,6 +21376,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance resume-protection --name \"testbi\" --resource-group \"testrg\" --vault-name \"testvault\""
],
"name": "Resume protection"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/resumeprotection",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21343,6 +21463,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance show --name \"testInstance1\" --resource-group \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\""
],
"name": "Get BackupInstance"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21429,8 +21567,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -21517,8 +21654,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -21564,6 +21700,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21633,6 +21779,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance validate-for-backup -g sample_rg --vault-name sample_backupvault --backup-instance backup_instance.json"
],
"name": "Validate Backup"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/validateforbackup",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21702,6 +21866,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-instance validate-for-restore-g sample_rg --vault-name sample_backupvault --backup-instance-name sample_biname-fd53a211-3f3e-4c7e-ba45-81050e27c0be --restore-request-object restorerequestobject.json"
],
"name": "Validate Restore"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/validaterestore",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -21782,6 +21964,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-policy create -g sarath-rg --vault-name sarath-vault -n mypolicy --policy policy.json"
],
"name": "Create Backup Policy"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21851,6 +22051,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-policy delete --name \"OSSDBPolicy\" --resource-group \"000pikumar\" --vault-name \"PrivatePreviewVault\""
],
"name": "Delete Backup Policy"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21920,6 +22138,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-policy list --resource-group \"000pikumar\" --vault-name \"PrivatePreviewVault\""
],
"name": "List Backup Policies"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -21989,6 +22225,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-policy show --name \"OSSDBPolicy\" --resource-group \"000pikumar\" --vault-name \"PrivatePreviewVault\""
],
"name": "Get Backup Policy"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -22034,6 +22288,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -22098,6 +22362,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-vault resource-guard-mapping create -n \"DppResourceGuardProxy\" -g \"sampleRG\" --vault-name \"sampleVault\" --resource-guard-id \"/subscription/00000000-0000-0000-0000-000000000000/resourcegroups/sampleRG/providers/Microsoft.DataProtection/resourceGuards/sampleResourceGuard\""
],
"name": "Create a ResourceGuard mapping"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -22149,6 +22431,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-vault resource-guard-mapping delete -n \"DppResourceGuardProxy\" -g \"sampleRG\" -v \"sampleVault\""
],
"name": "Delete a ResourceGuard Mapping"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -22200,6 +22500,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-vault resource-guard-mapping list -g \"sampleRG\" -v \"sampleVault\""
],
"name": "List all ResourceGuard Mappings associated with a vault"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -22251,6 +22569,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection backup-vault resource-guard-mapping show -n \"DppResourceGuardProxy\" -g \"sampleRG\" -v \"sampleVault\""
],
"name": "Show a ResourceGuard Mapping associated with a vault"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -22286,6 +22622,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -22433,8 +22779,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -22540,8 +22885,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -22702,8 +23046,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -22839,8 +23182,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -22946,8 +23288,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
}
@ -22981,6 +23322,16 @@
"version": "2023-11-01"
}
]
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejob",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23004,6 +23355,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejobs",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23027,6 +23388,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchsecondaryrecoverypoints",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23059,8 +23430,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -23084,6 +23454,16 @@
}
],
"stage": "Experimental"
},
{
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/validatecrossregionrestore",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -23164,6 +23544,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection job list --resource-group \"BugBash1\" --vault-name \"BugBashVaultForCCYv11\""
],
"name": "Get Jobs"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23233,6 +23631,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection job show --job-id \"3c60cb49-63e8-4b21-b9bd-26277b3fdfae\" --resource-group \"BugBash1\" --vault-name \"BugBashVaultForCCYv11\""
],
"name": "Get Job"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -23313,6 +23729,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection recovery-point list --backup-instance-name \"testInstance1\" --resource- group \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\""
],
"name": "List Recovery Points in a Vault"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23382,6 +23816,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection recovery-point show --backup-instance-name \"testInstance1\" --recovery- point-id \"7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25\" --resource-group \"000pikumar\" --vault-name \"PratikPrivatePreviewVault1\""
],
"name": "Get Recovery Point"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -23462,6 +23914,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection resource-guard create --location \"WestUS\" --tags key1=\"val1\" --resource-group \"SampleResourceGroup\" --resource-guard-name \"swaggerExample\""
],
"name": "Create ResourceGuard"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23531,6 +24001,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection resource-guard delete --resource-group \"SampleResourceGroup\" --resource-guard-name \"swaggerExample\""
],
"name": "Delete ResourceGuard"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23633,6 +24121,35 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection resource-guard list"
],
"name": "List ResourceGuards in a subscription"
},
{
"commands": [
"dataprotection resource-guard list -g sarath-rg"
],
"name": "List ResourceGuards in a resource group"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/providers/microsoft.dataprotection/resourceguards",
"plane": "mgmt-plane",
"version": "2024-04-01"
},
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23702,6 +24219,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection resource-guard show --resource-group \"SampleResourceGroup\" --resource-guard-name \"swaggerExample\""
],
"name": "Get ResourceGuard"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
},
@ -23769,8 +24304,7 @@
"plane": "mgmt-plane",
"version": "2024-04-01"
}
],
"stage": "Experimental"
]
}
]
},
@ -23840,6 +24374,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection resource-guard update --resource-group \"SampleResourceGroup\" --resource-guard-name \"swaggerExample\" --resource-type \"Microsoft.RecoveryServices/vaults\" --critical-operation-exclusion-list deleteProtection getSecurityPIN updatePolicy"
],
"name": "Update ResourceGuard"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}
@ -23920,6 +24472,24 @@
}
],
"stage": "Experimental"
},
{
"examples": [
{
"commands": [
"dataprotection restorable-time-range find --backup-instance-name \"zblobbackuptestsa58\" --end-time \"2021-02-24T00:35:17.6829685Z\" --source-data-store-type \"OperationalStore\" --start-time \"2020-10-17T23:28:17.6829685Z\" --resource-group \"Blob-Backup\" --vault-name \"ZBlobBackupVaultBVTD3\""
],
"name": "Find Restorable Time Ranges"
}
],
"name": "2024-04-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/findrestorabletimeranges",
"plane": "mgmt-plane",
"version": "2024-04-01"
}
]
}
]
}

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,215 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/providers/microsoft.dataprotection/resourceguards" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFQcm90ZWN0aW9uL3Jlc291cmNlR3VhcmRz/V/MjAyNC0wNC0wMQ=="/>
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHM=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection resource-guard">
<command name="list" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/providers/microsoft.dataprotection/resourceguards" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFQcm90ZWN0aW9uL3Jlc291cmNlR3VhcmRz/V/MjAyNC0wNC0wMQ=="/>
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHM=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<condition var="$Condition_ResourceGuards_GetResourcesInResourceGroup">
<operator type="and">
<operator type="hasValue" arg="$Path.resourceGroupName"/>
<operator type="hasValue" arg="$Path.subscriptionId"/>
</operator>
</condition>
<condition var="$Condition_ResourceGuards_GetResourcesInSubscription">
<operator type="and">
<operator type="hasValue" arg="$Path.subscriptionId"/>
<operator type="not">
<operator type="hasValue" arg="$Path.resourceGroupName"/>
</operator>
</operator>
</condition>
<operation when="$Condition_ResourceGuards_GetResourcesInResourceGroup" operationId="ResourceGuards_GetResourcesInResourceGroup">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop type="string" name="eTag"/>
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="boolean" name="allowAutoApprovals"/>
<prop readOnly="True" type="string" name="description"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Provisioning&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Unknown&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="array<object>" name="resourceGuardOperations">
<item type="object">
<prop readOnly="True" type="string" name="requestResourceType"/>
<prop readOnly="True" type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="array<string>" name="vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<operation when="$Condition_ResourceGuards_GetResourcesInSubscription" operationId="ResourceGuards_GetResourcesInSubscription">
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards">
<request method="get">
<path>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop type="string" name="eTag"/>
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="boolean" name="allowAutoApprovals"/>
<prop readOnly="True" type="string" name="description"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Provisioning&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Unknown&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="array<object>" name="resourceGuardOperations">
<item type="object">
<prop readOnly="True" type="string" name="requestResourceType"/>
<prop readOnly="True" type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="array<string>" name="vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -288,7 +288,7 @@
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Header.x-ms-authorization-auxiliary" options="x-ms-authorization-auxiliary" hide="True" group="">
<help short="-"/>
<help short="."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,270 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcw==/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance">
<command name="list" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcw==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="BackupInstances_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="string" name="currentProtectionState">
<enum>
<item value="&quot;BackupSchedulesSuspended&quot;"/>
<item value="&quot;ConfiguringProtection&quot;"/>
<item value="&quot;ConfiguringProtectionFailed&quot;"/>
<item value="&quot;Invalid&quot;"/>
<item value="&quot;NotProtected&quot;"/>
<item value="&quot;ProtectionConfigured&quot;"/>
<item value="&quot;ProtectionError&quot;"/>
<item value="&quot;ProtectionStopped&quot;"/>
<item value="&quot;RetentionSchedulesSuspended&quot;"/>
<item value="&quot;SoftDeleted&quot;"/>
<item value="&quot;SoftDeleting&quot;"/>
<item value="&quot;UpdatingProtection&quot;"/>
</enum>
</prop>
<prop type="object" name="dataSourceInfo" required="True">
<prop type="string" name="datasourceType"/>
<prop type="string" name="objectType"/>
<prop type="string" name="resourceID" required="True"/>
<prop type="string" name="resourceLocation"/>
<prop type="string" name="resourceName"/>
<prop type="object" name="resourceProperties" cls="BaseResourceProperties_read">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</prop>
</prop>
<prop type="string" name="resourceType"/>
<prop type="string" name="resourceUri"/>
</prop>
<prop type="object" name="dataSourceSetInfo">
<prop type="string" name="datasourceType"/>
<prop type="string" name="objectType"/>
<prop type="string" name="resourceID" required="True"/>
<prop type="string" name="resourceLocation"/>
<prop type="string" name="resourceName"/>
<prop type="@BaseResourceProperties_read" name="resourceProperties"/>
<prop type="string" name="resourceType"/>
<prop type="string" name="resourceUri"/>
</prop>
<prop type="object" name="datasourceAuthCredentials">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;SecretStoreBasedAuthCredentials&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="SecretStoreBasedAuthCredentials">
<prop type="object" name="secretStoreResource">
<prop type="string" name="secretStoreType" required="True">
<enum>
<item value="&quot;AzureKeyVault&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="uri"/>
<prop type="string" name="value"/>
</prop>
</discriminator>
</prop>
<prop type="string" name="friendlyName"/>
<prop type="object" name="identityDetails">
<prop type="boolean" name="useSystemAssignedIdentity"/>
<prop type="string" name="userAssignedIdentityArmUrl"/>
</prop>
<prop type="string" name="objectType" required="True"/>
<prop type="object" name="policyInfo" required="True">
<prop type="string" name="policyId" required="True"/>
<prop type="object" name="policyParameters">
<prop type="array<object>" name="backupDatasourceParametersList">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;BlobBackupDatasourceParameters&quot;"/>
<item value="&quot;KubernetesClusterBackupDatasourceParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="BlobBackupDatasourceParameters">
<prop type="array<string>" name="containersList" required="True">
<item type="string"/>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterBackupDatasourceParameters">
<prop type="array<object>" name="backupHookReferences">
<item type="object">
<prop type="string" name="name"/>
<prop type="string" name="namespace"/>
</item>
</prop>
<prop type="array<string>" name="excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors">
<item type="string"/>
</prop>
<prop type="boolean" name="snapshotVolumes" required="True"/>
</discriminator>
</item>
</prop>
<prop type="array<object>" name="dataStoreParametersList">
<item type="object">
<prop type="string" name="dataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureOperationalStoreParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureOperationalStoreParameters">
<prop type="string" name="resourceGroupId"/>
</discriminator>
</item>
</prop>
</prop>
<prop readOnly="True" type="string" name="policyVersion"/>
</prop>
<prop readOnly="True" type="@UserFacingError_read" name="protectionErrorDetails"/>
<prop type="object" name="protectionStatus">
<prop type="object" name="errorDetails" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</prop>
<prop type="string" name="status">
<enum>
<item value="&quot;ConfiguringProtection&quot;"/>
<item value="&quot;ConfiguringProtectionFailed&quot;"/>
<item value="&quot;ProtectionConfigured&quot;"/>
<item value="&quot;ProtectionStopped&quot;"/>
<item value="&quot;SoftDeleted&quot;"/>
<item value="&quot;SoftDeleting&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="provisioningState"/>
<prop type="array<string>" name="resourceGuardOperationRequests">
<item type="string"/>
</prop>
<prop type="string" name="validationType">
<enum>
<item value="&quot;DeepValidation&quot;"/>
<item value="&quot;ShallowValidation&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/backup", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9iYWNrdXA=/V/MjAyNC0wNC0wMQ=="}], "commandGroups": [{"name": "dataprotection backup-instance", "commands": [{"name": "adhoc-backup", "version": "2024-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/backup", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9iYWNrdXA=/V/MjAyNC0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.backupInstanceName", "options": ["n", "name", "backup-instance-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the backup instance."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.vaultName", "options": ["v", "vault-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the backup vault."}}]}, {"name": "Backup Rule Options", "args": [{"type": "string", "var": "$parameters.backupRuleOptions.ruleName", "options": ["rule-name"], "required": true, "group": "Backup Rule Options", "help": {"short": "Specify backup policy rule name."}}]}, {"name": "Backup Rule Options Trigger Option", "args": [{"type": "string", "var": "$parameters.backupRuleOptions.triggerOption.retentionTagOverride", "options": ["retention-tag-override"], "group": "Backup Rule Options Trigger Option", "help": {"short": "Specify retention override tag."}}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "BackupInstances_AdhocBackup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "backupInstanceName", "arg": "$Path.backupInstanceName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "vaultName", "arg": "$Path.vaultName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "backupRuleOptions", "required": true, "props": [{"type": "string", "name": "ruleName", "arg": "$parameters.backupRuleOptions.ruleName", "required": true}, {"type": "object", "name": "triggerOption", "required": true, "props": [{"type": "string", "name": "retentionTagOverride", "arg": "$parameters.backupRuleOptions.triggerOption.retentionTagOverride"}]}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "jobId"}, {"const": true, "default": {"value": "OperationJobExtendedInfo"}, "type": "string", "name": "objectType", "required": true}]}}}}, {"statusCode": [202], "header": {"items": [{"name": "Azure-AsyncOperation"}, {"name": "Location"}, {"name": "Retry-After"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}

Просмотреть файл

@ -0,0 +1,89 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/backup" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9iYWNrdXA=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance">
<command name="adhoc-backup" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/backup" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9iYWNrdXA=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the backup instance."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Backup Rule Options">
<arg type="string" var="$parameters.backupRuleOptions.ruleName" options="rule-name" required="True" group="Backup Rule Options">
<help short="Specify backup policy rule name."/>
</arg>
</argGroup>
<argGroup name="Backup Rule Options Trigger Option">
<arg type="string" var="$parameters.backupRuleOptions.triggerOption.retentionTagOverride" options="retention-tag-override" group="Backup Rule Options Trigger Option">
<help short="Specify retention override tag."/>
</arg>
</argGroup>
<operation operationId="BackupInstances_AdhocBackup">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup">
<request method="post">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="backupRuleOptions" required="True">
<prop type="string" name="ruleName" arg="$parameters.backupRuleOptions.ruleName" required="True"/>
<prop type="object" name="triggerOption" required="True">
<prop type="string" name="retentionTagOverride" arg="$parameters.backupRuleOptions.triggerOption.retentionTagOverride"/>
</prop>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="jobId"/>
<prop const="True" type="string" name="objectType" required="True">
<default value="&quot;OperationJobExtendedInfo&quot;"/>
</prop>
</schema>
</json>
</body>
</response>
<response statusCode="202">
<header>
<item name="Azure-AsyncOperation"/>
<item name="Location"/>
<item name="Retry-After"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Просмотреть файл

@ -0,0 +1,121 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/findrestorabletimeranges" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9maW5kUmVzdG9yYWJsZVRpbWVSYW5nZXM=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection restorable-time-range">
<command name="find" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/findrestorabletimeranges" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9maW5kUmVzdG9yYWJsZVRpbWVSYW5nZXM=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
<arg type="string" var="$parameters.endTime" options="end-time" group="">
<help short="End time for the List Restore Ranges request. ISO 8601 format."/>
</arg>
<arg type="string" var="$parameters.sourceDataStoreType" options="source-data-store-type" required="True" group="">
<help short="Gets or sets the type of the source data store."/>
<enum>
<item name="ArchiveStore" value="&quot;ArchiveStore&quot;"/>
<item name="OperationalStore" value="&quot;OperationalStore&quot;"/>
<item name="VaultStore" value="&quot;VaultStore&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.startTime" options="start-time" group="">
<help short="Start time for the List Restore Ranges request. ISO 8601 format."/>
</arg>
</argGroup>
<argGroup name="Resource Id">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name" required="True" group="Resource Id" idPart="child_name_1">
<help short="The name of the backup instance."/>
</arg>
</argGroup>
<operation operationId="RestorableTimeRanges_Find">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges">
<request method="post">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="endTime" arg="$parameters.endTime"/>
<prop type="string" name="sourceDataStoreType" arg="$parameters.sourceDataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="startTime" arg="$parameters.startTime"/>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="string" name="id"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="objectType"/>
<prop type="array<object>" name="restorableTimeRanges">
<item type="object">
<prop type="string" name="endTime" required="True"/>
<prop type="string" name="objectType"/>
<prop type="string" name="startTime" required="True"/>
</item>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,140 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZWNvdmVyeVBvaW50cw==/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection recovery-point">
<command name="list" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZWNvdmVyeVBvaW50cw==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name" required="True" idPart="child_name_1">
<help short="The name of the backup instance."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
<arg type="string" var="$Query.filter" options="filter">
<help short="OData filter options."/>
</arg>
<arg type="string" var="$Query.skipToken" options="skip-token">
<help short="skipToken Filter."/>
</arg>
</argGroup>
<operation operationId="RecoveryPoints_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints">
<request method="get">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<param type="string" name="$filter" arg="$Query.filter"/>
<param type="string" name="$skipToken" arg="$Query.skipToken"/>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureBackupDiscreteRecoveryPoint&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureBackupDiscreteRecoveryPoint">
<prop readOnly="True" type="dateTime" name="expiryTime"/>
<prop type="string" name="friendlyName"/>
<prop type="string" name="policyName"/>
<prop type="string" name="policyVersion"/>
<prop type="array<object>" name="recoveryPointDataStoresDetails">
<item type="object">
<prop type="dateTime" name="creationTime"/>
<prop type="dateTime" name="expiryTime"/>
<prop type="string" name="id"/>
<prop type="string" name="metaData"/>
<prop readOnly="True" type="dateTime" name="rehydrationExpiryTime"/>
<prop readOnly="True" type="string" name="rehydrationStatus">
<enum>
<item value="&quot;COMPLETED&quot;"/>
<item value="&quot;CREATE_IN_PROGRESS&quot;"/>
<item value="&quot;DELETED&quot;"/>
<item value="&quot;DELETE_IN_PROGRESS&quot;"/>
<item value="&quot;FAILED&quot;"/>
</enum>
</prop>
<prop type="string" name="state"/>
<prop type="string" name="type"/>
<prop type="boolean" name="visible"/>
</item>
</prop>
<prop type="string" name="recoveryPointId"/>
<prop type="string" name="recoveryPointState">
<enum>
<item value="&quot;Completed&quot;"/>
<item value="&quot;Partial&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="recoveryPointTime" required="True"/>
<prop type="string" name="recoveryPointType"/>
<prop type="string" name="retentionTagName"/>
<prop type="string" name="retentionTagVersion"/>
</discriminator>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,133 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZWNvdmVyeVBvaW50cy97cmVjb3ZlcnlQb2ludElkfQ==/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection recovery-point">
<command name="show" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/recoverypoints/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZWNvdmVyeVBvaW50cy97cmVjb3ZlcnlQb2ludElkfQ==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Resource Id Arguments">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name" required="True" group="Resource Id Arguments" idPart="child_name_1">
<help short="The name of the backup instance."/>
</arg>
<arg type="string" var="$Path.recoveryPointId" options="recovery-point-id" required="True" group="Resource Id Arguments" idPart="child_name_2">
<help short="Id of the recovery point."/>
</arg>
</argGroup>
<operation operationId="RecoveryPoints_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}">
<request method="get">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="recoveryPointId" arg="$Path.recoveryPointId" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureBackupDiscreteRecoveryPoint&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureBackupDiscreteRecoveryPoint">
<prop readOnly="True" type="dateTime" name="expiryTime"/>
<prop type="string" name="friendlyName"/>
<prop type="string" name="policyName"/>
<prop type="string" name="policyVersion"/>
<prop type="array<object>" name="recoveryPointDataStoresDetails">
<item type="object">
<prop type="dateTime" name="creationTime"/>
<prop type="dateTime" name="expiryTime"/>
<prop type="string" name="id"/>
<prop type="string" name="metaData"/>
<prop readOnly="True" type="dateTime" name="rehydrationExpiryTime"/>
<prop readOnly="True" type="string" name="rehydrationStatus">
<enum>
<item value="&quot;COMPLETED&quot;"/>
<item value="&quot;CREATE_IN_PROGRESS&quot;"/>
<item value="&quot;DELETED&quot;"/>
<item value="&quot;DELETE_IN_PROGRESS&quot;"/>
<item value="&quot;FAILED&quot;"/>
</enum>
</prop>
<prop type="string" name="state"/>
<prop type="string" name="type"/>
<prop type="boolean" name="visible"/>
</item>
</prop>
<prop type="string" name="recoveryPointId"/>
<prop type="string" name="recoveryPointState">
<enum>
<item value="&quot;Completed&quot;"/>
<item value="&quot;Partial&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="recoveryPointTime" required="True"/>
<prop type="string" name="recoveryPointType"/>
<prop type="string" name="retentionTagName"/>
<prop type="string" name="retentionTagVersion"/>
</discriminator>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Просмотреть файл

@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/resumeprotection", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZXN1bWVQcm90ZWN0aW9u/V/MjAyNC0wNC0wMQ=="}], "commandGroups": [{"name": "dataprotection backup-instance", "commands": [{"name": "resume-protection", "version": "2024-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/resumeprotection", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZXN1bWVQcm90ZWN0aW9u/V/MjAyNC0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.backupInstanceName", "options": ["n", "name", "backup-instance-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the backup instance."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.vaultName", "options": ["v", "vault-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the backup vault."}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "BackupInstances_ResumeProtection", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "backupInstanceName", "arg": "$Path.backupInstanceName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "vaultName", "arg": "$Path.vaultName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [202], "header": {"items": [{"name": "Azure-AsyncOperation"}, {"name": "Location"}, {"name": "Retry-After"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}]}]}

Просмотреть файл

@ -0,0 +1,55 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/resumeprotection" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZXN1bWVQcm90ZWN0aW9u/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance">
<command name="resume-protection" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/resumeprotection" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS9yZXN1bWVQcm90ZWN0aW9u/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the backup instance."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="BackupInstances_ResumeProtection">
<longRunning finalStateVia="azure-async-operation"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection">
<request method="post">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="202">
<header>
<item name="Azure-AsyncOperation"/>
<item name="Location"/>
<item name="Retry-After"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,650 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/validaterestore" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS92YWxpZGF0ZVJlc3RvcmU=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance">
<command name="validate-for-restore" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupinstances/{}/validaterestore" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEluc3RhbmNlcy97YmFja3VwSW5zdGFuY2VOYW1lfS92YWxpZGF0ZVJlc3RvcmU=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the backup instance."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Parameters">
<arg type="object" var="$parameters.restoreRequestObject" options="restore-request-object" required="True" group="Parameters">
<help short="Gets or sets the restore request object."/>
<arg type="object" var="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest" options="azure-backup-recovery-point-based-restore-request">
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest.recoveryPointId" options="recovery-point-id" required="True"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest" options="azure-backup-recovery-time-based-restore-request">
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest.recoveryPointTime" options="recovery-point-time" required="True">
<help short="The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest" options="azure-backup-restore-with-rehydration-request">
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.recoveryPointId" options="recovery-point-id" required="True"/>
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationPriority" options="rehydration-priority" required="True">
<help short="Priority to be used for rehydration. Values High or Standard"/>
<enum>
<item name="High" value="&quot;High&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
<item name="Standard" value="&quot;Standard&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationRetentionDuration" options="rehydration-retention-duration" required="True">
<help short="Retention duration in ISO 8601 format i.e P10D ."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.identityDetails" options="identity-details" group="">
<help short="Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned."/>
<arg type="boolean" var="$parameters.restoreRequestObject.identityDetails.useSystemAssignedIdentity" options="use-system-assigned-identity">
<help short="Specifies if the BI is protected by System Identity."/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.identityDetails.userAssignedIdentityArmUrl" options="user-assigned-identity-arm-url">
<help short="ARM URL for User Assigned Identity."/>
</arg>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.resourceGuardOperationRequests" options="resource-guard-operation-requests">
<help short="ResourceGuardOperationRequests on which LAC check will be performed"/>
<item type="string"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo" options="restore-target-info" required="True">
<help short="Gets or sets the restore target information."/>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo" options="item-level-restore-target-info">
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceAuthCredentials" options="datasource-auth-credentials" cls="AuthCredentials_create">
<help short="Credentials to use to authenticate with data source provider."/>
<arg type="object" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials" options="secret-store-based-auth-credentials">
<arg type="object" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource" options="secret-store-resource">
<help short="Secret store resource"/>
<arg type="string" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.secretStoreType" options="secret-store-type" required="True">
<help short="Gets or sets the type of secret store"/>
<enum>
<item name="AzureKeyVault" value="&quot;AzureKeyVault&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
</enum>
</arg>
<arg type="string" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.uri" options="uri">
<help short="Uri to get to the resource"/>
</arg>
<arg type="string" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.value" options="value">
<help short="Gets or sets value stored in secret store resource"/>
</arg>
</arg>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceInfo" options="datasource-info" required="True" cls="Datasource_create">
<help short="Information of target DS"/>
<arg type="string" var="@Datasource_create.datasourceType" options="datasource-type">
<help short="DatasourceType of the resource."/>
</arg>
<arg type="string" var="@Datasource_create.objectType" options="object-type">
<help short="Type of Datasource object, used to initialize the right inherited type"/>
</arg>
<arg type="string" var="@Datasource_create.resourceID" options="resource-id" required="True">
<help short="Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault."/>
</arg>
<arg type="string" var="@Datasource_create.resourceLocation" options="resource-location">
<help short="Location of datasource."/>
</arg>
<arg type="string" var="@Datasource_create.resourceName" options="resource-name">
<help short="Unique identifier of the resource in the context of parent."/>
</arg>
<arg type="object" var="@Datasource_create.resourceProperties" options="resource-properties" cls="BaseResourceProperties_create">
<help short="Properties specific to data source"/>
<arg type="string" var="@BaseResourceProperties_create.objectType" options="object-type" required="True">
<help short="Type of the specific object - used for deserializing"/>
<enum>
<item name="DefaultResourceProperties" value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</arg>
</arg>
<arg type="string" var="@Datasource_create.resourceType" options="resource-type">
<help short="Resource Type of Datasource."/>
</arg>
<arg type="string" var="@Datasource_create.resourceUri" options="resource-uri">
<help short="Uri of the resource."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceSetInfo" options="datasource-set-info" cls="DatasourceSet_create">
<help short="Information of target DS Set"/>
<arg type="string" var="@DatasourceSet_create.datasourceType" options="datasource-type">
<help short="DatasourceType of the resource."/>
</arg>
<arg type="string" var="@DatasourceSet_create.objectType" options="object-type">
<help short="Type of Datasource object, used to initialize the right inherited type"/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceID" options="resource-id" required="True">
<help short="Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault."/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceLocation" options="resource-location">
<help short="Location of datasource."/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceName" options="resource-name">
<help short="Unique identifier of the resource in the context of parent."/>
</arg>
<arg type="@BaseResourceProperties_create" var="@DatasourceSet_create.resourceProperties" options="resource-properties">
<help short="Properties specific to data source set"/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceType" options="resource-type">
<help short="Resource Type of Datasource."/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceUri" options="resource-uri">
<help short="Uri of the resource."/>
</arg>
</arg>
<arg type="array<object>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria" options="restore-criteria" required="True">
<help short="Restore Criteria"/>
<item type="object">
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria" options="item-path-based-restore-criteria">
<arg type="boolean" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.isPathRelativeToBackupItem" options="is-path-relative-to-backup-item" required="True">
<help short="Flag to specify if the path is relative to backup item or full path"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.itemPath" options="item-path" required="True">
<help short="The path of the item to be restored. It could be the full path of the item or the path relative to the backup item"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.subItemPathPrefix" options="sub-item-path-prefix">
<help short="The list of prefix strings to be used as filter criteria during restore. These are relative to the item path specified."/>
<item type="string"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria" options="kubernetes-cluster-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.conflictPolicy" options="conflict-policy">
<help short="Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore."/>
<enum>
<item name="Patch" value="&quot;Patch&quot;"/>
<item name="Skip" value="&quot;Skip&quot;"/>
</enum>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedNamespaces" options="excluded-namespaces">
<help short="Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedResourceTypes" options="excluded-resource-types">
<help short="Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore."/>
<item type="string"/>
</arg>
<arg type="boolean" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includeClusterScopeResources" options="include-cluster-scope-resources" required="True">
<help short="Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore."/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedNamespaces" options="included-namespaces">
<help short="Gets or sets the include namespaces property. This property sets the namespaces to be included during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedResourceTypes" options="included-resource-types">
<help short="Gets or sets the include resource types property. This property sets the resource types to be included during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.labelSelectors" options="label-selectors">
<help short="Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore."/>
<item type="string"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.namespaceMappings" options="namespace-mappings">
<help short="Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.persistentVolumeRestoreMode" options="persistent-volume-restore-mode">
<help short="Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored."/>
<enum>
<item name="RestoreWithVolumeData" value="&quot;RestoreWithVolumeData&quot;"/>
<item name="RestoreWithoutVolumeData" value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</arg>
<arg type="@NamespacedNameResource_create" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.resourceModifierReference" options="resource-modifier-reference">
<help short="Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore."/>
</arg>
<arg type="array<object>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.restoreHookReferences" options="restore-hook-references">
<help short="Gets or sets the restore hook references. This property sets the hook reference to be executed during restore."/>
<item type="object" cls="NamespacedNameResource_create">
<arg type="string" var="@NamespacedNameResource_create.name" options="name">
<help short="Name of the resource"/>
</arg>
<arg type="string" var="@NamespacedNameResource_create.namespace" options="namespace">
<help short="Namespace in which the resource exists"/>
</arg>
</item>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria" options="kubernetes-cluster-vault-tier-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.conflictPolicy" options="conflict-policy">
<help short="Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore from vault."/>
<enum>
<item name="Patch" value="&quot;Patch&quot;"/>
<item name="Skip" value="&quot;Skip&quot;"/>
</enum>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedNamespaces" options="excluded-namespaces">
<help short="Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore from vault."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedResourceTypes" options="excluded-resource-types">
<help short="Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore from vault."/>
<item type="string"/>
</arg>
<arg type="boolean" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includeClusterScopeResources" options="include-cluster-scope-resources" required="True">
<help short="Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore from vault."/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedNamespaces" options="included-namespaces">
<help short="Gets or sets the include namespaces property. This property sets the namespaces to be included during restore from vault."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedResourceTypes" options="included-resource-types">
<help short="Gets or sets the include resource types property. This property sets the resource types to be included during restore from vault."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.labelSelectors" options="label-selectors">
<help short="Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore from vault."/>
<item type="string"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.namespaceMappings" options="namespace-mappings">
<help short="Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore from vault."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.persistentVolumeRestoreMode" options="persistent-volume-restore-mode">
<help short="Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored from vault."/>
<enum>
<item name="RestoreWithVolumeData" value="&quot;RestoreWithVolumeData&quot;"/>
<item name="RestoreWithoutVolumeData" value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</arg>
<arg type="@NamespacedNameResource_create" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.resourceModifierReference" options="resource-modifier-reference">
<help short="Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore."/>
</arg>
<arg type="array<@NamespacedNameResource_create>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.restoreHookReferences" options="restore-hook-references">
<help short="Gets or sets the restore hook references. This property sets the hook reference to be executed during restore from vault."/>
<item type="@NamespacedNameResource_create"/>
</arg>
<arg type="ResourceId" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingResourceGroupId" options="staging-resource-group-id">
<help short="Gets or sets the staging RG Id for creating staging disks and snapshots during restore from vault."/>
</arg>
<arg type="ResourceId" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingStorageAccountId" options="staging-storage-account-id">
<help short="Gets or sets the staging Storage Account Id for creating backup extension object store data during restore from vault."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria" options="kubernetes-pv-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.name" options="name">
<help short="Selected persistent volume claim name"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.storageClassName" options="storage-class-name">
<help short="Selected storage class name for restore operation"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria" options="kubernetes-storage-class-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.provisioner" options="provisioner">
<help short="Provisioner of the storage class"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.selectedStorageClassName" options="selected-storage-class-name">
<help short="Selected storage class name"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria" options="range-based-item-level-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.maxMatchingValue" options="max-matching-value">
<help short="maximum value for range prefix match"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.minMatchingValue" options="min-matching-value">
<help short="minimum value for range prefix match"/>
</arg>
</arg>
</item>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo" options="restore-files-target-info">
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails" options="target-details" required="True">
<help short="Destination of RestoreAsFiles operation, when destination is not a datasource"/>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.filePrefix" options="file-prefix" required="True" group="">
<help short="Restore operation may create multiple files inside location pointed by Url Below will be the common prefix for all of them"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.restoreTargetLocationType" options="restore-target-location-type" required="True" group="">
<help short="Denotes the target location where the data will be restored, string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}"/>
<enum>
<item name="AzureBlobs" value="&quot;AzureBlobs&quot;"/>
<item name="AzureFiles" value="&quot;AzureFiles&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.targetResourceArmId" options="target-resource-arm-id" group="">
<help short="Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share. This is optional if the target subscription can be identified with the URL field. If not then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.url" options="url" required="True">
<help short="Url denoting the restore destination. It can point to container / file share etc"/>
</arg>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo" options="restore-target-info">
<arg type="@AuthCredentials_create" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceAuthCredentials" options="datasource-auth-credentials">
<help short="Credentials to use to authenticate with data source provider."/>
</arg>
<arg type="@Datasource_create" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceInfo" options="datasource-info" required="True">
<help short="Information of target DS"/>
</arg>
<arg type="@DatasourceSet_create" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceSetInfo" options="datasource-set-info">
<help short="Information of target DS Set"/>
</arg>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.recoveryOption" options="recovery-option" required="True">
<help short="Recovery Option"/>
<enum>
<item name="FailIfExists" value="&quot;FailIfExists&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.restoreLocation" options="restore-location">
<help short="Target Restore region"/>
</arg>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.sourceDataStoreType" options="source-data-store-type" required="True">
<help short="Gets or sets the type of the source data store."/>
<enum>
<item name="ArchiveStore" value="&quot;ArchiveStore&quot;"/>
<item name="OperationalStore" value="&quot;OperationalStore&quot;"/>
<item name="SnapshotStore" value="&quot;SnapshotStore&quot;"/>
<item name="VaultStore" value="&quot;VaultStore&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.sourceResourceId" options="source-resource-id">
<help short="Fully qualified Azure Resource Manager ID of the datasource which is being recovered."/>
</arg>
</arg>
</argGroup>
<operation operationId="BackupInstances_ValidateForRestore">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore">
<request method="post">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="restoreRequestObject" arg="$parameters.restoreRequestObject" required="True">
<prop type="object" name="identityDetails" arg="$parameters.restoreRequestObject.identityDetails">
<prop type="boolean" name="useSystemAssignedIdentity" arg="$parameters.restoreRequestObject.identityDetails.useSystemAssignedIdentity"/>
<prop type="string" name="userAssignedIdentityArmUrl" arg="$parameters.restoreRequestObject.identityDetails.userAssignedIdentityArmUrl"/>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest" value="&quot;AzureBackupRecoveryPointBasedRestoreRequest&quot;"/>
<item arg="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest" value="&quot;AzureBackupRecoveryTimeBasedRestoreRequest&quot;"/>
<item arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest" value="&quot;AzureBackupRestoreWithRehydrationRequest&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="resourceGuardOperationRequests" arg="$parameters.restoreRequestObject.resourceGuardOperationRequests">
<item type="string"/>
</prop>
<prop type="object" name="restoreTargetInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo" required="True">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo" value="&quot;ItemLevelRestoreTargetInfo&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo" value="&quot;RestoreFilesTargetInfo&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo" value="&quot;RestoreTargetInfo&quot;"/>
</enum>
</prop>
<prop type="string" name="recoveryOption" arg="$parameters.restoreRequestObject.restoreTargetInfo.recoveryOption" required="True">
<enum>
<item value="&quot;FailIfExists&quot;"/>
</enum>
</prop>
<prop type="string" name="restoreLocation" arg="$parameters.restoreRequestObject.restoreTargetInfo.restoreLocation"/>
<discriminator property="objectType" value="ItemLevelRestoreTargetInfo">
<prop type="object" name="datasourceAuthCredentials" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceAuthCredentials" cls="AuthCredentials_create">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials" value="&quot;SecretStoreBasedAuthCredentials&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="SecretStoreBasedAuthCredentials">
<prop type="object" name="secretStoreResource" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource">
<prop type="string" name="secretStoreType" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.secretStoreType" required="True">
<enum>
<item value="&quot;AzureKeyVault&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="uri" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.uri"/>
<prop type="string" name="value" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.value"/>
</prop>
</discriminator>
</prop>
<prop type="object" name="datasourceInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceInfo" required="True" cls="Datasource_create">
<prop type="string" name="datasourceType" arg="@Datasource_create.datasourceType"/>
<prop type="string" name="objectType" arg="@Datasource_create.objectType"/>
<prop type="string" name="resourceID" arg="@Datasource_create.resourceID" required="True"/>
<prop type="string" name="resourceLocation" arg="@Datasource_create.resourceLocation"/>
<prop type="string" name="resourceName" arg="@Datasource_create.resourceName"/>
<prop type="object" name="resourceProperties" arg="@Datasource_create.resourceProperties" cls="BaseResourceProperties_create">
<prop type="string" name="objectType" arg="@BaseResourceProperties_create.objectType" required="True">
<enum>
<item value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</prop>
</prop>
<prop type="string" name="resourceType" arg="@Datasource_create.resourceType"/>
<prop type="string" name="resourceUri" arg="@Datasource_create.resourceUri"/>
</prop>
<prop type="object" name="datasourceSetInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceSetInfo" cls="DatasourceSet_create">
<prop type="string" name="datasourceType" arg="@DatasourceSet_create.datasourceType"/>
<prop type="string" name="objectType" arg="@DatasourceSet_create.objectType"/>
<prop type="string" name="resourceID" arg="@DatasourceSet_create.resourceID" required="True"/>
<prop type="string" name="resourceLocation" arg="@DatasourceSet_create.resourceLocation"/>
<prop type="string" name="resourceName" arg="@DatasourceSet_create.resourceName"/>
<prop type="@BaseResourceProperties_create" name="resourceProperties" arg="@DatasourceSet_create.resourceProperties"/>
<prop type="string" name="resourceType" arg="@DatasourceSet_create.resourceType"/>
<prop type="string" name="resourceUri" arg="@DatasourceSet_create.resourceUri"/>
</prop>
<prop type="array<object>" name="restoreCriteria" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria" required="True">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria" value="&quot;ItemPathBasedRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria" value="&quot;KubernetesClusterRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria" value="&quot;KubernetesClusterVaultTierRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria" value="&quot;KubernetesPVRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria" value="&quot;KubernetesStorageClassRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria" value="&quot;RangeBasedItemLevelRestoreCriteria&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="ItemPathBasedRestoreCriteria">
<prop type="boolean" name="isPathRelativeToBackupItem" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.isPathRelativeToBackupItem" required="True"/>
<prop type="string" name="itemPath" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.itemPath" required="True"/>
<prop type="array<string>" name="subItemPathPrefix" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.subItemPathPrefix">
<item type="string"/>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterRestoreCriteria">
<prop type="string" name="conflictPolicy" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.conflictPolicy">
<enum>
<item value="&quot;Patch&quot;"/>
<item value="&quot;Skip&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="excludedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.labelSelectors">
<item type="string"/>
</prop>
<prop type="object" name="namespaceMappings" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.namespaceMappings">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="persistentVolumeRestoreMode" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.persistentVolumeRestoreMode">
<enum>
<item value="&quot;RestoreWithVolumeData&quot;"/>
<item value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</prop>
<prop type="@NamespacedNameResource_create" name="resourceModifierReference" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.resourceModifierReference"/>
<prop type="array<object>" name="restoreHookReferences" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.restoreHookReferences">
<item type="object" cls="NamespacedNameResource_create">
<prop type="string" name="name" arg="@NamespacedNameResource_create.name"/>
<prop type="string" name="namespace" arg="@NamespacedNameResource_create.namespace"/>
</item>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterVaultTierRestoreCriteria">
<prop type="string" name="conflictPolicy" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.conflictPolicy">
<enum>
<item value="&quot;Patch&quot;"/>
<item value="&quot;Skip&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="excludedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.labelSelectors">
<item type="string"/>
</prop>
<prop type="object" name="namespaceMappings" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.namespaceMappings">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="persistentVolumeRestoreMode" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.persistentVolumeRestoreMode">
<enum>
<item value="&quot;RestoreWithVolumeData&quot;"/>
<item value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</prop>
<prop type="@NamespacedNameResource_create" name="resourceModifierReference" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.resourceModifierReference"/>
<prop type="array<@NamespacedNameResource_create>" name="restoreHookReferences" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.restoreHookReferences">
<item type="@NamespacedNameResource_create"/>
</prop>
<prop type="ResourceId" name="stagingResourceGroupId" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingResourceGroupId"/>
<prop type="ResourceId" name="stagingStorageAccountId" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingStorageAccountId"/>
</discriminator>
<discriminator property="objectType" value="KubernetesPVRestoreCriteria">
<prop type="string" name="name" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.name"/>
<prop type="string" name="storageClassName" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.storageClassName"/>
</discriminator>
<discriminator property="objectType" value="KubernetesStorageClassRestoreCriteria">
<prop type="string" name="provisioner" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.provisioner"/>
<prop type="string" name="selectedStorageClassName" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.selectedStorageClassName"/>
</discriminator>
<discriminator property="objectType" value="RangeBasedItemLevelRestoreCriteria">
<prop type="string" name="maxMatchingValue" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.maxMatchingValue"/>
<prop type="string" name="minMatchingValue" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.minMatchingValue"/>
</discriminator>
</item>
</prop>
</discriminator>
<discriminator property="objectType" value="RestoreFilesTargetInfo">
<prop type="object" name="targetDetails" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails" required="True">
<prop type="string" name="filePrefix" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.filePrefix" required="True"/>
<prop type="string" name="restoreTargetLocationType" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.restoreTargetLocationType" required="True">
<enum>
<item value="&quot;AzureBlobs&quot;"/>
<item value="&quot;AzureFiles&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="targetResourceArmId" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.targetResourceArmId"/>
<prop type="string" name="url" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.url" required="True"/>
</prop>
</discriminator>
<discriminator property="objectType" value="RestoreTargetInfo">
<prop type="@AuthCredentials_create" name="datasourceAuthCredentials" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceAuthCredentials"/>
<prop type="@Datasource_create" name="datasourceInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceInfo" required="True"/>
<prop type="@DatasourceSet_create" name="datasourceSetInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceSetInfo"/>
</discriminator>
</prop>
<prop type="string" name="sourceDataStoreType" arg="$parameters.restoreRequestObject.sourceDataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;SnapshotStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="sourceResourceId" arg="$parameters.restoreRequestObject.sourceResourceId"/>
<discriminator property="objectType" value="AzureBackupRecoveryPointBasedRestoreRequest">
<prop type="string" name="recoveryPointId" arg="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest.recoveryPointId" required="True"/>
</discriminator>
<discriminator property="objectType" value="AzureBackupRecoveryTimeBasedRestoreRequest">
<prop type="string" name="recoveryPointTime" arg="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest.recoveryPointTime" required="True"/>
</discriminator>
<discriminator property="objectType" value="AzureBackupRestoreWithRehydrationRequest">
<prop type="string" name="recoveryPointId" arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.recoveryPointId" required="True"/>
<prop type="string" name="rehydrationPriority" arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationPriority" required="True">
<enum>
<item value="&quot;High&quot;"/>
<item value="&quot;Invalid&quot;"/>
<item value="&quot;Standard&quot;"/>
</enum>
</prop>
<prop type="string" name="rehydrationRetentionDuration" arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationRetentionDuration" required="True"/>
</discriminator>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="jobId"/>
<prop const="True" type="string" name="objectType" required="True">
<default value="&quot;OperationJobExtendedInfo&quot;"/>
</prop>
</schema>
</json>
</body>
</response>
<response statusCode="202">
<header>
<item name="Azure-AsyncOperation"/>
<item name="Location"/>
<item name="Retry-After"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,179 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEpvYnM=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection job">
<command name="list" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEpvYnM=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="Jobs_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupJobs/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="activityID" required="True"/>
<prop type="string" name="backupInstanceFriendlyName" required="True"/>
<prop readOnly="True" type="string" name="backupInstanceId"/>
<prop type="string" name="dataSourceId" required="True"/>
<prop type="string" name="dataSourceLocation" required="True"/>
<prop type="string" name="dataSourceName" required="True"/>
<prop type="string" name="dataSourceSetName"/>
<prop type="string" name="dataSourceType" required="True"/>
<prop type="string" name="destinationDataStoreName"/>
<prop type="string" name="duration"/>
<prop readOnly="True" type="dateTime" name="endTime"/>
<prop readOnly="True" type="array<object>" name="errorDetails">
<item type="object" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</item>
</prop>
<prop type="string" name="etag"/>
<prop type="object" name="extendedInfo">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="backupInstanceState"/>
<prop readOnly="True" type="float64" name="dataTransferredInBytes"/>
<prop readOnly="True" type="string" name="recoveryDestination"/>
<prop type="object" name="sourceRecoverPoint" cls="RestoreJobRecoveryPointDetails_read">
<prop type="string" name="recoveryPointID"/>
<prop type="dateTime" name="recoveryPointTime"/>
</prop>
<prop readOnly="True" type="array<object>" name="subTasks">
<item type="object">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop type="integer32" name="taskId" required="True"/>
<prop type="string" name="taskName" required="True"/>
<prop readOnly="True" type="string" name="taskProgress"/>
<prop type="string" name="taskStatus" required="True"/>
</item>
</prop>
<prop readOnly="True" type="@RestoreJobRecoveryPointDetails_read" name="targetRecoverPoint"/>
<prop readOnly="True" type="array<object>" name="warningDetails">
<item type="object">
<prop type="string" name="resourceName"/>
<prop type="@UserFacingError_read" name="warning" required="True"/>
</item>
</prop>
</prop>
<prop type="boolean" name="isUserTriggered" required="True"/>
<prop type="string" name="operation" required="True"/>
<prop type="string" name="operationCategory" required="True"/>
<prop readOnly="True" type="string" name="policyId"/>
<prop readOnly="True" type="string" name="policyName"/>
<prop type="boolean" name="progressEnabled" required="True"/>
<prop readOnly="True" type="string" name="progressUrl"/>
<prop readOnly="True" type="string" name="rehydrationPriority"/>
<prop readOnly="True" type="string" name="restoreType"/>
<prop type="string" name="sourceDataStoreName"/>
<prop type="string" name="sourceResourceGroup" required="True"/>
<prop type="string" name="sourceSubscriptionID" required="True"/>
<prop type="dateTime" name="startTime" required="True"/>
<prop type="string" name="status" required="True"/>
<prop type="string" name="subscriptionId" required="True"/>
<prop type="array<string>" name="supportedActions" required="True">
<item type="string"/>
</prop>
<prop type="string" name="vaultName" required="True"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,180 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEpvYnMve2pvYklkfQ==/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection job">
<command name="show" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupjobs/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cEpvYnMve2pvYklkfQ==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Resource Id Arguments">
<arg type="string" var="$Path.jobId" options="job-id" required="True" group="Resource Id Arguments" idPart="child_name_1">
<help short="The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)."/>
</arg>
</argGroup>
<operation operationId="Jobs_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}">
<request method="get">
<path>
<param type="string" name="jobId" arg="$Path.jobId" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupJobs/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="activityID" required="True"/>
<prop type="string" name="backupInstanceFriendlyName" required="True"/>
<prop readOnly="True" type="string" name="backupInstanceId"/>
<prop type="string" name="dataSourceId" required="True"/>
<prop type="string" name="dataSourceLocation" required="True"/>
<prop type="string" name="dataSourceName" required="True"/>
<prop type="string" name="dataSourceSetName"/>
<prop type="string" name="dataSourceType" required="True"/>
<prop type="string" name="destinationDataStoreName"/>
<prop type="string" name="duration"/>
<prop readOnly="True" type="dateTime" name="endTime"/>
<prop readOnly="True" type="array<object>" name="errorDetails">
<item type="object" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</item>
</prop>
<prop type="string" name="etag"/>
<prop type="object" name="extendedInfo">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="backupInstanceState"/>
<prop readOnly="True" type="float64" name="dataTransferredInBytes"/>
<prop readOnly="True" type="string" name="recoveryDestination"/>
<prop type="object" name="sourceRecoverPoint" cls="RestoreJobRecoveryPointDetails_read">
<prop type="string" name="recoveryPointID"/>
<prop type="dateTime" name="recoveryPointTime"/>
</prop>
<prop readOnly="True" type="array<object>" name="subTasks">
<item type="object">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop type="integer32" name="taskId" required="True"/>
<prop type="string" name="taskName" required="True"/>
<prop readOnly="True" type="string" name="taskProgress"/>
<prop type="string" name="taskStatus" required="True"/>
</item>
</prop>
<prop readOnly="True" type="@RestoreJobRecoveryPointDetails_read" name="targetRecoverPoint"/>
<prop readOnly="True" type="array<object>" name="warningDetails">
<item type="object">
<prop type="string" name="resourceName"/>
<prop type="@UserFacingError_read" name="warning" required="True"/>
</item>
</prop>
</prop>
<prop type="boolean" name="isUserTriggered" required="True"/>
<prop type="string" name="operation" required="True"/>
<prop type="string" name="operationCategory" required="True"/>
<prop readOnly="True" type="string" name="policyId"/>
<prop readOnly="True" type="string" name="policyName"/>
<prop type="boolean" name="progressEnabled" required="True"/>
<prop readOnly="True" type="string" name="progressUrl"/>
<prop readOnly="True" type="string" name="rehydrationPriority"/>
<prop readOnly="True" type="string" name="restoreType"/>
<prop type="string" name="sourceDataStoreName"/>
<prop type="string" name="sourceResourceGroup" required="True"/>
<prop type="string" name="sourceSubscriptionID" required="True"/>
<prop type="dateTime" name="startTime" required="True"/>
<prop type="string" name="status" required="True"/>
<prop type="string" name="subscriptionId" required="True"/>
<prop type="array<string>" name="supportedActions" required="True">
<item type="string"/>
</prop>
<prop type="string" name="vaultName" required="True"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,266 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFBvbGljaWVz/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-policy">
<command name="list" version="2024-04-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backuppolicies" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFBvbGljaWVz/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="BackupPolicies_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupPolicies/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="array<string>" name="datasourceTypes" required="True">
<item type="string"/>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;BackupPolicy&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="BackupPolicy">
<prop type="array<object>" name="policyRules" required="True">
<item type="object">
<prop type="string" name="name" required="True"/>
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureBackupRule&quot;"/>
<item value="&quot;AzureRetentionRule&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureBackupRule">
<prop type="object" name="backupParameters">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureBackupParams&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureBackupParams">
<prop type="string" name="backupType" required="True"/>
</discriminator>
</prop>
<prop type="object" name="dataStore" required="True" cls="DataStoreInfoBase_read">
<prop type="string" name="dataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="objectType" required="True"/>
</prop>
<prop type="object" name="trigger" required="True">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AdhocBasedTriggerContext&quot;"/>
<item value="&quot;ScheduleBasedTriggerContext&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AdhocBasedTriggerContext">
<prop type="object" name="taggingCriteria" required="True">
<prop type="object" name="tagInfo" cls="RetentionTag_read">
<prop readOnly="True" type="string" name="eTag"/>
<prop readOnly="True" type="string" name="id"/>
<prop type="string" name="tagName" required="True"/>
</prop>
</prop>
</discriminator>
<discriminator property="objectType" value="ScheduleBasedTriggerContext">
<prop type="object" name="schedule" required="True">
<prop type="array<string>" name="repeatingTimeIntervals" required="True">
<item type="string"/>
</prop>
<prop type="string" name="timeZone"/>
</prop>
<prop type="array<object>" name="taggingCriteria" required="True">
<item type="object">
<prop type="array<object>" name="criteria">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;ScheduleBasedBackupCriteria&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="ScheduleBasedBackupCriteria">
<prop type="array<string>" name="absoluteCriteria">
<item type="string">
<enum>
<item value="&quot;AllBackup&quot;"/>
<item value="&quot;FirstOfDay&quot;"/>
<item value="&quot;FirstOfMonth&quot;"/>
<item value="&quot;FirstOfWeek&quot;"/>
<item value="&quot;FirstOfYear&quot;"/>
</enum>
</item>
</prop>
<prop type="array<object>" name="daysOfMonth">
<item type="object">
<prop type="integer32" name="date"/>
<prop type="boolean" name="isLast"/>
</item>
</prop>
<prop type="array<string>" name="daysOfTheWeek">
<item type="string">
<enum>
<item value="&quot;Friday&quot;"/>
<item value="&quot;Monday&quot;"/>
<item value="&quot;Saturday&quot;"/>
<item value="&quot;Sunday&quot;"/>
<item value="&quot;Thursday&quot;"/>
<item value="&quot;Tuesday&quot;"/>
<item value="&quot;Wednesday&quot;"/>
</enum>
</item>
</prop>
<prop type="array<string>" name="monthsOfYear">
<item type="string">
<enum>
<item value="&quot;April&quot;"/>
<item value="&quot;August&quot;"/>
<item value="&quot;December&quot;"/>
<item value="&quot;February&quot;"/>
<item value="&quot;January&quot;"/>
<item value="&quot;July&quot;"/>
<item value="&quot;June&quot;"/>
<item value="&quot;March&quot;"/>
<item value="&quot;May&quot;"/>
<item value="&quot;November&quot;"/>
<item value="&quot;October&quot;"/>
<item value="&quot;September&quot;"/>
</enum>
</item>
</prop>
<prop type="array<dateTime>" name="scheduleTimes">
<item type="dateTime"/>
</prop>
<prop type="array<string>" name="weeksOfTheMonth">
<item type="string">
<enum>
<item value="&quot;First&quot;"/>
<item value="&quot;Fourth&quot;"/>
<item value="&quot;Last&quot;"/>
<item value="&quot;Second&quot;"/>
<item value="&quot;Third&quot;"/>
</enum>
</item>
</prop>
</discriminator>
</item>
</prop>
<prop type="boolean" name="isDefault" required="True"/>
<prop type="@RetentionTag_read" name="tagInfo" required="True"/>
<prop type="integer64" name="taggingPriority" required="True"/>
</item>
</prop>
</discriminator>
</prop>
</discriminator>
<discriminator property="objectType" value="AzureRetentionRule">
<prop type="boolean" name="isDefault"/>
<prop type="array<object>" name="lifecycles" required="True">
<item type="object">
<prop type="object" name="deleteAfter" required="True">
<prop type="string" name="duration" required="True"/>
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AbsoluteDeleteOption&quot;"/>
</enum>
</prop>
</prop>
<prop type="@DataStoreInfoBase_read" name="sourceDataStore" required="True"/>
<prop type="array<object>" name="targetDataStoreCopySettings">
<item type="object">
<prop type="object" name="copyAfter" required="True">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;CopyOnExpiryOption&quot;"/>
<item value="&quot;CustomCopyOption&quot;"/>
<item value="&quot;ImmediateCopyOption&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="CustomCopyOption">
<prop type="string" name="duration"/>
</discriminator>
</prop>
<prop type="@DataStoreInfoBase_read" name="dataStore" required="True"/>
</item>
</prop>
</item>
</prop>
</discriminator>
</item>
</prop>
</discriminator>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVz/V/MjAyNC0wNC0wMQ=="}], "commandGroups": [{"name": "dataprotection backup-vault resource-guard-mapping", "commands": [{"name": "list", "version": "2024-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVz/V/MjAyNC0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.vaultName", "options": ["v", "vault-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the backup vault."}}]}], "operations": [{"operationId": "DppResourceGuardProxy_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "vaultName", "arg": "$Path.vaultName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupResourceGuardProxies/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "lastUpdatedTime"}, {"type": "array<object>", "name": "resourceGuardOperationDetails", "item": {"type": "object", "props": [{"type": "string", "name": "defaultResourceRequest"}, {"type": "string", "name": "vaultCriticalOperation"}]}}, {"type": "string", "name": "resourceGuardResourceId"}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}

Просмотреть файл

@ -0,0 +1,94 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVz/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-vault resource-guard-mapping">
<command name="list" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVz/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="DppResourceGuardProxy_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupResourceGuardProxies/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="description"/>
<prop type="string" name="lastUpdatedTime"/>
<prop type="array<object>" name="resourceGuardOperationDetails">
<item type="object">
<prop type="string" name="defaultResourceRequest"/>
<prop type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="string" name="resourceGuardResourceId"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,434 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVzL3tyZXNvdXJjZUd1YXJkUHJveHlOYW1lfQ==/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-vault resource-guard-mapping">
<command name="show" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVzL3tyZXNvdXJjZUd1YXJkUHJveHlOYW1lfQ==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardProxyName" options="resource-guard-mapping-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the resource guard mapping"/>
<default value="&quot;DppResourceGuardProxy&quot;"/>
<format pattern="^[A-Za-z0-9]*$"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="DppResourceGuardProxy_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardProxyName" arg="$Path.resourceGuardProxyName" required="True">
<format pattern="^[A-Za-z0-9]*$"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupResourceGuardProxies/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="description"/>
<prop type="string" name="lastUpdatedTime"/>
<prop type="array<object>" name="resourceGuardOperationDetails">
<item type="object">
<prop type="string" name="defaultResourceRequest"/>
<prop type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="string" name="resourceGuardResourceId"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="delete" version="2024-04-01" confirmation="Are you sure you want to perform this operation?">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVzL3tyZXNvdXJjZUd1YXJkUHJveHlOYW1lfQ==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardProxyName" options="resource-guard-mapping-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the resource guard mapping"/>
<format pattern="^[A-Za-z0-9]*$"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="DppResourceGuardProxy_Delete">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}">
<request method="delete">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardProxyName" arg="$Path.resourceGuardProxyName" required="True">
<format pattern="^[A-Za-z0-9]*$"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="204"/>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
<command name="create" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVzL3tyZXNvdXJjZUd1YXJkUHJveHlOYW1lfQ==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardProxyName" options="resource-guard-mapping-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the resource guard mapping"/>
<default value="&quot;DppResourceGuardProxy&quot;"/>
<format pattern="^[A-Za-z0-9]*$"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Properties">
<arg type="string" var="$parameters.properties.description" options="description" hide="True" group="Properties">
<help short="-"/>
</arg>
<arg type="string" var="$parameters.properties.lastUpdatedTime" options="last-updated-time" hide="True" group="Properties">
<help short="-"/>
</arg>
<arg type="array<object>" var="$parameters.properties.resourceGuardOperationDetails" options="resource-guard-operation-details" hide="True" group="Properties">
<help short="-"/>
<item type="object">
<arg type="string" var="$parameters.properties.resourceGuardOperationDetails[].defaultResourceRequest" options="default-resource-request"/>
<arg type="string" var="$parameters.properties.resourceGuardOperationDetails[].vaultCriticalOperation" options="vault-critical-operation"/>
</item>
</arg>
<arg type="string" var="$parameters.properties.resourceGuardResourceId" options="resource-guard-resource-id resource-guard-id" group="Properties">
<help short="ARM Id of the resource guard to be mapped to"/>
</arg>
</argGroup>
<operation operationId="DppResourceGuardProxy_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}">
<request method="put">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardProxyName" arg="$Path.resourceGuardProxyName" required="True">
<format pattern="^[A-Za-z0-9]*$"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="properties">
<prop type="string" name="description" arg="$parameters.properties.description"/>
<prop type="string" name="lastUpdatedTime" arg="$parameters.properties.lastUpdatedTime"/>
<prop type="array<object>" name="resourceGuardOperationDetails" arg="$parameters.properties.resourceGuardOperationDetails">
<item type="object">
<prop type="string" name="defaultResourceRequest" arg="$parameters.properties.resourceGuardOperationDetails[].defaultResourceRequest"/>
<prop type="string" name="vaultCriticalOperation" arg="$parameters.properties.resourceGuardOperationDetails[].vaultCriticalOperation"/>
</item>
</prop>
<prop type="string" name="resourceGuardResourceId" arg="$parameters.properties.resourceGuardResourceId"/>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupResourceGuardProxies/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="description"/>
<prop type="string" name="lastUpdatedTime"/>
<prop type="array<object>" name="resourceGuardOperationDetails">
<item type="object">
<prop type="string" name="defaultResourceRequest"/>
<prop type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="string" name="resourceGuardResourceId"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="update" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/backupresourceguardproxies/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2JhY2t1cFJlc291cmNlR3VhcmRQcm94aWVzL3tyZXNvdXJjZUd1YXJkUHJveHlOYW1lfQ==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardProxyName" options="resource-guard-mapping-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the resource guard mapping"/>
<format pattern="^[A-Za-z0-9]*$"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Properties">
<arg nullable="True" type="string" var="$parameters.properties.description" options="description" hide="True" group="Properties">
<help short="-"/>
</arg>
<arg nullable="True" type="string" var="$parameters.properties.lastUpdatedTime" options="last-updated-time" hide="True" group="Properties">
<help short="-"/>
</arg>
<arg nullable="True" type="array<object>" var="$parameters.properties.resourceGuardOperationDetails" options="resource-guard-operation-details" hide="True" group="Properties">
<help short="-"/>
<item nullable="True" type="object">
<arg nullable="True" type="string" var="$parameters.properties.resourceGuardOperationDetails[].defaultResourceRequest" options="default-resource-request"/>
<arg nullable="True" type="string" var="$parameters.properties.resourceGuardOperationDetails[].vaultCriticalOperation" options="vault-critical-operation"/>
</item>
</arg>
<arg nullable="True" type="string" var="$parameters.properties.resourceGuardResourceId" options="resource-guard-resource-id resource-guard-id" group="Properties">
<help short="ARM Id of the resource guard to be mapped to"/>
</arg>
</argGroup>
<operation operationId="DppResourceGuardProxy_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardProxyName" arg="$Path.resourceGuardProxyName" required="True">
<format pattern="^[A-Za-z0-9]*$"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object" cls="ResourceGuardProxyBaseResource_read">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupResourceGuardProxies/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="description"/>
<prop type="string" name="lastUpdatedTime"/>
<prop type="array<object>" name="resourceGuardOperationDetails">
<item type="object">
<prop type="string" name="defaultResourceRequest"/>
<prop type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="string" name="resourceGuardResourceId"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<operation>
<instanceUpdate ref="$Instance">
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="properties">
<prop type="string" name="description" arg="$parameters.properties.description"/>
<prop type="string" name="lastUpdatedTime" arg="$parameters.properties.lastUpdatedTime"/>
<prop type="array<object>" name="resourceGuardOperationDetails" arg="$parameters.properties.resourceGuardOperationDetails">
<item type="object">
<prop type="string" name="defaultResourceRequest" arg="$parameters.properties.resourceGuardOperationDetails[].defaultResourceRequest"/>
<prop type="string" name="vaultCriticalOperation" arg="$parameters.properties.resourceGuardOperationDetails[].vaultCriticalOperation"/>
</item>
</prop>
<prop type="string" name="resourceGuardResourceId" arg="$parameters.properties.resourceGuardResourceId"/>
</prop>
</schema>
</json>
</instanceUpdate>
</operation>
<operation operationId="DppResourceGuardProxy_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}">
<request method="put">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardProxyName" arg="$Path.resourceGuardProxyName" required="True">
<format pattern="^[A-Za-z0-9]*$"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json ref="$Instance"/>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="@ResourceGuardProxyBaseResource_read"/>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,273 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXM=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance deleted-backup-instance">
<command name="list" version="2024-04-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXM=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="DeletedBackupInstances_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/deletedBackupInstances/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="string" name="currentProtectionState">
<enum>
<item value="&quot;BackupSchedulesSuspended&quot;"/>
<item value="&quot;ConfiguringProtection&quot;"/>
<item value="&quot;ConfiguringProtectionFailed&quot;"/>
<item value="&quot;Invalid&quot;"/>
<item value="&quot;NotProtected&quot;"/>
<item value="&quot;ProtectionConfigured&quot;"/>
<item value="&quot;ProtectionError&quot;"/>
<item value="&quot;ProtectionStopped&quot;"/>
<item value="&quot;RetentionSchedulesSuspended&quot;"/>
<item value="&quot;SoftDeleted&quot;"/>
<item value="&quot;SoftDeleting&quot;"/>
<item value="&quot;UpdatingProtection&quot;"/>
</enum>
</prop>
<prop type="object" name="dataSourceInfo" required="True">
<prop type="string" name="datasourceType"/>
<prop type="string" name="objectType"/>
<prop type="string" name="resourceID" required="True"/>
<prop type="string" name="resourceLocation"/>
<prop type="string" name="resourceName"/>
<prop type="object" name="resourceProperties" cls="BaseResourceProperties_read">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</prop>
</prop>
<prop type="string" name="resourceType"/>
<prop type="string" name="resourceUri"/>
</prop>
<prop type="object" name="dataSourceSetInfo">
<prop type="string" name="datasourceType"/>
<prop type="string" name="objectType"/>
<prop type="string" name="resourceID" required="True"/>
<prop type="string" name="resourceLocation"/>
<prop type="string" name="resourceName"/>
<prop type="@BaseResourceProperties_read" name="resourceProperties"/>
<prop type="string" name="resourceType"/>
<prop type="string" name="resourceUri"/>
</prop>
<prop type="object" name="datasourceAuthCredentials">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;SecretStoreBasedAuthCredentials&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="SecretStoreBasedAuthCredentials">
<prop type="object" name="secretStoreResource">
<prop type="string" name="secretStoreType" required="True">
<enum>
<item value="&quot;AzureKeyVault&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="uri"/>
<prop type="string" name="value"/>
</prop>
</discriminator>
</prop>
<prop type="object" name="deletionInfo">
<prop readOnly="True" type="string" name="billingEndDate"/>
<prop readOnly="True" type="string" name="deleteActivityID"/>
<prop readOnly="True" type="string" name="deletionTime"/>
<prop readOnly="True" type="string" name="scheduledPurgeTime"/>
</prop>
<prop type="string" name="friendlyName"/>
<prop type="object" name="identityDetails">
<prop type="boolean" name="useSystemAssignedIdentity"/>
<prop type="string" name="userAssignedIdentityArmUrl"/>
</prop>
<prop type="string" name="objectType" required="True"/>
<prop type="object" name="policyInfo" required="True">
<prop type="string" name="policyId" required="True"/>
<prop type="object" name="policyParameters">
<prop type="array<object>" name="backupDatasourceParametersList">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;BlobBackupDatasourceParameters&quot;"/>
<item value="&quot;KubernetesClusterBackupDatasourceParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="BlobBackupDatasourceParameters">
<prop type="array<string>" name="containersList" required="True">
<item type="string"/>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterBackupDatasourceParameters">
<prop type="array<object>" name="backupHookReferences">
<item type="object">
<prop type="string" name="name"/>
<prop type="string" name="namespace"/>
</item>
</prop>
<prop type="array<string>" name="excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors">
<item type="string"/>
</prop>
<prop type="boolean" name="snapshotVolumes" required="True"/>
</discriminator>
</item>
</prop>
<prop type="array<object>" name="dataStoreParametersList">
<item type="object">
<prop type="string" name="dataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureOperationalStoreParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureOperationalStoreParameters">
<prop type="string" name="resourceGroupId"/>
</discriminator>
</item>
</prop>
</prop>
<prop readOnly="True" type="string" name="policyVersion"/>
</prop>
<prop readOnly="True" type="@UserFacingError_read" name="protectionErrorDetails"/>
<prop type="object" name="protectionStatus">
<prop type="object" name="errorDetails" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</prop>
<prop type="string" name="status">
<enum>
<item value="&quot;ConfiguringProtection&quot;"/>
<item value="&quot;ConfiguringProtectionFailed&quot;"/>
<item value="&quot;ProtectionConfigured&quot;"/>
<item value="&quot;ProtectionStopped&quot;"/>
<item value="&quot;SoftDeleted&quot;"/>
<item value="&quot;SoftDeleting&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="provisioningState"/>
<prop type="array<string>" name="resourceGuardOperationRequests">
<item type="string"/>
</prop>
<prop type="string" name="validationType">
<enum>
<item value="&quot;DeepValidation&quot;"/>
<item value="&quot;ShallowValidation&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,272 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXMve2JhY2t1cEluc3RhbmNlTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance deleted-backup-instance">
<command name="show" version="2024-04-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXMve2JhY2t1cEluc3RhbmNlTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name name n" required="True" idPart="child_name_1">
<help short="The name of the deleted backup instance"/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="DeletedBackupInstances_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}">
<request method="get">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/deletedBackupInstances/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="string" name="currentProtectionState">
<enum>
<item value="&quot;BackupSchedulesSuspended&quot;"/>
<item value="&quot;ConfiguringProtection&quot;"/>
<item value="&quot;ConfiguringProtectionFailed&quot;"/>
<item value="&quot;Invalid&quot;"/>
<item value="&quot;NotProtected&quot;"/>
<item value="&quot;ProtectionConfigured&quot;"/>
<item value="&quot;ProtectionError&quot;"/>
<item value="&quot;ProtectionStopped&quot;"/>
<item value="&quot;RetentionSchedulesSuspended&quot;"/>
<item value="&quot;SoftDeleted&quot;"/>
<item value="&quot;SoftDeleting&quot;"/>
<item value="&quot;UpdatingProtection&quot;"/>
</enum>
</prop>
<prop type="object" name="dataSourceInfo" required="True">
<prop type="string" name="datasourceType"/>
<prop type="string" name="objectType"/>
<prop type="string" name="resourceID" required="True"/>
<prop type="string" name="resourceLocation"/>
<prop type="string" name="resourceName"/>
<prop type="object" name="resourceProperties" cls="BaseResourceProperties_read">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</prop>
</prop>
<prop type="string" name="resourceType"/>
<prop type="string" name="resourceUri"/>
</prop>
<prop type="object" name="dataSourceSetInfo">
<prop type="string" name="datasourceType"/>
<prop type="string" name="objectType"/>
<prop type="string" name="resourceID" required="True"/>
<prop type="string" name="resourceLocation"/>
<prop type="string" name="resourceName"/>
<prop type="@BaseResourceProperties_read" name="resourceProperties"/>
<prop type="string" name="resourceType"/>
<prop type="string" name="resourceUri"/>
</prop>
<prop type="object" name="datasourceAuthCredentials">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;SecretStoreBasedAuthCredentials&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="SecretStoreBasedAuthCredentials">
<prop type="object" name="secretStoreResource">
<prop type="string" name="secretStoreType" required="True">
<enum>
<item value="&quot;AzureKeyVault&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="uri"/>
<prop type="string" name="value"/>
</prop>
</discriminator>
</prop>
<prop type="object" name="deletionInfo">
<prop readOnly="True" type="string" name="billingEndDate"/>
<prop readOnly="True" type="string" name="deleteActivityID"/>
<prop readOnly="True" type="string" name="deletionTime"/>
<prop readOnly="True" type="string" name="scheduledPurgeTime"/>
</prop>
<prop type="string" name="friendlyName"/>
<prop type="object" name="identityDetails">
<prop type="boolean" name="useSystemAssignedIdentity"/>
<prop type="string" name="userAssignedIdentityArmUrl"/>
</prop>
<prop type="string" name="objectType" required="True"/>
<prop type="object" name="policyInfo" required="True">
<prop type="string" name="policyId" required="True"/>
<prop type="object" name="policyParameters">
<prop type="array<object>" name="backupDatasourceParametersList">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;BlobBackupDatasourceParameters&quot;"/>
<item value="&quot;KubernetesClusterBackupDatasourceParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="BlobBackupDatasourceParameters">
<prop type="array<string>" name="containersList" required="True">
<item type="string"/>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterBackupDatasourceParameters">
<prop type="array<object>" name="backupHookReferences">
<item type="object">
<prop type="string" name="name"/>
<prop type="string" name="namespace"/>
</item>
</prop>
<prop type="array<string>" name="excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors">
<item type="string"/>
</prop>
<prop type="boolean" name="snapshotVolumes" required="True"/>
</discriminator>
</item>
</prop>
<prop type="array<object>" name="dataStoreParametersList">
<item type="object">
<prop type="string" name="dataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureOperationalStoreParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureOperationalStoreParameters">
<prop type="string" name="resourceGroupId"/>
</discriminator>
</item>
</prop>
</prop>
<prop readOnly="True" type="string" name="policyVersion"/>
</prop>
<prop readOnly="True" type="@UserFacingError_read" name="protectionErrorDetails"/>
<prop type="object" name="protectionStatus">
<prop type="object" name="errorDetails" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</prop>
<prop type="string" name="status">
<enum>
<item value="&quot;ConfiguringProtection&quot;"/>
<item value="&quot;ConfiguringProtectionFailed&quot;"/>
<item value="&quot;ProtectionConfigured&quot;"/>
<item value="&quot;ProtectionStopped&quot;"/>
<item value="&quot;SoftDeleted&quot;"/>
<item value="&quot;SoftDeleting&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="provisioningState"/>
<prop type="array<string>" name="resourceGuardOperationRequests">
<item type="string"/>
</prop>
<prop type="string" name="validationType">
<enum>
<item value="&quot;DeepValidation&quot;"/>
<item value="&quot;ShallowValidation&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Просмотреть файл

@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXMve2JhY2t1cEluc3RhbmNlTmFtZX0vdW5kZWxldGU=/V/MjAyNC0wNC0wMQ=="}], "commandGroups": [{"name": "dataprotection backup-instance deleted-backup-instance", "commands": [{"name": "undelete", "version": "2024-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete", "version": "2024-04-01", "swagger": "mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXMve2JhY2t1cEluc3RhbmNlTmFtZX0vdW5kZWxldGU=/V/MjAyNC0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.backupInstanceName", "options": ["n", "name", "backup-instance-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The name of the deleted backup instance"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.vaultName", "options": ["v", "vault-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the backup vault."}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "DeletedBackupInstances_Undelete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "backupInstanceName", "arg": "$Path.backupInstanceName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "vaultName", "arg": "$Path.vaultName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [202]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}]}]}

Просмотреть файл

@ -0,0 +1,49 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXMve2JhY2t1cEluc3RhbmNlTmFtZX0vdW5kZWxldGU=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance deleted-backup-instance">
<command name="undelete" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/deletedbackupinstances/{}/undelete" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L2RlbGV0ZWRCYWNrdXBJbnN0YW5jZXMve2JhY2t1cEluc3RhbmNlTmFtZX0vdW5kZWxldGU=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.backupInstanceName" options="backup-instance-name name n" required="True" group="" idPart="child_name_1">
<help short="The name of the deleted backup instance"/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<operation operationId="DeletedBackupInstances_Undelete">
<longRunning finalStateVia="azure-async-operation"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete">
<request method="post">
<path>
<param type="string" name="backupInstanceName" arg="$Path.backupInstanceName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="202"/>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,380 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/validateforbackup" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L3ZhbGlkYXRlRm9yQmFja3Vw/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection backup-instance">
<command name="validate-for-backup" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/backupvaults/{}/validateforbackup" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vYmFja3VwVmF1bHRzL3t2YXVsdE5hbWV9L3ZhbGlkYXRlRm9yQmFja3Vw/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vaultName" options="vault-name v" required="True" group="" idPart="name">
<help short="The name of the backup vault."/>
</arg>
</argGroup>
<argGroup name="Parameters">
<arg type="object" var="$parameters.backupInstance" options="backup-instance" required="True" group="Parameters">
<help short="Backup Instance"/>
<arg type="object" var="$parameters.backupInstance.dataSourceInfo" options="data-source-info" required="True">
<help short="Gets or sets the data source information."/>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.datasourceType" options="datasource-type">
<help short="DatasourceType of the resource."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.objectType" options="object-type">
<help short="Type of Datasource object, used to initialize the right inherited type"/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.resourceID" options="resource-id" required="True">
<help short="Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.resourceLocation" options="resource-location">
<help short="Location of datasource."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.resourceName" options="resource-name">
<help short="Unique identifier of the resource in the context of parent."/>
</arg>
<arg type="object" var="$parameters.backupInstance.dataSourceInfo.resourceProperties" options="resource-properties" cls="BaseResourceProperties_create">
<help short="Properties specific to data source"/>
<arg type="string" var="@BaseResourceProperties_create.objectType" options="object-type" required="True">
<help short="Type of the specific object - used for deserializing"/>
<enum>
<item name="DefaultResourceProperties" value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</arg>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.resourceType" options="resource-type">
<help short="Resource Type of Datasource."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceInfo.resourceUri" options="resource-uri">
<help short="Uri of the resource."/>
</arg>
</arg>
<arg type="object" var="$parameters.backupInstance.dataSourceSetInfo" options="data-source-set-info">
<help short="Gets or sets the data source set information."/>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.datasourceType" options="datasource-type">
<help short="DatasourceType of the resource."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.objectType" options="object-type">
<help short="Type of Datasource object, used to initialize the right inherited type"/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.resourceID" options="resource-id" required="True">
<help short="Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.resourceLocation" options="resource-location">
<help short="Location of datasource."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.resourceName" options="resource-name">
<help short="Unique identifier of the resource in the context of parent."/>
</arg>
<arg type="@BaseResourceProperties_create" var="$parameters.backupInstance.dataSourceSetInfo.resourceProperties" options="resource-properties">
<help short="Properties specific to data source set"/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.resourceType" options="resource-type">
<help short="Resource Type of Datasource."/>
</arg>
<arg type="string" var="$parameters.backupInstance.dataSourceSetInfo.resourceUri" options="resource-uri">
<help short="Uri of the resource."/>
</arg>
</arg>
<arg type="object" var="$parameters.backupInstance.datasourceAuthCredentials" options="datasource-auth-credentials">
<help short="Credentials to use to authenticate with data source provider."/>
<arg type="object" var="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials" options="secret-store-based-auth-credentials">
<arg type="object" var="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource" options="secret-store-resource">
<help short="Secret store resource"/>
<arg type="string" var="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource.secretStoreType" options="secret-store-type" required="True">
<help short="Gets or sets the type of secret store"/>
<enum>
<item name="AzureKeyVault" value="&quot;AzureKeyVault&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource.uri" options="uri">
<help short="Uri to get to the resource"/>
</arg>
<arg type="string" var="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource.value" options="value">
<help short="Gets or sets value stored in secret store resource"/>
</arg>
</arg>
</arg>
</arg>
<arg type="string" var="$parameters.backupInstance.friendlyName" options="friendly-name">
<help short="Gets or sets the Backup Instance friendly name."/>
</arg>
<arg type="object" var="$parameters.backupInstance.identityDetails" options="identity-details" group="">
<help short="Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned."/>
<arg type="boolean" var="$parameters.backupInstance.identityDetails.useSystemAssignedIdentity" options="use-system-assigned-identity">
<help short="Specifies if the BI is protected by System Identity."/>
</arg>
<arg type="string" var="$parameters.backupInstance.identityDetails.userAssignedIdentityArmUrl" options="user-assigned-identity-arm-url">
<help short="ARM URL for User Assigned Identity."/>
</arg>
</arg>
<arg type="string" var="$parameters.backupInstance.objectType" options="object-type" required="True"/>
<arg type="object" var="$parameters.backupInstance.policyInfo" options="policy-info" required="True">
<help short="Gets or sets the policy information."/>
<arg type="string" var="$parameters.backupInstance.policyInfo.policyId" options="policy-id" required="True"/>
<arg type="object" var="$parameters.backupInstance.policyInfo.policyParameters" options="policy-parameters">
<help short="Policy parameters for the backup instance"/>
<arg type="array<object>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList" options="backup-datasource-parameters-list">
<help short="Gets or sets the Backup Data Source Parameters"/>
<item type="object">
<arg type="object" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].BlobBackupDatasourceParameters" options="blob-backup-datasource-parameters">
<arg type="array<string>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].BlobBackupDatasourceParameters.containersList" options="containers-list" required="True">
<help short="List of containers to be backed up during configuration of backup of blobs"/>
<item type="string"/>
</arg>
</arg>
<arg type="object" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters" options="kubernetes-cluster-backup-datasource-parameters">
<arg type="array<object>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.backupHookReferences" options="backup-hook-references">
<help short="Gets or sets the backup hook references. This property sets the hook reference to be executed during backup."/>
<item type="object">
<arg type="string" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.backupHookReferences[].name" options="name">
<help short="Name of the resource"/>
</arg>
<arg type="string" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.backupHookReferences[].namespace" options="namespace">
<help short="Namespace in which the resource exists"/>
</arg>
</item>
</arg>
<arg type="array<string>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.excludedNamespaces" options="excluded-namespaces">
<help short="Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.excludedResourceTypes" options="excluded-resource-types">
<help short="Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore."/>
<item type="string"/>
</arg>
<arg type="boolean" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.includeClusterScopeResources" options="include-cluster-scope-resources" required="True">
<help short="Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore."/>
</arg>
<arg type="array<string>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.includedNamespaces" options="included-namespaces">
<help short="Gets or sets the include namespaces property. This property sets the namespaces to be included during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.includedResourceTypes" options="included-resource-types">
<help short="Gets or sets the include resource types property. This property sets the resource types to be included during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.labelSelectors" options="label-selectors">
<help short="Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore."/>
<item type="string"/>
</arg>
<arg type="boolean" var="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.snapshotVolumes" options="snapshot-volumes" required="True">
<help short="Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore."/>
</arg>
</arg>
</item>
</arg>
<arg type="array<object>" var="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList" options="data-store-parameters-list">
<help short="Gets or sets the DataStore Parameters"/>
<item type="object">
<arg type="object" var="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList[].AzureOperationalStoreParameters" options="azure-operational-store-parameters">
<arg type="string" var="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList[].AzureOperationalStoreParameters.resourceGroupId" options="resource-group-id">
<help short="Gets or sets the Snapshot Resource Group Uri."/>
</arg>
</arg>
<arg type="string" var="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList[].dataStoreType" options="data-store-type" required="True">
<help short="type of datastore; Operational/Vault/Archive"/>
<enum>
<item name="ArchiveStore" value="&quot;ArchiveStore&quot;"/>
<item name="OperationalStore" value="&quot;OperationalStore&quot;"/>
<item name="VaultStore" value="&quot;VaultStore&quot;"/>
</enum>
</arg>
</item>
</arg>
</arg>
</arg>
<arg type="array<string>" var="$parameters.backupInstance.resourceGuardOperationRequests" options="resource-guard-operation-requests">
<help short="ResourceGuardOperationRequests on which LAC check will be performed"/>
<item type="string"/>
</arg>
<arg type="string" var="$parameters.backupInstance.validationType" options="validation-type">
<help short="Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again."/>
<enum>
<item name="DeepValidation" value="&quot;DeepValidation&quot;"/>
<item name="ShallowValidation" value="&quot;ShallowValidation&quot;"/>
</enum>
</arg>
</arg>
</argGroup>
<operation operationId="BackupInstances_ValidateForBackup">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup">
<request method="post">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
<param type="string" name="vaultName" arg="$Path.vaultName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="backupInstance" arg="$parameters.backupInstance" required="True">
<prop type="object" name="dataSourceInfo" arg="$parameters.backupInstance.dataSourceInfo" required="True">
<prop type="string" name="datasourceType" arg="$parameters.backupInstance.dataSourceInfo.datasourceType"/>
<prop type="string" name="objectType" arg="$parameters.backupInstance.dataSourceInfo.objectType"/>
<prop type="string" name="resourceID" arg="$parameters.backupInstance.dataSourceInfo.resourceID" required="True"/>
<prop type="string" name="resourceLocation" arg="$parameters.backupInstance.dataSourceInfo.resourceLocation"/>
<prop type="string" name="resourceName" arg="$parameters.backupInstance.dataSourceInfo.resourceName"/>
<prop type="object" name="resourceProperties" arg="$parameters.backupInstance.dataSourceInfo.resourceProperties" cls="BaseResourceProperties_create">
<prop type="string" name="objectType" arg="@BaseResourceProperties_create.objectType" required="True">
<enum>
<item value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</prop>
</prop>
<prop type="string" name="resourceType" arg="$parameters.backupInstance.dataSourceInfo.resourceType"/>
<prop type="string" name="resourceUri" arg="$parameters.backupInstance.dataSourceInfo.resourceUri"/>
</prop>
<prop type="object" name="dataSourceSetInfo" arg="$parameters.backupInstance.dataSourceSetInfo">
<prop type="string" name="datasourceType" arg="$parameters.backupInstance.dataSourceSetInfo.datasourceType"/>
<prop type="string" name="objectType" arg="$parameters.backupInstance.dataSourceSetInfo.objectType"/>
<prop type="string" name="resourceID" arg="$parameters.backupInstance.dataSourceSetInfo.resourceID" required="True"/>
<prop type="string" name="resourceLocation" arg="$parameters.backupInstance.dataSourceSetInfo.resourceLocation"/>
<prop type="string" name="resourceName" arg="$parameters.backupInstance.dataSourceSetInfo.resourceName"/>
<prop type="@BaseResourceProperties_create" name="resourceProperties" arg="$parameters.backupInstance.dataSourceSetInfo.resourceProperties"/>
<prop type="string" name="resourceType" arg="$parameters.backupInstance.dataSourceSetInfo.resourceType"/>
<prop type="string" name="resourceUri" arg="$parameters.backupInstance.dataSourceSetInfo.resourceUri"/>
</prop>
<prop type="object" name="datasourceAuthCredentials" arg="$parameters.backupInstance.datasourceAuthCredentials">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials" value="&quot;SecretStoreBasedAuthCredentials&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="SecretStoreBasedAuthCredentials">
<prop type="object" name="secretStoreResource" arg="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource">
<prop type="string" name="secretStoreType" arg="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource.secretStoreType" required="True">
<enum>
<item value="&quot;AzureKeyVault&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="uri" arg="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource.uri"/>
<prop type="string" name="value" arg="$parameters.backupInstance.datasourceAuthCredentials.SecretStoreBasedAuthCredentials.secretStoreResource.value"/>
</prop>
</discriminator>
</prop>
<prop type="string" name="friendlyName" arg="$parameters.backupInstance.friendlyName"/>
<prop type="object" name="identityDetails" arg="$parameters.backupInstance.identityDetails">
<prop type="boolean" name="useSystemAssignedIdentity" arg="$parameters.backupInstance.identityDetails.useSystemAssignedIdentity"/>
<prop type="string" name="userAssignedIdentityArmUrl" arg="$parameters.backupInstance.identityDetails.userAssignedIdentityArmUrl"/>
</prop>
<prop type="string" name="objectType" arg="$parameters.backupInstance.objectType" required="True"/>
<prop type="object" name="policyInfo" arg="$parameters.backupInstance.policyInfo" required="True">
<prop type="string" name="policyId" arg="$parameters.backupInstance.policyInfo.policyId" required="True"/>
<prop type="object" name="policyParameters" arg="$parameters.backupInstance.policyInfo.policyParameters">
<prop type="array<object>" name="backupDatasourceParametersList" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].BlobBackupDatasourceParameters" value="&quot;BlobBackupDatasourceParameters&quot;"/>
<item arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters" value="&quot;KubernetesClusterBackupDatasourceParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="BlobBackupDatasourceParameters">
<prop type="array<string>" name="containersList" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].BlobBackupDatasourceParameters.containersList" required="True">
<item type="string"/>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterBackupDatasourceParameters">
<prop type="array<object>" name="backupHookReferences" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.backupHookReferences">
<item type="object">
<prop type="string" name="name" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.backupHookReferences[].name"/>
<prop type="string" name="namespace" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.backupHookReferences[].namespace"/>
</item>
</prop>
<prop type="array<string>" name="excludedNamespaces" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.labelSelectors">
<item type="string"/>
</prop>
<prop type="boolean" name="snapshotVolumes" arg="$parameters.backupInstance.policyInfo.policyParameters.backupDatasourceParametersList[].KubernetesClusterBackupDatasourceParameters.snapshotVolumes" required="True"/>
</discriminator>
</item>
</prop>
<prop type="array<object>" name="dataStoreParametersList" arg="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList">
<item type="object">
<prop type="string" name="dataStoreType" arg="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList[].dataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList[].AzureOperationalStoreParameters" value="&quot;AzureOperationalStoreParameters&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureOperationalStoreParameters">
<prop type="string" name="resourceGroupId" arg="$parameters.backupInstance.policyInfo.policyParameters.dataStoreParametersList[].AzureOperationalStoreParameters.resourceGroupId"/>
</discriminator>
</item>
</prop>
</prop>
</prop>
<prop type="array<string>" name="resourceGuardOperationRequests" arg="$parameters.backupInstance.resourceGuardOperationRequests">
<item type="string"/>
</prop>
<prop type="string" name="validationType" arg="$parameters.backupInstance.validationType">
<enum>
<item value="&quot;DeepValidation&quot;"/>
<item value="&quot;ShallowValidation&quot;"/>
</enum>
</prop>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="jobId"/>
<prop const="True" type="string" name="objectType" required="True">
<default value="&quot;OperationJobExtendedInfo&quot;"/>
</prop>
</schema>
</json>
</body>
</response>
<response statusCode="202">
<header>
<item name="Azure-AsyncOperation"/>
<item name="Location"/>
<item name="Retry-After"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,188 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejob" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmV0Y2hDcm9zc1JlZ2lvblJlc3RvcmVKb2I=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection cross-region-restore">
<command name="fetch-job" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejob" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmV0Y2hDcm9zc1JlZ2lvblJlc3RvcmVKb2I=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Parameters">
<arg type="string" var="$parameters.jobId" options="job-id" required="True" group="Parameters"/>
<arg type="string" var="$parameters.sourceBackupVaultId" options="source-backup-vault-id" required="True" group="Parameters"/>
<arg type="string" var="$parameters.sourceRegion" options="source-region" required="True" group="Parameters"/>
</argGroup>
<operation operationId="FetchCrossRegionRestoreJob_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJob">
<request method="post">
<path>
<param type="string" name="location" arg="$Path.location" required="True">
<format minLength="1"/>
</param>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="jobId" arg="$parameters.jobId" required="True"/>
<prop type="string" name="sourceBackupVaultId" arg="$parameters.sourceBackupVaultId" required="True"/>
<prop type="string" name="sourceRegion" arg="$parameters.sourceRegion" required="True"/>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupJobs/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="activityID" required="True"/>
<prop type="string" name="backupInstanceFriendlyName" required="True"/>
<prop readOnly="True" type="string" name="backupInstanceId"/>
<prop type="string" name="dataSourceId" required="True"/>
<prop type="string" name="dataSourceLocation" required="True"/>
<prop type="string" name="dataSourceName" required="True"/>
<prop type="string" name="dataSourceSetName"/>
<prop type="string" name="dataSourceType" required="True"/>
<prop type="string" name="destinationDataStoreName"/>
<prop type="string" name="duration"/>
<prop readOnly="True" type="dateTime" name="endTime"/>
<prop readOnly="True" type="array<object>" name="errorDetails">
<item type="object" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</item>
</prop>
<prop type="string" name="etag"/>
<prop type="object" name="extendedInfo">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="backupInstanceState"/>
<prop readOnly="True" type="float64" name="dataTransferredInBytes"/>
<prop readOnly="True" type="string" name="recoveryDestination"/>
<prop type="object" name="sourceRecoverPoint" cls="RestoreJobRecoveryPointDetails_read">
<prop type="string" name="recoveryPointID"/>
<prop type="dateTime" name="recoveryPointTime"/>
</prop>
<prop readOnly="True" type="array<object>" name="subTasks">
<item type="object">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop type="integer32" name="taskId" required="True"/>
<prop type="string" name="taskName" required="True"/>
<prop readOnly="True" type="string" name="taskProgress"/>
<prop type="string" name="taskStatus" required="True"/>
</item>
</prop>
<prop readOnly="True" type="@RestoreJobRecoveryPointDetails_read" name="targetRecoverPoint"/>
<prop readOnly="True" type="array<object>" name="warningDetails">
<item type="object">
<prop type="string" name="resourceName"/>
<prop type="@UserFacingError_read" name="warning" required="True"/>
</item>
</prop>
</prop>
<prop type="boolean" name="isUserTriggered" required="True"/>
<prop type="string" name="operation" required="True"/>
<prop type="string" name="operationCategory" required="True"/>
<prop readOnly="True" type="string" name="policyId"/>
<prop readOnly="True" type="string" name="policyName"/>
<prop type="boolean" name="progressEnabled" required="True"/>
<prop readOnly="True" type="string" name="progressUrl"/>
<prop readOnly="True" type="string" name="rehydrationPriority"/>
<prop readOnly="True" type="string" name="restoreType"/>
<prop type="string" name="sourceDataStoreName"/>
<prop type="string" name="sourceResourceGroup" required="True"/>
<prop type="string" name="sourceSubscriptionID" required="True"/>
<prop type="dateTime" name="startTime" required="True"/>
<prop type="string" name="status" required="True"/>
<prop type="string" name="subscriptionId" required="True"/>
<prop type="array<string>" name="supportedActions" required="True">
<item type="string"/>
</prop>
<prop type="string" name="vaultName" required="True"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,195 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejobs" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmV0Y2hDcm9zc1JlZ2lvblJlc3RvcmVKb2Jz/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection cross-region-restore">
<command name="fetch-jobs" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchcrossregionrestorejobs" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmV0Y2hDcm9zc1JlZ2lvblJlc3RvcmVKb2Jz/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Query.filter" options="filter" hide="True" group="">
<help short="OData filter options."/>
</arg>
</argGroup>
<argGroup name="Parameters">
<arg type="string" var="$parameters.sourceBackupVaultId" options="source-backup-vault-id" required="True" group="Parameters"/>
<arg type="string" var="$parameters.sourceRegion" options="source-region" required="True" group="Parameters"/>
</argGroup>
<operation operationId="FetchCrossRegionRestoreJobs_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJobs">
<request method="post">
<path>
<param type="string" name="location" arg="$Path.location" required="True">
<format minLength="1"/>
</param>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<param type="string" name="$filter" arg="$Query.filter"/>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="sourceBackupVaultId" arg="$parameters.sourceBackupVaultId" required="True"/>
<prop type="string" name="sourceRegion" arg="$parameters.sourceRegion" required="True"/>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupJobs/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="activityID" required="True"/>
<prop type="string" name="backupInstanceFriendlyName" required="True"/>
<prop readOnly="True" type="string" name="backupInstanceId"/>
<prop type="string" name="dataSourceId" required="True"/>
<prop type="string" name="dataSourceLocation" required="True"/>
<prop type="string" name="dataSourceName" required="True"/>
<prop type="string" name="dataSourceSetName"/>
<prop type="string" name="dataSourceType" required="True"/>
<prop type="string" name="destinationDataStoreName"/>
<prop type="string" name="duration"/>
<prop readOnly="True" type="dateTime" name="endTime"/>
<prop readOnly="True" type="array<object>" name="errorDetails">
<item type="object" cls="UserFacingError_read">
<prop type="string" name="code"/>
<prop type="array<@UserFacingError_read>" name="details">
<item type="@UserFacingError_read"/>
</prop>
<prop type="object" name="innerError" cls="InnerError_read">
<prop type="object" name="additionalInfo">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="code"/>
<prop type="@InnerError_read" name="embeddedInnerError"/>
</prop>
<prop type="boolean" name="isRetryable"/>
<prop type="boolean" name="isUserError"/>
<prop type="string" name="message"/>
<prop type="object" name="properties">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="recommendedAction">
<item type="string"/>
</prop>
<prop type="string" name="target"/>
</item>
</prop>
<prop type="string" name="etag"/>
<prop type="object" name="extendedInfo">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="backupInstanceState"/>
<prop readOnly="True" type="float64" name="dataTransferredInBytes"/>
<prop readOnly="True" type="string" name="recoveryDestination"/>
<prop type="object" name="sourceRecoverPoint" cls="RestoreJobRecoveryPointDetails_read">
<prop type="string" name="recoveryPointID"/>
<prop type="dateTime" name="recoveryPointTime"/>
</prop>
<prop readOnly="True" type="array<object>" name="subTasks">
<item type="object">
<prop type="object" name="additionalDetails">
<additionalProp>
<item readOnly="True" type="string"/>
</additionalProp>
</prop>
<prop type="integer32" name="taskId" required="True"/>
<prop type="string" name="taskName" required="True"/>
<prop readOnly="True" type="string" name="taskProgress"/>
<prop type="string" name="taskStatus" required="True"/>
</item>
</prop>
<prop readOnly="True" type="@RestoreJobRecoveryPointDetails_read" name="targetRecoverPoint"/>
<prop readOnly="True" type="array<object>" name="warningDetails">
<item type="object">
<prop type="string" name="resourceName"/>
<prop type="@UserFacingError_read" name="warning" required="True"/>
</item>
</prop>
</prop>
<prop type="boolean" name="isUserTriggered" required="True"/>
<prop type="string" name="operation" required="True"/>
<prop type="string" name="operationCategory" required="True"/>
<prop readOnly="True" type="string" name="policyId"/>
<prop readOnly="True" type="string" name="policyName"/>
<prop type="boolean" name="progressEnabled" required="True"/>
<prop readOnly="True" type="string" name="progressUrl"/>
<prop readOnly="True" type="string" name="rehydrationPriority"/>
<prop readOnly="True" type="string" name="restoreType"/>
<prop type="string" name="sourceDataStoreName"/>
<prop type="string" name="sourceResourceGroup" required="True"/>
<prop type="string" name="sourceSubscriptionID" required="True"/>
<prop type="dateTime" name="startTime" required="True"/>
<prop type="string" name="status" required="True"/>
<prop type="string" name="subscriptionId" required="True"/>
<prop type="array<string>" name="supportedActions" required="True">
<item type="string"/>
</prop>
<prop type="string" name="vaultName" required="True"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,152 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchsecondaryrecoverypoints" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmV0Y2hTZWNvbmRhcnlSZWNvdmVyeVBvaW50cw==/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection cross-region-restore">
<command name="fetch-secondary-recovery-points" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/fetchsecondaryrecoverypoints" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vZmV0Y2hTZWNvbmRhcnlSZWNvdmVyeVBvaW50cw==/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Query.filter" options="filter" hide="True" group="">
<help short="OData filter options."/>
</arg>
<arg type="string" var="$Query.skipToken" options="skip-token" hide="True" group="">
<help short="skipToken Filter."/>
</arg>
</argGroup>
<argGroup name="Parameters">
<arg type="string" var="$parameters.sourceBackupInstanceId" options="source-backup-instance-id" group="Parameters">
<help short="ARM Path of BackupInstance"/>
</arg>
<arg type="string" var="$parameters.sourceRegion" options="source-region" group="Parameters">
<help short="Source region in which BackupInstance is located"/>
</arg>
</argGroup>
<operation operationId="FetchSecondaryRecoveryPoints_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchSecondaryRecoveryPoints">
<request method="post">
<path>
<param type="string" name="location" arg="$Path.location" required="True">
<format minLength="1"/>
</param>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<param type="string" name="$filter" arg="$Query.filter"/>
<param type="string" name="$skipToken" arg="$Query.skipToken"/>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="sourceBackupInstanceId" arg="$parameters.sourceBackupInstanceId"/>
<prop type="string" name="sourceRegion" arg="$parameters.sourceRegion"/>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="objectType" required="True">
<enum>
<item value="&quot;AzureBackupDiscreteRecoveryPoint&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="AzureBackupDiscreteRecoveryPoint">
<prop readOnly="True" type="dateTime" name="expiryTime"/>
<prop type="string" name="friendlyName"/>
<prop type="string" name="policyName"/>
<prop type="string" name="policyVersion"/>
<prop type="array<object>" name="recoveryPointDataStoresDetails">
<item type="object">
<prop type="dateTime" name="creationTime"/>
<prop type="dateTime" name="expiryTime"/>
<prop type="string" name="id"/>
<prop type="string" name="metaData"/>
<prop readOnly="True" type="dateTime" name="rehydrationExpiryTime"/>
<prop readOnly="True" type="string" name="rehydrationStatus">
<enum>
<item value="&quot;COMPLETED&quot;"/>
<item value="&quot;CREATE_IN_PROGRESS&quot;"/>
<item value="&quot;DELETED&quot;"/>
<item value="&quot;DELETE_IN_PROGRESS&quot;"/>
<item value="&quot;FAILED&quot;"/>
</enum>
</prop>
<prop type="string" name="state"/>
<prop type="string" name="type"/>
<prop type="boolean" name="visible"/>
</item>
</prop>
<prop type="string" name="recoveryPointId"/>
<prop type="string" name="recoveryPointState">
<enum>
<item value="&quot;Completed&quot;"/>
<item value="&quot;Partial&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="recoveryPointTime" required="True"/>
<prop type="string" name="recoveryPointType"/>
<prop type="string" name="retentionTagName"/>
<prop type="string" name="retentionTagVersion"/>
</discriminator>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,656 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/validatecrossregionrestore" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vdmFsaWRhdGVDcm9zc1JlZ2lvblJlc3RvcmU=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection cross-region-restore">
<command name="validate" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/locations/{}/validatecrossregionrestore" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vbG9jYXRpb25zL3tsb2NhdGlvbn0vdmFsaWRhdGVDcm9zc1JlZ2lvblJlc3RvcmU=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="CrossRegionRestoreDetails">
<arg type="string" var="$parameters.crossRegionRestoreDetails.sourceBackupInstanceId" options="source-backup-instance-id" required="True" group="CrossRegionRestoreDetails"/>
<arg type="string" var="$parameters.crossRegionRestoreDetails.sourceRegion" options="source-region" required="True" group="CrossRegionRestoreDetails"/>
</argGroup>
<argGroup name="Parameters">
<arg type="object" var="$parameters.restoreRequestObject" options="restore-request-object" required="True" group="Parameters">
<help short="Gets or sets the restore request object."/>
<arg type="object" var="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest" options="azure-backup-recovery-point-based-restore-request">
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest.recoveryPointId" options="recovery-point-id" required="True" group="Default">
<help short="Recovery Point ID"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest" options="azure-backup-recovery-time-based-restore-request">
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest.recoveryPointTime" options="recovery-point-time" required="True">
<help short="The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest" options="azure-backup-restore-with-rehydration-request">
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.recoveryPointId" options="recovery-point-id" required="True" group="AzureBackupRestoreWithRehydrationRequest"/>
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationPriority" options="rehydration-priority" required="True" group="AzureBackupRestoreWithRehydrationRequest">
<help short="Priority to be used for rehydration. Values High or Standard"/>
<enum>
<item name="High" value="&quot;High&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
<item name="Standard" value="&quot;Standard&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationRetentionDuration" options="rehydration-retention-duration" required="True" group="AzureBackupRestoreWithRehydrationRequest">
<help short="Retention duration in ISO 8601 format i.e P10D ."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.identityDetails" options="identity-details" group="">
<help short="Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned."/>
<arg type="boolean" var="$parameters.restoreRequestObject.identityDetails.useSystemAssignedIdentity" options="use-system-assigned-identity">
<help short="Specifies if the BI is protected by System Identity."/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.identityDetails.userAssignedIdentityArmUrl" options="user-assigned-identity-arm-url">
<help short="ARM URL for User Assigned Identity."/>
</arg>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.resourceGuardOperationRequests" options="resource-guard-operation-requests">
<help short="ResourceGuardOperationRequests on which LAC check will be performed"/>
<item type="string"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo" options="restore-target-info" required="True">
<help short="Gets or sets the restore target information."/>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo" options="item-level-restore-target-info">
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceAuthCredentials" options="datasource-auth-credentials" cls="AuthCredentials_create">
<help short="Credentials to use to authenticate with data source provider."/>
<arg type="object" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials" options="secret-store-based-auth-credentials">
<arg type="object" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource" options="secret-store-resource">
<help short="Secret store resource"/>
<arg type="string" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.secretStoreType" options="secret-store-type" required="True">
<help short="Gets or sets the type of secret store"/>
<enum>
<item name="AzureKeyVault" value="&quot;AzureKeyVault&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
</enum>
</arg>
<arg type="string" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.uri" options="uri">
<help short="Uri to get to the resource"/>
</arg>
<arg type="string" var="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.value" options="value">
<help short="Gets or sets value stored in secret store resource"/>
</arg>
</arg>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceInfo" options="datasource-info" required="True" cls="Datasource_create">
<help short="Information of target DS"/>
<arg type="string" var="@Datasource_create.datasourceType" options="datasource-type">
<help short="DatasourceType of the resource."/>
</arg>
<arg type="string" var="@Datasource_create.objectType" options="object-type">
<help short="Type of Datasource object, used to initialize the right inherited type"/>
</arg>
<arg type="string" var="@Datasource_create.resourceID" options="resource-id" required="True">
<help short="Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault."/>
</arg>
<arg type="string" var="@Datasource_create.resourceLocation" options="resource-location">
<help short="Location of datasource."/>
</arg>
<arg type="string" var="@Datasource_create.resourceName" options="resource-name">
<help short="Unique identifier of the resource in the context of parent."/>
</arg>
<arg type="object" var="@Datasource_create.resourceProperties" options="resource-properties" cls="BaseResourceProperties_create">
<help short="Properties specific to data source"/>
<arg type="string" var="@BaseResourceProperties_create.objectType" options="object-type" required="True">
<help short="Type of the specific object - used for deserializing"/>
<enum>
<item name="DefaultResourceProperties" value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</arg>
</arg>
<arg type="string" var="@Datasource_create.resourceType" options="resource-type">
<help short="Resource Type of Datasource."/>
</arg>
<arg type="string" var="@Datasource_create.resourceUri" options="resource-uri">
<help short="Uri of the resource."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceSetInfo" options="datasource-set-info" cls="DatasourceSet_create">
<help short="Information of target DS Set"/>
<arg type="string" var="@DatasourceSet_create.datasourceType" options="datasource-type">
<help short="DatasourceType of the resource."/>
</arg>
<arg type="string" var="@DatasourceSet_create.objectType" options="object-type">
<help short="Type of Datasource object, used to initialize the right inherited type"/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceID" options="resource-id" required="True">
<help short="Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault."/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceLocation" options="resource-location">
<help short="Location of datasource."/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceName" options="resource-name">
<help short="Unique identifier of the resource in the context of parent."/>
</arg>
<arg type="@BaseResourceProperties_create" var="@DatasourceSet_create.resourceProperties" options="resource-properties">
<help short="Properties specific to data source set"/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceType" options="resource-type">
<help short="Resource Type of Datasource."/>
</arg>
<arg type="string" var="@DatasourceSet_create.resourceUri" options="resource-uri">
<help short="Uri of the resource."/>
</arg>
</arg>
<arg type="array<object>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria" options="restore-criteria" required="True">
<help short="Restore Criteria"/>
<item type="object">
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria" options="item-path-based-restore-criteria">
<arg type="boolean" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.isPathRelativeToBackupItem" options="is-path-relative-to-backup-item" required="True">
<help short="Flag to specify if the path is relative to backup item or full path"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.itemPath" options="item-path" required="True">
<help short="The path of the item to be restored. It could be the full path of the item or the path relative to the backup item"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.subItemPathPrefix" options="sub-item-path-prefix">
<help short="The list of prefix strings to be used as filter criteria during restore. These are relative to the item path specified."/>
<item type="string"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria" options="kubernetes-cluster-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.conflictPolicy" options="conflict-policy">
<help short="Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore."/>
<enum>
<item name="Patch" value="&quot;Patch&quot;"/>
<item name="Skip" value="&quot;Skip&quot;"/>
</enum>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedNamespaces" options="excluded-namespaces">
<help short="Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedResourceTypes" options="excluded-resource-types">
<help short="Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore."/>
<item type="string"/>
</arg>
<arg type="boolean" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includeClusterScopeResources" options="include-cluster-scope-resources" required="True">
<help short="Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore."/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedNamespaces" options="included-namespaces">
<help short="Gets or sets the include namespaces property. This property sets the namespaces to be included during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedResourceTypes" options="included-resource-types">
<help short="Gets or sets the include resource types property. This property sets the resource types to be included during restore."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.labelSelectors" options="label-selectors">
<help short="Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore."/>
<item type="string"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.namespaceMappings" options="namespace-mappings">
<help short="Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.persistentVolumeRestoreMode" options="persistent-volume-restore-mode">
<help short="Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored."/>
<enum>
<item name="RestoreWithVolumeData" value="&quot;RestoreWithVolumeData&quot;"/>
<item name="RestoreWithoutVolumeData" value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</arg>
<arg type="@NamespacedNameResource_create" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.resourceModifierReference" options="resource-modifier-reference">
<help short="Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore."/>
</arg>
<arg type="array<object>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.restoreHookReferences" options="restore-hook-references">
<help short="Gets or sets the restore hook references. This property sets the hook reference to be executed during restore."/>
<item type="object" cls="NamespacedNameResource_create">
<arg type="string" var="@NamespacedNameResource_create.name" options="name">
<help short="Name of the resource"/>
</arg>
<arg type="string" var="@NamespacedNameResource_create.namespace" options="namespace">
<help short="Namespace in which the resource exists"/>
</arg>
</item>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria" options="kubernetes-cluster-vault-tier-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.conflictPolicy" options="conflict-policy">
<help short="Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore from vault."/>
<enum>
<item name="Patch" value="&quot;Patch&quot;"/>
<item name="Skip" value="&quot;Skip&quot;"/>
</enum>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedNamespaces" options="excluded-namespaces">
<help short="Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore from vault."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedResourceTypes" options="excluded-resource-types">
<help short="Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore from vault."/>
<item type="string"/>
</arg>
<arg type="boolean" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includeClusterScopeResources" options="include-cluster-scope-resources" required="True">
<help short="Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore from vault."/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedNamespaces" options="included-namespaces">
<help short="Gets or sets the include namespaces property. This property sets the namespaces to be included during restore from vault."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedResourceTypes" options="included-resource-types">
<help short="Gets or sets the include resource types property. This property sets the resource types to be included during restore from vault."/>
<item type="string"/>
</arg>
<arg type="array<string>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.labelSelectors" options="label-selectors">
<help short="Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore from vault."/>
<item type="string"/>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.namespaceMappings" options="namespace-mappings">
<help short="Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore from vault."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.persistentVolumeRestoreMode" options="persistent-volume-restore-mode">
<help short="Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored from vault."/>
<enum>
<item name="RestoreWithVolumeData" value="&quot;RestoreWithVolumeData&quot;"/>
<item name="RestoreWithoutVolumeData" value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</arg>
<arg type="@NamespacedNameResource_create" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.resourceModifierReference" options="resource-modifier-reference">
<help short="Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore."/>
</arg>
<arg type="array<@NamespacedNameResource_create>" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.restoreHookReferences" options="restore-hook-references">
<help short="Gets or sets the restore hook references. This property sets the hook reference to be executed during restore from vault."/>
<item type="@NamespacedNameResource_create"/>
</arg>
<arg type="ResourceId" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingResourceGroupId" options="staging-resource-group-id">
<help short="Gets or sets the staging RG Id for creating staging disks and snapshots during restore from vault."/>
</arg>
<arg type="ResourceId" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingStorageAccountId" options="staging-storage-account-id">
<help short="Gets or sets the staging Storage Account Id for creating backup extension object store data during restore from vault."/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria" options="kubernetes-pv-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.name" options="name">
<help short="Selected persistent volume claim name"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.storageClassName" options="storage-class-name">
<help short="Selected storage class name for restore operation"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria" options="kubernetes-storage-class-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.provisioner" options="provisioner">
<help short="Provisioner of the storage class"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.selectedStorageClassName" options="selected-storage-class-name">
<help short="Selected storage class name"/>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria" options="range-based-item-level-restore-criteria">
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.maxMatchingValue" options="max-matching-value">
<help short="maximum value for range prefix match"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.minMatchingValue" options="min-matching-value">
<help short="minimum value for range prefix match"/>
</arg>
</arg>
</item>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo" options="restore-files-target-info">
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails" options="target-details" required="True">
<help short="Destination of RestoreAsFiles operation, when destination is not a datasource"/>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.filePrefix" options="file-prefix" required="True" group="">
<help short="Restore operation may create multiple files inside location pointed by Url below will be the common prefix for all of them"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.restoreTargetLocationType" options="restore-target-location-type" required="True" group="">
<help short="Denotes the target location where the data will be restored, string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}"/>
<enum>
<item name="AzureBlobs" value="&quot;AzureBlobs&quot;"/>
<item name="AzureFiles" value="&quot;AzureFiles&quot;"/>
<item name="Invalid" value="&quot;Invalid&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.targetResourceArmId" options="target-resource-arm-id" group="">
<help short="Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share." lines="This is optional if the target subscription can be identified with the URL field. If not then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states"/>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.url" options="url" required="True">
<help short="Url denoting the restore destination. It can point to container / file share etc"/>
</arg>
</arg>
</arg>
<arg type="object" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo" options="restore-target-info">
<arg type="@AuthCredentials_create" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceAuthCredentials" options="datasource-auth-credentials">
<help short="Credentials to use to authenticate with data source provider."/>
</arg>
<arg type="@Datasource_create" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceInfo" options="datasource-info" required="True">
<help short="Information of target DS"/>
</arg>
<arg type="@DatasourceSet_create" var="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceSetInfo" options="datasource-set-info">
<help short="Information of target DS Set"/>
</arg>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.recoveryOption" options="recovery-option" required="True">
<help short="Recovery Option"/>
<enum>
<item name="FailIfExists" value="&quot;FailIfExists&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.restoreTargetInfo.restoreLocation" options="restore-location">
<help short="Target Restore region"/>
</arg>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.sourceDataStoreType" options="source-data-store-type" required="True">
<help short="Gets or sets the type of the source data store."/>
<enum>
<item name="ArchiveStore" value="&quot;ArchiveStore&quot;"/>
<item name="OperationalStore" value="&quot;OperationalStore&quot;"/>
<item name="SnapshotStore" value="&quot;SnapshotStore&quot;"/>
<item name="VaultStore" value="&quot;VaultStore&quot;"/>
</enum>
</arg>
<arg type="string" var="$parameters.restoreRequestObject.sourceResourceId" options="source-resource-id">
<help short="Fully qualified Azure Resource Manager ID of the datasource which is being recovered."/>
</arg>
</arg>
</argGroup>
<operation operationId="BackupInstances_ValidateCrossRegionRestore">
<longRunning finalStateVia="location"/>
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/validateCrossRegionRestore">
<request method="post">
<path>
<param type="string" name="location" arg="$Path.location" required="True">
<format minLength="1"/>
</param>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="crossRegionRestoreDetails" required="True">
<prop type="string" name="sourceBackupInstanceId" arg="$parameters.crossRegionRestoreDetails.sourceBackupInstanceId" required="True"/>
<prop type="string" name="sourceRegion" arg="$parameters.crossRegionRestoreDetails.sourceRegion" required="True"/>
</prop>
<prop type="object" name="restoreRequestObject" arg="$parameters.restoreRequestObject" required="True">
<prop type="object" name="identityDetails" arg="$parameters.restoreRequestObject.identityDetails">
<prop type="boolean" name="useSystemAssignedIdentity" arg="$parameters.restoreRequestObject.identityDetails.useSystemAssignedIdentity"/>
<prop type="string" name="userAssignedIdentityArmUrl" arg="$parameters.restoreRequestObject.identityDetails.userAssignedIdentityArmUrl"/>
</prop>
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest" value="&quot;AzureBackupRecoveryPointBasedRestoreRequest&quot;"/>
<item arg="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest" value="&quot;AzureBackupRecoveryTimeBasedRestoreRequest&quot;"/>
<item arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest" value="&quot;AzureBackupRestoreWithRehydrationRequest&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="resourceGuardOperationRequests" arg="$parameters.restoreRequestObject.resourceGuardOperationRequests">
<item type="string"/>
</prop>
<prop type="object" name="restoreTargetInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo" required="True">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo" value="&quot;ItemLevelRestoreTargetInfo&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo" value="&quot;RestoreFilesTargetInfo&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo" value="&quot;RestoreTargetInfo&quot;"/>
</enum>
</prop>
<prop type="string" name="recoveryOption" arg="$parameters.restoreRequestObject.restoreTargetInfo.recoveryOption" required="True">
<enum>
<item value="&quot;FailIfExists&quot;"/>
</enum>
</prop>
<prop type="string" name="restoreLocation" arg="$parameters.restoreRequestObject.restoreTargetInfo.restoreLocation"/>
<discriminator property="objectType" value="ItemLevelRestoreTargetInfo">
<prop type="object" name="datasourceAuthCredentials" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceAuthCredentials" cls="AuthCredentials_create">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials" value="&quot;SecretStoreBasedAuthCredentials&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="SecretStoreBasedAuthCredentials">
<prop type="object" name="secretStoreResource" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource">
<prop type="string" name="secretStoreType" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.secretStoreType" required="True">
<enum>
<item value="&quot;AzureKeyVault&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="uri" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.uri"/>
<prop type="string" name="value" arg="@AuthCredentials_create.SecretStoreBasedAuthCredentials.secretStoreResource.value"/>
</prop>
</discriminator>
</prop>
<prop type="object" name="datasourceInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceInfo" required="True" cls="Datasource_create">
<prop type="string" name="datasourceType" arg="@Datasource_create.datasourceType"/>
<prop type="string" name="objectType" arg="@Datasource_create.objectType"/>
<prop type="string" name="resourceID" arg="@Datasource_create.resourceID" required="True"/>
<prop type="string" name="resourceLocation" arg="@Datasource_create.resourceLocation"/>
<prop type="string" name="resourceName" arg="@Datasource_create.resourceName"/>
<prop type="object" name="resourceProperties" arg="@Datasource_create.resourceProperties" cls="BaseResourceProperties_create">
<prop type="string" name="objectType" arg="@BaseResourceProperties_create.objectType" required="True">
<enum>
<item value="&quot;DefaultResourceProperties&quot;"/>
</enum>
</prop>
</prop>
<prop type="string" name="resourceType" arg="@Datasource_create.resourceType"/>
<prop type="string" name="resourceUri" arg="@Datasource_create.resourceUri"/>
</prop>
<prop type="object" name="datasourceSetInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.datasourceSetInfo" cls="DatasourceSet_create">
<prop type="string" name="datasourceType" arg="@DatasourceSet_create.datasourceType"/>
<prop type="string" name="objectType" arg="@DatasourceSet_create.objectType"/>
<prop type="string" name="resourceID" arg="@DatasourceSet_create.resourceID" required="True"/>
<prop type="string" name="resourceLocation" arg="@DatasourceSet_create.resourceLocation"/>
<prop type="string" name="resourceName" arg="@DatasourceSet_create.resourceName"/>
<prop type="@BaseResourceProperties_create" name="resourceProperties" arg="@DatasourceSet_create.resourceProperties"/>
<prop type="string" name="resourceType" arg="@DatasourceSet_create.resourceType"/>
<prop type="string" name="resourceUri" arg="@DatasourceSet_create.resourceUri"/>
</prop>
<prop type="array<object>" name="restoreCriteria" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria" required="True">
<item type="object">
<prop type="string" name="objectType" required="True">
<enum>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria" value="&quot;ItemPathBasedRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria" value="&quot;KubernetesClusterRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria" value="&quot;KubernetesClusterVaultTierRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria" value="&quot;KubernetesPVRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria" value="&quot;KubernetesStorageClassRestoreCriteria&quot;"/>
<item arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria" value="&quot;RangeBasedItemLevelRestoreCriteria&quot;"/>
</enum>
</prop>
<discriminator property="objectType" value="ItemPathBasedRestoreCriteria">
<prop type="boolean" name="isPathRelativeToBackupItem" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.isPathRelativeToBackupItem" required="True"/>
<prop type="string" name="itemPath" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.itemPath" required="True"/>
<prop type="array<string>" name="subItemPathPrefix" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].ItemPathBasedRestoreCriteria.subItemPathPrefix">
<item type="string"/>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterRestoreCriteria">
<prop type="string" name="conflictPolicy" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.conflictPolicy">
<enum>
<item value="&quot;Patch&quot;"/>
<item value="&quot;Skip&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="excludedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.labelSelectors">
<item type="string"/>
</prop>
<prop type="object" name="namespaceMappings" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.namespaceMappings">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="persistentVolumeRestoreMode" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.persistentVolumeRestoreMode">
<enum>
<item value="&quot;RestoreWithVolumeData&quot;"/>
<item value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</prop>
<prop type="@NamespacedNameResource_create" name="resourceModifierReference" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.resourceModifierReference"/>
<prop type="array<object>" name="restoreHookReferences" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterRestoreCriteria.restoreHookReferences">
<item type="object" cls="NamespacedNameResource_create">
<prop type="string" name="name" arg="@NamespacedNameResource_create.name"/>
<prop type="string" name="namespace" arg="@NamespacedNameResource_create.namespace"/>
</item>
</prop>
</discriminator>
<discriminator property="objectType" value="KubernetesClusterVaultTierRestoreCriteria">
<prop type="string" name="conflictPolicy" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.conflictPolicy">
<enum>
<item value="&quot;Patch&quot;"/>
<item value="&quot;Skip&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="excludedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="excludedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.excludedResourceTypes">
<item type="string"/>
</prop>
<prop type="boolean" name="includeClusterScopeResources" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includeClusterScopeResources" required="True"/>
<prop type="array<string>" name="includedNamespaces" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedNamespaces">
<item type="string"/>
</prop>
<prop type="array<string>" name="includedResourceTypes" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.includedResourceTypes">
<item type="string"/>
</prop>
<prop type="array<string>" name="labelSelectors" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.labelSelectors">
<item type="string"/>
</prop>
<prop type="object" name="namespaceMappings" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.namespaceMappings">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="string" name="persistentVolumeRestoreMode" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.persistentVolumeRestoreMode">
<enum>
<item value="&quot;RestoreWithVolumeData&quot;"/>
<item value="&quot;RestoreWithoutVolumeData&quot;"/>
</enum>
</prop>
<prop type="@NamespacedNameResource_create" name="resourceModifierReference" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.resourceModifierReference"/>
<prop type="array<@NamespacedNameResource_create>" name="restoreHookReferences" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.restoreHookReferences">
<item type="@NamespacedNameResource_create"/>
</prop>
<prop type="ResourceId" name="stagingResourceGroupId" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingResourceGroupId"/>
<prop type="ResourceId" name="stagingStorageAccountId" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesClusterVaultTierRestoreCriteria.stagingStorageAccountId"/>
</discriminator>
<discriminator property="objectType" value="KubernetesPVRestoreCriteria">
<prop type="string" name="name" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.name"/>
<prop type="string" name="storageClassName" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesPVRestoreCriteria.storageClassName"/>
</discriminator>
<discriminator property="objectType" value="KubernetesStorageClassRestoreCriteria">
<prop type="string" name="provisioner" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.provisioner"/>
<prop type="string" name="selectedStorageClassName" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].KubernetesStorageClassRestoreCriteria.selectedStorageClassName"/>
</discriminator>
<discriminator property="objectType" value="RangeBasedItemLevelRestoreCriteria">
<prop type="string" name="maxMatchingValue" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.maxMatchingValue"/>
<prop type="string" name="minMatchingValue" arg="$parameters.restoreRequestObject.restoreTargetInfo.ItemLevelRestoreTargetInfo.restoreCriteria[].RangeBasedItemLevelRestoreCriteria.minMatchingValue"/>
</discriminator>
</item>
</prop>
</discriminator>
<discriminator property="objectType" value="RestoreFilesTargetInfo">
<prop type="object" name="targetDetails" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails" required="True">
<prop type="string" name="filePrefix" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.filePrefix" required="True"/>
<prop type="string" name="restoreTargetLocationType" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.restoreTargetLocationType" required="True">
<enum>
<item value="&quot;AzureBlobs&quot;"/>
<item value="&quot;AzureFiles&quot;"/>
<item value="&quot;Invalid&quot;"/>
</enum>
</prop>
<prop type="string" name="targetResourceArmId" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.targetResourceArmId"/>
<prop type="string" name="url" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreFilesTargetInfo.targetDetails.url" required="True"/>
</prop>
</discriminator>
<discriminator property="objectType" value="RestoreTargetInfo">
<prop type="@AuthCredentials_create" name="datasourceAuthCredentials" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceAuthCredentials"/>
<prop type="@Datasource_create" name="datasourceInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceInfo" required="True"/>
<prop type="@DatasourceSet_create" name="datasourceSetInfo" arg="$parameters.restoreRequestObject.restoreTargetInfo.RestoreTargetInfo.datasourceSetInfo"/>
</discriminator>
</prop>
<prop type="string" name="sourceDataStoreType" arg="$parameters.restoreRequestObject.sourceDataStoreType" required="True">
<enum>
<item value="&quot;ArchiveStore&quot;"/>
<item value="&quot;OperationalStore&quot;"/>
<item value="&quot;SnapshotStore&quot;"/>
<item value="&quot;VaultStore&quot;"/>
</enum>
</prop>
<prop type="string" name="sourceResourceId" arg="$parameters.restoreRequestObject.sourceResourceId"/>
<discriminator property="objectType" value="AzureBackupRecoveryPointBasedRestoreRequest">
<prop type="string" name="recoveryPointId" arg="$parameters.restoreRequestObject.AzureBackupRecoveryPointBasedRestoreRequest.recoveryPointId" required="True"/>
</discriminator>
<discriminator property="objectType" value="AzureBackupRecoveryTimeBasedRestoreRequest">
<prop type="string" name="recoveryPointTime" arg="$parameters.restoreRequestObject.AzureBackupRecoveryTimeBasedRestoreRequest.recoveryPointTime" required="True"/>
</discriminator>
<discriminator property="objectType" value="AzureBackupRestoreWithRehydrationRequest">
<prop type="string" name="recoveryPointId" arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.recoveryPointId" required="True"/>
<prop type="string" name="rehydrationPriority" arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationPriority" required="True">
<enum>
<item value="&quot;High&quot;"/>
<item value="&quot;Invalid&quot;"/>
<item value="&quot;Standard&quot;"/>
</enum>
</prop>
<prop type="string" name="rehydrationRetentionDuration" arg="$parameters.restoreRequestObject.AzureBackupRestoreWithRehydrationRequest.rehydrationRetentionDuration" required="True"/>
</discriminator>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="jobId"/>
<prop const="True" type="string" name="objectType" required="True">
<default value="&quot;OperationJobExtendedInfo&quot;"/>
</prop>
</schema>
</json>
</body>
</response>
<response statusCode="202">
<header>
<item name="Azure-AsyncOperation"/>
<item name="Location"/>
<item name="Retry-After"/>
</header>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Просмотреть файл

@ -0,0 +1 @@
Reference [/subscriptions/{}/providers/microsoft.dataprotection/resourceguards 2024-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9yZXNvdXJjZWd1YXJkcw==/2024-04-01.xml)

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,457 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHMve3Jlc291cmNlR3VhcmRzTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<commandGroup name="dataprotection resource-guard">
<command name="show" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHMve3Jlc291cmNlR3VhcmRzTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardsName" options="resource-guard-name name n" required="True" group="" idPart="name">
<help short="The name of ResourceGuard"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="ResourceGuards_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardsName" arg="$Path.resourceGuardsName" required="True"/>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="eTag"/>
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="boolean" name="allowAutoApprovals"/>
<prop readOnly="True" type="string" name="description"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Provisioning&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Unknown&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="array<object>" name="resourceGuardOperations">
<item type="object">
<prop readOnly="True" type="string" name="requestResourceType"/>
<prop readOnly="True" type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="array<string>" name="vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="delete" version="2024-04-01" confirmation="Are you sure you want to perform this operation?">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHMve3Jlc291cmNlR3VhcmRzTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardsName" options="resource-guard-name name n" required="True" group="" idPart="name">
<help short="The name of ResourceGuard"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="ResourceGuards_Delete">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}">
<request method="delete">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardsName" arg="$Path.resourceGuardsName" required="True"/>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="204"/>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
<command name="create" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHMve3Jlc291cmNlR3VhcmRzTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardsName" options="resource-guard-name name n" required="True" group="" idPart="name">
<help short="The name of Resource Guard"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="array<string>" var="$parameters.properties.vaultCriticalOperationExclusionList" options="critical-operation-exclusion-list" hide="True" group="">
<help short="List of critical operations which are not protected by this resourceGuard."/>
<item type="string"/>
</arg>
</argGroup>
<argGroup name="Parameters">
<arg type="string" var="$parameters.eTag" options="e-tag" group="Parameters">
<help short="Optional ETag."/>
</arg>
<arg type="ResourceLocation" var="$parameters.location" options="location l" group="Parameters">
<help short="Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=<location>`."/>
</arg>
<arg type="object" var="$parameters.tags" options="tags" group="Parameters">
<help short="Space-separated tags: key[=value] [key[=value] ...]. Use &quot;&quot; to clear existing tags."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
</argGroup>
<operation operationId="ResourceGuards_Put">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}">
<request method="put">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardsName" arg="$Path.resourceGuardsName" required="True"/>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="eTag" arg="$parameters.eTag"/>
<prop type="ResourceLocation" name="location" arg="$parameters.location"/>
<prop type="object" name="properties">
<prop type="array<string>" name="vaultCriticalOperationExclusionList" arg="$parameters.properties.vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop type="object" name="tags" arg="$parameters.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="eTag"/>
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="boolean" name="allowAutoApprovals"/>
<prop readOnly="True" type="string" name="description"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Provisioning&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Unknown&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="array<object>" name="resourceGuardOperations">
<item type="object">
<prop readOnly="True" type="string" name="requestResourceType"/>
<prop readOnly="True" type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="array<string>" name="vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="update" version="2024-04-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.dataprotection/resourceguards/{}" version="2024-04-01" swagger="mgmt-plane/dataprotection/ResourceProviders/Microsoft.DataProtection/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVByb3RlY3Rpb24vcmVzb3VyY2VHdWFyZHMve3Jlc291cmNlR3VhcmRzTmFtZX0=/V/MjAyNC0wNC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="string" var="$Path.resourceGuardsName" options="resource-guard-name name n" required="True" group="" idPart="name">
<help short="The name of Resource Guard"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg nullable="True" type="array<string>" var="$parameters.properties.vaultCriticalOperationExclusionList" options="critical-operation-exclusion-list" group="">
<help short="List of critical operations which are not protected by this resourceGuard. Allowed values: deleteProtection, getSecurityPIN, updatePolicy, updateProtection."/>
<item nullable="True" type="string"/>
</arg>
<arg nullable="True" type="object" var="$parameters.tags" options="tags" group="">
<help short="Space-separated tags: key[=value] [key[=value] ...]. Use &quot;&quot; to clear existing tags."/>
<additionalProp>
<item nullable="True" type="string"/>
</additionalProp>
</arg>
</argGroup>
<argGroup name="Parameters">
<arg nullable="True" type="string" var="$parameters.eTag" options="e-tag" hide="True" group="Parameters">
<help short="Optional ETag."/>
</arg>
<arg nullable="True" type="ResourceLocation" var="$parameters.location" options="location l" hide="True" group="Parameters">
<help short="Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=<location>`."/>
</arg>
</argGroup>
<operation operationId="ResourceGuards_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardsName" arg="$Path.resourceGuardsName" required="True"/>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object" cls="ResourceGuardResource_read">
<prop type="string" name="eTag"/>
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop readOnly="True" type="boolean" name="allowAutoApprovals"/>
<prop readOnly="True" type="string" name="description"/>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Provisioning&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Unknown&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="array<object>" name="resourceGuardOperations">
<item type="object">
<prop readOnly="True" type="string" name="requestResourceType"/>
<prop readOnly="True" type="string" name="vaultCriticalOperation"/>
</item>
</prop>
<prop type="array<string>" name="vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<operation>
<instanceUpdate ref="$Instance">
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="string" name="eTag" arg="$parameters.eTag"/>
<prop type="ResourceLocation" name="location" arg="$parameters.location"/>
<prop type="object" name="properties">
<prop type="array<string>" name="vaultCriticalOperationExclusionList" arg="$parameters.properties.vaultCriticalOperationExclusionList">
<item type="string"/>
</prop>
</prop>
<prop type="object" name="tags" arg="$parameters.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
</schema>
</json>
</instanceUpdate>
</operation>
<operation operationId="ResourceGuards_Put">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}">
<request method="put">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="resourceGuardsName" arg="$Path.resourceGuardsName" required="True"/>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json ref="$Instance"/>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="@ResourceGuardResource_read"/>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>