47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
release_tracks: [ALPHA, BETA, GA]
|
|
help_text:
|
|
brief: Get the Guest Attributes for a compute instance.
|
|
description: |
|
|
Get the Guest Attributes for a compute instance.
|
|
examples: |
|
|
To get the guest attributes for instance 'my-instance' in zone 'ZONE' with
|
|
query path 'query/path', run:
|
|
|
|
$ {command} my-instance --query-path=query/path --zone=ZONE
|
|
|
|
request:
|
|
collection: compute.instances
|
|
method: getGuestAttributes
|
|
api_version: v1
|
|
ALPHA:
|
|
api_version: alpha
|
|
BETA:
|
|
api_version: beta
|
|
|
|
response:
|
|
result_attribute: queryValue.items
|
|
|
|
arguments:
|
|
resource:
|
|
help_text: The instance to get the Guest Attributes for.
|
|
spec: !REF googlecloudsdk.command_lib.compute.resources:instance
|
|
params:
|
|
- arg_name: query-path
|
|
default: ""
|
|
type: |
|
|
googlecloudsdk.calliope.arg_parsers:RegexpValidator:
|
|
pattern=^([\w\-]+/[\w\-]*)?$,
|
|
description=Must be empty or of the form `<namespace>/` or `<namespace>/<key>`.
|
|
api_field: queryPath
|
|
help_text: |
|
|
Attribute path to query. Can be empty string or of the form `<namespace>/` or
|
|
`<namespace>/<key>`. Default is the empty string.
|
|
|
|
output:
|
|
format: |
|
|
table(
|
|
namespace,
|
|
key,
|
|
value
|
|
)
|