Update Backup Location properties
Modify the properties of an existing mount path
Path Parameters
- storagePoolId int32 required
Id of the disk storage to update
- backupLocationId int32 required
Id of the backup location to update
- application/json
Request Body
mediaAgent object required
- access string
Possible values: [
READ_AND_WRITE
,READ
]The access type for the access path can be either read (writing to path not allowed) or read and write (writing to path allowed).
credentials object
savedCredentials object
configuration object
- backupLocation string
Can be used to change the disk access path.
- enabled boolean
Responses
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Bad Request
Requested Details not found
PUT /v4/storage/disk/:storagepoolid/backuplocation/:backuplocationid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId/BackupLocation/:backupLocationId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"mediaAgent": {
"id": 0,
"name": "string"
},
"access": "READ_AND_WRITE",
"credentials": {
"name": "string",
"password": "string"
},
"savedCredentials": {
"id": 0,
"name": "string"
},
"configuration": {
"enableBackupLocation": true,
"disableBackupLocationforFutureBackups": true,
"prepareForRetirement": true
},
"backupLocation": "string",
"enabled": true
}'