@google-cloud/compute
TypeScript icon, indicating that this package has built-in type declarations

4.7.0 • Public • Published

Google Cloud Platform logo

release level npm version

Google Compute Engine Client Library for Node.js

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. [Select or create a Cloud Platform project][projects].
  2. [Enable billing for your project][billing].
  3. [Enable the Google Compute Engine API][enable_api].
  4. [Set up authentication with a service account][auth] so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/compute

Using the client library

/**
 * TODO(developer): Uncomment and replace these variables before running the sample.
 */
// const projectId = 'YOUR_PROJECT_ID';

const compute = require('@google-cloud/compute');

// List all instances in the specified project.
async function listAllInstances() {
  const instancesClient = new compute.InstancesClient();

  //Use the `maxResults` parameter to limit the number of results that the API returns per response page.
  const aggListRequest = instancesClient.aggregatedListAsync({
    project: projectId,
    maxResults: 5,
  });

  console.log('Instances found:');

  // Despite using the `maxResults` parameter, you don't need to handle the pagination
  // yourself. The returned object handles pagination automatically,
  // requesting next pages as you iterate over the results.
  for await (const [zone, instancesObject] of aggListRequest) {
    const instances = instancesObject.instances;

    if (instances && instances.length > 0) {
      console.log(` ${zone}`);
      for (const instance of instances) {
        console.log(` - ${instance.name} (${instance.machineType})`);
      }
    }
  }
}

listAllInstances();

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

