Difference between revisions of "Gcloud compute instances list"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
gcloud compute instances list --filter="name=my-instance" --format "[box]" | gcloud compute instances list --filter="name=my-instance" --format "[box]" | ||
+ | |||
+ | output: | ||
+ | ┌─────────────┬────────────────┬─────────────────────────────┬─────────────┬─────────────┬───────────────┬─────────┐ | ||
+ | │ NAME │ ZONE │ MACHINE_TYPE │ PREEMPTIBLE │ INTERNAL_IP │ EXTERNAL_IP │ STATUS │ | ||
+ | ├─────────────┼────────────────┼─────────────────────────────┼─────────────┼─────────────┼───────────────┼─────────┤ | ||
+ | │ my-instance │ europe-west3-c │ custom (16 vCPU, 32.00 GiB) │ │ 10.156.0.1 │ 35.207.77.101 │ RUNNING │ | ||
+ | └─────────────┴────────────────┴─────────────────────────────┴─────────────┴─────────────┴───────────────┴─────────┘ | ||
[[gcloud compute instances]] list | [[gcloud compute instances]] list |
Revision as of 13:43, 17 October 2022
gcloud compute instances list --filter="name=my-instance" --format "[box]"
output: ┌─────────────┬────────────────┬─────────────────────────────┬─────────────┬─────────────┬───────────────┬─────────┐ │ NAME │ ZONE │ MACHINE_TYPE │ PREEMPTIBLE │ INTERNAL_IP │ EXTERNAL_IP │ STATUS │ ├─────────────┼────────────────┼─────────────────────────────┼─────────────┼─────────────┼───────────────┼─────────┤ │ my-instance │ europe-west3-c │ custom (16 vCPU, 32.00 GiB) │ │ 10.156.0.1 │ 35.207.77.101 │ RUNNING │ └─────────────┴────────────────┴─────────────────────────────┴─────────────┴─────────────┴───────────────┴─────────┘
gcloud compute instances list API [compute.googleapis.com] not enabled on project [0123456789]. Would you like to enable and retry (this will take a few minutes)? (y/N)?
See also
gcloud
[config | scheduler | auth | asset | services | gcloud auth login | iam | sql | projects | container
|compute | kms
|source
],gcloud composer environments create
|build
|gcloud config set project
,gcloud source repos create
,gcloud composer environments create
,gcloud version
,gcloud --help
Advertising: