cronjob-Softwaretemplates auslesen
GET/cronjobs/ softwaretemplates/ 
v1
GET
getCronjobSoftwaretemplates
Diese Operation liest die die Cronjob-Softwaretemplates aus
Request
No request parameters.
Responses
application/json
Die Cronjob-Softwaretemplates
- Schema documentation
 - Example
 - JSON Schema
 
- Array[
 - *object
- namestringrequired
 - uidnumberrequired
 - softwareobjectrequired
- identifierstringrequired
 - uidnumberrequired
 
 - cronjobobjectrequired
- uidintegerrequired
 - namestringrequired
 - enabledbooleanrequired
 - errorReportingstring (one of: NONE, MAIL_ON_FAILURE, MAIL)required
 - errorReportingEmailstringrequired
 - customTimeoutModenumber (one of: 0, 1)required
Whether a custom timeout is set
 - customTimeoutValuenumber
Amount of custom timeout
 - typestring (one of: SERVER, BROWSER, INTERPRETER)required
Type of cronjob (server based, browser based, custom interpreter)
 - intervalarray of stringrequired
Crontab interval
- Array[
 - *string
 
] 
 - statusnumberrequired
 - filestring
 - paramsstring
 - urlstring
 - interpreterobject
- hiddenbooleanrequired
 - namestringrequired
 - typestringrequired
 - uidnumberrequired
 
 
 
]
Content-Type: application/json
[
  {
    "name": "string",
    "uid": 123,
    "software": {
      "identifier": "string",
      "uid": 123
    },
    "cronjob": {
      "uid": 123,
      "name": "string",
      "enabled": true,
      "errorReporting": "NONE",
      "errorReportingEmail": "string",
      "customTimeoutMode": 123,
      "customTimeoutValue": 123,
      "type": "SERVER",
      "interval": [
        "string"
      ],
      "status": 123,
      "file": "string",
      "params": "string",
      "url": "string",
      "interpreter": {
        "hidden": true,
        "name": "string",
        "type": "string",
        "uid": 123
      }
    }
  }
]
{
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "cronjob",
      "name",
      "software",
      "uid"
    ],
    "properties": {
      "name": {
        "type": "string"
      },
      "uid": {
        "type": "number"
      },
      "software": {
        "type": "object",
        "required": [
          "identifier",
          "uid"
        ],
        "properties": {
          "identifier": {
            "type": "string"
          },
          "uid": {
            "type": "number"
          }
        }
      },
      "cronjob": {
        "type": "object",
        "required": [
          "uid",
          "name",
          "enabled",
          "errorReporting",
          "errorReportingEmail",
          "customTimeoutMode",
          "type",
          "interval",
          "status"
        ],
        "properties": {
          "uid": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "errorReporting": {
            "type": "string",
            "enum": [
              "NONE",
              "MAIL_ON_FAILURE",
              "MAIL"
            ]
          },
          "errorReportingEmail": {
            "type": "string"
          },
          "customTimeoutMode": {
            "description": "Whether a custom timeout is set",
            "type": "number",
            "enum": [
              0,
              1
            ]
          },
          "customTimeoutValue": {
            "description": "Amount of custom timeout",
            "type": "number"
          },
          "type": {
            "description": "Type of cronjob (server based, browser based, custom interpreter)",
            "type": "string",
            "enum": [
              "SERVER",
              "BROWSER",
              "INTERPRETER"
            ]
          },
          "interval": {
            "description": "Crontab interval",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "number"
          },
          "file": {
            "type": "string"
          },
          "params": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "interpreter": {
            "type": "object",
            "required": [
              "hidden",
              "name",
              "type",
              "uid"
            ],
            "properties": {
              "hidden": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "uid": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}
Usage examples
- cURL
 
$ curl \
    --fail \
    --location \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    https://api.mittwald.de/v1/cronjobs/softwaretemplates