Monday, 30 October 2023

Quick Reference Sheet: GCP

 Basic Commands

  • gcloud compute instances list: List all Compute Engine instances in the current project.

  • gcloud compute instances show: Display the details of a specific Compute Engine instance.

  • gcloud compute instances create: Create a new Compute Engine instance.

  • gcloud compute instances delete: Delete a Compute Engine instance.

  • gcloud compute disks list: List all Compute Engine disks in the current project.

  • gcloud compute disks show: Display the details of a specific Compute Engine disk.

  • gcloud compute disks create: Create a new Compute Engine disk.

  • gcloud compute disks delete: Delete a Compute Engine disk.

  • gcloud compute networks list: List all Compute Engine networks in the current project.

  • gcloud compute networks show: Display the details of a specific Compute Engine network.

  • gcloud compute networks create: Create a new Compute Engine network.

  • gcloud compute networks delete: Delete a Compute Engine network.

Advanced Commands

  • gcloud compute instances create-from-image: Create a new Compute Engine instance from a custom image.

  • gcloud compute instances attach-disk: Attach a Compute Engine disk to an instance.

  • gcloud compute instances detach-disk: Detach a Compute Engine disk from an instance.

  • gcloud compute instances start: Start a Compute Engine instance.

  • gcloud compute instances stop: Stop a Compute Engine instance.

  • gcloud compute instances restart: Restart a Compute Engine instance.

  • gcloud compute snapshots create: Create a snapshot of a Compute Engine disk.

  • gcloud compute snapshots restore: Restore a snapshot to a Compute Engine disk.

  • gcloud compute networks create-subnetwork: Create a subnetwork in a Compute Engine network.

  • gcloud compute networks create-firewall-rule: Create a firewall rule in a Compute Engine network.

  • gcloud compute networks create-load-balancer: Create a load balancer in a Compute Engine network.

Additional Commands

  • gcloud app deploy: Deploy an App Engine app.

  • gcloud app list: List all App Engine apps in the current project.

  • gcloud app describe: Display the details of a specific App Engine app.

  • gcloud app delete: Delete an App Engine app.

  • gcloud sql instances list: List all Cloud SQL instances in the current project.

  • gcloud sql instances show: Display the details of a specific Cloud SQL instance.

  • gcloud sql instances create: Create a new Cloud SQL instance.

  • gcloud sql instances delete: Delete a Cloud SQL instance.

  • gcloud bigquery jobs list: List all BigQuery jobs in the current project.

  • gcloud bigquery jobs show: Display the details of a specific BigQuery job.

  • gcloud bigquery jobs query: Run a BigQuery query.

  • gcloud bigquery jobs load: Load data into a BigQuery table.

  • gcloud bigquery jobs export: Export data from a BigQuery table.

This is just a sample of the many commands available for GCP administration. For more information, please consult the GCP documentation.

Here are some additional commands that may be useful for GCP administration:

  • gcloud projects list: List all GCP projects associated with the current user.

  • gcloud projects get-iam-policy: Display the IAM policy for a GCP project.

  • gcloud projects set-iam-policy: Set the IAM policy for a GCP project.

  • gcloud organizations list: List all GCP organizations associated with the current user.

  • gcloud organizations get-iam-policy: Display the IAM policy for a GCP organization.

  • gcloud organizations set-iam-policy: Set the IAM policy for a GCP organization.

  • gcloud billing get-usage: Display the billing usage for the current GCP project or organization.

  • gcloud logging logs list: List all Cloud Logging logs in the current project.

  • gcloud logging logs show: Display the details of a specific Cloud Logging log.

  • gcloud monitoring metrics list: List all Cloud Monitoring metrics in the current project.

  • gcloud monitoring metrics describe: Display the details of a specific Cloud Monitoring metric.

  • gcloud monitoring alerts list: List all Cloud Monitoring alerts in the current project.

  • gcloud monitoring alerts describe: Display the details of a specific Cloud Monitoring alert.


No comments:

Post a Comment

Robots with enhanced dexterity and adaptability

  Certainly, here's a comprehensive overview of robots with enhanced dexterity and adaptability: Introduction Robots are rapidly evol...