Skip to main content

instances_guest_attributes

Creates, updates, deletes, gets or lists an instances_guest_attributes resource.

Overview​

Nameinstances_guest_attributes
TypeResource
Idgoogle.compute.instances_guest_attributes

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
kindstringOutput only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. (default: compute#guestAttributes)
queryPathstringThe path to be queried. This can be the default namespace ('') or a nested namespace ('/') or a specified key ('/').
queryValueobjectOutput only. [Output Only] The value of the requested queried path. (id: GuestAttributesValue)
selfLinkstringOutput only. [Output Only] Server-defined URL for this resource.
variableKeystringThe key to search for.
variableValuestringOutput only. [Output Only] The value found for the requested key.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_guest_attributesselectproject, zone, instancequeryPath, variableKeyReturns the specified guest attributes entry.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instancestring
projectstring
zonestring
queryPathstring
variableKeystring

SELECT examples​

Returns the specified guest attributes entry.

SELECT
kind,
queryPath,
queryValue,
selfLink,
variableKey,
variableValue
FROM google.compute.instances_guest_attributes
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND instance = '{{ instance }}' -- required
AND queryPath = '{{ queryPath }}'
AND variableKey = '{{ variableKey }}'
;