Passa al contenuto principale

HostingCronjobPaginatedListResponse

Successful response with a page of HostingCronjob

errorintegerrequired

Always 0 in a successful response

Constant value: 0
messagestring | nullnullablerequired

Always null in a successful response

data object[]required

Items of the page: an empty list beyond the last page

  • Array [
  • cronjob_idintegerrequired
    hosting_idintegerrequired

    Id of the hosting of the request: cron jobs belong to the purchase, so a subdomain lists those of its main hosting

    purchase_idintegerrequired

    Id of the purchase of the hosting (GET /api/v3/purchases/{purchase_id})

    request_urlstringrequired

    URL called by the cron job, with the protocol

    http_request_methodstring | nullnullablerequired

    HTTP method of the call: GET or POST

    plan_monthstring | nullnullablerequired

    Months, from 1 (January) to 12 (December), as a comma-separated list like in the creation (for example 1,6); null for every month

    plan_monthdaystring | nullnullablerequired

    Days of the month, from 1 to 31, as a comma-separated list like in the creation (for example 1,15); null for every day

    plan_weekdaystring | nullnullablerequired

    Days of the week, from 1 (Monday) to 7 (Sunday), as a comma-separated list like in the creation (for example 1,5); null for every day of the week

    plan_hourstring | nullnullablerequired

    Hours, from 0 to 23, as a comma-separated list like in the creation (for example 0,12); null for every hour

    plan_minutestring | nullnullablerequired

    Minutes, from 0 to 59, as a comma-separated list like in the creation (for example 0,30); null for every minute

    activebooleanrequired

    Whether the cron job is active: deleted cron jobs, and the old versions of changed ones, stay in the list as inactive

    date_createddate-timenullablerequired
    date_disableddate-timenullablerequired

    When the cron job was deleted or replaced by a new version; null while it is active

  • ]
  • meta objectrequired

    Pagination of the list

    totalintegerrequired

    Number of items in the whole list

    countintegerrequired

    Number of items in this page: 0 beyond the last page

    pagesintegerrequired

    Number of pages of the list

    pageintegerrequired

    Number of this page, starting from 1

    per_pageintegerrequired

    Maximum number of items in a page

    HostingCronjobPaginatedListResponse
    {
    "error": 0,
    "message": "string",
    "data": [
    {
    "cronjob_id": 0,
    "hosting_id": 0,
    "purchase_id": 0,
    "request_url": "string",
    "http_request_method": "string",
    "plan_month": "string",
    "plan_monthday": "string",
    "plan_weekday": "string",
    "plan_hour": "string",
    "plan_minute": "string",
    "active": true,
    "date_created": "2024-07-29T15:51:28.071Z",
    "date_disabled": "2024-07-29T15:51:28.071Z"
    }
    ],
    "meta": {
    "total": 0,
    "count": 0,
    "pages": 0,
    "page": 0,
    "per_page": 0
    }
    }