Execute QOperation
Select
Customer Managed
Commvault REST APIs support sending QCommands as a request. QCommands and QOperations can be executed that are passed in the parameter.
For Example:
qlist client HTTP/1.1
If the QCommand or OPeration requires a payload, the XML can be passed in the body of the request. More Details
Path Parameters
- qcommand string required
QCommand to run
- application/xml
Request Body
XML payload for QCommands
- string
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
error object
{
"error": {
"errorString": "string",
"errorCode": 0
}
}
{
"error": {
"errorString": "",
"errorCode": 0
}
}
POST /qcommand/:qcommand
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/QCommand/:qcommand' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''