instances_guest_attributes
Creates, updates, deletes, gets or lists an instances_guest_attributes
resource.
Overview
Name | instances_guest_attributes |
Type | Resource |
Id | google.compute.instances_guest_attributes |
Fields
The following fields are returned by SELECT
queries:
- get_guest_attributes
Successful response
Name | Datatype | Description |
---|---|---|
kind | string | [Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. (default: compute#guestAttributes) |
queryPath | string | The path to be queried. This can be the default namespace ('') or a nested namespace ('/') or a specified key ('/'). |
queryValue | object | [Output Only] The value of the requested queried path. (id: GuestAttributesValue) |
selfLink | string | [Output Only] Server-defined URL for this resource. |
variableKey | string | The key to search for. |
variableValue | string | [Output Only] The value found for the requested key. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_guest_attributes | select | project , zone , instance | queryPath , variableKey | Returns 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.
Name | Datatype | Description |
---|---|---|
instance | string | |
project | string | |
zone | string | |
queryPath | string | |
variableKey | string |
SELECT
examples
- get_guest_attributes
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 }}';