Enabling/Disabling mount path for a Library
Enable/Disable a mount path of a library \n Please visit payload examples for mouth path operations
- application/json
Request Body
library object required
libNewProp object required
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
library object
{
"library": {
"isWormStorage": true,
"deviceAccessType": 0,
"opType": 0,
"errorCode": 0,
"maxDataToWriteMB": 0,
"deviceId": 0,
"deviceName": "string",
"mediaAgentId": 0,
"warningWaterMark": 0,
"preferMountPathAccordingToMA": 0,
"loginName": "string",
"archCopyName": "string",
"mediaAgentName": "string",
"deviceType": 0,
"hideLibrary": 0,
"isCloud": 0,
"reserveSpaceInMB": 0,
"preventDataBlockReferences": 0,
"serverType": 0,
"markDrive": 0,
"mountPathId": 0,
"libraryType": 0,
"mountPathUsage": 0,
"libraryName": "string",
"stopDataAgingWhenDataOccupiedOnDiskIs": 0,
"enablePruningOfAgedData": 0,
"libraryId": 0,
"archGroupId": 0,
"description": "string",
"driveName": "string",
"resetSecondaryCredentials": true,
"startDataAgingWhenDataOccupiedOnDiskIs": 0,
"numOfWritersForMountpath": 0,
"usePnpWhenBlank": 0,
"baseFolder": "string",
"markLibForMaintenance": 0,
"useDPSettingsForPruning": 0,
"NDMPServer": "string",
"mountPath": "string",
"archGroupName": "string",
"isAutomaticallyManageDisk": 0,
"createStoragePolicy": 0,
"preventDataDelFromMntPth": 0,
"archCopyId": 0,
"backupRetentionDays": 0,
"numOfWritersForLibrary": 0,
"diskCapacity": 0,
"resrvSpaceForSiloRestores": 0,
"mailContent": "string",
"libSerialNumber": "string",
"objectAddress": 0,
"lowWaterMark": 0,
"preferMountPathWithFreeSpace": 0,
"enabledMP": 0,
"secondaryCredential": {
"_type_": 0
},
"hybridCloudOption": {
"enableHybridCloud": 0,
"diskLibrary": {
"_type_": 0
}
},
"distributedStorage": {
"_type_": 0
},
"activeLibraryController": {
"_type_": 0
},
"savedCredential": {
"_type_": 0
},
"storage": {}
}
}
{
"library": {
"isWormStorage": false,
"deviceAccessType": 0,
"opType": 0,
"errorCode": 0,
"maxDataToWriteMB": 0,
"deviceId": 1,
"deviceName": "",
"mediaAgentId": 0,
"warningWaterMark": 0,
"preferMountPathAccordingToMA": 2,
"loginName": "",
"archCopyName": "",
"mediaAgentName": "",
"deviceType": 0,
"hideLibrary": 2,
"isCloud": 0,
"reserveSpaceInMB": 0,
"preventDataBlockReferences": 2,
"serverType": 0,
"markDrive": 0,
"mountPathId": 1,
"libraryType": 3,
"mountPathUsage": 0,
"libraryName": "LibraryName",
"stopDataAgingWhenDataOccupiedOnDiskIs": 0,
"enablePruningOfAgedData": 2,
"libraryId": 1,
"archGroupId": 0,
"description": "",
"driveName": "",
"resetSecondaryCredentials": false,
"startDataAgingWhenDataOccupiedOnDiskIs": 0,
"numOfWritersForMountpath": 1001,
"usePnpWhenBlank": 2,
"baseFolder": "",
"markLibForMaintenance": 2,
"useDPSettingsForPruning": 2,
"NDMPServer": "",
"mountPath": "C:/mounthPathLocation",
"archGroupName": "",
"isAutomaticallyManageDisk": 0,
"createStoragePolicy": 0,
"preventDataDelFromMntPth": 2,
"archCopyId": 0,
"backupRetentionDays": 0,
"numOfWritersForLibrary": 0,
"diskCapacity": 0,
"resrvSpaceForSiloRestores": 2,
"mailContent": "",
"libSerialNumber": "",
"objectAddress": 0,
"lowWaterMark": 0,
"preferMountPathWithFreeSpace": 2,
"enabledMP": 2,
"secondaryCredential": {
"_type_": 174
},
"hybridCloudOption": {
"enableHybridCloud": 2,
"diskLibrary": {
"_type_": 9
}
},
"distributedStorage": {
"_type_": 195
},
"activeLibraryController": {
"_type_": 11
},
"savedCredential": {
"_type_": 174
},
"storage": {}
}
}
POST /library
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Library' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"library": {
"mediaAgentName": "string",
"libraryName": "string",
"mountPathId": 0,
"mountPath": "string",
"opType": 0
},
"libNewProp": {
"enabledMP": 0
}
}'