Vaults - Create Or Update
创建或更新恢复服务保管库。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}?api-version=2025-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
|
vault
|
path | True |
string |
Vault 的名称 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| x-ms-authorization-auxiliary |
string |
请求正文
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| location | True |
string |
资源所在的地理位置 |
| etag |
string |
etag 的资源。 |
|
| identity |
资源的标识。 |
||
| properties |
保管库的属性。 |
||
| sku |
标识每个 Azure 资源的唯一系统标识符。 |
||
| tags |
object |
资源标记。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
资源“Vault”更新作成功 |
|
| 201 Created |
资源“Vault”创建作成功 标头
|
|
| Other Status Codes |
意外错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Create or Update Recovery Services vault
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "SystemAssigned"
},
"location": "West US",
"properties": {
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b"
},
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b"
},
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Create or Update Vault performing critical operation With MUA
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}
}
},
"location": "West US",
"properties": {
"encryption": {
"infrastructureEncryption": "Enabled",
"kekIdentity": {
"userAssignedIdentity": "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"
},
"keyVaultProperties": {
"keyUri": "https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"
}
},
"publicNetworkAccess": "Enabled",
"resourceGuardOperationRequests": [
"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/ankurResourceGuard1/providers/Microsoft.DataProtection/resourceGuards/ResourceGuard38-1/modifyEncryptionSettings/default"
]
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270436",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9219"
}
}
},
"location": "westus",
"properties": {
"encryption": {
"infrastructureEncryption": "Enabled",
"kekIdentity": {
"useSystemAssignedIdentity": false,
"userAssignedIdentity": "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"
},
"keyVaultProperties": {
"keyUri": "https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"
}
},
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Azure-AsyncOperation: /subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15
Retry-After: 10
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}
}
},
"location": "westus",
"properties": {
"encryption": {
"infrastructureEncryption": "Enabled",
"kekIdentity": {
"useSystemAssignedIdentity": false,
"userAssignedIdentity": "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"
},
"keyVaultProperties": {
"keyUri": "https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"
}
},
"provisioningState": "Provisioning",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Create or Update Vault with CustomerManagedKeys
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}
}
},
"location": "West US",
"properties": {
"encryption": {
"infrastructureEncryption": "Enabled",
"kekIdentity": {
"userAssignedIdentity": "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"
},
"keyVaultProperties": {
"keyUri": "https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"
}
},
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270436",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9219"
}
}
},
"location": "westus",
"properties": {
"encryption": {
"infrastructureEncryption": "Enabled",
"kekIdentity": {
"useSystemAssignedIdentity": false,
"userAssignedIdentity": "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"
},
"keyVaultProperties": {
"keyUri": "https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"
}
},
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Azure-AsyncOperation: /subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15
Retry-After: 10
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}
}
},
"location": "westus",
"properties": {
"encryption": {
"infrastructureEncryption": "Enabled",
"kekIdentity": {
"useSystemAssignedIdentity": false,
"userAssignedIdentity": "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"
},
"keyVaultProperties": {
"keyUri": "https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"
}
},
"provisioningState": "Provisioning",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Create or Update Vault With Monitoring Setting
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "SystemAssigned"
},
"location": "West US",
"properties": {
"monitoringSettings": {
"azureMonitorAlertSettings": {
"alertsForAllFailoverIssues": "Disabled",
"alertsForAllJobFailures": "Enabled",
"alertsForAllReplicationIssues": "Enabled"
},
"classicAlertSettings": {
"alertsForCriticalOperations": "Disabled",
"emailNotificationsForSiteRecovery": "Enabled"
}
},
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b"
},
"location": "westus",
"properties": {
"monitoringSettings": {
"azureMonitorAlertSettings": {
"alertsForAllFailoverIssues": "Disabled",
"alertsForAllJobFailures": "Enabled",
"alertsForAllReplicationIssues": "Enabled"
},
"classicAlertSettings": {
"alertsForCriticalOperations": "Disabled",
"emailNotificationsForSiteRecovery": "Enabled"
}
},
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b"
},
"location": "westus",
"properties": {
"monitoringSettings": {
"azureMonitorAlertSettings": {
"alertsForAllFailoverIssues": "Disabled",
"alertsForAllJobFailures": "Enabled",
"alertsForAllReplicationIssues": "Enabled"
},
"classicAlertSettings": {
"alertsForCriticalOperations": "Disabled",
"emailNotificationsForSiteRecovery": "Enabled"
}
},
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Create or Update Vault With Redundancy Setting
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "SystemAssigned"
},
"location": "West US",
"properties": {
"publicNetworkAccess": "Enabled",
"redundancySettings": {
"crossRegionRestore": "Enabled",
"standardTierStorageRedundancy": "GeoRedundant"
}
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b"
},
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"redundancySettings": {
"crossRegionRestore": "Enabled",
"standardTierStorageRedundancy": "GeoRedundant"
}
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b"
},
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"redundancySettings": {
"crossRegionRestore": "Enabled",
"standardTierStorageRedundancy": "GeoRedundant"
}
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Create or Update Vault with Source scan configuration
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "SystemAssigned"
},
"location": "West US",
"properties": {
"publicNetworkAccess": "Enabled",
"securitySettings": {
"sourceScanConfiguration": {
"sourceScanIdentity": {
"operationIdentityType": "SystemAssigned"
},
"state": "Enabled"
}
}
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2025-02-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "1be097b0-eb5e-4927-bac2-b24ee8716f64",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"securitySettings": {
"sourceScanConfiguration": {
"sourceScanIdentity": {
"operationIdentityType": "SystemAssigned"
},
"state": "Enabled"
}
}
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Azure-AsyncOperation: /subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15
Retry-After: 10
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "SystemAssigned",
"principalId": "1be097b0-eb5e-4927-bac2-b24ee8716f64",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
"location": "westus",
"properties": {
"provisioningState": "Provisioning",
"publicNetworkAccess": "Enabled",
"securitySettings": {
"sourceScanConfiguration": {
"sourceScanIdentity": {
"operationIdentityType": "SystemAssigned"
},
"state": "Enabled"
}
}
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Create or Update Vault with User Assigned Identity
示例请求
PUT https://management.azure.com/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample?api-version=2025-08-01
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}
}
},
"location": "West US",
"properties": {
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
}
}
示例响应
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270436",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9219"
}
}
},
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
Azure-AsyncOperation: /subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15
Retry-After: 10
{
"name": "swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}
}
},
"location": "westus",
"properties": {
"provisioningState": "Provisioning",
"publicNetworkAccess": "Enabled"
},
"sku": {
"name": "Standard"
},
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
}
}
定义
AlertsState
| 值 | 说明 |
|---|---|
| Enabled | |
| Disabled |
AssociatedIdentity
要用于作的标识详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| operationIdentityType |
应用于作的标识类型。 |
|
| userAssignedIdentity |
string |
如果 operationIdentityType 为 UserAssigned,则用于作的用户分配标识。 |
AzureMonitorAlertSettings
基于 Azure Monitor 的警报的设置
| 名称 | 类型 | 说明 |
|---|---|---|
| alertsForAllFailoverIssues | ||
| alertsForAllJobFailures | ||
| alertsForAllReplicationIssues |
BackupStorageVersion
备份存储版本
| 值 | 说明 |
|---|---|
| V1 | |
| V2 | |
| Unassigned |
BCDRSecurityLevel
用于业务连续性和灾难恢复的恢复服务保管库的安全级别
| 值 | 说明 |
|---|---|
| Poor | |
| Fair | |
| Good | |
| Excellent |
ClassicAlertSettings
经典警报的设置
| 名称 | 类型 | 说明 |
|---|---|---|
| alertsForCriticalOperations | ||
| emailNotificationsForSiteRecovery |
CloudError
Azure 备份的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
资源管理错误响应。 |
CmkKekIdentity
用于 CMK 的标识的详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| useSystemAssignedIdentity |
boolean |
指示应使用系统分配的标识。 与“userAssignedIdentity”字段互斥 |
| userAssignedIdentity |
string |
用户分配的标识用于授予权限,以防所使用的标识类型为 UserAssigned |
CmkKeyVaultProperties
托管 CMK 的 Key Vault 的属性
| 名称 | 类型 | 说明 |
|---|---|---|
| keyUri |
string |
客户管理的密钥的密钥 URI |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
CrossRegionRestore
在保管库上启用跨区域还原时显示的标志
| 值 | 说明 |
|---|---|
| Enabled | |
| Disabled |
CrossSubscriptionRestoreSettings
跨订阅还原设置的设置
| 名称 | 类型 | 说明 |
|---|---|---|
| crossSubscriptionRestoreState |
CrossSubscriptionRestoreState
| 值 | 说明 |
|---|---|
| Enabled | |
| Disabled | |
| PermanentlyDisabled |
EnhancedSecurityState
| 值 | 说明 |
|---|---|
| Invalid | |
| Enabled | |
| Disabled | |
| AlwaysON |
Error
资源管理错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
Error[] |
错误详细信息。 |
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
IdentityData
资源的标识。
| 名称 | 类型 | 说明 |
|---|---|---|
| principalId |
string |
资源标识的主体 ID。 |
| tenantId |
string |
资源的租户 ID。 |
| type |
使用的托管标识的类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将删除任何标识。 |
|
| userAssignedIdentities |
<string,
User |
与资源关联的用户分配标识的列表。 用户分配的标识字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 |
IdentityType
应用于作的标识类型。
| 值 | 说明 |
|---|---|
| SystemAssigned | |
| UserAssigned |
ImmutabilitySettings
保管库的不可变性设置
| 名称 | 类型 | 说明 |
|---|---|---|
| state |
ImmutabilityState
| 值 | 说明 |
|---|---|
| Disabled | |
| Unlocked | |
| Locked |
InfrastructureEncryptionState
启用/禁用双重加密状态
| 值 | 说明 |
|---|---|
| Enabled | |
| Disabled |
MonitoringSettings
保管库的监视设置
| 名称 | 类型 | 说明 |
|---|---|---|
| azureMonitorAlertSettings |
基于 Azure Monitor 的警报的设置 |
|
| classicAlertSettings |
经典警报的设置 |
MultiUserAuthorization
保管库的 MUA 设置
| 值 | 说明 |
|---|---|
| Invalid | |
| Enabled | |
| Disabled |
PrivateEndpoint
链接到专用终结点连接的专用终结点网络资源。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
获取或设置 ID。 |
PrivateEndpointConnection
专用终结点连接响应属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| groupIds |
专用终结点的组 ID |
|
| privateEndpoint |
链接到专用终结点连接的专用终结点网络资源。 |
|
| privateLinkServiceConnectionState |
获取或设置专用链接服务连接状态。 |
|
| provisioningState |
获取或设置专用终结点连接的预配状态。 |
PrivateEndpointConnectionStatus
获取或设置状态。
| 值 | 说明 |
|---|---|
| Pending | |
| Approved | |
| Rejected | |
| Disconnected |
PrivateEndpointConnectionVaultProperties
要作为 privateEndpointConnections 列表元素存储在保管库属性中的信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
ID 订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft的格式。[Service]/{resource}/{resourceName}/privateEndpointConnections/{connectionName}。 |
| location |
string |
专用终结点连接的位置 |
| name |
string |
专用终结点连接的名称 |
| properties |
专用终结点连接响应属性。 |
|
| type |
string |
类型,格式为 Microsoft.RecoveryServices/vaults/privateEndpointConnections |
PrivateLinkServiceConnectionState
获取或设置专用链接服务连接状态。
| 名称 | 类型 | 说明 |
|---|---|---|
| actionsRequired |
string |
获取或设置所需的作。 |
| description |
string |
获取或设置说明。 |
| status |
获取或设置状态。 |
ProvisioningState
获取或设置专用终结点连接的预配状态。
| 值 | 说明 |
|---|---|
| Succeeded | |
| Deleting | |
| Failed | |
| Pending |
PublicNetworkAccess
属性,用于启用或禁用来自公共客户端的资源提供程序入站网络流量
| 值 | 说明 |
|---|---|
| Enabled | |
| Disabled |
ResourceIdentityType
使用的托管标识的类型。 类型“SystemAssigned,UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将删除任何标识。
| 值 | 说明 |
|---|---|
| SystemAssigned | |
| None | |
| UserAssigned | |
| SystemAssigned, UserAssigned |
ResourceMoveState
移动操作后的资源状态
| 值 | 说明 |
|---|---|
| Unknown | |
| InProgress | |
| PrepareFailed | |
| CommitFailed | |
| PrepareTimedout | |
| CommitTimedout | |
| MoveSucceeded | |
| Failure | |
| CriticalFailure | |
| PartialSuccess |
RestoreSettings
还原保管库的设置
| 名称 | 类型 | 说明 |
|---|---|---|
| crossSubscriptionRestoreSettings |
CrossSubscriptionRestore 的设置 |
SecureScoreLevel
恢复服务保管库的安全分数
| 值 | 说明 |
|---|---|
| None | |
| Minimum | |
| Adequate | |
| Maximum |
SecuritySettings
保管库的安全设置
| 名称 | 类型 | 说明 |
|---|---|---|
| immutabilitySettings |
保管库的不可变性设置 |
|
| multiUserAuthorization |
保管库的 MUA 设置 |
|
| softDeleteSettings |
保管库的软删除设置 |
|
| sourceScanConfiguration |
保管库的源扫描配置 |
Sku
标识每个 Azure 资源的唯一系统标识符。
| 名称 | 类型 | 说明 |
|---|---|---|
| capacity |
string |
SKU 容量 |
| family |
string |
SKU 系列 |
| name |
SKU 的名称为 RS0(恢复服务第 0 版),层为标准层。 它们不会影响后端存储冗余或任何其他保管库设置。 若要管理存储冗余,请使用 backupstorageconfig |
|
| size |
string |
SKU 大小 |
| tier |
string |
Sku 层。 |
SkuName
SKU 的名称为 RS0(恢复服务第 0 版),层为标准层。 它们不会影响后端存储冗余或任何其他保管库设置。 若要管理存储冗余,请使用 backupstorageconfig
| 值 | 说明 |
|---|---|
| Standard | |
| RS0 |
SoftDeleteSettings
保管库的软删除设置
| 名称 | 类型 | 说明 |
|---|---|---|
| enhancedSecurityState | ||
| softDeleteRetentionPeriodInDays |
integer (int32) |
软删除保留期(以天为单位) |
| softDeleteState |
SoftDeleteState
| 值 | 说明 |
|---|---|
| Invalid | |
| Enabled | |
| Disabled | |
| AlwaysON |
SourceScanConfiguration
保管库的源扫描配置
| 名称 | 类型 | 说明 |
|---|---|---|
| sourceScanIdentity |
要用于作的标识详细信息 |
|
| state |
StandardTierStorageRedundancy
保管库的存储冗余设置
| 值 | 说明 |
|---|---|
| Invalid | |
| LocallyRedundant | |
| GeoRedundant | |
| ZoneRedundant |
State
| 值 | 说明 |
|---|---|
| Invalid | |
| Enabled | |
| Disabled |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |
TriggerType
触发保管库升级的方式。
| 值 | 说明 |
|---|---|
| UserTriggered | |
| ForcedUpgrade |
UpgradeDetails
升级保管库的详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| endTimeUtc |
string (date-time) |
升级操作结束的 UTC 时间。 |
| lastUpdatedTimeUtc |
string (date-time) |
上次更新升级操作状态的 UTC 时间。 |
| message |
string |
向用户发送消息,其中包含有关升级操作的信息。 |
| operationId |
string |
保管库升级操作的 ID。 |
| previousResourceId |
string |
升级前保管库的资源 ID。 |
| startTimeUtc |
string (date-time) |
升级操作已启动的 UTC 时间。 |
| status |
保管库升级操作的状态。 |
|
| triggerType |
触发保管库升级的方式。 |
|
| upgradedResourceId |
string |
已升级保管库的资源 ID。 |
UserIdentity
由服务用户管理的资源标识。
| 名称 | 类型 | 说明 |
|---|---|---|
| clientId |
string |
用户分配标识的客户端 ID。 |
| principalId |
string |
用户分配标识的主体 ID。 |
Vault
资源信息,由资源提供程序返回。
| 名称 | 类型 | 说明 |
|---|---|---|
| etag |
string |
etag 的资源。 |
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| identity |
资源的标识。 |
|
| location |
string |
资源所在的地理位置 |
| name |
string |
资源的名称 |
| properties |
保管库的属性。 |
|
| sku |
标识每个 Azure 资源的唯一系统标识符。 |
|
| systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
VaultPrivateEndpointState
用于备份的专用终结点状态。
| 值 | 说明 |
|---|---|
| None | |
| Enabled |
VaultProperties
保管库的属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| backupStorageVersion |
备份存储版本 |
|
| bcdrSecurityLevel |
用于业务连续性和灾难恢复的恢复服务保管库的安全级别 |
|
| encryption |
资源的客户托管密钥详细信息。 |
|
| monitoringSettings |
保管库的监视设置 |
|
| moveDetails |
对 Azure 资源执行的最新移动作的详细信息 |
|
| moveState |
移动操作后的资源状态 |
|
| privateEndpointConnections |
专用终结点连接列表。 |
|
| privateEndpointStateForBackup |
用于备份的专用终结点状态。 |
|
| privateEndpointStateForSiteRecovery |
站点恢复的专用终结点状态。 |
|
| provisioningState |
string |
预配状态。 |
| publicNetworkAccess |
属性,用于启用或禁用来自公共客户端的资源提供程序入站网络流量 |
|
| redundancySettings |
保管库的冗余设置 |
|
| resourceGuardOperationRequests |
string[] |
将对其执行 LAC 检查的 ResourceGuardOperationRequests |
| restoreSettings |
还原保管库的设置 |
|
| secureScore |
恢复服务保管库的安全分数 |
|
| securitySettings |
保管库的安全设置 |
|
| upgradeDetails |
升级保管库的详细信息。 |
VaultPropertiesEncryption
资源的客户托管密钥详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| infrastructureEncryption |
启用/禁用双重加密状态 |
|
| kekIdentity |
用于 CMK 的标识的详细信息 |
|
| keyVaultProperties |
托管 CMK 的 Key Vault 的属性 |
VaultPropertiesMoveDetails
对 Azure 资源执行的最新移动作的详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| completionTimeUtc |
string (date-time) |
资源移动操作的结束时间 |
| operationId |
string |
资源移动操作的 OperationId |
| sourceResourceId |
string |
资源移动操作的源资源 |
| startTimeUtc |
string (date-time) |
资源移动操作的开始时间 |
| targetResourceId |
string |
资源移动操作的目标资源 |
VaultPropertiesRedundancySettings
保管库的冗余设置
| 名称 | 类型 | 说明 |
|---|---|---|
| crossRegionRestore |
在保管库上启用跨区域还原时显示的标志 |
|
| standardTierStorageRedundancy |
保管库的存储冗余设置 |
VaultSubResourceType
保管库 AzureBackup、AzureBackup_secondary 或 AzureSiteRecovery 的子资源类型
| 值 | 说明 |
|---|---|
| AzureBackup | |
| AzureBackup_secondary | |
| AzureSiteRecovery |
VaultUpgradeState
保管库升级操作的状态。
| 值 | 说明 |
|---|---|
| Unknown | |
| InProgress | |
| Upgraded | |
| Failed |