- [Resource: IntegrationJobInstance](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#IntegrationJobInstance)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#IntegrationJobInstance.SCHEMA_REPRESENTATION)
- [JobResultStatus](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#JobResultStatus)
- [IntegrationJobInstanceParameter](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#IntegrationJobInstanceParameter)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#IntegrationJobInstanceParameter.SCHEMA_REPRESENTATION)
- [ParamType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#ParamType)
- [AdvancedConfig](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#AdvancedConfig)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#AdvancedConfig.SCHEMA_REPRESENTATION)
- [OneTimeScheduleDetails](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#OneTimeScheduleDetails)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#OneTimeScheduleDetails.SCHEMA_REPRESENTATION)
- [DailyScheduleDetails](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#DailyScheduleDetails)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#DailyScheduleDetails.SCHEMA_REPRESENTATION)
- [WeeklyScheduleDetails](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#WeeklyScheduleDetails)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#WeeklyScheduleDetails.SCHEMA_REPRESENTATION)
- [MonthlyScheduleDetails](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#MonthlyScheduleDetails)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#MonthlyScheduleDetails.SCHEMA_REPRESENTATION)
- [ScheduleType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#ScheduleType)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#METHODS_SUMMARY)

## Resource: IntegrationJobInstance

Allows saving \& restoring different instances of job definitions. This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. Job instance resource describes the job's instances. Job instance is a configured instance of a job definition. The job instance is the actual timed script that runs every X seconds.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "displayName": string, "intervalSeconds": integer, "script": string, "author": string, "lastRunTime": string, "parameters": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#IntegrationJobInstanceParameter`) } ], "job": string, "integration": string, "advancedConfig": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#AdvancedConfig`) }, "nextScheduledRunTime": string, "custom": boolean, "enabled": boolean, "description": string, "lastRunStatus": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#JobResultStatus`), "agent": string, "advanced": boolean, "uniqueIdentifier": string, "documentationLink": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The unique name(ID) of the job instance. Format: projects/{project}/locations/{location}/instances/{instance}/integrations/{integration}/jobs/{job}/jobInstances/{jobInstance}" |
| `createTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. Job instance creation time. |
| `updateTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. Job instance update time. |
| `displayName` | `string` Required. Job instance display name. |
| `intervalSeconds` | `integer (https://developers.google.com/discovery/v1/type-format format)` Required. Job instance interval in seconds. Minimum of 60 seconds. |
| `script` | `string` Output only. Job instance script. |
| `author` | `string` Output only. Job instance author. |
| `lastRunTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. Job instance last execution time. In unix time. |
| `parameters[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#IntegrationJobInstanceParameter`)`` Optional. Job instance parameters. |
| `job` | `string` Output only. The job definition this instance belongs to. |
| `integration` | `string` Output only. The integration this job instance is associated with. |
| `advancedConfig` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#AdvancedConfig`)`` Optional. Advanced configuration for the job instance. |
| `nextScheduledRunTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. Job instance next scheduled run time. In unix time. |
| `custom` | `boolean` Output only. Determines whether the job is custom or commercial. |
| `enabled` | `boolean` Required. Determines whether the job instance is enabled. |
| `description` | `string` Optional. Job instance description. |
| `lastRunStatus` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#JobResultStatus`)`` Output only. Job instance last run status. |
| `agent` | `string` Optional. Agent identifier in case the job runs remotely, otherwise will be null. This cannot be patched and must be defined when creating the instance. |
| `advanced` | `boolean` Required. Indicates if the job instance uses an advanced scheduling configuration. |
| `uniqueIdentifier` | `string` Output only. Unique identifier of the job instance. |
| `documentationLink` | `string` Output only. A URL linking to the official Google Cloud documentation for the specific job instance. |

## JobResultStatus

Job result status options.

| Enums ||
|---|---|
| `SUCCESS` | Job result status success. |
| `ERROR` | Job result status error. |

## IntegrationJobInstanceParameter

Job instance parameters.

| JSON representation |
|---|
| ``` { "id": integer, "mandatory": boolean, "value": string, "displayName": string, "type": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#ParamType`) } ``` |

| Fields ||
|---|---|
| `id` | `integer` Output only. The parameter's id. |
| `mandatory` | `boolean` Output only. Is parameter mandatory. |
| `value` | `string` Optional. The value of the parameter. |
| `displayName` | `string` Output only. The parameter display name. |
| `type` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#ParamType`)`` Output only. The parameter's type. |

## ParamType

Parameter type options.

| Enums ||
|---|---|
| `BOOLEAN` | Boolean parameter type. |
| `INT` | Integer parameter type. |
| `STRING` | String parameter type. |
| `PASSWORD` | Password parameter type. |
| `IP` | IP parameter type. |
| `IP_OR_HOST` | IP or host parameter type. |
| `URL` | URL parameter type. |
| `DOMAIN` | Domain parameter type. |
| `EMAIL` | Email parameter type. |
| `VALUES_LIST` | Values parameter type. |
| `VALUES_AS_SEMI_COLON_SEPARATED_STRING` | Values as semi-colon separated string parameter type. |
| `MULTI_VALUES_SELECTION` | Multi values selection parameter type. |
| `SCRIPT` | Script parameter type. |
| `FILTER_LIST` | Filter list parameter type. |
| `NUMERICAL_VALUES` | Numerical values parameter type. |

## AdvancedConfig

AdvancedConfig defines detailed scheduling options for an integration job instance. It allows specifying the time zone, and one of several schedule types such as one-time, daily, weekly, or monthly recurrences.

| JSON representation |
|---|
| ``` { "timeZone": string, "scheduleType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#ScheduleType`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "oneTimeSchedule": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#OneTimeScheduleDetails`) }, "dailySchedule": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#DailyScheduleDetails`) }, "weeklySchedule": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#WeeklyScheduleDetails`) }, "monthlySchedule": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#MonthlyScheduleDetails`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `timeZone` | `string` Required. The zone id. |
| `scheduleType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#ScheduleType`)`` Required. The schedule type. |
| Details of the schedule, corresponding to the schedule_type. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `oneTimeSchedule` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#OneTimeScheduleDetails`)`` Optional. The one time schedule details. |
| `dailySchedule` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#DailyScheduleDetails`)`` Optional. The daily schedule details. |
| `weeklySchedule` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#WeeklyScheduleDetails`)`` Optional. The weekly schedule details. |
| `monthlySchedule` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances#MonthlyScheduleDetails`)`` Optional. The monthly schedule details. |
| End of mutually exclusive fields. ||

## OneTimeScheduleDetails

The one time schedule details.

| JSON representation |
|---|
| ``` { "startDate": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`) }, "time": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`) } } ``` |

| Fields ||
|---|---|
| `startDate` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`)`` Required. The date to run the job. |
| `time` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`)`` Required. The time to run the job. |

## DailyScheduleDetails

The daily schedule details.

| JSON representation |
|---|
| ``` { "startDate": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`) }, "time": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`) }, "interval": integer } ``` |

| Fields ||
|---|---|
| `startDate` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`)`` Required. The start date. |
| `time` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`)`` Required. The time to run the job. |
| `interval` | `integer` Required. The day interval. |

