Resource

Information about a resource such as a task, Cloud Storage bucket, database, disk, logical policy, or something similar.

JSON representation
 { 
 "type" 
 : 
 string 
 , 
 "resourceType" 
 : 
 enum (  ResourceType 
 
) 
 , 
 "resourceSubtype" 
 : 
 string 
 , 
 "id" 
 : 
 string 
 , 
 "name" 
 : 
 string 
 , 
 "parent" 
 : 
 string 
 , 
 "productObjectId" 
 : 
 string 
 , 
 "attribute" 
 : 
 { 
 object (  Attribute 
 
) 
 } 
 , 
 "scheduledTask" 
 : 
 { 
 object (  ScheduledTask 
 
) 
 } 
 , 
 "volume" 
 : 
 { 
 object (  Volume 
 
) 
 } 
 , 
 "service" 
 : 
 { 
 object (  Service 
 
) 
 } 
 } 
Fields
type
(deprecated)

string

Deprecated: use resourceType instead.

resourceType

enum ( ResourceType )

Resource type.

resourceSubtype

string

Resource sub-type (e.g. "BigQuery", "Bigtable").

id
(deprecated)

string

Deprecated: Use resource.name or resource.product_object_id.

name

string

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
(deprecated)

string

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

string

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

object ( Attribute )

Generic entity metadata attributes of the resource.

scheduledTask

object ( ScheduledTask )

Information about a scheduled task associated with the resource.

volume

object ( Volume )

Information about a storage volume associated with the resource.

service

object ( Service )

Information about a Windows service associated with the resource.

ScheduledTask

Information about a scheduled task.

JSON representation
 { 
 "minute" 
 : 
 integer 
 , 
 "hour" 
 : 
 integer 
 , 
 "monthDay" 
 : 
 integer 
 , 
 "month" 
 : 
 integer 
 , 
 "weekDay" 
 : 
 integer 
 , 
 "comment" 
 : 
 string 
 , 
 "author" 
 : 
 string 
 } 
Fields
minute

integer

The minute of the hour (0-59).

hour

integer

The hour of the day (0-23).

monthDay

integer

The day of the month (1-31).

month

integer

The month of the year (1-12).

weekDay

integer

The day of the week (0-6, Sunday=0).

comment

string

A comment or description for the task.

author

string

The author or creator 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

string

The name of the file system on the volume (e.g., "NTFS", "FAT32").

mountPoint

string

The path where the volume is mounted (e.g., "C:", "/mnt/data").

devicePath

string

The system path to the device (e.g., "\.\HarddiskVolume1", "/dev/sda1").

isMounted

boolean

Indicates whether the volume is currently mounted.

isReadOnly

boolean

Indicates whether the volume is mounted as read-only.

name

string

The user-assigned label or name for the volume.

Service

Information about a Windows service.

JSON representation
 { 
 "displayName" 
 : 
 string 
 , 
 "serviceType" 
 : 
 enum (  ServiceType 
 
) 
 , 
 "startupType" 
 : 
 enum (  StartupType 
 
) 
 , 
 "state" 
 : 
 enum (  State 
 
) 
 } 
Fields
displayName

string

The user-friendly display name of the service.

serviceType

enum ( ServiceType )

The type of service.

startupType

enum ( StartupType )

The startup type of the service.

state

enum ( State )

Output only. The status of the service.

Create a Mobile Website
View Site in Mobile | Classic
Share by: