Difference between revisions of "Gcloud compute instances list"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | gcloud compute instances list --filter="name=my-instance" --format "[box]" | + | [[gcloud compute instances]] list |
+ | |||
+ | [[gcloud compute instances]] list --filter="name=my-instance" --format "[box]" | ||
+ | <pre> | ||
output: | output: | ||
┌─────────────┬────────────────┬─────────────────────────────┬─────────────┬─────────────┬───────────────┬─────────┐ | ┌─────────────┬────────────────┬─────────────────────────────┬─────────────┬─────────────┬───────────────┬─────────┐ | ||
Line 9: | Line 12: | ||
│ my-instance │ europe-west3-c │ custom (16 vCPU, 32.00 GiB) │ │ 10.156.0.1 │ 35.207.77.101 │ RUNNING │ | │ my-instance │ europe-west3-c │ custom (16 vCPU, 32.00 GiB) │ │ 10.156.0.1 │ 35.207.77.101 │ RUNNING │ | ||
└─────────────┴────────────────┴─────────────────────────────┴─────────────┴─────────────┴───────────────┴─────────┘ | └─────────────┴────────────────┴─────────────────────────────┴─────────────┴─────────────┴───────────────┴─────────┘ | ||
+ | </pre> | ||
[[gcloud compute instances]] list | [[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)? | API [compute.googleapis.com] not enabled on project [0123456789]. Would you like to enable and retry (this will take a few minutes)? (y/N)? | ||
+ | == Related == | ||
+ | * <code>[[aws ec2 describe-instances]]</code> | ||
== See also == | == See also == | ||
+ | * {{gcloud compute instances}} | ||
* {{gcloud compute}} | * {{gcloud compute}} | ||
[[Category:Google Cloud]] | [[Category:Google Cloud]] |
Latest revision as of 20:35, 29 November 2022
gcloud compute instances list
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)?
Related[edit]
See also[edit]
Advertising: