- Resource: IntegrationJobInstance
- JobResultStatus
- IntegrationJobInstanceParameter
- ParamType
- AdvancedConfig
- OneTimeScheduleDetails
- Date
- TimeOfDay
- DailyScheduleDetails
- WeeklyScheduleDetails
- DayOfWeek
- MonthlyScheduleDetails
- ScheduleType
- Methods
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 ( |
Fields | |
---|---|
name |
Identifier. The unique name(ID) of the job instance. Format: projects/{project}/locations/{location}/instances/{instance}/integrations/{integration}/jobs/{job}/jobInstances/{jobInstance}" |
createTime |
Output only. Job instance creation time. |
updateTime |
Output only. Job instance update time. |
displayName |
Required. Job instance display name. |
intervalSeconds |
Required. Job instance interval in seconds. Minimum of 60 seconds. |
script |
Output only. Job instance script. |
author |
Output only. Job instance author. |
lastRunTime |
Output only. Job instance last execution time. In unix time. |
parameters[] |
Optional. Job instance parameters. |
job |
Output only. The job definition this instance belongs to. |
integration |
Output only. The integration this job instance is associated with. |
advancedConfig |
Optional. Advanced configuration for the job instance. |
nextScheduledRunTime |
Output only. Job instance next scheduled run time. In unix time. |
custom |
Output only. Determines whether the job is custom or commercial. |
enabled |
Required. Determines whether the job instance is enabled. |
description |
Optional. Job instance description. |
lastRunStatus |
Output only. Job instance last run status. |
agent |
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 |
Required. Indicates if the job instance uses an advanced scheduling configuration. |
uniqueIdentifier |
Output only. Unique identifier of the 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 ( |
Fields | |
---|---|
id |
Output only. The parameter's id. |
mandatory |
Output only. Is parameter mandatory. |
value |
Optional. The value of the parameter. |
displayName |
Output only. The parameter display name. |
type |
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 ( |
Fields | |
---|---|
timeZone |
Required. The zone id. |
scheduleType |
Required. The schedule type. |
Union field schedule_details . Details of the schedule, corresponding to the schedule_type. schedule_details can be only one of the following: |
|
oneTimeSchedule |
Optional. The one time schedule details. |
dailySchedule |
Optional. The daily schedule details. |
weeklySchedule |
Optional. The weekly schedule details. |
monthlySchedule |
Optional. The monthly schedule details. |
OneTimeScheduleDetails
The one time schedule details.
JSON representation |
---|
{ "startDate": { object ( |
Fields | |
---|---|
startDate |
Required. The date to run the job. |
time |
Required. The time to run the job. |
Date
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
google.type.TimeOfDay
google.type.DateTime
google.protobuf.Timestamp
JSON representation |
---|
{ "year": integer, "month": integer, "day": integer } |
Fields | |
---|---|
year |
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
month |
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
day |
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
TimeOfDay
Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date
and google.protobuf.Timestamp
.
JSON representation |
---|
{ "hours": integer, "minutes": integer, "seconds": integer, "nanos": integer } |
Fields | |
---|---|
hours |
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
minutes |
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. |
seconds |
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. |
nanos |
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. |
DailyScheduleDetails
The daily schedule details.
JSON representation |
---|
{ "startDate": { object ( |
Fields | |
---|---|
startDate |
Required. The start date. |
time |
Required. The time to run the job. |
interval |
Required. The day interval. |
WeeklyScheduleDetails
The weekly schedule details.
JSON representation |
---|
{ "startDate": { object ( |
Fields | |
---|---|
startDate |
Required. The start date. |
days[] |
Required. The days of the week to run the job. |
time |
Required. The time to run the job. |
interval |
Required. The week interval. |
DayOfWeek
Represents a day of the week.
Enums | |
---|---|
DAY_OF_WEEK_UNSPECIFIED |
The day of the week is unspecified. |
MONDAY |
Monday |
TUESDAY |
Tuesday |
WEDNESDAY |
Wednesday |
THURSDAY |
Thursday |
FRIDAY |
Friday |
SATURDAY |
Saturday |
SUNDAY |
Sunday |
MonthlyScheduleDetails
The monthly schedule details.
JSON representation |
---|
{ "startDate": { object ( |
Fields | |
---|---|
startDate |
Required. The start date. |
day |
Required. The day of the month to run the job. |
time |
Required. The time to run the job. |
interval |
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 |
|
---|---|
|
CreateJobInstance creates a new job instance. |
|
DeleteJobInstance deletes a job instance. |
|
Get instance of a job. |
|
List all instances of a job. |
|
UpdateIntegrationJobInstance updates an instance of a job instance. |
|
RunOnDemandIntegrationJobInstance runs job instance script once. |