Sample Source Code Try it
Accelerator_types.aggregated_list source code ![Open in Cloud Shell][shell_img]
Accelerator_types.get source code ![Open in Cloud Shell][shell_img]
Accelerator_types.list source code ![Open in Cloud Shell][shell_img]
Addresses.aggregated_list source code ![Open in Cloud Shell][shell_img]
Addresses.delete source code ![Open in Cloud Shell][shell_img]
Addresses.get source code ![Open in Cloud Shell][shell_img]
Addresses.insert source code ![Open in Cloud Shell][shell_img]
Addresses.list source code ![Open in Cloud Shell][shell_img]
Addresses.move source code ![Open in Cloud Shell][shell_img]
Addresses.set_labels source code ![Open in Cloud Shell][shell_img]
Autoscalers.aggregated_list source code ![Open in Cloud Shell][shell_img]
Autoscalers.delete source code ![Open in Cloud Shell][shell_img]
Autoscalers.get source code ![Open in Cloud Shell][shell_img]
Autoscalers.insert source code ![Open in Cloud Shell][shell_img]
Autoscalers.list source code ![Open in Cloud Shell][shell_img]
Autoscalers.patch source code ![Open in Cloud Shell][shell_img]
Autoscalers.update source code ![Open in Cloud Shell][shell_img]
Backend_buckets.add_signed_url_key source code ![Open in Cloud Shell][shell_img]
Backend_buckets.delete source code ![Open in Cloud Shell][shell_img]
Backend_buckets.delete_signed_url_key source code ![Open in Cloud Shell][shell_img]
Backend_buckets.get source code ![Open in Cloud Shell][shell_img]
Backend_buckets.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Backend_buckets.insert source code ![Open in Cloud Shell][shell_img]
Backend_buckets.list source code ![Open in Cloud Shell][shell_img]
Backend_buckets.patch source code ![Open in Cloud Shell][shell_img]
Backend_buckets.set_edge_security_policy source code ![Open in Cloud Shell][shell_img]
Backend_buckets.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Backend_buckets.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Backend_buckets.update source code ![Open in Cloud Shell][shell_img]
Backend_services.add_signed_url_key source code ![Open in Cloud Shell][shell_img]
Backend_services.aggregated_list source code ![Open in Cloud Shell][shell_img]
Backend_services.delete source code ![Open in Cloud Shell][shell_img]
Backend_services.delete_signed_url_key source code ![Open in Cloud Shell][shell_img]
Backend_services.get source code ![Open in Cloud Shell][shell_img]
Backend_services.get_health source code ![Open in Cloud Shell][shell_img]
Backend_services.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Backend_services.insert source code ![Open in Cloud Shell][shell_img]
Backend_services.list source code ![Open in Cloud Shell][shell_img]
Backend_services.list_usable source code ![Open in Cloud Shell][shell_img]
Backend_services.patch source code ![Open in Cloud Shell][shell_img]
Backend_services.set_edge_security_policy source code ![Open in Cloud Shell][shell_img]
Backend_services.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Backend_services.set_security_policy source code ![Open in Cloud Shell][shell_img]
Backend_services.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Backend_services.update source code ![Open in Cloud Shell][shell_img]
Disk_types.aggregated_list source code ![Open in Cloud Shell][shell_img]
Disk_types.get source code ![Open in Cloud Shell][shell_img]
Disk_types.list source code ![Open in Cloud Shell][shell_img]
Disks.add_resource_policies source code ![Open in Cloud Shell][shell_img]
Disks.aggregated_list source code ![Open in Cloud Shell][shell_img]
Disks.bulk_insert source code ![Open in Cloud Shell][shell_img]
Disks.create_snapshot source code ![Open in Cloud Shell][shell_img]
Disks.delete source code ![Open in Cloud Shell][shell_img]
Disks.get source code ![Open in Cloud Shell][shell_img]
Disks.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Disks.insert source code ![Open in Cloud Shell][shell_img]
Disks.list source code ![Open in Cloud Shell][shell_img]
Disks.remove_resource_policies source code ![Open in Cloud Shell][shell_img]
Disks.resize source code ![Open in Cloud Shell][shell_img]
Disks.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Disks.set_labels source code ![Open in Cloud Shell][shell_img]
Disks.start_async_replication source code ![Open in Cloud Shell][shell_img]
Disks.stop_async_replication source code ![Open in Cloud Shell][shell_img]
Disks.stop_group_async_replication source code ![Open in Cloud Shell][shell_img]
Disks.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Disks.update source code ![Open in Cloud Shell][shell_img]
External_vpn_gateways.delete source code ![Open in Cloud Shell][shell_img]
External_vpn_gateways.get source code ![Open in Cloud Shell][shell_img]
External_vpn_gateways.insert source code ![Open in Cloud Shell][shell_img]
External_vpn_gateways.list source code ![Open in Cloud Shell][shell_img]
External_vpn_gateways.set_labels source code ![Open in Cloud Shell][shell_img]
External_vpn_gateways.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Firewall_policies.add_association source code ![Open in Cloud Shell][shell_img]
Firewall_policies.add_rule source code ![Open in Cloud Shell][shell_img]
Firewall_policies.clone_rules source code ![Open in Cloud Shell][shell_img]
Firewall_policies.delete source code ![Open in Cloud Shell][shell_img]
Firewall_policies.get source code ![Open in Cloud Shell][shell_img]
Firewall_policies.get_association source code ![Open in Cloud Shell][shell_img]
Firewall_policies.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Firewall_policies.get_rule source code ![Open in Cloud Shell][shell_img]
Firewall_policies.insert source code ![Open in Cloud Shell][shell_img]
Firewall_policies.list source code ![Open in Cloud Shell][shell_img]
Firewall_policies.list_associations source code ![Open in Cloud Shell][shell_img]
Firewall_policies.move source code ![Open in Cloud Shell][shell_img]
Firewall_policies.patch source code ![Open in Cloud Shell][shell_img]
Firewall_policies.patch_rule source code ![Open in Cloud Shell][shell_img]
Firewall_policies.remove_association source code ![Open in Cloud Shell][shell_img]
Firewall_policies.remove_rule source code ![Open in Cloud Shell][shell_img]
Firewall_policies.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Firewall_policies.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Firewalls.delete source code ![Open in Cloud Shell][shell_img]
Firewalls.get source code ![Open in Cloud Shell][shell_img]
Firewalls.insert source code ![Open in Cloud Shell][shell_img]
Firewalls.list source code ![Open in Cloud Shell][shell_img]
Firewalls.patch source code ![Open in Cloud Shell][shell_img]
Firewalls.update source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.aggregated_list source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.delete source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.get source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.insert source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.list source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.patch source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.set_labels source code ![Open in Cloud Shell][shell_img]
Forwarding_rules.set_target source code ![Open in Cloud Shell][shell_img]
Global_addresses.delete source code ![Open in Cloud Shell][shell_img]
Global_addresses.get source code ![Open in Cloud Shell][shell_img]
Global_addresses.insert source code ![Open in Cloud Shell][shell_img]
Global_addresses.list source code ![Open in Cloud Shell][shell_img]
Global_addresses.move source code ![Open in Cloud Shell][shell_img]
Global_addresses.set_labels source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.delete source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.get source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.insert source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.list source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.patch source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.set_labels source code ![Open in Cloud Shell][shell_img]
Global_forwarding_rules.set_target source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.attach_network_endpoints source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.delete source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.detach_network_endpoints source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.get source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.insert source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.list source code ![Open in Cloud Shell][shell_img]
Global_network_endpoint_groups.list_network_endpoints source code ![Open in Cloud Shell][shell_img]
Global_operations.aggregated_list source code ![Open in Cloud Shell][shell_img]
Global_operations.delete source code ![Open in Cloud Shell][shell_img]
Global_operations.get source code ![Open in Cloud Shell][shell_img]
Global_operations.list source code ![Open in Cloud Shell][shell_img]
Global_operations.wait source code ![Open in Cloud Shell][shell_img]
Global_organization_operations.delete source code ![Open in Cloud Shell][shell_img]
Global_organization_operations.get source code ![Open in Cloud Shell][shell_img]
Global_organization_operations.list source code ![Open in Cloud Shell][shell_img]
Global_public_delegated_prefixes.delete source code ![Open in Cloud Shell][shell_img]
Global_public_delegated_prefixes.get source code ![Open in Cloud Shell][shell_img]
Global_public_delegated_prefixes.insert source code ![Open in Cloud Shell][shell_img]
Global_public_delegated_prefixes.list source code ![Open in Cloud Shell][shell_img]
Global_public_delegated_prefixes.patch source code ![Open in Cloud Shell][shell_img]
Health_checks.aggregated_list source code ![Open in Cloud Shell][shell_img]
Health_checks.delete source code ![Open in Cloud Shell][shell_img]
Health_checks.get source code ![Open in Cloud Shell][shell_img]
Health_checks.insert source code ![Open in Cloud Shell][shell_img]
Health_checks.list source code ![Open in Cloud Shell][shell_img]
Health_checks.patch source code ![Open in Cloud Shell][shell_img]
Health_checks.update source code ![Open in Cloud Shell][shell_img]
Image_family_views.get source code ![Open in Cloud Shell][shell_img]
Images.delete source code ![Open in Cloud Shell][shell_img]
Images.deprecate source code ![Open in Cloud Shell][shell_img]
Images.get source code ![Open in Cloud Shell][shell_img]
Images.get_from_family source code ![Open in Cloud Shell][shell_img]
Images.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Images.insert source code ![Open in Cloud Shell][shell_img]
Images.list source code ![Open in Cloud Shell][shell_img]
Images.patch source code ![Open in Cloud Shell][shell_img]
Images.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Images.set_labels source code ![Open in Cloud Shell][shell_img]
Images.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Instance_group_manager_resize_requests.cancel source code ![Open in Cloud Shell][shell_img]
Instance_group_manager_resize_requests.delete source code ![Open in Cloud Shell][shell_img]
Instance_group_manager_resize_requests.get source code ![Open in Cloud Shell][shell_img]
Instance_group_manager_resize_requests.insert source code ![Open in Cloud Shell][shell_img]
Instance_group_manager_resize_requests.list source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.abandon_instances source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.aggregated_list source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.apply_updates_to_instances source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.create_instances source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.delete source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.delete_instances source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.delete_per_instance_configs source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.get source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.insert source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.list source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.list_errors source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.list_managed_instances source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.list_per_instance_configs source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.patch source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.patch_per_instance_configs source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.recreate_instances source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.resize source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.set_instance_template source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.set_target_pools source code ![Open in Cloud Shell][shell_img]
Instance_group_managers.update_per_instance_configs source code ![Open in Cloud Shell][shell_img]
Instance_groups.add_instances source code ![Open in Cloud Shell][shell_img]
Instance_groups.aggregated_list source code ![Open in Cloud Shell][shell_img]
Instance_groups.delete source code ![Open in Cloud Shell][shell_img]
Instance_groups.get source code ![Open in Cloud Shell][shell_img]
Instance_groups.insert source code ![Open in Cloud Shell][shell_img]
Instance_groups.list source code ![Open in Cloud Shell][shell_img]
Instance_groups.list_instances source code ![Open in Cloud Shell][shell_img]
Instance_groups.remove_instances source code ![Open in Cloud Shell][shell_img]
Instance_groups.set_named_ports source code ![Open in Cloud Shell][shell_img]
Instance_settings_service.get source code ![Open in Cloud Shell][shell_img]
Instance_settings_service.patch source code ![Open in Cloud Shell][shell_img]
Instance_templates.aggregated_list source code ![Open in Cloud Shell][shell_img]
Instance_templates.delete source code ![Open in Cloud Shell][shell_img]
Instance_templates.get source code ![Open in Cloud Shell][shell_img]
Instance_templates.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Instance_templates.insert source code ![Open in Cloud Shell][shell_img]
Instance_templates.list source code ![Open in Cloud Shell][shell_img]
Instance_templates.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Instance_templates.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Instances.add_access_config source code ![Open in Cloud Shell][shell_img]
Instances.add_resource_policies source code ![Open in Cloud Shell][shell_img]
Instances.aggregated_list source code ![Open in Cloud Shell][shell_img]
Instances.attach_disk source code ![Open in Cloud Shell][shell_img]
Instances.bulk_insert source code ![Open in Cloud Shell][shell_img]
Instances.delete source code ![Open in Cloud Shell][shell_img]
Instances.delete_access_config source code ![Open in Cloud Shell][shell_img]
Instances.detach_disk source code ![Open in Cloud Shell][shell_img]
Instances.get source code ![Open in Cloud Shell][shell_img]
Instances.get_effective_firewalls source code ![Open in Cloud Shell][shell_img]
Instances.get_guest_attributes source code ![Open in Cloud Shell][shell_img]
Instances.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Instances.get_screenshot source code ![Open in Cloud Shell][shell_img]
Instances.get_serial_port_output source code ![Open in Cloud Shell][shell_img]
Instances.get_shielded_instance_identity source code ![Open in Cloud Shell][shell_img]
Instances.insert source code ![Open in Cloud Shell][shell_img]
Instances.list source code ![Open in Cloud Shell][shell_img]
Instances.list_referrers source code ![Open in Cloud Shell][shell_img]
Instances.perform_maintenance source code ![Open in Cloud Shell][shell_img]
Instances.remove_resource_policies source code ![Open in Cloud Shell][shell_img]
Instances.reset source code ![Open in Cloud Shell][shell_img]
Instances.resume source code ![Open in Cloud Shell][shell_img]
Instances.send_diagnostic_interrupt source code ![Open in Cloud Shell][shell_img]
Instances.set_deletion_protection source code ![Open in Cloud Shell][shell_img]
Instances.set_disk_auto_delete source code ![Open in Cloud Shell][shell_img]
Instances.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Instances.set_labels source code ![Open in Cloud Shell][shell_img]
Instances.set_machine_resources source code ![Open in Cloud Shell][shell_img]
Instances.set_machine_type source code ![Open in Cloud Shell][shell_img]
Instances.set_metadata source code ![Open in Cloud Shell][shell_img]
Instances.set_min_cpu_platform source code ![Open in Cloud Shell][shell_img]
Instances.set_name source code ![Open in Cloud Shell][shell_img]
Instances.set_scheduling source code ![Open in Cloud Shell][shell_img]
Instances.set_security_policy source code ![Open in Cloud Shell][shell_img]
Instances.set_service_account source code ![Open in Cloud Shell][shell_img]
Instances.set_shielded_instance_integrity_policy source code ![Open in Cloud Shell][shell_img]
Instances.set_tags source code ![Open in Cloud Shell][shell_img]
Instances.simulate_maintenance_event source code ![Open in Cloud Shell][shell_img]
Instances.start source code ![Open in Cloud Shell][shell_img]
Instances.start_with_encryption_key source code ![Open in Cloud Shell][shell_img]
Instances.stop source code ![Open in Cloud Shell][shell_img]
Instances.suspend source code ![Open in Cloud Shell][shell_img]
Instances.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Instances.update source code ![Open in Cloud Shell][shell_img]
Instances.update_access_config source code ![Open in Cloud Shell][shell_img]
Instances.update_display_device source code ![Open in Cloud Shell][shell_img]
Instances.update_network_interface source code ![Open in Cloud Shell][shell_img]
Instances.update_shielded_instance_config source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.aggregated_list source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.delete source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.get source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.insert source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.list source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.set_labels source code ![Open in Cloud Shell][shell_img]
Instant_snapshots.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.aggregated_list source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.delete source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.get source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.insert source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.list source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.patch source code ![Open in Cloud Shell][shell_img]
Interconnect_attachments.set_labels source code ![Open in Cloud Shell][shell_img]
Interconnect_locations.get source code ![Open in Cloud Shell][shell_img]
Interconnect_locations.list source code ![Open in Cloud Shell][shell_img]
Interconnect_remote_locations.get source code ![Open in Cloud Shell][shell_img]
Interconnect_remote_locations.list source code ![Open in Cloud Shell][shell_img]
Interconnects.delete source code ![Open in Cloud Shell][shell_img]
Interconnects.get source code ![Open in Cloud Shell][shell_img]
Interconnects.get_diagnostics source code ![Open in Cloud Shell][shell_img]
Interconnects.get_macsec_config source code ![Open in Cloud Shell][shell_img]
Interconnects.insert source code ![Open in Cloud Shell][shell_img]
Interconnects.list source code ![Open in Cloud Shell][shell_img]
Interconnects.patch source code ![Open in Cloud Shell][shell_img]
Interconnects.set_labels source code ![Open in Cloud Shell][shell_img]
License_codes.get source code ![Open in Cloud Shell][shell_img]
License_codes.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Licenses.delete source code ![Open in Cloud Shell][shell_img]
Licenses.get source code ![Open in Cloud Shell][shell_img]
Licenses.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Licenses.insert source code ![Open in Cloud Shell][shell_img]
Licenses.list source code ![Open in Cloud Shell][shell_img]
Licenses.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Licenses.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Machine_images.delete source code ![Open in Cloud Shell][shell_img]
Machine_images.get source code ![Open in Cloud Shell][shell_img]
Machine_images.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Machine_images.insert source code ![Open in Cloud Shell][shell_img]
Machine_images.list source code ![Open in Cloud Shell][shell_img]
Machine_images.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Machine_images.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Machine_types.aggregated_list source code ![Open in Cloud Shell][shell_img]
Machine_types.get source code ![Open in Cloud Shell][shell_img]
Machine_types.list source code ![Open in Cloud Shell][shell_img]
Network_attachments.aggregated_list source code ![Open in Cloud Shell][shell_img]
Network_attachments.delete source code ![Open in Cloud Shell][shell_img]
Network_attachments.get source code ![Open in Cloud Shell][shell_img]
Network_attachments.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Network_attachments.insert source code ![Open in Cloud Shell][shell_img]
Network_attachments.list source code ![Open in Cloud Shell][shell_img]
Network_attachments.patch source code ![Open in Cloud Shell][shell_img]
Network_attachments.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Network_attachments.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Network_edge_security_services.aggregated_list source code ![Open in Cloud Shell][shell_img]
Network_edge_security_services.delete source code ![Open in Cloud Shell][shell_img]
Network_edge_security_services.get source code ![Open in Cloud Shell][shell_img]
Network_edge_security_services.insert source code ![Open in Cloud Shell][shell_img]
Network_edge_security_services.patch source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.aggregated_list source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.attach_network_endpoints source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.delete source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.detach_network_endpoints source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.get source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.insert source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.list source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.list_network_endpoints source code ![Open in Cloud Shell][shell_img]
Network_endpoint_groups.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.add_association source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.add_rule source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.clone_rules source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.delete source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.get source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.get_association source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.get_rule source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.insert source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.list source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.patch source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.patch_rule source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.remove_association source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.remove_rule source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Network_firewall_policies.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Networks.add_peering source code ![Open in Cloud Shell][shell_img]
Networks.delete source code ![Open in Cloud Shell][shell_img]
Networks.get source code ![Open in Cloud Shell][shell_img]
Networks.get_effective_firewalls source code ![Open in Cloud Shell][shell_img]
Networks.insert source code ![Open in Cloud Shell][shell_img]
Networks.list source code ![Open in Cloud Shell][shell_img]
Networks.list_peering_routes source code ![Open in Cloud Shell][shell_img]
Networks.patch source code ![Open in Cloud Shell][shell_img]
Networks.remove_peering source code ![Open in Cloud Shell][shell_img]
Networks.switch_to_custom_mode source code ![Open in Cloud Shell][shell_img]
Networks.update_peering source code ![Open in Cloud Shell][shell_img]
Node_groups.add_nodes source code ![Open in Cloud Shell][shell_img]
Node_groups.aggregated_list source code ![Open in Cloud Shell][shell_img]
Node_groups.delete source code ![Open in Cloud Shell][shell_img]
Node_groups.delete_nodes source code ![Open in Cloud Shell][shell_img]
Node_groups.get source code ![Open in Cloud Shell][shell_img]
Node_groups.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Node_groups.insert source code ![Open in Cloud Shell][shell_img]
Node_groups.list source code ![Open in Cloud Shell][shell_img]
Node_groups.list_nodes source code ![Open in Cloud Shell][shell_img]
Node_groups.patch source code ![Open in Cloud Shell][shell_img]
Node_groups.perform_maintenance source code ![Open in Cloud Shell][shell_img]
Node_groups.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Node_groups.set_node_template source code ![Open in Cloud Shell][shell_img]
Node_groups.simulate_maintenance_event source code ![Open in Cloud Shell][shell_img]
Node_groups.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Node_templates.aggregated_list source code ![Open in Cloud Shell][shell_img]
Node_templates.delete source code ![Open in Cloud Shell][shell_img]
Node_templates.get source code ![Open in Cloud Shell][shell_img]
Node_templates.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Node_templates.insert source code ![Open in Cloud Shell][shell_img]
Node_templates.list source code ![Open in Cloud Shell][shell_img]
Node_templates.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Node_templates.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Node_types.aggregated_list source code ![Open in Cloud Shell][shell_img]
Node_types.get source code ![Open in Cloud Shell][shell_img]
Node_types.list source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.aggregated_list source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.delete source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.get source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.insert source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.list source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.patch source code ![Open in Cloud Shell][shell_img]
Packet_mirrorings.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Projects.disable_xpn_host source code ![Open in Cloud Shell][shell_img]
Projects.disable_xpn_resource source code ![Open in Cloud Shell][shell_img]
Projects.enable_xpn_host source code ![Open in Cloud Shell][shell_img]
Projects.enable_xpn_resource source code ![Open in Cloud Shell][shell_img]
Projects.get source code ![Open in Cloud Shell][shell_img]
Projects.get_xpn_host source code ![Open in Cloud Shell][shell_img]
Projects.get_xpn_resources source code ![Open in Cloud Shell][shell_img]
Projects.list_xpn_hosts source code ![Open in Cloud Shell][shell_img]
Projects.move_disk source code ![Open in Cloud Shell][shell_img]
Projects.move_instance source code ![Open in Cloud Shell][shell_img]
Projects.set_cloud_armor_tier source code ![Open in Cloud Shell][shell_img]
Projects.set_common_instance_metadata source code ![Open in Cloud Shell][shell_img]
Projects.set_default_network_tier source code ![Open in Cloud Shell][shell_img]
Projects.set_usage_export_bucket source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.announce source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.delete source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.get source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.insert source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.list source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.patch source code ![Open in Cloud Shell][shell_img]
Public_advertised_prefixes.withdraw source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.aggregated_list source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.announce source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.delete source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.get source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.insert source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.list source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.patch source code ![Open in Cloud Shell][shell_img]
Public_delegated_prefixes.withdraw source code ![Open in Cloud Shell][shell_img]
Region_autoscalers.delete source code ![Open in Cloud Shell][shell_img]
Region_autoscalers.get source code ![Open in Cloud Shell][shell_img]
Region_autoscalers.insert source code ![Open in Cloud Shell][shell_img]
Region_autoscalers.list source code ![Open in Cloud Shell][shell_img]
Region_autoscalers.patch source code ![Open in Cloud Shell][shell_img]
Region_autoscalers.update source code ![Open in Cloud Shell][shell_img]
Region_backend_services.delete source code ![Open in Cloud Shell][shell_img]
Region_backend_services.get source code ![Open in Cloud Shell][shell_img]
Region_backend_services.get_health source code ![Open in Cloud Shell][shell_img]
Region_backend_services.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Region_backend_services.insert source code ![Open in Cloud Shell][shell_img]
Region_backend_services.list source code ![Open in Cloud Shell][shell_img]
Region_backend_services.list_usable source code ![Open in Cloud Shell][shell_img]
Region_backend_services.patch source code ![Open in Cloud Shell][shell_img]
Region_backend_services.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Region_backend_services.set_security_policy source code ![Open in Cloud Shell][shell_img]
Region_backend_services.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Region_backend_services.update source code ![Open in Cloud Shell][shell_img]
Region_commitments.aggregated_list source code ![Open in Cloud Shell][shell_img]
Region_commitments.get source code ![Open in Cloud Shell][shell_img]
Region_commitments.insert source code ![Open in Cloud Shell][shell_img]
Region_commitments.list source code ![Open in Cloud Shell][shell_img]
Region_commitments.update source code ![Open in Cloud Shell][shell_img]
Region_disk_types.get source code ![Open in Cloud Shell][shell_img]
Region_disk_types.list source code ![Open in Cloud Shell][shell_img]
Region_disks.add_resource_policies source code ![Open in Cloud Shell][shell_img]
Region_disks.bulk_insert source code ![Open in Cloud Shell][shell_img]
Region_disks.create_snapshot source code ![Open in Cloud Shell][shell_img]
Region_disks.delete source code ![Open in Cloud Shell][shell_img]
Region_disks.get source code ![Open in Cloud Shell][shell_img]
Region_disks.get_iam_policy source code ![Open in Cloud Shell][shell_img]
Region_disks.insert source code ![Open in Cloud Shell][shell_img]
Region_disks.list source code ![Open in Cloud Shell][shell_img]
Region_disks.remove_resource_policies source code ![Open in Cloud Shell][shell_img]
Region_disks.resize source code ![Open in Cloud Shell][shell_img]
Region_disks.set_iam_policy source code ![Open in Cloud Shell][shell_img]
Region_disks.set_labels source code ![Open in Cloud Shell][shell_img]
Region_disks.start_async_replication source code ![Open in Cloud Shell][shell_img]
Region_disks.stop_async_replication source code ![Open in Cloud Shell][shell_img]
Region_disks.stop_group_async_replication source code ![Open in Cloud Shell][shell_img]
Region_disks.test_iam_permissions source code ![Open in Cloud Shell][shell_img]
Region_disks.update source code ![Open in Cloud Shell][shell_img]
Region_health_check_services.delete source code ![Open in Cloud Shell][shell_img]
Region_health_check_services.get source code ![Open in Cloud Shell][shell_img]
Region_health_check_services.insert source code ![Open in Cloud Shell][shell_img]
Region_health_check_services.list source code ![Open in Cloud Shell][shell_img]
Region_health_check_services.patch source code ![Open in Cloud Shell][shell_img]
Region_health_checks.delete source code ![Open in Cloud Shell][shell_img]
Region_health_checks.get source code ![Open in Cloud Shell][shell_img]
Region_health_checks.insert source code ![Open in Cloud Shell][shell_img]
Region_health_checks.list source code ![Open in Cloud Shell][shell_img]
Region_health_checks.patch source code ![Open in Cloud Shell][shell_img]
Region_health_checks.update source code ![Open in Cloud Shell][shell_img]
Region_instance_group_managers.abandon_instances source code ![Open in Cloud Shell][shell_img]
Region_instance_group_managers.apply_updates_to_instances source code ![Open in Cloud Shell][shell_img]
Region_instance_group_managers.create_instances source code ![Open in Cloud Shell][shell_img]
Region_instance_group_managers.delete source code ![Open in Cloud Shell][shell_img]
Region_instance_group_managers.delete_instances source code ![Open in Cloud Shell][shell_img]
Region_instance_group_managers.delete_per_instance_configs source code [![Open in Cloud Shell][shell_img]](https://console.cloud.goog

Package Sidebar

Install

npm i @google-cloud/compute

Weekly Downloads

132,405

Version

4.7.0

License

Apache-2.0

Unpacked Size

65.7 MB

Total Files

316

Last publish

Collaborators

  • google-wombot