Add controller for mountpath
This operation adds a controller for mountpath.
Query Parameters
- Action string required
addController
- application/json
Request Body
deviceEntity object
- mountpathId integer
Id of mountpath, please use GET /storagepool/:storagepoolid to obtain mountPathId. Note : If mountpathId is not passed default mountpathId is used.
infoList object[] required
Responses
- 200
- 500
OK
Internal Server Error
POST /drivecontroller
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DriveController' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"deviceEntity": {
"deviceName": "string"
},
"mountpathId": 0,
"infoList": [
{
"numWriters": -1,
"opType": 0,
"accessType": 14,
"path": "\\\\my_machine\\share_name",
"userName": "domain\\user",
"password": "string",
"autoPickTransportType": false,
"mediaAgent": {
"name": "string"
},
"savedCredential": {
"credentialName": "string"
}
}
]
}'