- JSON representation
- ScheduledTask
- ScheduledCronTask
- ScheduledAnacronTask
- WindowsScheduledTask
- TaskAction
- TaskTrigger
- Volume
- Service
Information about a resource such as a task, Cloud Storage bucket, database, disk, logical policy, or something similar.
| JSON representation |
|---|
{ "type" : string , "resourceType" : enum ( |
| Fields | |
|---|---|
type
|
Deprecated: use resourceType instead. |
resourceType
|
Resource type. |
resourceSubtype
|
Resource sub-type (e.g. "BigQuery", "Bigtable"). |
id
|
Deprecated: Use resource.name or resource.product_object_id. |
name
|
The full name of the resource. For example, Google Cloud: //cloudresourcemanager.googleapis.com/projects/wombat-123, and AWS: arn:aws:iam::123456789012:user/johndoe. |
parent
|
The parent of the resource. For a database table, the parent is the database. For a storage object, the bucket name. Deprecated: use resourceAncestors.name. |
productObjectId
|
A vendor-specific identifier to uniquely identify the entity (a GUID, OID, or similar) This field can be used as an entity indicator for a Resource entity. |
attribute
|
Generic entity metadata attributes of the resource. |
scheduledTask
|
DEPRECATED: use windowsScheduledTask for Windows scheduled tasks or scheduledCronTask for cron jobs. Information about a scheduled task associated with the resource. |
scheduledCronTask
|
Information about a scheduled cron task associated with the resource. |
scheduledAnacronTask
|
Information about a scheduled anacron task associated with the resource. |
windowsScheduledTask
|
Information about a Windows scheduled task associated with the resource. |
volume
|
Information about a storage volume associated with the resource. |
service
|
Information about a Windows service associated with the resource. |
ScheduledTask
Deprecated: use WindowsScheduledTask for Windows scheduled tasks or ScheduledCronTask for cron jobs. Information about a scheduled task.
| JSON representation |
|---|
{ "minute" : integer , "hour" : integer , "monthDay" : integer , "month" : integer , "weekDay" : integer , "comment" : string , "author" : string } |
| Fields | |
|---|---|
minute
|
The minute of the hour (0-59). |
hour
|
The hour of the day (0-23). |
monthDay
|
The day of the month (1-31). |
month
|
The month of the year (1-12). |
weekDay
|
The day of the week (0-6, Sunday=0). |
comment
|
A comment or description for the task. |
author
|
The account name that authored or last modified the scheduled task. |
ScheduledCronTask
Information about a scheduled cron task.
| JSON representation |
|---|
{ "minute" : string , "hour" : string , "monthDay" : string , "month" : string , "weekDay" : string , "comment" : string , "author" : string , "event" : string , "path" : string } |
| Fields | |
|---|---|
minute
|
Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://linux.die.net/man/5/crontab |
hour
|
Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "*/2", "1,2"), or an asterisk (*) to indicate first-last hours. |
monthDay
|
Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month. |
month
|
Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "*/2", "1,6"), or an asterisk (*) to indicate first-last months. |
weekDay
|
Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week. |
comment
|
A comment or description for the task. |
author
|
The author or creator of the task. |
event
|
Crontab special string or event (e.g., "@reboot", "@daily"). |
path
|
The PATH environment variable defined in the crontab file. |
ScheduledAnacronTask
Information about a scheduled anacron task.
| JSON representation |
|---|
{ "period" : string , "delayMinutes" : string , "jobId" : string , "path" : string , "sourceLine" : string } |
| Fields | |
|---|---|
period
|
Anacrontab period field. Value is an integer in days, or a string like "@daily", "@weekly", or "@monthly". |
delayMinutes
|
The delay in minutes before the job is run. |
jobId
|
The unique identifier of the job. |
path
|
The PATH environment variable defined in the anacrontab file. |
sourceLine
|
The original source line from the anacrontab file. |
WindowsScheduledTask
Information about a Windows scheduled task.
| JSON representation |
|---|
{ "author" : string , "virtualPath" : string , "exitCode" : integer , "state" : enum ( |
| Fields | |
|---|---|
author
|
The account name that authored or last modified the scheduled task. |
virtualPath
|
The task's path in the Task Scheduler library. |
exitCode
|
The result which was returned the last time the registered task was run. |
state
|
The operation state of the task. |
logonType
|
The logon type of the task. |
taskActions[]
|
The actions of the scheduled task. |
taskTriggers[]
|
The triggers of the scheduled task. |
TaskAction
The task action.
| JSON representation |
|---|
{
"actionType"
:
enum (
|
| Fields | |
|---|---|
actionType
|
The action type of the task. |
execArguments[]
|
The arguments of the task. This field is only populated if the task action type is EXEC. |
execWorkingDirectory
|
The executable working directory of the task. This field is only populated if the task action type is EXEC. |
comClassId
|
The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER. |
comData
|
The data of the task. This field is only populated if the task action type is COM_HANDLER. |
TaskTrigger
The trigger of the scheduled task.
| JSON representation |
|---|
{
"enabled"
:
boolean
,
"duration"
:
string
,
"interval"
:
string
,
"triggerType"
:
enum (
|
| Fields | |
|---|---|
enabled
|
Indicates whether the task trigger is enabled. |
duration
|
The duration of the task trigger repetition. A duration in seconds with up to nine fractional digits, ending with ' |
interval
|
The interval between each repetition of the task. The format for this string is P |
triggerType
|
The trigger frequency of the task. |
Volume
Information about a storage volume.
| JSON representation |
|---|
{ "fileSystem" : string , "mountPoint" : string , "devicePath" : string , "isMounted" : boolean , "isReadOnly" : boolean , "name" : string } |
| Fields | |
|---|---|
fileSystem
|
The name of the file system on the volume (e.g., "NTFS", "FAT32"). |
mountPoint
|
The path where the volume is mounted (e.g., "C:", "/mnt/data"). |
devicePath
|
The system path to the device (e.g., "\.\HarddiskVolume1", "/dev/sda1"). |
isMounted
|
Indicates whether the volume is currently mounted. |
isReadOnly
|
Indicates whether the volume is mounted as read-only. |
name
|
The user-assigned label or name for the volume. |
Service
Information about a Windows service.
| JSON representation |
|---|
{ "displayName" : string , "serviceType" : enum ( |
| Fields | |
|---|---|
displayName
|
The user-friendly display name of the service. |
serviceType
|
Deprecated: use serviceTypes instead. The type of service. |
serviceTypes[]
|
The list of service types. |
startupType
|
The startup type of the service. |
state
|
The status of the service. |

