gcloud compute os-config inventories describe INSTANCE [--location=LOCATION] [--view=VIEW] [GCLOUD_WIDE_FLAG …]
my-instance that has the
instance ID 5678 in the current project and location
'us-central1-a', run:
gcloud compute os-config inventories describe my-instance --location=us-central1-aINSTANCEid
at: https://cloud.google.com/compute/docs/reference/rest/v1/instances
--location=LOCATIONcompute/zone is used. For details on setting properties,
see: https://cloud.google.com/sdk/docs/properties
--view=VIEWbasic. VIEW must be one of:
basicfull--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
osconfig/v1 API. The full documentation for
this API can be found at: https://cloud.google.com/compute/docs/osconfig/rest
gcloud alpha compute os-config inventories describe
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.