Resource URL: /platform/<<version=3>>/protocols/ndmp/contexts/backup

    Overview: This resource applies to manage NDMP backup contexts.

     Methods: GET

********************************************************************************

Method GET: Get List of NDMP Backup Contexts.

       URL: GET /platform/<<version=3>>/protocols/ndmp/contexts/backup

Query arguments:
limit=<integer> Return no more than this many results at once (see resume).
resume=<string> Continue returning results from previous call using this token
                (token should come from the previous call, resume cannot be
                used with other options).

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "description": "Get NDMP Context List", 
      "properties": {
        "contexts": {
          "type": "array", 
          "properties": {
            "status": {
              "type": "string", 
              "description": "Whether the context is active."
            }, 
            "total_sessions": {
              "type": "integer", 
              "description": "The number of sessions in the context"
            }, 
            "context_id": {
              "type": "string", 
              "description": "Context ID"
            }, 
            "start_time": {
              "type": "time", 
              "description": "Context creation time"
            }, 
            "snapid": {
              "type": "integer", 
              "description": "Snapshot ID reserved for the context. This is not applicable to restore contexts."
            }, 
            "path": {
              "type": "string", 
              "description": "The directory of the backup. This is not applicable to restore contexts."
            }, 
            "type": {
              "type": "string", 
              "description": "Type of context; It can be bre, backup, and restore"
            }, 
            "id": {
              "type": "string", 
              "description": "Unique display id."
            }
          }
        }, 
        "total": {
          "type": "integer", 
          "description": "The number of ndmp contexts."
        }, 
        "resume": {
          "type": "string", 
          "description": "Resume string returned by previous query."
        }
      }
    }
  ]
}
