{
  "openapi": "3.0.1",
  "info": {
    "title": "Job Store Commands",
    "version": "9.1.20.0",
    "description": "Provide access to scheduled job store command.",
    "x-introduced": "9.1.0.0"
  },
  "servers": [
    {
      "url": "https://{hostname}:{port}/rest/admin/v2",
      "variables": {
        "port": {
          "default": "443",
          "enum": [
            "443",
            "8000"
          ]
        },
        "hostname": {
          "default": "localhost",
          "enum": [
            "localhost",
            "test.hcl.com"
          ]
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Job Store Commands",
      "description": "Provides RESTful services to manage scheduled job store command resources."
    }
  ],
  "paths": {
    "/job-store-commands": {
      "get": {
        "tags": [
          "Job Store Commands"
        ],
        "summary": "Get a collection of scheduled Job Store commands.",
        "description": "Get a collection of scheduled Job Store commands.",
        "operationId": "getScheduledJobStoreCommands",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This is the content type to be placed in the header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request completed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobStoreCommandsCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseContainer": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          },
          "requestId": {
            "type": "string",
            "description": "The request identifier."
          }
        },
        "description": "The error message model."
      },
      "Error": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "The error message code."
          },
          "errorMessage": {
            "type": "string",
            "description": "The error message."
          },
          "errorKey": {
            "type": "string",
            "description": "The error message key."
          },
          "errorParameters": {
            "type": "array",
            "description": "The arguments used to construct the error message.",
            "items": {
              "type": "object",
              "properties": {}
            }
          },
          "errorLevel": {
            "type": "string",
            "description": "The error level."
          },
          "errorHref": {
            "type": "string",
            "description": "The error hypertext reference."
          }
        },
        "description": "The error message item model."
      },
      "JobStoreCommand": {
        "type": "object",
        "properties": {
          "command": {
            "type": "string",
            "description": "The command / path information of the job."
          },
          "checkCommands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobCheckCommand"
            }
          }
        }
      },
      "JobCheckCommand": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The internal ID of the check command."
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the check command."
          },
          "interfaceName": {
            "type": "string",
            "description": "The interface name of the check command."
          }
        }
      },
      "JobStoreCommandsCollection": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobStoreCommand"
            }
          },
          "count": {
            "minimum": 0,
            "type": "integer",
            "description": "The total number of item records that match the query parameters.",
            "format": "int32"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
