openapi: 3.1.0 info: title: Commvault Automation Agents Operations API description: API for automating Commvault workflows, job scheduling, and policy management. Enables programmatic creation and execution of custom workflows, management of schedule policies, and configuration of automated operations for data protection environments. version: v2 contact: name: Commvault Support url: https://www.commvault.com/support termsOfService: https://www.commvault.com/terms-of-use servers: - url: https://{webserver}/webconsole/api description: Commvault Web Server variables: webserver: default: webconsole.example.com description: Hostname of the Commvault Web Server security: - authToken: [] tags: - name: Operations description: Trigger and monitor automated operations paths: /QCommand/qoperation: post: operationId: executeQCommand summary: Commvault Execute a qcommand operation description: Executes an arbitrary Commvault command-line (qcommand) operation through the REST API. This provides programmatic access to operations that may not have dedicated REST endpoints. tags: - Operations requestBody: required: true content: application/xml: schema: type: string description: XML command to execute responses: '200': description: Command executed content: application/json: schema: $ref: '#/components/schemas/GenericResponse' '400': description: Invalid command '401': description: Unauthorized components: schemas: GenericResponse: type: object properties: errorCode: type: integer description: Error code (0 indicates success) errorMessage: type: string description: Human-readable error or success message securitySchemes: authToken: type: apiKey in: header name: Authtoken description: QSDK authentication token obtained from the Login endpoint. externalDocs: description: Commvault Automation API Documentation url: https://documentation.commvault.com/v11/essential/rest_api_automation.html