{
  "opencollection": "1.0.0",
  "info": {
    "name": "Commvault Automation Agents Plans API",
    "version": "v2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authtoken",
      "value": "{{Authtoken}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Plans",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Commvault List server plans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{webserver}/webconsole/api/V4/ServerPlan"
          },
          "docs": "Retrieves a list of all server plans. Plans provide a simplified approach to data protection by combining storage, schedule, and retention settings into a single configuration entity."
        },
        {
          "info": {
            "name": "Commvault Create a server plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{webserver}/webconsole/api/V4/ServerPlan",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new server plan with specified backup destinations, schedule, and retention settings."
        },
        {
          "info": {
            "name": "Commvault Get server plan details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{webserver}/webconsole/api/V4/ServerPlan/:planId",
            "params": [
              {
                "name": "planId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the server plan"
              }
            ]
          },
          "docs": "Retrieves the detailed configuration of a specific server plan, including its backup destinations, RPO schedules, and retention rules."
        },
        {
          "info": {
            "name": "Commvault Update a server plan",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{webserver}/webconsole/api/V4/ServerPlan/:planId",
            "params": [
              {
                "name": "planId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the server plan"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the configuration of an existing server plan."
        },
        {
          "info": {
            "name": "Commvault Delete a server plan",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{webserver}/webconsole/api/V4/ServerPlan/:planId",
            "params": [
              {
                "name": "planId",
                "value": "",
                "type": "path",
                "description": "Unique identifier for the server plan"
              }
            ]
          },
          "docs": "Deletes an existing server plan. Plans that are associated with active subclients cannot be deleted."
        }
      ]
    }
  ],
  "bundled": true
}