GET /foreman_tasks/api/recurring_logics
List recurring logics

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

search
選填

篩選結果

Validations:

  • Must be a String

order
選填

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
選填

Page number, starting at 1

Validations:

  • Must be a number.

per_page
選填

Number of results per page to return

Validations:

  • Must be a number.


GET /foreman_tasks/api/recurring_logics/:id
Show recurring logic details

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

id
必填

ID of the recurring logic

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PUT /foreman_tasks/api/recurring_logics/:id
Update recurring logic

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

id
必填

ID of the recurring logic

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

enabled
選填

Whether the recurring logic is enabled or disabled.

Validations:

  • Must be one of: true, false, 1, 0.


POST /foreman_tasks/api/recurring_logics/:id/cancel
Cancel recurring logic

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

id
必填

ID of the recurring logic

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.