## WeeklyScheduleDetails

The weekly schedule details.

| JSON representation |
|---|
| ``` { "startDate": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`) }, "days": [ enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/DayOfWeek`) ], "time": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`) }, "interval": integer } ``` |

| Fields ||
|---|---|
| `startDate` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`)`` Required. The start date. |
| `days[]` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/DayOfWeek`)`` Required. The days of the week to run the job. |
| `time` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`)`` Required. The time to run the job. |
| `interval` | `integer` Required. The week interval. |

## MonthlyScheduleDetails

The monthly schedule details.

| JSON representation |
|---|
| ``` { "startDate": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`) }, "day": integer, "time": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`) }, "interval": integer } ``` |

| Fields ||
|---|---|
| `startDate` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Date`)`` Required. The start date. |
| `day` | `integer` Required. The day of the month to run the job. |
| `time` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/TimeOfDay`)`` Required. The time to run the job. |
| `interval` | `integer` Required. The month interval. |

## ScheduleType

The schedule type.

| Enums ||
|---|---|
| `SCHEDULE_TYPE_UNSPECIFIED` | Schedule type unspecified. |
| `ONCE` | Schedule type once. |
| `DAILY` | Schedule type daily. |
| `WEEKLY` | Schedule type weekly. |
| `MONTHLY` | Schedule type monthly. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances/create` | Creates a new IntegrationJobInstance from a job definition. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances/delete` | Deletes a specific IntegrationJobInstance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances/get` | Gets a single IntegrationJobInstance by its resource name. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances/list` | Lists all IntegrationJobInstances for a specific job definition. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances/patch` | Updates an existing IntegrationJobInstance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.integrations.jobs.jobInstances/runOnDemand` | Executes a scheduled background job immediately and only once, bypassing the normal schedule. |