GET /api/job_invocations
작업 호출 나열

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

search
optional

필터 결과

Validations:

  • Must be a String

order
optional

결과 정렬

Validations:

  • Must be a String

page
optional

페이지네이션 결과

Validations:

  • Must be a String

per_page
optional

요청 당 항목 수

Validations:

  • Must be a String


GET /api/job_invocations/:id
작업 호출 표시

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

id
required

Validations:

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


POST /api/job_invocations
작업 호출 생성

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

job_invocation
required

Validations:

  • Must be a Hash

job_invocation[job_template_id]
optional , nil allowed

The job template to use, parameter is required unless feature was specified

Validations:

  • Must be a String

job_invocation[targeting_type]
required

Invocation type, one of {“static_query”=>“Static Query”, “dynamic_query”=>“Dynamic Query”}

Validations:

  • Must be a String

job_invocation[inputs]
optional , nil allowed

사용할 입력

Validations:

  • Must be a Hash

job_invocation[ssh]
optional , nil allowed

SSH 공급자 관련 옵션

Validations:

  • Must be a Hash

job_invocation[ssh][effective_user]
optional , nil allowed

사용자가 스크립트를 실행하는 데 사용해야 할 옵션입니다(sudo와 유사한 메커니즘 사용). 템플릿 매개 변수 또는 글로벌 설정으로 기본 설정됩니다.

Validations:

  • Must be a String

job_invocation[recurrence]
optional , nil allowed

반복 작업 생성

Validations:

  • Must be a Hash

job_invocation[recurrence][cron_line]
optional , nil allowed

cron 형식으로 설정하는 작업 발생 빈도입니다.

Validations:

  • Must be a String

job_invocation[recurrence][max_iteration]
optional , nil allowed

최대 N번 반복

Validations:

  • Must be a number.

job_invocation[recurrence][end_time]
optional , nil allowed

이 시간 이후 더 이상 실행을 수행하지 않음

Validations:

  • Must be a DateTime

job_invocation[scheduling]
optional , nil allowed

나중에 시작하도록 작업 스케줄

Validations:

  • Must be a Hash

job_invocation[scheduling][start_at]
optional , nil allowed

이후 시간에 대해 작업 스케줄

Validations:

  • Must be a DateTime

job_invocation[scheduling][start_before]
optional , nil allowed

이 시간 전에 시작할 수 없는 경우 작업을 취소한다는 것을 나타냅니다.

Validations:

  • Must be a DateTime

job_invocation[concurrency_control]
optional , nil allowed

동시 실행 레벨 및 기간별 배분 제어

Validations:

  • Must be a Hash

job_invocation[concurrency_control][time_span]
optional , nil allowed

N초에 걸쳐 태스크 배분

Validations:

  • Must be a Integer

job_invocation[concurrency_control][concurrency_level]
optional , nil allowed

한 번에 최대 N개 태스크 실행

Validations:

  • Must be a Integer

job_invocation[bookmark_id]
optional , nil allowed

Validations:

  • Must be a Integer

job_invocation[search_query]
optional , nil allowed

Validations:

  • Must be a String

job_invocation[description_format]
optional , nil allowed

이 호출에 대한 템플릿에서만 설명 형식 덮어쓰기

Validations:

  • Must be a String

job_invocation[execution_timeout_interval]
optional , nil allowed

Override the timeout interval from the template for this invocation only

Validations:

  • Must be a Integer

job_invocation[feature]
optional , nil allowed

Remote execution feature label that should be triggered, job template assigned to this feature will be used

Validations:

  • Must be a String


GET /api/job_invocations/:id/hosts/:host_id
호스트에 대한 출력 가져오기

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

id
required

Validations:

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

host_id
required

Validations:

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

since
optional

Validations:

  • Must be a String


POST /api/job_invocations/:id/cancel
Cancel job invocation

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

id
required

Validations:

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

force
optional

Validations:

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


POST /api/job_invocations/:id/rerun
Rerun job on failed hosts

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

id
required

Validations:

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

failed_only
optional

Validations:

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