|
18 | 18 | "application/json" |
19 | 19 | ], |
20 | 20 | "paths": { |
| 21 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig": { |
| 22 | + "get": { |
| 23 | + "tags": [ |
| 24 | + "BackupResourceVaultConfigs" |
| 25 | + ], |
| 26 | + "description": "Fetches resource vault config.", |
| 27 | + "operationId": "BackupResourceVaultConfigs_Get", |
| 28 | + "produces": [ |
| 29 | + "application/json" |
| 30 | + ], |
| 31 | + "parameters": [ |
| 32 | + { |
| 33 | + "$ref": "#/parameters/ApiVersion" |
| 34 | + }, |
| 35 | + { |
| 36 | + "$ref": "#/parameters/VaultName" |
| 37 | + }, |
| 38 | + { |
| 39 | + "$ref": "#/parameters/ResourceGroupName" |
| 40 | + }, |
| 41 | + { |
| 42 | + "$ref": "#/parameters/SubscriptionId" |
| 43 | + } |
| 44 | + ], |
| 45 | + "responses": { |
| 46 | + "200": { |
| 47 | + "description": "OK", |
| 48 | + "schema": { |
| 49 | + "$ref": "#/definitions/BackupResourceVaultConfigResource" |
| 50 | + } |
| 51 | + }, |
| 52 | + "default": { |
| 53 | + "description": "Error response describing why the operation failed.", |
| 54 | + "schema": { |
| 55 | + "$ref": "#/definitions/NewErrorResponse" |
| 56 | + } |
| 57 | + } |
| 58 | + }, |
| 59 | + "x-ms-examples": { |
| 60 | + "Get Vault Security Config": { |
| 61 | + "$ref": "./examples/Common/BackupResourceVaultConfigs_Get.json" |
| 62 | + } |
| 63 | + } |
| 64 | + }, |
| 65 | + "patch": { |
| 66 | + "tags": [ |
| 67 | + "BackupResourceVaultConfigs" |
| 68 | + ], |
| 69 | + "description": "Updates vault security config.", |
| 70 | + "operationId": "BackupResourceVaultConfigs_Update", |
| 71 | + "produces": [ |
| 72 | + "application/json" |
| 73 | + ], |
| 74 | + "parameters": [ |
| 75 | + { |
| 76 | + "$ref": "#/parameters/ApiVersion" |
| 77 | + }, |
| 78 | + { |
| 79 | + "$ref": "#/parameters/VaultName" |
| 80 | + }, |
| 81 | + { |
| 82 | + "$ref": "#/parameters/ResourceGroupName" |
| 83 | + }, |
| 84 | + { |
| 85 | + "$ref": "#/parameters/SubscriptionId" |
| 86 | + }, |
| 87 | + { |
| 88 | + "name": "parameters", |
| 89 | + "in": "body", |
| 90 | + "description": "resource config request", |
| 91 | + "required": true, |
| 92 | + "schema": { |
| 93 | + "$ref": "#/definitions/BackupResourceVaultConfigResource" |
| 94 | + } |
| 95 | + } |
| 96 | + ], |
| 97 | + "responses": { |
| 98 | + "200": { |
| 99 | + "description": "OK", |
| 100 | + "schema": { |
| 101 | + "$ref": "#/definitions/BackupResourceVaultConfigResource" |
| 102 | + } |
| 103 | + }, |
| 104 | + "default": { |
| 105 | + "description": "Error response describing why the operation failed.", |
| 106 | + "schema": { |
| 107 | + "$ref": "#/definitions/NewErrorResponse" |
| 108 | + } |
| 109 | + } |
| 110 | + }, |
| 111 | + "x-ms-examples": { |
| 112 | + "Update Vault Security Config": { |
| 113 | + "$ref": "./examples/Common/BackupResourceVaultConfigs_Patch.json" |
| 114 | + } |
| 115 | + } |
| 116 | + }, |
| 117 | + "put": { |
| 118 | + "tags": [ |
| 119 | + "BackupResourceVaultConfigs" |
| 120 | + ], |
| 121 | + "description": "Updates vault security config.", |
| 122 | + "operationId": "BackupResourceVaultConfigs_Put", |
| 123 | + "produces": [ |
| 124 | + "application/json" |
| 125 | + ], |
| 126 | + "parameters": [ |
| 127 | + { |
| 128 | + "$ref": "#/parameters/ApiVersion" |
| 129 | + }, |
| 130 | + { |
| 131 | + "$ref": "#/parameters/VaultName" |
| 132 | + }, |
| 133 | + { |
| 134 | + "$ref": "#/parameters/ResourceGroupName" |
| 135 | + }, |
| 136 | + { |
| 137 | + "$ref": "#/parameters/SubscriptionId" |
| 138 | + }, |
| 139 | + { |
| 140 | + "name": "parameters", |
| 141 | + "in": "body", |
| 142 | + "description": "resource config request", |
| 143 | + "required": true, |
| 144 | + "schema": { |
| 145 | + "$ref": "#/definitions/BackupResourceVaultConfigResource" |
| 146 | + } |
| 147 | + } |
| 148 | + ], |
| 149 | + "responses": { |
| 150 | + "200": { |
| 151 | + "description": "OK", |
| 152 | + "schema": { |
| 153 | + "$ref": "#/definitions/BackupResourceVaultConfigResource" |
| 154 | + } |
| 155 | + }, |
| 156 | + "default": { |
| 157 | + "description": "Error response describing why the operation failed.", |
| 158 | + "schema": { |
| 159 | + "$ref": "#/definitions/NewErrorResponse" |
| 160 | + } |
| 161 | + } |
| 162 | + }, |
| 163 | + "x-ms-examples": { |
| 164 | + "Update Vault Security Config": { |
| 165 | + "$ref": "./examples/Common/BackupResourceVaultConfigs_Put.json" |
| 166 | + } |
| 167 | + } |
| 168 | + } |
| 169 | + }, |
21 | 170 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig": { |
22 | 171 | "get": { |
23 | 172 | "tags": [ |
|
7042 | 7191 | } |
7043 | 7192 | } |
7044 | 7193 | }, |
| 7194 | + "BackupResourceVaultConfigResource": { |
| 7195 | + "description": "Backup resource vault config details.", |
| 7196 | + "allOf": [ |
| 7197 | + { |
| 7198 | + "$ref": "#/definitions/Resource" |
| 7199 | + } |
| 7200 | + ], |
| 7201 | + "properties": { |
| 7202 | + "properties": { |
| 7203 | + "$ref": "#/definitions/BackupResourceVaultConfig", |
| 7204 | + "description": "BackupResourceVaultConfigResource properties" |
| 7205 | + } |
| 7206 | + } |
| 7207 | + }, |
| 7208 | + "BackupResourceVaultConfig": { |
| 7209 | + "description": "Backup resource vault config details.", |
| 7210 | + "type": "object", |
| 7211 | + "properties": { |
| 7212 | + "storageModelType": { |
| 7213 | + "description": "Storage type.", |
| 7214 | + "enum": [ |
| 7215 | + "Invalid", |
| 7216 | + "GeoRedundant", |
| 7217 | + "LocallyRedundant", |
| 7218 | + "ZoneRedundant", |
| 7219 | + "ReadAccessGeoZoneRedundant" |
| 7220 | + ], |
| 7221 | + "type": "string", |
| 7222 | + "x-ms-enum": { |
| 7223 | + "name": "StorageType", |
| 7224 | + "modelAsString": true |
| 7225 | + } |
| 7226 | + }, |
| 7227 | + "storageType": { |
| 7228 | + "description": "Storage type.", |
| 7229 | + "enum": [ |
| 7230 | + "Invalid", |
| 7231 | + "GeoRedundant", |
| 7232 | + "LocallyRedundant", |
| 7233 | + "ZoneRedundant", |
| 7234 | + "ReadAccessGeoZoneRedundant" |
| 7235 | + ], |
| 7236 | + "type": "string", |
| 7237 | + "x-ms-enum": { |
| 7238 | + "name": "StorageType", |
| 7239 | + "modelAsString": true |
| 7240 | + } |
| 7241 | + }, |
| 7242 | + "storageTypeState": { |
| 7243 | + "description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.", |
| 7244 | + "enum": [ |
| 7245 | + "Invalid", |
| 7246 | + "Locked", |
| 7247 | + "Unlocked" |
| 7248 | + ], |
| 7249 | + "type": "string", |
| 7250 | + "x-ms-enum": { |
| 7251 | + "name": "StorageTypeState", |
| 7252 | + "modelAsString": true |
| 7253 | + } |
| 7254 | + }, |
| 7255 | + "enhancedSecurityState": { |
| 7256 | + "description": "Enabled or Disabled.", |
| 7257 | + "enum": [ |
| 7258 | + "Invalid", |
| 7259 | + "Enabled", |
| 7260 | + "Disabled" |
| 7261 | + ], |
| 7262 | + "type": "string", |
| 7263 | + "x-ms-enum": { |
| 7264 | + "name": "EnhancedSecurityState", |
| 7265 | + "modelAsString": true |
| 7266 | + } |
| 7267 | + }, |
| 7268 | + "softDeleteFeatureState": { |
| 7269 | + "description": "Soft Delete feature state", |
| 7270 | + "enum": [ |
| 7271 | + "Invalid", |
| 7272 | + "Enabled", |
| 7273 | + "Disabled" |
| 7274 | + ], |
| 7275 | + "type": "string", |
| 7276 | + "x-ms-enum": { |
| 7277 | + "name": "SoftDeleteFeatureState", |
| 7278 | + "modelAsString": true |
| 7279 | + } |
| 7280 | + } |
| 7281 | + } |
| 7282 | + }, |
7045 | 7283 | "YearlyRetentionSchedule": { |
7046 | 7284 | "description": "Yearly retention schedule.", |
7047 | 7285 | "type": "object", |
|
0 commit comments