Google Cloud Compute
Google Cloud Compute Pack.#
This Integration is part of theGoogle Compute Engine delivers virtual machines running in Google's innovative data centers and worldwide fiber network. Compute Engine's tooling and workflow support enable scaling from single instances to global, load-balanced cloud computing.
#
Configure Google Cloud Compute on Cortex XSOAR- Navigate to Settings > Integrations > Servers & Services.
- Search for Google Cloud Compute.
- Click Add instance to create and configure a new integration instance.
Parameter | Description | Required |
---|---|---|
service | Service Account Private Key file contents (JSON) | True |
proxy | Use system proxy settings | False |
default_search_scope | What is the top level object to search in (usually a project or organization in format of organization/XX). | False |
- Click Test to validate the URLs, token, and connection.
#
Create a Service Account- Go to the Google documentation and follow the procedure in the Creating a Service Account section. After you create a service account, a Service Account Private Key file is downloaded. You will need this file when configuring an instance of the integration.
- Grant the Compute Admin permission to the Service Account to enable the Service Account to perform certain Google Cloud API commands.
- In Cortex XSOAR, configure an instance of the Google Cloud Compute integration. For the Service Account Private Key parameter, add the Service Account Private Key file contents (JSON).
#
CommandsYou can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
gcp-compute-insert-instanceCreates an instance resource in the specified project using the data included in the request.
#
Base Commandgcp-compute-insert-instance
#
InputArgument Name | Description | Required |
---|---|---|
name | The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
zone | The name of the zone for this request. | Required |
tags | Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field. | Optional |
tagsFingerprint | Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. | Optional |
canIpForward | Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. | Optional |
machine_type | The machine type EX: n1-standard-1 or custom-4-5120 | Optional |
network | URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. | Optional |
subnetwork | The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL. | Optional |
networkIP | An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. | Optional |
networkInterfacesfingerprint | Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet. | Optional |
externalInternetAccess | This will set accessConfigs to type ONE_TO_ONE_NAT and name to External NAT | Optional |
externalNatIP | An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. | Optional |
setPublicPtr | Specifies whether a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name. | Optional |
publicPtrDomainName | The DNS domain name for the public PTR record. This field can only be set when the setPublicPtr field is enabled. | Optional |
networkTier | This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. | Optional |
ipCidrRange | The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 0.0.0.0), a netmask (e.g. /24) or a CIDR format string (e.g. 0.0.0.0/24). | Optional |
subnetworkRangeName | Optional subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. | Optional |
diskType | Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. | Optional |
diskMode | The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. | Optional |
diskSource | Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name, not the URL for the disk. | Optional |
diskDeviceName | Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. | Optional |
diskBoot | Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. | Optional |
initializeParamsDiskName | Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. | Optional |
initializeParamsSourceImage | The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD | Optional |
initializeParamsdiskSizeGb | Specifies the size of the disk in base-2 GB. | Optional |
initializeParamsDiskType | Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. | Optional |
initializeParamsSourceImageEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
initializeParamsSourceImageEncryptionKeykmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
initializeParamsDiskLabels | Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. EX: key=abc,value=123;key=abc,value=123 | Optional |
initializeParamsDiskDescription | An optional description. Provide this property when creating the disk. | Optional |
diskAutodelete | Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). | Optional |
diskInterface | Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. | Optional |
diskGuestOsFeatures | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. comma separated. | Optional |
diskEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
diskEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
metadataItems | The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. EX: key=abc,value=123;key=abc,value=123 | Optional |
serviceAccountEmail | Email address of the service account. | Optional |
serviceAccountscopes | The list of scopes to be made available for this service account. | Optional |
schedulingOnHostMaintenance | Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. | Optional |
schedulingAutomaticRestart | Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. | Optional |
schedulingPreemptible | Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created. | Optional |
labels | Labels to apply to this instance. These can be later modified by the setLabels method. key=abc,value=123;key=abc,value=123 | Optional |
labelFingerprint | A fingerprint for this request, which is essentially a hash of the label's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. | Optional |
minCpuPlatform | Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". | Optional |
guestAcceleratorsAcceleratorType | Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. | Optional |
guestAcceleratorsAcceleratorCount | The number of the guest accelerator cards exposed to this instance. | Optional |
deletionProtection | Whether the resource should be protected against deletion. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-get-image-from-familyReturns the latest image that is part of an image family and is not deprecated.
#
Base Commandgcp-compute-get-image-from-family
#
InputArgument Name | Description | Required |
---|---|---|
project | Project ID for this request. | Required |
family | Name of the image family to search for. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Images.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Images.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Images.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Images.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Images.sourceType | string | The type of the image used to create this disk. The default and only value is RAW |
GoogleCloudCompute.Images.rawDisk | string | The parameters of the raw disk image. |
GoogleCloudCompute.Images.rawDisk.source | string | The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both. |
GoogleCloudCompute.Images.rawDisk.sha1Checksum | string | An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. |
GoogleCloudCompute.Images.rawDisk.containerType | string | The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. |
GoogleCloudCompute.Images.deprecated | string | The deprecation status associated with this image. |
GoogleCloudCompute.Images.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Images.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Images.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.status | string | The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. |
GoogleCloudCompute.Images.archiveSizeBytes | string | Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). |
GoogleCloudCompute.Images.diskSizeGb | string | Size of the image when restored onto a persistent disk (in GB). |
GoogleCloudCompute.Images.sourceDisk | string | URL of the source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk , projects/project/zones/zone/disks/disk , zones/zone/disks/disk |
GoogleCloudCompute.Images.sourceDiskId | string | The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. |
GoogleCloudCompute.Images.licenses | string | Any applicable license URI. |
GoogleCloudCompute.Images.family | string | The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. |
GoogleCloudCompute.Images.imageEncryptionKey | string | Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later. |
GoogleCloudCompute.Images.imageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.imageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.imageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey | string | The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Images.labels | string | Labels to apply to this image. These can be later modified by the setLabels method. |
GoogleCloudCompute.Images.labelFingerprint | string | A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Images.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Images.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Images.licenseCodes | string | Integer license codes indicating which licenses are attached to this image. |
GoogleCloudCompute.Images.sourceImage | string | URL of the source image used to create this image. This can be a full or valid partial URL. |
GoogleCloudCompute.Images.sourceImageId | string | The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name. |
GoogleCloudCompute.Images.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.sourceSnapshot | string | URL of the source snapshot used to create this image. This can be a full or valid partial URL. |
GoogleCloudCompute.Images.sourceSnapshotId | string | The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey | string | The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.kind | string | Type of the resource. Always compute#image for images. |
#
Command Example
#
Human Readable Output#
gcp-compute-get-networkReturns the specified network.
#
Base Commandgcp-compute-get-network
#
InputArgument Name | Description | Required |
---|---|---|
network | Name of the network to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Networks.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Networks.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Networks.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Networks.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Networks.gatewayIPv4 | string | The gateway address for default routing out of the network. This value is read only and is selected by GCP. |
GoogleCloudCompute.Networks.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Networks.autoCreateSubnetworks | boolean | When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode. |
GoogleCloudCompute.Networks.subnetworks | string | Server-defined fully-qualified URLs for all subnetworks in this VPC network. |
GoogleCloudCompute.Networks.peerings | string | A list of network peerings for the resource. |
GoogleCloudCompute.Networks.peerings.name | string | Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Networks.peerings.network | string | The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. |
GoogleCloudCompute.Networks.peerings.state | string | State for the peering. |
GoogleCloudCompute.Networks.peerings.stateDetails | string | Details about the current state of the peering. |
GoogleCloudCompute.Networks.peerings.autoCreateRoutes | boolean | This field will be deprecated soon. Prefer using exchangeSubnetRoutes instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network. |
GoogleCloudCompute.Networks.peerings.exchangeSubnetRoutes | boolean | Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network. |
GoogleCloudCompute.Networks.routingConfig | string | The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. |
GoogleCloudCompute.Networks.routingConfig.routingMode | string | The network-wide routing mode to use. If set to REGIONAL, this networks cloud routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this networks cloud routers will advertise routes with all subnets of this network, across regions. |
GoogleCloudCompute.Networks.kind | string | Type of the resource. Always compute#network for networks. |
#
Command Example!gcp-compute-get-network network=default
#
Context Example#
Human Readable Output#
Google Cloud Compute Networksid | name |
---|---|
42 | default |
#
gcp-compute-list-instancesRetrieves the list of instances contained within the specified zone.
#
Base Commandgcp-compute-list-instances
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone for this request. | Required |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Instances.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Instances.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Instances.name | string | The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Instances.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Instances.tags | string | Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the tags.items field. |
GoogleCloudCompute.Instances.tags.items | string | An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.Instances.tags.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the tags contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. |
GoogleCloudCompute.Instances.machineType | string | Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. |
GoogleCloudCompute.Instances.status | string | The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. |
GoogleCloudCompute.Instances.statusMessage | string | An optional, human-readable explanation of the status. |
GoogleCloudCompute.Instances.zone | string | URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Instances.canIpForward | boolean | Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. |
GoogleCloudCompute.Instances.networkInterfaces | string | An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. |
GoogleCloudCompute.Instances.networkInterfaces.network | string | URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. |
GoogleCloudCompute.Instances.networkInterfaces.subnetwork | string | The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL |
GoogleCloudCompute.Instances.networkInterfaces.networkIP | string | An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. |
GoogleCloudCompute.Instances.networkInterfaces.name | string | The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs | string | An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.type | string | The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.name | string | The name of this access configuration. The default and recommended name is External NAT but you can use any arbitrary string you would like. For example, My external IP or Network Access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.natIP | string | An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.setPublicPtr | boolean | Specifies whether a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.publicPtrDomainName | string | The DNS domain name for the public PTR record. This field can only be set when the setPublicPtr field is enabled. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.networkTier | string | This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.kind | string | Type of the resource. Always compute#accessConfig for access configs. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges | string | An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.ipCidrRange | string | The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 0.0.0.0), a netmask (e.g. /24) or a CIDR format string (e.g. 0.0.0.0/24). |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.subnetworkRangeName | string | Optional subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. |
GoogleCloudCompute.Instances.networkInterfaces.fingerprint | string | Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.networkInterfaces.kind | string | Type of the resource. Always compute#networkInterface for network interfaces. |
GoogleCloudCompute.Instances.disks | string | Array of disks associated with this instance. Persistent disks must be created before you can assign them. |
GoogleCloudCompute.Instances.disks.type | string | Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. |
GoogleCloudCompute.Instances.disks.mode | string | The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. |
GoogleCloudCompute.Instances.disks.source | string | Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.deviceName | string | Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. |
GoogleCloudCompute.Instances.disks.index | number | A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. |
GoogleCloudCompute.Instances.disks.boot | boolean | Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. |
GoogleCloudCompute.Instances.disks.initializeParams | string | Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. |
GoogleCloudCompute.Instances.disks.initializeParams.diskName | string | Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImage | string | The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.initializeParams.diskSizeGb | string | Specifies the size of the disk in base-2 GB. |
GoogleCloudCompute.Instances.disks.initializeParams.diskType | string | Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.initializeParams.labels | string | Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.key | string | The disk label key. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.value | string | The disk label value. |
GoogleCloudCompute.Instances.disks.initializeParams.description | string | An optional description. Provide this property when creating the disk. |
GoogleCloudCompute.Instances.disks.autoDelete | boolean | Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). |
GoogleCloudCompute.Instances.disks.licenses | string | Any valid publicly visible licenses. |
GoogleCloudCompute.Instances.disks.interface | string | Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. |
GoogleCloudCompute.Instances.disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey | string | Encrypts or decrypts a disk using a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.kind | string | Type of the resource. Always compute#attachedDisk for attached disks. |
GoogleCloudCompute.Instances.metadata | string | The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. |
GoogleCloudCompute.Instances.metadata.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the metadatas contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.metadata.items | string | Array of key/value pairs. The total size of all keys and values must be less than 512 KB. |
GoogleCloudCompute.Instances.metadata.items.key | string | Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project. |
GoogleCloudCompute.Instances.metadata.items.value | string | Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 42 bytes (256 KiB). |
GoogleCloudCompute.Instances.metadata.kind | string | Type of the resource. Always compute#metadata for metadata. |
GoogleCloudCompute.Instances.serviceAccounts | string | A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. |
GoogleCloudCompute.Instances.serviceAccounts.email | string | Email address of the service account. |
GoogleCloudCompute.Instances.serviceAccounts.scopes | string | The list of scopes to be made available for this service account |
GoogleCloudCompute.Instances.selfLink | string | Server-defined URL for this resource. |
GoogleCloudCompute.Instances.scheduling | string | Sets the scheduling options for this instance. |
GoogleCloudCompute.Instances.scheduling.onHostMaintenance | string | Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. |
GoogleCloudCompute.Instances.scheduling.automaticRestart | boolean | Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. |
GoogleCloudCompute.Instances.scheduling.preemptible | boolean | Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities | string | A set of node affinity and anti-affinity. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.key | string | Corresponds to the label key of Node resource. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.operator | string | Defines the operation of node selection. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.values | string | Corresponds to the label values of Node resource. |
GoogleCloudCompute.Instances.cpuPlatform | string | The CPU platform used by this instance. |
GoogleCloudCompute.Instances.labels | string | Labels to apply to this instance. These can be later modified by the setLabels method. |
GoogleCloudCompute.Instances.labels.key | string | The label key. |
GoogleCloudCompute.Instances.labels.value | string | The label value. |
GoogleCloudCompute.Instances.labelFingerprint | string | A fingerprint for this request, which is essentially a hash of the labels contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. |
GoogleCloudCompute.Instances.minCpuPlatform | string | Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". |
GoogleCloudCompute.Instances.guestAccelerators | string | A list of the type and count of accelerator cards attached to the instance. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorType | string | Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorCount | string | The number of the guest accelerator cards exposed to this instance. |
GoogleCloudCompute.Instances.startRestricted | boolean | Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. |
GoogleCloudCompute.Instances.deletionProtection | boolean | Whether the resource should be protected against deletion. |
GoogleCloudCompute.Instances.hostname | string | Hostname |
GoogleCloudCompute.Instances.kind | string | ] Type of the resource. Always compute#instance for instances. |
#
Command Example!gcp-compute-list-instances zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Instancesid | machineType | name | zone |
---|---|---|---|
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock-disk | https://www.mockapi.com/zones/ |
#
gcp-compute-aggregated-list-instancesRetrieves aggregated list of all of the instances in your project across all regions and zones.
#
Base Commandgcp-compute-aggregated-list-instances
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Instances.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Instances.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Instances.name | string | The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Instances.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Instances.tags | string | Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the tags.items field. |
GoogleCloudCompute.Instances.tags.items | string | An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.Instances.tags.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the tags contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. |
GoogleCloudCompute.Instances.machineType | string | Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. |
GoogleCloudCompute.Instances.status | string | The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. |
GoogleCloudCompute.Instances.statusMessage | string | An optional, human-readable explanation of the status. |
GoogleCloudCompute.Instances.zone | string | URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Instances.canIpForward | boolean | Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. |
GoogleCloudCompute.Instances.networkInterfaces | string | An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. |
GoogleCloudCompute.Instances.networkInterfaces.network | string | URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. |
GoogleCloudCompute.Instances.networkInterfaces.subnetwork | string | The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL |
GoogleCloudCompute.Instances.networkInterfaces.networkIP | string | An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. |
GoogleCloudCompute.Instances.networkInterfaces.name | string | The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs | string | An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.type | string | The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.name | string | The name of this access configuration. The default and recommended name is External NAT but you can use any arbitrary string you would like. For example, My external IP or Network Access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.natIP | string | An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.setPublicPtr | boolean | Specifies whether a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.publicPtrDomainName | string | The DNS domain name for the public PTR record. This field can only be set when the setPublicPtr field is enabled. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.networkTier | string | This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.kind | string | Type of the resource. Always compute#accessConfig for access configs. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges | string | An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.ipCidrRange | string | The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 0.0.0.0), a netmask (e.g. /24) or a CIDR format string (e.g. 0.0.0.0/24). |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.subnetworkRangeName | string | Optional subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. |
GoogleCloudCompute.Instances.networkInterfaces.fingerprint | string | Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.networkInterfaces.kind | string | Type of the resource. Always compute#networkInterface for network interfaces. |
GoogleCloudCompute.Instances.disks | string | Array of disks associated with this instance. Persistent disks must be created before you can assign them. |
GoogleCloudCompute.Instances.disks.type | string | Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. |
GoogleCloudCompute.Instances.disks.mode | string | The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. |
GoogleCloudCompute.Instances.disks.source | string | Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.deviceName | string | Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. |
GoogleCloudCompute.Instances.disks.index | number | A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. |
GoogleCloudCompute.Instances.disks.boot | boolean | Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. |
GoogleCloudCompute.Instances.disks.initializeParams | string | Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. |
GoogleCloudCompute.Instances.disks.initializeParams.diskName | string | Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImage | string | The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.initializeParams.diskSizeGb | string | Specifies the size of the disk in base-2 GB. |
GoogleCloudCompute.Instances.disks.initializeParams.diskType | string | Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.initializeParams.labels | string | Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.key | string | The disk label key. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.value | string | The disk label value. |
GoogleCloudCompute.Instances.disks.initializeParams.description | string | An optional description. Provide this property when creating the disk. |
GoogleCloudCompute.Instances.disks.autoDelete | boolean | Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). |
GoogleCloudCompute.Instances.disks.licenses | string | Any valid publicly visible licenses. |
GoogleCloudCompute.Instances.disks.interface | string | Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. |
GoogleCloudCompute.Instances.disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey | string | Encrypts or decrypts a disk using a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.kind | string | Type of the resource. Always compute#attachedDisk for attached disks. |
GoogleCloudCompute.Instances.metadata | string | The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. |
GoogleCloudCompute.Instances.metadata.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the metadatas contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.metadata.items | string | Array of key/value pairs. The total size of all keys and values must be less than 512 KB. |
GoogleCloudCompute.Instances.metadata.items.key | string | Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project. |
GoogleCloudCompute.Instances.metadata.items.value | string | Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 42 bytes (256 KiB). |
GoogleCloudCompute.Instances.metadata.kind | string | Type of the resource. Always compute#metadata for metadata. |
GoogleCloudCompute.Instances.serviceAccounts | string | A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. |
GoogleCloudCompute.Instances.serviceAccounts.email | string | Email address of the service account. |
GoogleCloudCompute.Instances.serviceAccounts.scopes | string | The list of scopes to be made available for this service account |
GoogleCloudCompute.Instances.selfLink | string | Server-defined URL for this resource. |
GoogleCloudCompute.Instances.scheduling | string | Sets the scheduling options for this instance. |
GoogleCloudCompute.Instances.scheduling.onHostMaintenance | string | Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. |
GoogleCloudCompute.Instances.scheduling.automaticRestart | boolean | Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. |
GoogleCloudCompute.Instances.scheduling.preemptible | boolean | Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities | string | A set of node affinity and anti-affinity. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.key | string | Corresponds to the label key of Node resource. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.operator | string | Defines the operation of node selection. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.values | string | Corresponds to the label values of Node resource. |
GoogleCloudCompute.Instances.cpuPlatform | string | The CPU platform used by this instance. |
GoogleCloudCompute.Instances.labels | string | Labels to apply to this instance. These can be later modified by the setLabels method. |
GoogleCloudCompute.Instances.labels.key | string | The label key. |
GoogleCloudCompute.Instances.labels.value | string | The label value. |
GoogleCloudCompute.Instances.labelFingerprint | string | A fingerprint for this request, which is essentially a hash of the labels contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. |
GoogleCloudCompute.Instances.minCpuPlatform | string | Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". |
GoogleCloudCompute.Instances.guestAccelerators | string | A list of the type and count of accelerator cards attached to the instance. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorType | string | Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorCount | string | The number of the guest accelerator cards exposed to this instance. |
GoogleCloudCompute.Instances.startRestricted | boolean | Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. |
GoogleCloudCompute.Instances.deletionProtection | boolean | Whether the resource should be protected against deletion. |
GoogleCloudCompute.Instances.hostname | string | Hostname |
GoogleCloudCompute.Instances.kind | string | ] Type of the resource. Always compute#instance for instances. |
#
Command Example!gcp-compute-aggregated-list-instances
#
Context Example#
Human Readable Output#
Google Cloud Compute Instancesid | machineType | name | zone |
---|---|---|---|
42 | machineType | test01 | https://www.mockapi.com/zones/europe-west2-c |
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock-disk | https://www.mockapi.com/zones/ |
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock_instance-8vkj | https://www.mockapi.com/zones/ |
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock_instance-g4pt | https://www.mockapi.com/zones/ |
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock_instance-j381 | https://www.mockapi.com/zones/ |
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock_instance-j48z | https://www.mockapi.com/zones/ |
42 | https://www.mockapi.com/zones//machineTypes/mock-machine | mock_instance-wb7s | https://www.mockapi.com/zones/ |
#
gcp-compute-get-global-operationRetrieves the specified Operations resource. Gets a list of operations by making a list() request.
#
Base Commandgcp-compute-get-global-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-get-global-operation name=mock-operation
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | compute.projects.setCommonInstanceMetadata | 100 | DONE |
#
gcp-compute-get-zone-operationRetrieves the specified zone-specific Operations resource.
#
Base Commandgcp-compute-get-zone-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource to return. | Required |
zone | Name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-list-zone-operationRetrieves a list of Operation resources contained within the specified zone.
#
Base Commandgcp-compute-list-zone-operation
#
InputArgument Name | Description | Required |
---|---|---|
zone | Name of the zone for request. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-list-zone-operation zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | startTime | status |
---|---|---|---|---|---|---|
42 | compute#operation | mock-operation | compute.instanceGroupManagers.insert | 100 | 2020-04-21T02:13:05.694-07:00 | DONE |
42 | compute#operation | mock-operation | compute.zoneInstanceTemplates.insert | 100 | 2020-04-21T02:13:08.017-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-21T02:13:16.811-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-21T02:13:17.780-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-21T02:13:17.622-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-21T03:00:05.489-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-21T03:00:06.782-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-21T03:00:08.158-07:00 | DONE |
42 | compute#operation | mock-operation | compute.instanceGroupManagers.resize | 100 | 2020-04-27T05:09:08.086-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-27T05:09:12.270-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-27T05:09:11.594-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-27T05:09:12.297-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-27T05:46:15.288-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-27T05:46:17.483-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-27T05:46:19.758-07:00 | DONE |
42 | compute#operation | mock-operation | createSnapshot | 100 | 2020-04-29T23:28:38.907-07:00 | DONE |
42 | compute#operation | mock-operation | createSnapshot | 100 | 2020-04-30T02:52:21.937-07:00 | DONE |
42 | compute#operation | mock-operation | insert | 100 | 2020-04-30T03:28:27.942-07:00 | DONE |
42 | compute#operation | mock-operation | setLabels | 100 | 2020-04-30T05:38:37.097-07:00 | DONE |
42 | compute#operation | mock-operation | compute.instanceGroups.insert | 100 | 2020-04-30T05:49:45.300-07:00 | DONE |
42 | compute#operation | mock-operation | compute.instanceGroups.setNamedPorts | 100 | 2020-05-03T00:30:43.933-07:00 | DONE |
42 | compute#operation | mock-operation | compute.instanceGroupManagers.setNamedPorts | 100 | 2020-05-03T00:30:44.992-07:00 | DONE |
42 | compute#operation | mock-operation | compute.instanceGroups.setNamedPorts | 100 | 2020-05-03T00:31:01.092-07:00 | DONE |
42 | compute#operation | mock-operation | compute.instanceGroupManagers.setNamedPorts | 100 | 2020-05-03T00:31:01.999-07:00 | DONE |
42 | compute#operation | mock-operation | createSnapshot | 100 | 2020-05-03T00:40:58.861-07:00 | DONE |
42 | compute#operation | mock-operation | createSnapshot | 0 | 2020-05-03T01:13:23.718-07:00 | RUNNING |
42 | compute#operation | systemevent-42-5a3d42c0-a1515ace-f42 | compute.instances.migrateOnHostMaintenance | 100 | 2020-04-21T17:27:39.000-07:00 | DONE |
#
gcp-compute-delete-zone-operationDeletes the specified zone-specific Operations resource.
#
Base Commandgcp-compute-delete-zone-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource to delete. | Required |
zone | Name of the zone for this request. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example
#
Human Readable Output#
gcp-compute-get-instanceReturns the specified Instance resource. Gets a list of available instances by making a list() request.
#
Base Commandgcp-compute-get-instance
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance resource to return. | Required |
zone | The name of the zone for this request. | Required |
project_id | Project ID that you want to run this command on. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Instances.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Instances.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Instances.name | string | The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Instances.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Instances.tags | string | Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the tags.items field. |
GoogleCloudCompute.Instances.tags.items | string | An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.Instances.tags.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the tags contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. |
GoogleCloudCompute.Instances.machineType | string | Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. |
GoogleCloudCompute.Instances.status | string | The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. |
GoogleCloudCompute.Instances.statusMessage | string | An optional, human-readable explanation of the status. |
GoogleCloudCompute.Instances.zone | string | URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Instances.canIpForward | boolean | Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. |
GoogleCloudCompute.Instances.networkInterfaces | string | An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. |
GoogleCloudCompute.Instances.networkInterfaces.network | string | URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. |
GoogleCloudCompute.Instances.networkInterfaces.subnetwork | string | The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL |
GoogleCloudCompute.Instances.networkInterfaces.networkIP | string | An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. |
GoogleCloudCompute.Instances.networkInterfaces.name | string | The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs | string | An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.type | string | The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.name | string | The name of this access configuration. The default and recommended name is External NAT but you can use any arbitrary string you would like. For example, My external IP or Network Access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.natIP | string | An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.setPublicPtr | boolean | Specifies whether a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.publicPtrDomainName | string | The DNS domain name for the public PTR record. This field can only be set when the setPublicPtr field is enabled. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.networkTier | string | This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.kind | string | Type of the resource. Always compute#accessConfig for access configs. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges | string | An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.ipCidrRange | string | The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 0.0.0.0), a netmask (e.g. /24) or a CIDR format string (e.g. 0.0.0.0/24). |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.subnetworkRangeName | string | Optional subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. |
GoogleCloudCompute.Instances.networkInterfaces.fingerprint | string | Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.networkInterfaces.kind | string | Type of the resource. Always compute#networkInterface for network interfaces. |
GoogleCloudCompute.Instances.disks | string | Array of disks associated with this instance. Persistent disks must be created before you can assign them. |
GoogleCloudCompute.Instances.disks.type | string | Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. |
GoogleCloudCompute.Instances.disks.mode | string | The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. |
GoogleCloudCompute.Instances.disks.source | string | Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.deviceName | string | Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. |
GoogleCloudCompute.Instances.disks.index | number | A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. |
GoogleCloudCompute.Instances.disks.boot | boolean | Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. |
GoogleCloudCompute.Instances.disks.initializeParams | string | Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. |
GoogleCloudCompute.Instances.disks.initializeParams.diskName | string | Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImage | string | The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.initializeParams.diskSizeGb | string | Specifies the size of the disk in base-2 GB. |
GoogleCloudCompute.Instances.disks.initializeParams.diskType | string | Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.initializeParams.labels | string | Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.key | string | The disk label key. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.value | string | The disk label value. |
GoogleCloudCompute.Instances.disks.initializeParams.description | string | An optional description. Provide this property when creating the disk. |
GoogleCloudCompute.Instances.disks.autoDelete | boolean | Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). |
GoogleCloudCompute.Instances.disks.licenses | string | Any valid publicly visible licenses. |
GoogleCloudCompute.Instances.disks.interface | string | Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. |
GoogleCloudCompute.Instances.disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey | string | Encrypts or decrypts a disk using a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.kind | string | Type of the resource. Always compute#attachedDisk for attached disks. |
GoogleCloudCompute.Instances.metadata | string | The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. |
GoogleCloudCompute.Instances.metadata.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the metadatas contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.metadata.items | string | Array of key/value pairs. The total size of all keys and values must be less than 512 KB. |
GoogleCloudCompute.Instances.metadata.items.key | string | Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project. |
GoogleCloudCompute.Instances.metadata.items.value | string | Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 42 bytes (256 KiB). |
GoogleCloudCompute.Instances.metadata.kind | string | Type of the resource. Always compute#metadata for metadata. |
GoogleCloudCompute.Instances.serviceAccounts | string | A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. |
GoogleCloudCompute.Instances.serviceAccounts.email | string | Email address of the service account. |
GoogleCloudCompute.Instances.serviceAccounts.scopes | string | The list of scopes to be made available for this service account |
GoogleCloudCompute.Instances.selfLink | string | Server-defined URL for this resource. |
GoogleCloudCompute.Instances.scheduling | string | Sets the scheduling options for this instance. |
GoogleCloudCompute.Instances.scheduling.onHostMaintenance | string | Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. |
GoogleCloudCompute.Instances.scheduling.automaticRestart | boolean | Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. |
GoogleCloudCompute.Instances.scheduling.preemptible | boolean | Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities | string | A set of node affinity and anti-affinity. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.key | string | Corresponds to the label key of Node resource. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.operator | string | Defines the operation of node selection. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.values | string | Corresponds to the label values of Node resource. |
GoogleCloudCompute.Instances.cpuPlatform | string | The CPU platform used by this instance. |
GoogleCloudCompute.Instances.labels | string | Labels to apply to this instance. These can be later modified by the setLabels method. |
GoogleCloudCompute.Instances.labels.key | string | The label key. |
GoogleCloudCompute.Instances.labels.value | string | The label value. |
GoogleCloudCompute.Instances.labelFingerprint | string | A fingerprint for this request, which is essentially a hash of the labels contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. |
GoogleCloudCompute.Instances.minCpuPlatform | string | Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". |
GoogleCloudCompute.Instances.guestAccelerators | string | A list of the type and count of accelerator cards attached to the instance. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorType | string | Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorCount | string | The number of the guest accelerator cards exposed to this instance. |
GoogleCloudCompute.Instances.startRestricted | boolean | Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. |
GoogleCloudCompute.Instances.deletionProtection | boolean | Whether the resource should be protected against deletion. |
GoogleCloudCompute.Instances.hostname | string | Hostname |
GoogleCloudCompute.Instances.kind | string | ] Type of the resource. Always compute#instance for instances. |
#
Command Example!gcp-compute-get-instance instance=test01 zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Instancesid | machineType | name | zone |
---|---|---|---|
42 | machineType | test01 | https://www.mockapi.com/zones/europe-west2-c |
#
gcp-compute-delete-instanceDeletes the specified Instance resource. For more information, see Stopping or Deleting an Instance.
#
Base Commandgcp-compute-delete-instance
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance resource to delete. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-start-instanceStarts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
#
Base Commandgcp-compute-start-instance
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance resource to start. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-start-instance instance=test01 zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | start | 0 | RUNNING |
#
gcp-compute-stop-instanceStops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.
#
Base Commandgcp-compute-stop-instance
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance resource to stop. | Required |
zone | The name of the zone for this request. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-stop-instance instance=test01 zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | stop | 0 | PENDING |
#
gcp-compute-reset-instancePerforms a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.
#
Base Commandgcp-compute-reset-instance
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance scoping this request. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-set-instance-labelsSets labels on an instance. To learn more about labels, read the Labeling Resources documentation.
#
Base Commandgcp-compute-set-instance-labels
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance scoping this request. | Required |
zone | The name of the zone for this request. | Required |
labels | An object containing a list of "key": value pairs. Example: key=abc,value=123;key=ABC,value=321 | Required |
labelFingerprint | Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-set-instance-metadataSets metadata for the specified instance to the data included in the request.
#
Base Commandgcp-compute-set-instance-metadata
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance scoping this request. | Required |
zone | The name of the zone for this request. | Required |
metadataFingerprint | Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. | Optional |
metadataItems | key/value pairs. EX: key=abc,value=123;key=ABC,value=321 | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-set-instance-machine-typeChanges the machine type for a stopped instance to the machine type specified in the request.
#
Base Commandgcp-compute-set-instance-machine-type
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance scoping this request. | Required |
zone | The name of the zone for this request. | Required |
machineType | Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1 | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-set-instance-machine-type instance=test01 machineType=machineType zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | setMachineType | 0 | RUNNING |
#
gcp-compute-get-region-operationRetrieves the specified region-specific Operations resource.
#
Base Commandgcp-compute-get-region-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource to return. | Required |
region | Name of the region for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-list-region-operationRetrieves a list of Operation resources contained within the specified region.
#
Base Commandgcp-compute-list-region-operation
#
InputArgument Name | Description | Required |
---|---|---|
region | Name of the region for this request. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-list-region-operation region=europe-west2
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | startTime | status |
---|---|---|---|---|---|---|
42 | compute#operation | mock-operation | compute.subnetworks.patch | 100 | 2020-04-21T02:12:37.901-07:00 | DONE |
#
gcp-compute-delete-region-operationDeletes the specified region-specific Operations resource.
#
Base Commandgcp-compute-delete-region-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource to delete. | Required |
region | Name of the region for this request. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example
#
Human Readable Output#
gcp-compute-list-global-operationRetrieves a list of Operation resources contained within the specified project.
#
Base Commandgcp-compute-list-global-operation
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-list-global-operation maxResults=5
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | startTime | status |
---|---|---|---|---|---|---|
42 | compute#operation | mock-operation | insert | 100 | 2020-04-21T01:48:24.798-07:00 | DONE |
#
gcp-compute-delete-global-operationDeletes the specified Operations resource.
#
Base Commandgcp-compute-delete-global-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource to delete. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example
#
Human Readable Output#
gcp-compute-delete-addressDeletes the specified address resource.
#
Base Commandgcp-compute-delete-address
#
InputArgument Name | Description | Required |
---|---|---|
address | Name of the address resource to delete. | Required |
region | Name of the region for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-delete-address address=testaddress region=europe-west2
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | delete | 0 | RUNNING |
#
gcp-compute-get-addressReturns the specified address resource.
#
Base Commandgcp-compute-get-address
#
InputArgument Name | Description | Required |
---|---|---|
address | Name of the address resource to return. | Required |
region | Name of the region for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Addresses.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Addresses.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Addresses.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Addresses.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Addresses.address | string | The static IP address represented by this resource. |
GoogleCloudCompute.Addresses.prefixLength | number | The prefix length if the resource reprensents an IP range. |
GoogleCloudCompute.Addresses.status | string | The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. |
GoogleCloudCompute.Addresses.region | string | URL of the region where the regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. You cannot set this field in the request body. |
GoogleCloudCompute.Addresses.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Addresses.users | string | The URLs of the resources that are using this address. |
GoogleCloudCompute.Addresses.networkTier | string | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. |
GoogleCloudCompute.Addresses.ipVersion | string | The IP Version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. |
GoogleCloudCompute.Addresses.addressType | string | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. |
GoogleCloudCompute.Addresses.purpose | string | The purpose of resource, only used with INTERNAL type. |
GoogleCloudCompute.Addresses.subnetwork | string | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetworks IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. |
GoogleCloudCompute.Addresses.network | string | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. |
GoogleCloudCompute.Addresses.kind | string | Type of the resource. Always compute#address for addresses. |
#
Command Example!gcp-compute-get-address address=testaddress region=europe-west2
#
Context Example#
Human Readable Output#
Google Cloud Compute Addressesaddress | id | name |
---|---|---|
8.8.8.8 | 42 | testaddress |
#
gcp-compute-insert-addressCreates an address resource in the specified project using the data included in the request.
#
Base Commandgcp-compute-insert-address
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
region | Name of the region for this request. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
address | The static IP address represented by this resource. | Optional |
prefixLength | The prefix length if the resource reprensents an IP range. | Optional |
networkTier | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. If this field is not specified, it is assumed to be PREMIUM. | Optional |
addressType | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. | Optional |
purpose | The purpose of resource, only used with INTERNAL type. | Optional |
subnetwork | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. | Optional |
network | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-insert-address name=testaddress region=europe-west2
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | insert | 0 | RUNNING |
#
gcp-compute-list-addressesRetrieves a list of addresses contained within the specified region.
#
Base Commandgcp-compute-list-addresses
#
InputArgument Name | Description | Required |
---|---|---|
region | Name of the region for this request. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Addresses.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Addresses.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Addresses.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Addresses.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Addresses.address | string | The static IP address represented by this resource. |
GoogleCloudCompute.Addresses.prefixLength | number | The prefix length if the resource reprensents an IP range. |
GoogleCloudCompute.Addresses.status | string | The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. |
GoogleCloudCompute.Addresses.region | string | URL of the region where the regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. You cannot set this field in the request body. |
GoogleCloudCompute.Addresses.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Addresses.users | string | The URLs of the resources that are using this address. |
GoogleCloudCompute.Addresses.networkTier | string | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. |
GoogleCloudCompute.Addresses.ipVersion | string | The IP Version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. |
GoogleCloudCompute.Addresses.addressType | string | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. |
GoogleCloudCompute.Addresses.purpose | string | The purpose of resource, only used with INTERNAL type. |
GoogleCloudCompute.Addresses.subnetwork | string | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetworks IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. |
GoogleCloudCompute.Addresses.network | string | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. |
GoogleCloudCompute.Addresses.kind | string | Type of the resource. Always compute#address for addresses. |
#
Command Example!gcp-compute-list-addresses region=europe-west2
#
Context Example#
Human Readable Output#
Google Cloud Compute Addressesaddress | id | name |
---|---|---|
8.8.8.8 | 42 | testaddress |
#
gcp-compute-aggregated-list-addressesRetrieves an aggregated list of addresses.
#
Base Commandgcp-compute-aggregated-list-addresses
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Addresses.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Addresses.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Addresses.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Addresses.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Addresses.address | string | The static IP address represented by this resource. |
GoogleCloudCompute.Addresses.prefixLength | number | The prefix length if the resource reprensents an IP range. |
GoogleCloudCompute.Addresses.status | string | The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. |
GoogleCloudCompute.Addresses.region | string | URL of the region where the regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. You cannot set this field in the request body. |
GoogleCloudCompute.Addresses.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Addresses.users | string | The URLs of the resources that are using this address. |
GoogleCloudCompute.Addresses.networkTier | string | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. |
GoogleCloudCompute.Addresses.ipVersion | string | The IP Version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. |
GoogleCloudCompute.Addresses.addressType | string | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. |
GoogleCloudCompute.Addresses.purpose | string | The purpose of resource, only used with INTERNAL type. |
GoogleCloudCompute.Addresses.subnetwork | string | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetworks IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. |
GoogleCloudCompute.Addresses.network | string | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. |
GoogleCloudCompute.Addresses.kind | string | Type of the resource. Always compute#address for addresses. |
#
Command Example!gcp-compute-aggregated-list-addresses
#
Context Example#
Human Readable Output#
Google Cloud Compute Addressesaddress | id | name |
---|---|---|
8.8.8.8 | 42 | a-b-c-1 |
8.8.8.8 | 42 | testaddress |
#
gcp-compute-delete-global-addressDeletes the specified address resource.
#
Base Commandgcp-compute-delete-global-address
#
InputArgument Name | Description | Required |
---|---|---|
address | Name of the address resource to delete. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-delete-global-address address=a-b-c-1
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | delete | 0 | RUNNING |
#
gcp-compute-get-global-addressDeletes the specified address resource.
#
Base Commandgcp-compute-get-global-address
#
InputArgument Name | Description | Required |
---|---|---|
address | Name of the address resource to delete. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Addresses.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Addresses.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Addresses.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Addresses.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Addresses.address | string | The static IP address represented by this resource. |
GoogleCloudCompute.Addresses.prefixLength | number | The prefix length if the resource reprensents an IP range. |
GoogleCloudCompute.Addresses.status | string | The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. |
GoogleCloudCompute.Addresses.region | string | URL of the region where the regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. You cannot set this field in the request body. |
GoogleCloudCompute.Addresses.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Addresses.users | string | The URLs of the resources that are using this address. |
GoogleCloudCompute.Addresses.networkTier | string | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. |
GoogleCloudCompute.Addresses.ipVersion | string | The IP Version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. |
GoogleCloudCompute.Addresses.addressType | string | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. |
GoogleCloudCompute.Addresses.purpose | string | The purpose of resource, only used with INTERNAL type. |
GoogleCloudCompute.Addresses.subnetwork | string | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetworks IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. |
GoogleCloudCompute.Addresses.network | string | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. |
GoogleCloudCompute.Addresses.kind | string | Type of the resource. Always compute#address for addresses. |
#
Command Example!gcp-compute-get-global-address address=a-b-c-1
#
Context Example#
Human Readable Output#
Google Cloud Compute Addressesaddress | id | name |
---|---|---|
8.8.8.8 | 42 | a-b-c-1 |
#
gcp-compute-insert-global-addressCreates an address resource in the specified project using the data included in the request.
#
Base Commandgcp-compute-insert-global-address
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
address | The static IP address represented by this resource. | Optional |
prefixLength | The prefix length if the resource reprensents an IP range. | Optional |
networkTier | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. If this field is not specified, it is assumed to be PREMIUM. | Optional |
ipVersion | The IP Version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. | Required |
addressType | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. | Optional |
purpose | The purpose of resource, only used with INTERNAL type. | Optional |
subnetwork | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. | Optional |
network | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-insert-global-address ipVersion=IPV4 name=a-b-c-1
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | insert | 0 | RUNNING |
#
gcp-compute-list-global-addressesRetrieves a list of global addresses.
#
Base Commandgcp-compute-list-global-addresses
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Addresses.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Addresses.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Addresses.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Addresses.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Addresses.address | string | The static IP address represented by this resource. |
GoogleCloudCompute.Addresses.prefixLength | number | The prefix length if the resource reprensents an IP range. |
GoogleCloudCompute.Addresses.status | string | The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. |
GoogleCloudCompute.Addresses.region | string | URL of the region where the regional address resides. This field is not applicable to global addresses. You must specify this field as part of the HTTP request URL. You cannot set this field in the request body. |
GoogleCloudCompute.Addresses.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Addresses.users | string | The URLs of the resources that are using this address. |
GoogleCloudCompute.Addresses.networkTier | string | This signifies the networking tier used for configuring this Address and can only take the following values: PREMIUM, STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a Network load balancer. |
GoogleCloudCompute.Addresses.ipVersion | string | The IP Version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. |
GoogleCloudCompute.Addresses.addressType | string | The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL. |
GoogleCloudCompute.Addresses.purpose | string | The purpose of resource, only used with INTERNAL type. |
GoogleCloudCompute.Addresses.subnetwork | string | The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetworks IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. |
GoogleCloudCompute.Addresses.network | string | The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with VPC_PEERING purpose. |
GoogleCloudCompute.Addresses.kind | string | Type of the resource. Always compute#address for addresses. |
#
Command Example!gcp-compute-list-global-addresses
#
Context Example#
Human Readable Output#
Google Cloud Compute Addressesaddress | id | name |
---|---|---|
8.8.8.8 | 42 | a-b-c-1 |
#
gcp-compute-aggregated-list-disksRetrieves an aggregated list of persistent disks.
#
Base Commandgcp-compute-aggregated-list-disks
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Disks.id | string | Unique identifier for the resource; defined by the server. |
GoogleCloudCompute.Disks.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Disks.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Disks.sizeGb | string | Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. |
GoogleCloudCompute.Disks.zone | string | URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Disks.status | string | The status of disk creation. |
GoogleCloudCompute.Disks.sourceSnapshot | string | The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. |
GoogleCloudCompute.Disks.sourceSnapshotId | string | The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used. |
GoogleCloudCompute.Disks.options | string | Internal use only. |
GoogleCloudCompute.Disks.selfLink | string | Server-defined fully-qualified URL for this resource. |
GoogleCloudCompute.Disks.sourceImage | string | The source image used to create this disk. If the source image is deleted, this field will not be set. |
GoogleCloudCompute.Disks.sourceImageId | string | The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. |
GoogleCloudCompute.Disks.type | string | URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: project/zones/zone/diskTypes/pd-standard or pd-ssd |
GoogleCloudCompute.Disks.licenses | string | A list of publicly visible licenses. Reserved for Googles use. |
GoogleCloudCompute.Disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Disks.lastAttachTimestamp | string | Last attach timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.lastDetachTimestamp | string | Last detach timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.users | string | Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance |
GoogleCloudCompute.Disks.diskEncryptionKey | string | Encrypts the disk using a customer-supplied encryption key. |
GoogleCloudCompute.Disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey | string | The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.labels | string | Labels to apply to this disk. These can be later modified by the setLabels method. |
GoogleCloudCompute.Disks.labels.key | string | The label key |
GoogleCloudCompute.Disks.labels.value | string | The label value |
GoogleCloudCompute.Disks.labelFingerprint | string | A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Disks.region | string | URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Disks.replicaZones | string | URLs of the zones where the disk should be replicated to. Only applicable for regional resources. |
GoogleCloudCompute.Disks.licenseCodes | string | Integer license codes indicating which licenses are attached to this disk. |
GoogleCloudCompute.Disks.physicalBlockSizeBytes | string | Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 42, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the callers project. |
GoogleCloudCompute.Disks.kind | string | Type of the resource. Always compute#disk for disks. |
#
Command Example!gcp-compute-aggregated-list-disks
#
Context Example#
Human Readable Output#
Google Cloud Compute Disksid | name | sizeGb | status | type | zone |
---|---|---|---|---|---|
42 | test01 | 100 | READY | https://www.mockapi.com/zones/europe-west2-c/diskTypes/pd-standard | https://www.mockapi.com/zones/europe-west2-c |
#
gcp-compute-create-disk-snapshotCreates a snapshot of a specified persistent disk.
#
Base Commandgcp-compute-create-disk-snapshot
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone for this request. | Required |
name | Name of the snapshot. | Required |
disk | Name of the persistent disk to snapshot. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
snapshotEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
snapshotEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
sourceDiskEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
sourceDiskEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
labels | Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. ex key=abc,value=123;key=abc,value=123 | Optional |
labelFingerprint | A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-create-disk-snapshot disk=mock-disk zone=europe-west2-a name=testsnap1
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | createSnapshot | 0 | RUNNING |
#
gcp-compute-delete-diskDeletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
#
Base Commandgcp-compute-delete-disk
#
InputArgument Name | Description | Required |
---|---|---|
disk | Name of the persistent disk to delete. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-delete-disk disk=testdisk zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | delete | 0 | RUNNING |
#
gcp-compute-get-diskReturns a specified persistent disk. Gets a list of available persistent disks by making a list() request.
#
Base Commandgcp-compute-get-disk
#
InputArgument Name | Description | Required |
---|---|---|
disk | Name of the persistent disk to return. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Disks.id | string | Unique identifier for the resource; defined by the server. |
GoogleCloudCompute.Disks.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Disks.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Disks.sizeGb | string | Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. |
GoogleCloudCompute.Disks.zone | string | URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Disks.status | string | The status of disk creation. |
GoogleCloudCompute.Disks.sourceSnapshot | string | The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. |
GoogleCloudCompute.Disks.sourceSnapshotId | string | The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used. |
GoogleCloudCompute.Disks.options | string | Internal use only. |
GoogleCloudCompute.Disks.selfLink | string | Server-defined fully-qualified URL for this resource. |
GoogleCloudCompute.Disks.sourceImage | string | The source image used to create this disk. If the source image is deleted, this field will not be set. |
GoogleCloudCompute.Disks.sourceImageId | string | The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. |
GoogleCloudCompute.Disks.type | string | URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: project/zones/zone/diskTypes/pd-standard or pd-ssd |
GoogleCloudCompute.Disks.licenses | string | A list of publicly visible licenses. Reserved for Googles use. |
GoogleCloudCompute.Disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Disks.lastAttachTimestamp | string | Last attach timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.lastDetachTimestamp | string | Last detach timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.users | string | Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance |
GoogleCloudCompute.Disks.diskEncryptionKey | string | Encrypts the disk using a customer-supplied encryption key. |
GoogleCloudCompute.Disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey | string | The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.labels | string | Labels to apply to this disk. These can be later modified by the setLabels method. |
GoogleCloudCompute.Disks.labels.key | string | The label key |
GoogleCloudCompute.Disks.labels.value | string | The label value |
GoogleCloudCompute.Disks.labelFingerprint | string | A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Disks.region | string | URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Disks.replicaZones | string | URLs of the zones where the disk should be replicated to. Only applicable for regional resources. |
GoogleCloudCompute.Disks.licenseCodes | string | Integer license codes indicating which licenses are attached to this disk. |
GoogleCloudCompute.Disks.physicalBlockSizeBytes | string | Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 42, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the callers project. |
GoogleCloudCompute.Disks.kind | string | Type of the resource. Always compute#disk for disks. |
#
Command Example!gcp-compute-get-disk disk=testdisk zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Disksid | name | sizeGb | status | type | zone |
---|---|---|---|---|---|
42 | testdisk | 1 | READY | https://www.mockapi.com/zones/europe-west2-c/diskTypes/pd-standard | https://www.mockapi.com/zones/europe-west2-c |
#
gcp-compute-insert-diskCreates a persistent disk in the specified project using the data in the request. You can create a disk with a sourceImage, a sourceSnapshot, or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.
#
Base Commandgcp-compute-insert-disk
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
zone | The name of the zone for this request. | Required |
disktype | URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: project/zones/zone/diskTypes/pd-standard or pd-ssd | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
sizeGb | Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot. Acceptable values are 1 to 42, inclusive. | Required |
sourceSnapshot | The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. | Optional |
sourceImage | The source image used to create this disk. If the source image is deleted, this field will not be set. | Optional |
licenses | A list of publicly visible licenses. Reserved for Google's use. | Optional |
guestOsFeatures | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. Separated with , | Optional |
diskEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
diskEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
sourceImageEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
sourceImageEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
sourceSnapshotEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
sourceSnapshotEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
labels | Labels to apply to this disk. These can be later modified by the setLabels method. ex: key=abc,value=123;key=abc,value=123 | Optional |
labelFingerprint | A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. | Optional |
replicaZones | URLs of the zones where the disk should be replicated to. Only applicable for regional resources. | Optional |
licenseCodes | Integer license codes indicating which licenses are attached to this disk. | Optional |
physicalBlockSizeBytes | Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 42, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-insert-disk disktype=https://www.mockapi.com/zones/europe-west2-c/diskTypes/pd-standard name=testdisk sizeGb=1 zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | insert | 0 | RUNNING |
#
gcp-compute-list-disksRetrieves a list of persistent disks contained within the specified zone.
#
Base Commandgcp-compute-list-disks
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone for this request. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Disks.id | string | Unique identifier for the resource; defined by the server. |
GoogleCloudCompute.Disks.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Disks.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Disks.sizeGb | string | Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. |
GoogleCloudCompute.Disks.zone | string | URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Disks.status | string | The status of disk creation. |
GoogleCloudCompute.Disks.sourceSnapshot | string | The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. |
GoogleCloudCompute.Disks.sourceSnapshotId | string | The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used. |
GoogleCloudCompute.Disks.options | string | Internal use only. |
GoogleCloudCompute.Disks.selfLink | string | Server-defined fully-qualified URL for this resource. |
GoogleCloudCompute.Disks.sourceImage | string | The source image used to create this disk. If the source image is deleted, this field will not be set. |
GoogleCloudCompute.Disks.sourceImageId | string | The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used. |
GoogleCloudCompute.Disks.type | string | URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: project/zones/zone/diskTypes/pd-standard or pd-ssd |
GoogleCloudCompute.Disks.licenses | string | A list of publicly visible licenses. Reserved for Googles use. |
GoogleCloudCompute.Disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Disks.lastAttachTimestamp | string | Last attach timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.lastDetachTimestamp | string | Last detach timestamp in RFC3339 text format. |
GoogleCloudCompute.Disks.users | string | Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance |
GoogleCloudCompute.Disks.diskEncryptionKey | string | Encrypts the disk using a customer-supplied encryption key. |
GoogleCloudCompute.Disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey | string | The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Disks.sourceSnapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Disks.labels | string | Labels to apply to this disk. These can be later modified by the setLabels method. |
GoogleCloudCompute.Disks.labels.key | string | The label key |
GoogleCloudCompute.Disks.labels.value | string | The label value |
GoogleCloudCompute.Disks.labelFingerprint | string | A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Disks.region | string | URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Disks.replicaZones | string | URLs of the zones where the disk should be replicated to. Only applicable for regional resources. |
GoogleCloudCompute.Disks.licenseCodes | string | Integer license codes indicating which licenses are attached to this disk. |
GoogleCloudCompute.Disks.physicalBlockSizeBytes | string | Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 42, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the callers project. |
GoogleCloudCompute.Disks.kind | string | Type of the resource. Always compute#disk for disks. |
#
Command Example!gcp-compute-list-disks zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Disksid | name | sizeGb | status | type | zone |
---|---|---|---|---|---|
42 | test01 | 100 | READY | https://www.mockapi.com/zones/europe-west2-c/diskTypes/pd-standard | https://www.mockapi.com/zones/europe-west2-c |
42 | testdisk | 1 | READY | https://www.mockapi.com/zones/europe-west2-c/diskTypes/pd-standard | https://www.mockapi.com/zones/europe-west2-c |
#
gcp-compute-resize-diskResizes the specified persistent disk. You can only increase the size of the disk.
#
Base Commandgcp-compute-resize-disk
#
InputArgument Name | Description | Required |
---|---|---|
disk | The name of the persistent disk. | Required |
zone | The name of the zone for this request. | Required |
sizeGb | The new size of the persistent disk, which is specified in GB. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-resize-disk disk=disk-1 sizeGb=501 zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | resizeDisk | 0 | RUNNING |
#
gcp-compute-set-disk-labelsSets the labels on a disk.
#
Base Commandgcp-compute-set-disk-labels
#
InputArgument Name | Description | Required |
---|---|---|
disk | Name or id of the resource for this request. | Required |
zone | The name of the zone for this request. | Required |
labels | The labels to set for this resource. An object containing a list of "key": value pairs. Example: key=abc,value=123;key=abc,value=123 | Required |
labelFingerprint | The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-aggregated-list-disk-typesRetrieves an aggregated list of disk types.
#
Base Commandgcp-compute-aggregated-list-disk-types
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.DiskTypes.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.DiskTypes.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.DiskTypes.name | string | Name of the resource. |
GoogleCloudCompute.DiskTypes.description | string | An optional description of this resource. |
GoogleCloudCompute.DiskTypes.validDiskSize | string | An optional textual description of the valid disk size, such as "10GB-10TB". |
GoogleCloudCompute.DiskTypes.deprecated | string | The deprecation status associated with this disk type. |
GoogleCloudCompute.DiskTypes.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.DiskTypes.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.DiskTypes.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.zone | string | URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.DiskTypes.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.DiskTypes.defaultDiskSizeGb | string | Server-defined default disk size in GB. |
GoogleCloudCompute.DiskTypes.region | string | URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.DiskTypes.kind | string | Type of the resource. Always compute#diskType for disk types. |
#
Command Example!gcp-compute-aggregated-list-disk-types
#
Context Example#
Human Readable Output#
Google Cloud Compute DiskTypesname | validDiskSize |
---|---|
pd-standard | 10GB-42GB |
#
gcp-compute-get-disk-typeReturns the specified disk type. Gets a list of available disk types by making a list() request.
#
Base Commandgcp-compute-get-disk-type
#
InputArgument Name | Description | Required |
---|---|---|
disktype | Name of the disk type to return. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.DiskTypes.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.DiskTypes.name | string | Name of the resource. |
GoogleCloudCompute.DiskTypes.description | string | An optional description of this resource. |
GoogleCloudCompute.DiskTypes.validDiskSize | string | An optional textual description of the valid disk size, such as "10GB-10TB". |
GoogleCloudCompute.DiskTypes.deprecated | string | The deprecation status associated with this disk type. |
GoogleCloudCompute.DiskTypes.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.DiskTypes.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.DiskTypes.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.zone | string | URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.DiskTypes.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.DiskTypes.defaultDiskSizeGb | string | Server-defined default disk size in GB. |
GoogleCloudCompute.DiskTypes.region | string | URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.DiskTypes.kind | string | Type of the resource. Always compute#diskType for disk types. |
GoogleCloudCompute.DiskTypes.id | string | The unique identifier for the resource. |
#
Command Example!gcp-compute-get-disk-type disktype=pd-ssd zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute DiskTypesname | validDiskSize | zone |
---|---|---|
pd-ssd | 10GB-42GB | https://www.mockapi.com/zones/europe-west2-c |
#
gcp-compute-list-disk-typesRetrieves a list of disk types available to the specified project.
#
Base Commandgcp-compute-list-disk-types
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone for this request. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.DiskTypes.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.DiskTypes.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.DiskTypes.name | string | Name of the resource. |
GoogleCloudCompute.DiskTypes.description | string | An optional description of this resource. |
GoogleCloudCompute.DiskTypes.validDiskSize | string | An optional textual description of the valid disk size, such as "10GB-10TB". |
GoogleCloudCompute.DiskTypes.deprecated | string | The deprecation status associated with this disk type. |
GoogleCloudCompute.DiskTypes.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.DiskTypes.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.DiskTypes.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.DiskTypes.zone | string | URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.DiskTypes.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.DiskTypes.defaultDiskSizeGb | string | Server-defined default disk size in GB. |
GoogleCloudCompute.DiskTypes.region | string | URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.DiskTypes.kind | string | Type of the resource. Always compute#diskType for disk types. |
#
Command Example!gcp-compute-list-disk-types zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute DiskTypesname | validDiskSize |
---|---|
local-ssd | 375GB-375GB |
pd-ssd | 10GB-42GB |
pd-standard | 10GB-42GB |
#
gcp-compute-get-imageReturns the specified image. Gets a list of available images by making a list() request.
#
Base Commandgcp-compute-get-image
#
InputArgument Name | Description | Required |
---|---|---|
project | Project ID for this request. if left empty configured project will be used. | Optional |
image | Name of the image resource to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Images.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Images.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Images.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Images.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Images.sourceType | string | The type of the image used to create this disk. The default and only value is RAW |
GoogleCloudCompute.Images.rawDisk | string | The parameters of the raw disk image. |
GoogleCloudCompute.Images.rawDisk.source | string | The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both. |
GoogleCloudCompute.Images.rawDisk.sha1Checksum | string | An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. |
GoogleCloudCompute.Images.rawDisk.containerType | string | The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. |
GoogleCloudCompute.Images.deprecated | string | The deprecation status associated with this image. |
GoogleCloudCompute.Images.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Images.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Images.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.status | string | The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. |
GoogleCloudCompute.Images.archiveSizeBytes | string | Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). |
GoogleCloudCompute.Images.diskSizeGb | string | Size of the image when restored onto a persistent disk (in GB). |
GoogleCloudCompute.Images.sourceDisk | string | URL of the source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk , projects/project/zones/zone/disks/disk , zones/zone/disks/disk |
GoogleCloudCompute.Images.sourceDiskId | string | The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. |
GoogleCloudCompute.Images.licenses | string | Any applicable license URI. |
GoogleCloudCompute.Images.family | string | The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. |
GoogleCloudCompute.Images.imageEncryptionKey | string | Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later. |
GoogleCloudCompute.Images.imageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.imageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.imageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey | string | The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Images.labels | string | Labels to apply to this image. These can be later modified by the setLabels method. |
GoogleCloudCompute.Images.labelFingerprint | string | A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Images.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Images.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Images.licenseCodes | string | Integer license codes indicating which licenses are attached to this image. |
GoogleCloudCompute.Images.sourceImage | string | URL of the source image used to create this image. This can be a full or valid partial URL. |
GoogleCloudCompute.Images.sourceImageId | string | The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name. |
GoogleCloudCompute.Images.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.sourceSnapshot | string | URL of the source snapshot used to create this image. This can be a full or valid partial URL. |
GoogleCloudCompute.Images.sourceSnapshotId | string | The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey | string | The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.kind | string | Type of the resource. Always compute#image for images. |
#
Command Example
#
Human Readable Output#
gcp-compute-list-imagesRetrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.
#
Base Commandgcp-compute-list-images
#
InputArgument Name | Description | Required |
---|---|---|
project | Project ID for this request. if left empty configured project will be used. | Optional |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Images.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Images.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Images.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Images.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Images.sourceType | string | The type of the image used to create this disk. The default and only value is RAW |
GoogleCloudCompute.Images.rawDisk | string | The parameters of the raw disk image. |
GoogleCloudCompute.Images.rawDisk.source | string | The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both. |
GoogleCloudCompute.Images.rawDisk.sha1Checksum | string | An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. |
GoogleCloudCompute.Images.rawDisk.containerType | string | The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. |
GoogleCloudCompute.Images.deprecated | string | The deprecation status associated with this image. |
GoogleCloudCompute.Images.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Images.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Images.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Images.status | string | The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. |
GoogleCloudCompute.Images.archiveSizeBytes | string | Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). |
GoogleCloudCompute.Images.diskSizeGb | string | Size of the image when restored onto a persistent disk (in GB). |
GoogleCloudCompute.Images.sourceDisk | string | URL of the source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk , projects/project/zones/zone/disks/disk , zones/zone/disks/disk |
GoogleCloudCompute.Images.sourceDiskId | string | The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name. |
GoogleCloudCompute.Images.licenses | string | Any applicable license URI. |
GoogleCloudCompute.Images.family | string | The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. |
GoogleCloudCompute.Images.imageEncryptionKey | string | Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the image, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the image later. |
GoogleCloudCompute.Images.imageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.imageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.imageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey | string | The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceDiskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Images.labels | string | Labels to apply to this image. These can be later modified by the setLabels method. |
GoogleCloudCompute.Images.labelFingerprint | string | A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Images.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Images.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Images.licenseCodes | string | Integer license codes indicating which licenses are attached to this image. |
GoogleCloudCompute.Images.sourceImage | string | URL of the source image used to create this image. This can be a full or valid partial URL. |
GoogleCloudCompute.Images.sourceImageId | string | The ID value of the image used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given image name. |
GoogleCloudCompute.Images.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.sourceSnapshot | string | URL of the source snapshot used to create this image. This can be a full or valid partial URL. |
GoogleCloudCompute.Images.sourceSnapshotId | string | The ID value of the snapshot used to create this image. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given snapshot name. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey | string | The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Images.sourceSnapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Images.kind | string | Type of the resource. Always compute#image for images. |
#
Command Example!gcp-compute-list-images
#
Context Example#
Human Readable Output#
Google Cloud Compute ImagesNo entries.
#
gcp-compute-delete-imageDeletes the specified image.
#
Base Commandgcp-compute-delete-image
#
InputArgument Name | Description | Required |
---|---|---|
image | Name of the image resource to delete. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-set-image-labelsSets the labels on an image.
#
Base Commandgcp-compute-set-image-labels
#
InputArgument Name | Description | Required |
---|---|---|
image | Name or id of the resource for this request. | Required |
labels | An object containing a list of "key": value pairs. Example: key=abc,value=123;key=abc,value=123 | Required |
labelFingerprint | The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-insert-imageCreates an image in the specified project using the data included in the request.
#
Base Commandgcp-compute-insert-image
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
rawDiskSource | The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both. | Optional |
rawDiskSha1Checksum | An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created. | Optional |
rawDiskContainerType | The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. | Optional |
deprecatedState | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. | Optional |
deprecatedReplacement | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. | Optional |
archiveSizeBytes | Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). | Optional |
diskSizeGb | Size of the image when restored onto a persistent disk (in GB). | Optional |
sourceDisk | URL of the source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values: https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk projects/project/zones/zone/disks/disk zones/zone/disks/disk Authorization requires the following Google IAM permission on the specified resource sourceDisk: compute.disks.useReadOnly | Optional |
licenses | Any applicable license URI. Authorization requires the following Google IAM permission on the specified resource licenses: compute.licenseCodes.use | Optional |
family | The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. | Optional |
imageEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
imageEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
sourceDiskEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
sourceDiskEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
labels | Labels to apply to this image. These can be later modified by the setLabels method. An object containing a list of "key": value pairs. Example: key=abc,value=123;key=abc,value=123 | Optional |
labelFingerprint | A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image. | Optional |
guestOsFeatures | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. | Optional |
licenseCodes | Integer license codes indicating which licenses are attached to this image. Authorization requires the following Google IAM permission on the specified resource licenseCodes: compute.licenseCodes.use | Optional |
sourceImage | URL of the source image used to create this image. This can be a full or valid partial URL. You must provide exactly one of: this property, or the rawDisk.source property, or the sourceDisk property in order to create an image. | Optional |
sourceImageEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
sourceImageEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
sourceSnapshot | URL of the source snapshot used to create this image. This can be a full or valid partial URL. You must provide exactly one of: this property, or the sourceImage property, or the rawDisk.source property, or the sourceDisk property in order to create an image. | Optional |
sourceSnapshotEncryptionKeyRawKey | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. | Optional |
sourceSnapshotEncryptionKeyKmsKeyName | The name of the encryption key that is stored in Google Cloud KMS. | Optional |
forceCreate | Force image creation if true. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-instance-groups-add-instancesAdds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.
#
Base Commandgcp-compute-instance-groups-add-instances
#
InputArgument Name | Description | Required |
---|---|---|
instanceGroup | The name of the instance group where you are adding instances. | Required |
zone | The name of the zone where the instance group is located. | Required |
instances | The list of instances to add to the instance group. comma separated. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-aggregated-list-instance-groupsRetrieves the list of instance groups and sorts them by zone.
#
Base Commandgcp-compute-aggregated-list-instance-groups
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!gcp-compute-aggregated-list-instance-groups
#
Context Example#
Human Readable Output#
Google Cloud Compute Instance Groupsid | name | network | zone |
---|---|---|---|
42 | mock_instance-grp | network | https://www.mockapi.com/zones/ |
42 | test01 | https://www.mockapi.com/zones/ |
#
gcp-compute-delete-instance-groupDeletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information. HTTP
#
Base Commandgcp-compute-delete-instance-group
#
InputArgument Name | Description | Required |
---|---|---|
instanceGroup | The name of the instance group to delete. | Required |
zone | The name of the zone where the instance group is located. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-get-instance-groupReturns the specified instance group. Gets a list of available instance groups by making a list() request.
#
Base Commandgcp-compute-get-instance-group
#
InputArgument Name | Description | Required |
---|---|---|
instanceGroup | The name of the instance group. | Required |
zone | The name of the zone where the instance group is located. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.InstanceGroups.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.InstanceGroups.creationTimestamp | string | The creation timestamp for this instance group in RFC3339 text format. |
GoogleCloudCompute.InstanceGroups.name | string | The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.InstanceGroups.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.InstanceGroups.namedPorts | string | Assigns a name to a port number. |
GoogleCloudCompute.InstanceGroups.namedPorts.name | string | The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.InstanceGroups.namedPorts.port | string | The port number, which can be a value between 1 and 42. |
GoogleCloudCompute.InstanceGroups.network | string | The URL of the network to which all instances in the instance group belong. |
GoogleCloudCompute.InstanceGroups.fingerprint | string | The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. |
GoogleCloudCompute.InstanceGroups.zone | string | The URL of the zone where the instance group is located (for zonal resources). |
GoogleCloudCompute.InstanceGroups.selfLink | string | The URL for this instance group. The server generates this URL. |
GoogleCloudCompute.InstanceGroups.size | string | The total number of instances in the instance group. |
GoogleCloudCompute.InstanceGroups.region | string | The URL of the region where the instance group is located (for regional resources). |
GoogleCloudCompute.InstanceGroups.subnetwork | string | The URL of the subnetwork to which all instances in the instance group belong |
GoogleCloudCompute.InstanceGroups.kind | string | The resource type, which is always compute#instanceGroup for instance groups. |
#
Command Example!gcp-compute-get-instance-group instanceGroup=mock_instance-grp zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Instance Groupsid | name | network | zone |
---|---|---|---|
42 | mock_instance-grp | network | https://www.mockapi.com/zones/ |
#
gcp-compute-insert-instance-groupCreates an instance group in the specified project using the parameters that are included in the request.
#
Base Commandgcp-compute-insert-instance-group
#
InputArgument Name | Description | Required |
---|---|---|
name | The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. | Required |
zone | The name of the zone where you want to create the instance group. | Required |
namedPorts | Assigns a name to a port number. For example: name=abc,port=123;name=abc,port=123 | Optional |
network | The URL of the network to which all instances in the instance group belong. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-list-instance-groupsRetrieves the list of instance groups that are located in the specified project and zone.
#
Base Commandgcp-compute-list-instance-groups
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone where the instance group is located. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.InstanceGroups.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.InstanceGroups.creationTimestamp | string | The creation timestamp for this instance group in RFC3339 text format. |
GoogleCloudCompute.InstanceGroups.name | string | The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.InstanceGroups.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.InstanceGroups.namedPorts | string | Assigns a name to a port number. |
GoogleCloudCompute.InstanceGroups.namedPorts.name | string | The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.InstanceGroups.namedPorts.port | string | The port number, which can be a value between 1 and 42. |
GoogleCloudCompute.InstanceGroups.network | string | The URL of the network to which all instances in the instance group belong. |
GoogleCloudCompute.InstanceGroups.fingerprint | string | The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. |
GoogleCloudCompute.InstanceGroups.zone | string | The URL of the zone where the instance group is located (for zonal resources). |
GoogleCloudCompute.InstanceGroups.selfLink | string | The URL for this instance group. The server generates this URL. |
GoogleCloudCompute.InstanceGroups.size | string | The total number of instances in the instance group. |
GoogleCloudCompute.InstanceGroups.region | string | The URL of the region where the instance group is located (for regional resources). |
GoogleCloudCompute.InstanceGroups.subnetwork | string | The URL of the subnetwork to which all instances in the instance group belong |
GoogleCloudCompute.InstanceGroups.kind | string | The resource type, which is always compute#instanceGroup for instance groups. |
#
Command Example!gcp-compute-list-instance-groups zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Instance GroupscreationTimestamp | description | fingerprint | id | kind | name | namedPorts | network | selfLink | size | subnetwork | zone |
---|---|---|---|---|---|---|---|---|---|---|---|
2020-04-21T02:13:05.599-07:00 | This instance group is controlled by Instance Group Manager 'mock_instance-grp'. To modify instances in this group, use the Instance Group Manager API: https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers | tH9xjDSGfNw= | 42 | compute#instanceGroup | mock_instance-grp | {u'name': u'abc', u'port': 123} | network | https://www.mockapi.com/zones//instanceGroups/mock_instance-grp | 6 | subnetwork | https://www.mockapi.com/zones/ |
2020-04-30T05:49:45.272-07:00 | 42WmSpB8rSM= | 42 | compute#instanceGroup | test01 | https://www.mockapi.com/zones//instanceGroups/test01 | 0 | https://www.mockapi.com/zones/ |
#
gcp-compute-list-instance-group-instancesLists the instances in the specified instance group.
#
Base Commandgcp-compute-list-instance-group-instances
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone where the instance group is located. | Required |
instanceGroup | The name of the instance group from which you want to generate a list of included instances. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
instanceState | A filter for the state of the instances in the instance group. Valid options are ALL or RUNNING. If you do not specify this parameter the list includes all instances regardless of their state. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.InstanceGroupsInstances.Instances.instance | string | The URL of the instance. |
GoogleCloudCompute.InstanceGroupsInstances.Instances.status | string | The status of the instance |
GoogleCloudCompute.InstanceGroupsInstances.Instances.namedPorts | string | The named ports that belong to this instance group. |
GoogleCloudCompute.InstanceGroupsInstances.Instances.namedPorts.name | string | The name for this named port. The name must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.InstanceGroupsInstances.Instances.namedPorts.port | string | The port number, which can be a value between 1 and 42. |
GoogleCloudCompute.InstanceGroupsInstances.Group | Unknown | The group listed. |
#
Command Example!gcp-compute-list-instance-group-instances instanceGroup=mock_instance-grp zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Instance Groupsinstance | status |
---|---|
https://www.mockapi.com/zones/instances/mock-disk | RUNNING |
#
gcp-compute-instance-groups-remove-instancesRemoves one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.
#
Base Commandgcp-compute-instance-groups-remove-instances
#
InputArgument Name | Description | Required |
---|---|---|
instanceGroup | The name of the instance group where the specified instances will be removed. | Required |
zone | The name of the zone where the instance group is located. | Required |
instances | The list of instances to remove from the instance group. comma separated. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-set-group-instance-named-portsSets the named ports for the specified instance group.
#
Base Commandgcp-compute-set-group-instance-named-ports
#
InputArgument Name | Description | Required |
---|---|---|
instanceGroup | The name of the instance group where the named ports are updated. | Required |
zone | The name of the zone where the instance group is located. | Required |
namedPorts | The list of named ports to set for this instance group. example: name=abc,port=123;name=abc,port=123 | Required |
fingerprint | The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-set-group-instance-named-ports instanceGroup=mock_instance-grp namedPorts=name=abc,port=123 zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | compute.instanceGroups.setNamedPorts | 0 | RUNNING |
#
gcp-compute-get-regionReturns the specified Region resource. Gets a list of available regions by making a list() request.
#
Base Commandgcp-compute-get-region
#
InputArgument Name | Description | Required |
---|---|---|
region | Name of the region resource to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Regions.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Regions.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Regions.name | string | Name of the resource. |
GoogleCloudCompute.Regions.description | string | Textual description of the resource. |
GoogleCloudCompute.Regions.status | string | Status of the region, either UP or DOWN. |
GoogleCloudCompute.Regions.zones | string | A list of zones available in this region, in the form of resource URLs. |
GoogleCloudCompute.Regions.quotas | string | Quotas assigned to this region. |
GoogleCloudCompute.Regions.quotas.metric | string | Name of the quota metric. |
GoogleCloudCompute.Regions.quotas.limit | string | Quota limit for this metric. |
GoogleCloudCompute.Regions.quotas.usage | string | Current usage of this metric. |
GoogleCloudCompute.Regions.quotas.owner | string | Owning resource. This is the resource on which this quota is applied. |
GoogleCloudCompute.Regions.deprecated | string | The deprecation status associated with this region. |
GoogleCloudCompute.Regions.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Regions.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Regions.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Regions.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Regions.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Regions.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Regions.kind | string | Type of the resource. Always compute#region for regions. |
#
Command Example!gcp-compute-get-region region=europe-west2
#
Context Example#
Human Readable Output#
Google Cloud Compute Regionsid | name | status |
---|---|---|
1290 | europe-west2 | UP |
#
gcp-compute-list-regionsRetrieves the list of region resources available to the specified project.
#
Base Commandgcp-compute-list-regions
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Regions.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Regions.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Regions.name | string | Name of the resource. |
GoogleCloudCompute.Regions.description | string | Textual description of the resource. |
GoogleCloudCompute.Regions.status | string | Status of the region, either UP or DOWN. |
GoogleCloudCompute.Regions.zones | string | A list of zones available in this region, in the form of resource URLs. |
GoogleCloudCompute.Regions.quotas | string | Quotas assigned to this region. |
GoogleCloudCompute.Regions.quotas.metric | string | Name of the quota metric. |
GoogleCloudCompute.Regions.quotas.limit | string | Quota limit for this metric. |
GoogleCloudCompute.Regions.quotas.usage | string | Current usage of this metric. |
GoogleCloudCompute.Regions.quotas.owner | string | Owning resource. This is the resource on which this quota is applied. |
GoogleCloudCompute.Regions.deprecated | string | The deprecation status associated with this region. |
GoogleCloudCompute.Regions.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Regions.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Regions.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Regions.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Regions.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Regions.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Regions.kind | string | Type of the resource. Always compute#region for regions. |
#
Command Example!gcp-compute-list-regions
#
Context Example#
Human Readable Output#
Google Cloud Compute Regionsid | name | status |
---|---|---|
1220 | asia-east1 | UP |
1370 | asia-east2 | UP |
1250 | asia-northeast1 | UP |
1390 | asia-northeast2 | UP |
1410 | asia-northeast3 | UP |
1320 | asia-south1 | UP |
1260 | asia-southeast1 | UP |
1280 | australia-southeast1 | UP |
1350 | europe-north1 | UP |
1100 | europe-west1 | UP |
1290 | europe-west2 | UP |
1300 | europe-west3 | UP |
1340 | europe-west4 | UP |
1380 | europe-west6 | UP |
1330 | northamerica-northeast1 | UP |
1310 | southamerica-east1 | UP |
1000 | us-central1 | UP |
1230 | us-east1 | UP |
1270 | us-east4 | UP |
1210 | us-west1 | UP |
1360 | us-west2 | UP |
1420 | us-west3 | UP |
1430 | us-west4 | UP |
#
gcp-compute-get-zoneReturns the specified Zone resource. Gets a list of available zones by making a list() request.
#
Base Commandgcp-compute-get-zone
#
InputArgument Name | Description | Required |
---|---|---|
zone | Name of the zone resource to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Zones.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Zones.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Zones.name | string | Name of the resource. |
GoogleCloudCompute.Zones.description | string | Textual description of the resource. |
GoogleCloudCompute.Zones.status | string | Status of the zone, either UP or DOWN. |
GoogleCloudCompute.Zones.deprecated | string | The deprecation status associated with this zone. |
GoogleCloudCompute.Zones.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Zones.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Zones.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Zones.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Zones.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Zones.region | string | Full URL reference to the region which hosts the zone. |
GoogleCloudCompute.Zones.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Zones.availableCpuPlatforms | string | Available cpu/platform selections for the zone. Do not use field = 7 or field = 11. Next available field = 14. |
GoogleCloudCompute.Zones.kind | string | Type of the resource. Always compute#zone for zones. |
#
Command Example!gcp-compute-get-zone zone=europe-west2-c
#
Context Example#
Human Readable Output#
Google Cloud Compute Zonesid | name | status |
---|---|---|
2292 | europe-west2-c | UP |
#
gcp-compute-list-zonesRetrieves the list of Zone resources available to the specified project.
#
Base Commandgcp-compute-list-zones
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Zones.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Zones.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Zones.name | string | Name of the resource. |
GoogleCloudCompute.Zones.description | string | Textual description of the resource. |
GoogleCloudCompute.Zones.status | string | Status of the zone, either UP or DOWN. |
GoogleCloudCompute.Zones.deprecated | string | The deprecation status associated with this zone. |
GoogleCloudCompute.Zones.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.Zones.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.Zones.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Zones.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Zones.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.Zones.region | string | Full URL reference to the region which hosts the zone. |
GoogleCloudCompute.Zones.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Zones.availableCpuPlatforms | string | Available cpu/platform selections for the zone. Do not use field = 7 or field = 11. Next available field = 14. |
GoogleCloudCompute.Zones.kind | string | Type of the resource. Always compute#zone for zones. |
#
Command Example!gcp-compute-list-zones
#
Context Example#
Human Readable Output#
Google Cloud Compute Zonesid | name | status |
---|---|---|
2231 | us-east1-b | UP |
2233 | us-east1-c | UP |
2234 | us-east1-d | UP |
2272 | us-east4-c | UP |
2271 | us-east4-b | UP |
2270 | us-east4-a | UP |
2002 | us-central1-c | UP |
2000 | us-central1-a | UP |
2004 | us-central1-f | UP |
2001 | us-central1-b | UP |
2211 | us-west1-b | UP |
2212 | us-west1-c | UP |
2210 | us-west1-a | UP |
2342 | europe-west4-a | UP |
2341 | europe-west4-b | UP |
2340 | europe-west4-c | UP |
2101 | europe-west1-b | UP |
2104 | europe-west1-d | UP |
2103 | europe-west1-c | UP |
2300 | europe-west3-c | UP |
2301 | europe-west3-a | UP |
2302 | europe-west3-b | UP |
2292 | europe-west2-c | UP |
2291 | europe-west2-b | UP |
2290 | europe-west2-a | UP |
2221 | asia-east1-b | UP |
2220 | asia-east1-a | UP |
2222 | asia-east1-c | UP |
2261 | asia-southeast1-b | UP |
2260 | asia-southeast1-a | UP |
2262 | asia-southeast1-c | UP |
2251 | asia-northeast1-b | UP |
2252 | asia-northeast1-c | UP |
2250 | asia-northeast1-a | UP |
2322 | asia-south1-c | UP |
2320 | asia-south1-b | UP |
2321 | asia-south1-a | UP |
2282 | australia-southeast1-b | UP |
2280 | australia-southeast1-c | UP |
2281 | australia-southeast1-a | UP |
2311 | southamerica-east1-b | UP |
2312 | southamerica-east1-c | UP |
2310 | southamerica-east1-a | UP |
2372 | asia-east2-a | UP |
2371 | asia-east2-b | UP |
2370 | asia-east2-c | UP |
2392 | asia-northeast2-a | UP |
2390 | asia-northeast2-b | UP |
2391 | asia-northeast2-c | UP |
2410 | asia-northeast3-a | UP |
2412 | asia-northeast3-b | UP |
2411 | asia-northeast3-c | UP |
2352 | europe-north1-a | UP |
2350 | europe-north1-b | UP |
2351 | europe-north1-c | UP |
2382 | europe-west6-a | UP |
2380 | europe-west6-b | UP |
2381 | europe-west6-c | UP |
2330 | northamerica-northeast1-a | UP |
2331 | northamerica-northeast1-b | UP |
2332 | northamerica-northeast1-c | UP |
2362 | us-west2-a | UP |
2361 | us-west2-b | UP |
2360 | us-west2-c | UP |
2420 | us-west3-a | UP |
2421 | us-west3-b | UP |
2422 | us-west3-c | UP |
2431 | us-west4-a | UP |
2432 | us-west4-b | UP |
2430 | us-west4-c | UP |
#
gcp-compute-aggregated-list-machine-typesRetrieves an aggregated list of machine types.
#
Base Commandgcp-compute-aggregated-list-machine-types
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.MachineTypes.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.MachineTypes.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.MachineTypes.name | string | Name of the resource. |
GoogleCloudCompute.MachineTypes.description | string | An optional textual description of the resource. |
GoogleCloudCompute.MachineTypes.guestCpus | number | The number of virtual CPUs that are available to the instance. |
GoogleCloudCompute.MachineTypes.memoryMb | number | The amount of physical memory available to the instance, defined in MB. |
GoogleCloudCompute.MachineTypes.imageSpaceGb | number | This property is deprecated and will never be populated with any relevant values. |
GoogleCloudCompute.MachineTypes.scratchDisks | string | A list of extended scratch disks assigned to the instance. |
GoogleCloudCompute.MachineTypes.scratchDisks.diskGb | number | Size of the scratch disk, defined in GB. |
GoogleCloudCompute.MachineTypes.maximumPersistentDisks | number | Maximum persistent disks allowed. |
GoogleCloudCompute.MachineTypes.maximumPersistentDisksSizeGb | string | Maximum total persistent disks size (GB) allowed. |
GoogleCloudCompute.MachineTypes.deprecated | string | The deprecation status associated with this machine type. |
GoogleCloudCompute.MachineTypes.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.MachineTypes.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.MachineTypes.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.zone | string | The name of the zone where the machine type resides, such as us-central1-a. |
GoogleCloudCompute.MachineTypes.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.MachineTypes.isSharedCpu | boolean | Whether this machine type has a shared CPU. See Shared-core machine types for more information. |
GoogleCloudCompute.MachineTypes.kind | string | The type of the resource. Always compute#machineType for machine types. |
#
Command Example
#
Human Readable Output#
gcp-compute-get-machine-typeReturns the specified machine type. Gets a list of available machine types by making a list() request.
#
Base Commandgcp-compute-get-machine-type
#
InputArgument Name | Description | Required |
---|---|---|
machineType | Name of the machine type to return. | Required |
zone | The name of the zone for this request. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.MachineTypes.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.MachineTypes.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.MachineTypes.name | string | Name of the resource. |
GoogleCloudCompute.MachineTypes.description | string | An optional textual description of the resource. |
GoogleCloudCompute.MachineTypes.guestCpus | number | The number of virtual CPUs that are available to the instance. |
GoogleCloudCompute.MachineTypes.memoryMb | number | The amount of physical memory available to the instance, defined in MB. |
GoogleCloudCompute.MachineTypes.imageSpaceGb | number | This property is deprecated and will never be populated with any relevant values. |
GoogleCloudCompute.MachineTypes.scratchDisks | string | A list of extended scratch disks assigned to the instance. |
GoogleCloudCompute.MachineTypes.scratchDisks.diskGb | number | Size of the scratch disk, defined in GB. |
GoogleCloudCompute.MachineTypes.maximumPersistentDisks | number | Maximum persistent disks allowed. |
GoogleCloudCompute.MachineTypes.maximumPersistentDisksSizeGb | string | Maximum total persistent disks size (GB) allowed. |
GoogleCloudCompute.MachineTypes.deprecated | string | The deprecation status associated with this machine type. |
GoogleCloudCompute.MachineTypes.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.MachineTypes.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.MachineTypes.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.zone | string | The name of the zone where the machine type resides, such as us-central1-a. |
GoogleCloudCompute.MachineTypes.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.MachineTypes.isSharedCpu | boolean | Whether this machine type has a shared CPU. See Shared-core machine types for more information. |
GoogleCloudCompute.MachineTypes.kind | string | The type of the resource. Always compute#machineType for machine types. |
#
Command Example!gcp-compute-get-machine-type machineType=c2-standard-16 zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Machine TypesguestCpus | id | memoryMb | name |
---|---|---|---|
16 | 42 | 42 | c2-standard-16 |
#
gcp-compute-list-machine-typesRetrieves a list of machine types available to the specified project.
#
Base Commandgcp-compute-list-machine-types
#
InputArgument Name | Description | Required |
---|---|---|
zone | The name of the zone for this request. | Required |
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.MachineTypes.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.MachineTypes.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.MachineTypes.name | string | Name of the resource. |
GoogleCloudCompute.MachineTypes.description | string | An optional textual description of the resource. |
GoogleCloudCompute.MachineTypes.guestCpus | number | The number of virtual CPUs that are available to the instance. |
GoogleCloudCompute.MachineTypes.memoryMb | number | The amount of physical memory available to the instance, defined in MB. |
GoogleCloudCompute.MachineTypes.imageSpaceGb | number | This property is deprecated and will never be populated with any relevant values. |
GoogleCloudCompute.MachineTypes.scratchDisks | string | A list of extended scratch disks assigned to the instance. |
GoogleCloudCompute.MachineTypes.scratchDisks.diskGb | number | Size of the scratch disk, defined in GB. |
GoogleCloudCompute.MachineTypes.maximumPersistentDisks | number | Maximum persistent disks allowed. |
GoogleCloudCompute.MachineTypes.maximumPersistentDisksSizeGb | string | Maximum total persistent disks size (GB) allowed. |
GoogleCloudCompute.MachineTypes.deprecated | string | The deprecation status associated with this machine type. |
GoogleCloudCompute.MachineTypes.deprecated.state | string | The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. |
GoogleCloudCompute.MachineTypes.deprecated.replacement | string | The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource. |
GoogleCloudCompute.MachineTypes.deprecated.deprecated | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.deprecated.obsolete | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.deprecated.deleted | string | An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it. |
GoogleCloudCompute.MachineTypes.zone | string | The name of the zone where the machine type resides, such as us-central1-a. |
GoogleCloudCompute.MachineTypes.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.MachineTypes.isSharedCpu | boolean | Whether this machine type has a shared CPU. See Shared-core machine types for more information. |
GoogleCloudCompute.MachineTypes.kind | string | The type of the resource. Always compute#machineType for machine types. |
#
Command Example!gcp-compute-list-machine-types zone=europe-west2-a
#
Context Example#
Human Readable Output#
Google Cloud Compute Machine TypesguestCpus | id | memoryMb | name |
---|---|---|---|
16 | 42 | 42 | c2-standard-16 |
#
gcp-compute-networks-add-peeringAdds a peering to the specified network.
#
Base Commandgcp-compute-networks-add-peering
#
InputArgument Name | Description | Required |
---|---|---|
network | Name of the network resource to add peering to. | Required |
name | Name of the peering, which should conform to RFC1035. | Optional |
peerNetwork | URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. | Optional |
networkPeeringName | Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Optional |
networkPeeringNetwork | The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. | Optional |
networkPeeringExchangeSubnetRoutes | Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-delete-networkDeletes the specified network.
#
Base Commandgcp-compute-delete-network
#
InputArgument Name | Description | Required |
---|---|---|
network | Name of the network to delete. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-delete-network network=a-1-2
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | delete | 0 | RUNNING |
#
gcp-compute-insert-networkCreates a network in the specified project using the data included in the request.
#
Base Commandgcp-compute-insert-network
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
autoCreateSubnetworks | When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. | Optional |
routingConfigRoutingMode | The network-wide routing mode to use. If set to REGIONAL, this network's cloud routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's cloud routers will advertise routes with all subnets of this network, across regions. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-insert-network name=a-1-2
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | insert | 0 | RUNNING |
#
gcp-compute-list-networksRetrieves the list of networks available to the specified project.
#
Base Commandgcp-compute-list-networks
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Networks.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Networks.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Networks.name | string | Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Networks.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Networks.gatewayIPv4 | string | The gateway address for default routing out of the network. This value is read only and is selected by GCP. |
GoogleCloudCompute.Networks.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Networks.autoCreateSubnetworks | boolean | When set to true, the VPC network is created in "auto" mode. When set to false, the VPC network is created in "custom" mode. |
GoogleCloudCompute.Networks.subnetworks | string | Server-defined fully-qualified URLs for all subnetworks in this VPC network. |
GoogleCloudCompute.Networks.peerings | string | A list of network peerings for the resource. |
GoogleCloudCompute.Networks.peerings.name | string | Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Networks.peerings.network | string | The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network. |
GoogleCloudCompute.Networks.peerings.state | string | State for the peering. |
GoogleCloudCompute.Networks.peerings.stateDetails | string | Details about the current state of the peering. |
GoogleCloudCompute.Networks.peerings.autoCreateRoutes | boolean | This field will be deprecated soon. Prefer using exchangeSubnetRoutes instead. Indicates whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network. |
GoogleCloudCompute.Networks.peerings.exchangeSubnetRoutes | boolean | Whether full mesh connectivity is created and managed automatically. When it is set to true, Google Compute Engine will automatically create and manage the routes between two networks when the peering state is ACTIVE. Otherwise, user needs to create routes manually to route packets to peer network. |
GoogleCloudCompute.Networks.routingConfig | string | The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. |
GoogleCloudCompute.Networks.routingConfig.routingMode | string | The network-wide routing mode to use. If set to REGIONAL, this networks cloud routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this networks cloud routers will advertise routes with all subnets of this network, across regions. |
GoogleCloudCompute.Networks.kind | string | Type of the resource. Always compute#network for networks. |
#
Command Example!gcp-compute-list-networks
#
Context Example#
Human Readable Output#
Google Cloud Compute Networksid | name |
---|---|
42 | a-1-2 |
#
gcp-compute-networks-remove-peeringRemoves a peering from the specified network.
#
Base Commandgcp-compute-networks-remove-peering
#
InputArgument Name | Description | Required |
---|---|---|
network | Name of the network resource to remove peering from. | Required |
name | Name of the peering, which should conform to RFC1035. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-wait-for-zone-operationWait for a zone operation to complete ,NOTE this command will occupy a system resource
#
Base Commandgcp-compute-wait-for-zone-operation
#
InputArgument Name | Description | Required |
---|---|---|
zone | Name of the zone for this request. | Required |
name | Name of the Operations resource | Required |
#
Context OutputThere is no context output for this command.
#
Command Example
#
Human Readable Output#
gcp-compute-wait-for-region-operationWait for a region operation to complete ,NOTE this command will occupy a system resource
#
Base Commandgcp-compute-wait-for-region-operation
#
InputArgument Name | Description | Required |
---|---|---|
region | Name of the region for this request. | Required |
name | Name of the Operations resource | Required |
#
Context OutputThere is no context output for this command.
#
Command Example
#
Human Readable Output#
gcp-compute-wait-for-global-operationWait for a global operation to complete ,NOTE this command will occupy a system resource
#
Base Commandgcp-compute-wait-for-global-operation
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Operations resource | Required |
#
Context OutputThere is no context output for this command.
#
Command Example
#
Human Readable Output#
gcp-compute-insert-firewallCreates a firewall rule in the specified project using the data included in the request.
#
Base Commandgcp-compute-insert-firewall
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
network | URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used | Optional |
priority | Priority for this rule. This is an integer between 0 and 42, both inclusive. When not specified, the value assumed is 1000. Relative priorities determine precedence of conflicting rules. Lower value of priority implies higher precedence (eg, a rule with priority 0 has higher precedence than a rule with priority 1). DENY rules take precedence over ALLOW rules having equal priority. | Optional |
sourceRanges | If source ranges are specified, the firewall will apply only to traffic that has source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. Only IPv4 is supported. comma separated. | Optional |
destinationRanges | If destination ranges are specified, the firewall will apply only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Only IPv4 is supported. comma separated. | Optional |
sourceTags | If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. comma separated. | Optional |
targetTags | A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. comma separated. | Optional |
sourceServiceAccounts | If source service accounts are specified, the firewall will apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both properties for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. comma separated. | Optional |
targetServiceAccounts | A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. comma separated. | Optional |
allowed | The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. Ex: ipprotocol=tcp,ports=22,443;ipprotocol=tcp,ports=8080,80 | Optional |
denied | The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. Ex: ipprotocol=tcp,ports=22,443;ipprotocol=tcp,ports=8080,80 | Optional |
direction | Direction of traffic to which this firewall applies; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. | Optional |
logConfigEnable | This field denotes whether to enable logging for a particular firewall rule. | Optional |
disabled | Denotes whether the firewall rule is disabled, i.e not applied to the network it is associated with. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. | Optional |
project_id | Project ID that you want to run this command on. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-insert-firewall name=a-1-2-3 allowed=ipprotocol=tcp,ports=22,443
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | insert | 0 | RUNNING |
#
gcp-compute-patch-firewallUpdates the specified firewall rule with the data included in the request.
#
Base Commandgcp-compute-patch-firewall
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. | Required |
description | An optional description of this resource. Provide this property when you create the resource. | Optional |
network | URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used | Optional |
priority | Priority for this rule. This is an integer between 0 and 42, both inclusive. When not specified, the value assumed is 1000. Relative priorities determine precedence of conflicting rules. Lower value of priority implies higher precedence (eg, a rule with priority 0 has higher precedence than a rule with priority 1). DENY rules take precedence over ALLOW rules having equal priority. | Optional |
sourceRanges | If source ranges are specified, the firewall will apply only to traffic that has source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. Only IPv4 is supported. comma separated. | Optional |
destinationRanges | If destination ranges are specified, the firewall will apply only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Only IPv4 is supported. comma separated. | Optional |
sourceTags | If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. comma separated. | Optional |
targetTags | A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. comma separated. | Optional |
sourceServiceAccounts | If source service accounts are specified, the firewall will apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both properties for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. comma separated. | Optional |
targetServiceAccounts | A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. comma separated. | Optional |
allowed | The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. Ex: ipprotocol=tcp,ports=22,443;ipprotocol=tcp,ports=8080,80 | Optional |
denied | The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. Ex: ipprotocol=tcp,ports=22,443;ipprotocol=tcp,ports=8080,80 | Optional |
direction | Direction of traffic to which this firewall applies; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. | Optional |
logConfigEnable | This field denotes whether to enable logging for a particular firewall rule. | Optional |
disabled | Denotes whether the firewall rule is disabled, i.e not applied to the network it is associated with. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-patch-firewall name=default-allow-https
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | patch | 0 | RUNNING |
#
gcp-compute-list-firewallRetrieves the list of firewall rules available to the specified project.
#
Base Commandgcp-compute-list-firewall
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
project_id | Project ID that you want to run this command on. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Firewalls.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Firewalls.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Firewalls.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Firewalls.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Firewalls.network | string | URL of the network resource for this firewall rule |
GoogleCloudCompute.Firewalls.priority | number | Priority for this rule. This is an integer between 0 and 42, both inclusive. When not specified, the value assumed is 1000. Relative priorities determine precedence of conflicting rules. Lower value of priority implies higher precedence (eg, a rule with priority 0 has higher precedence than a rule with priority 1). DENY rules take precedence over ALLOW rules having equal priority. |
GoogleCloudCompute.Firewalls.sourceRanges | string | If source ranges are specified, the firewall will apply only to traffic that has source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. Only IPv4 is supported. |
GoogleCloudCompute.Firewalls.destinationRanges | string | If destination ranges are specified, the firewall will apply only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Only IPv4 is supported. |
GoogleCloudCompute.Firewalls.sourceTags | string | If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. |
GoogleCloudCompute.Firewalls.targetTags | string | A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. |
GoogleCloudCompute.Firewalls.sourceServiceAccounts | string | If source service accounts are specified, the firewall will apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both properties for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. |
GoogleCloudCompute.Firewalls.targetServiceAccounts | string | A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. |
GoogleCloudCompute.Firewalls.allowed | Unknown | The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. |
GoogleCloudCompute.Firewalls.allowed.IPProtocol | string | The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. |
GoogleCloudCompute.Firewalls.allowed.ports | string | An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. |
GoogleCloudCompute.Firewalls.denied | Unknown | The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. |
GoogleCloudCompute.Firewalls.denied.IPProtocol | string | The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. |
GoogleCloudCompute.Firewalls.denied.ports | string | An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. |
GoogleCloudCompute.Firewalls.direction | string | Direction of traffic to which this firewall applies; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. |
GoogleCloudCompute.Firewalls.logConfig | Unknown | This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Stackdriver. |
GoogleCloudCompute.Firewalls.logConfig.enable | boolean | This field denotes whether to enable logging for a particular firewall rule. |
GoogleCloudCompute.Firewalls.disabled | boolean | Denotes whether the firewall rule is disabled, i.e not applied to the network it is associated with. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. |
GoogleCloudCompute.Firewalls.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Firewalls.kind | string | Type of the resource. Always compute#firewall for firewall rules. |
#
Command Example!gcp-compute-list-firewall
#
Context Example#
Human Readable Output#
Google Cloud Compute Firewallsname | network | priority |
---|---|---|
a-1-2-3 | network | 1000 |
#
gcp-compute-get-firewallReturns the specified firewall.
#
Base Commandgcp-compute-get-firewall
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the firewall rule to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Firewalls.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Firewalls.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Firewalls.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Firewalls.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Firewalls.network | string | URL of the network resource for this firewall rule |
GoogleCloudCompute.Firewalls.priority | number | Priority for this rule. This is an integer between 0 and 42, both inclusive. When not specified, the value assumed is 1000. Relative priorities determine precedence of conflicting rules. Lower value of priority implies higher precedence (eg, a rule with priority 0 has higher precedence than a rule with priority 1). DENY rules take precedence over ALLOW rules having equal priority. |
GoogleCloudCompute.Firewalls.sourceRanges | string | If source ranges are specified, the firewall will apply only to traffic that has source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. Only IPv4 is supported. |
GoogleCloudCompute.Firewalls.destinationRanges | string | If destination ranges are specified, the firewall will apply only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Only IPv4 is supported. |
GoogleCloudCompute.Firewalls.sourceTags | string | If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both properties are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP that belongs to a tag listed in the sourceTags property. The connection does not need to match both properties for the firewall to apply. |
GoogleCloudCompute.Firewalls.targetTags | string | A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. |
GoogleCloudCompute.Firewalls.sourceServiceAccounts | string | If source service accounts are specified, the firewall will apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall will apply to traffic that has source IP address within sourceRanges OR the source IP belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both properties for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. |
GoogleCloudCompute.Firewalls.targetServiceAccounts | string | A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. |
GoogleCloudCompute.Firewalls.allowed | Unknown | The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. |
GoogleCloudCompute.Firewalls.allowed.IPProtocol | string | The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. |
GoogleCloudCompute.Firewalls.allowed.ports | string | An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. |
GoogleCloudCompute.Firewalls.denied | Unknown | The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. |
GoogleCloudCompute.Firewalls.denied.IPProtocol | string | The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. |
GoogleCloudCompute.Firewalls.denied.ports | string | An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. |
GoogleCloudCompute.Firewalls.direction | string | Direction of traffic to which this firewall applies; default is INGRESS. Note: For INGRESS traffic, it is NOT supported to specify destinationRanges; For EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. |
GoogleCloudCompute.Firewalls.logConfig | Unknown | This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Stackdriver. |
GoogleCloudCompute.Firewalls.logConfig.enable | boolean | This field denotes whether to enable logging for a particular firewall rule. |
GoogleCloudCompute.Firewalls.disabled | boolean | Denotes whether the firewall rule is disabled, i.e not applied to the network it is associated with. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. |
GoogleCloudCompute.Firewalls.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Firewalls.kind | string | Type of the resource. Always compute#firewall for firewall rules. |
#
Command Example!gcp-compute-get-firewall name=default-allow-https
#
Context Example#
Human Readable Output#
Google Cloud Compute Firewallsname | network | priority |
---|---|---|
default-allow-https | network | 1000 |
#
gcp-compute-delete-firewallDeletes the specified firewall.
#
Base Commandgcp-compute-delete-firewall
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the firewall rule to delete. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-set-snapshot-labelsSets the labels on a snapshot.
#
Base Commandgcp-compute-set-snapshot-labels
#
InputArgument Name | Description | Required |
---|---|---|
name | Name or id of the resource for this request. | Required |
labels | A list of labels to apply for this resource. Each label key & value must comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For example, key=abc,value=123;key=abc,value=123 | Required |
labelFingerprint | The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example
#
Human Readable Output#
gcp-compute-list-snapshotsRetrieves the list of Snapshot resources contained within the specified project.
#
Base Commandgcp-compute-list-snapshots
#
InputArgument Name | Description | Required |
---|---|---|
maxResults | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) | Optional |
filters | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. | Optional |
orderBy | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. | Optional |
pageToken | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Snapshots.id | string | The unique identifier for the resource. This identifier is defined by the server |
GoogleCloudCompute.Snapshots.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Snapshots.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Snapshots.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Snapshots.status | string | The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. |
GoogleCloudCompute.Snapshots.sourceDisk | string | The source disk used to create this snapshot. |
GoogleCloudCompute.Snapshots.sourceDiskId | string | The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. |
GoogleCloudCompute.Snapshots.diskSizeGb | string | Size of the snapshot, specified in GB. |
GoogleCloudCompute.Snapshots.storageBytes | string | A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion |
GoogleCloudCompute.Snapshots.storageBytesStatus | string | An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. |
GoogleCloudCompute.Snapshots.licenses | string | A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey | unknown | Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the image later For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later. |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey | Unknown | The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Snapshots.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Snapshots.labels | Unknown | Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. |
GoogleCloudCompute.Snapshots.labels.key | string | The label key. |
GoogleCloudCompute.Snapshots.labels.value | string | The label value. |
GoogleCloudCompute.Snapshots.labelFingerprint | string | A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Snapshots.licenseCodes | string | Integer license codes indicating which licenses are attached to this snapshot. |
GoogleCloudCompute.Snapshots.kind | string | Type of the resource. Always compute#snapshot for Snapshot resources. |
#
Command Example!gcp-compute-list-snapshots
#
Context Example#
Human Readable Output#
Google Cloud Compute SnapshotscreationTimestamp | name | status |
---|---|---|
2020-05-03T01:13:24.244-07:00 | testsnap1 | READY |
#
gcp-compute-get-snapshotReturns the specified Snapshot resource.
#
Base Commandgcp-compute-get-snapshot
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Snapshot resource to return. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Snapshots.id | string | The unique identifier for the resource. This identifier is defined by the server |
GoogleCloudCompute.Snapshots.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Snapshots.name | string | Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Snapshots.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Snapshots.status | string | The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. |
GoogleCloudCompute.Snapshots.sourceDisk | string | The source disk used to create this snapshot. |
GoogleCloudCompute.Snapshots.sourceDiskId | string | The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. |
GoogleCloudCompute.Snapshots.diskSizeGb | string | Size of the snapshot, specified in GB. |
GoogleCloudCompute.Snapshots.storageBytes | string | A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion |
GoogleCloudCompute.Snapshots.storageBytesStatus | string | An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. |
GoogleCloudCompute.Snapshots.licenses | string | A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey | unknown | Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the image later For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later. |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Snapshots.snapshotEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey | Unknown | The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Snapshots.sourceDiskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Snapshots.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Snapshots.labels | Unknown | Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. |
GoogleCloudCompute.Snapshots.labels.key | string | The label key. |
GoogleCloudCompute.Snapshots.labels.value | string | The label value. |
GoogleCloudCompute.Snapshots.labelFingerprint | string | A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Snapshots.licenseCodes | string | Integer license codes indicating which licenses are attached to this snapshot. |
GoogleCloudCompute.Snapshots.kind | string | Type of the resource. Always compute#snapshot for Snapshot resources. |
#
Command Example!gcp-compute-get-snapshot name=testsnap1
#
Context Example#
Human Readable Output#
Google Cloud Compute SnapshotscreationTimestamp | name | status |
---|---|---|
2020-05-03T01:13:24.244-07:00 | testsnap1 | READY |
#
gcp-compute-delete-snapshotDeletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot.
#
Base Commandgcp-compute-delete-snapshot
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the Snapshot resource to delete. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-delete-snapshot name=testsnap1
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | delete | 0 | RUNNING |
#
gcp-compute-project-info-add-metadataAdd or update project wide metadata.
#
Base Commandgcp-compute-project-info-add-metadata
#
InputArgument Name | Description | Required |
---|---|---|
metadata | Metadata to be made available to the guest operating system running on the instances. Each entry is a key/value pair separated by ';' like so: key=abc,value=123;key=abc,value=123 | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!gcp-compute-project-info-add-metadata metadata=key=abc,value=123
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.ProjectMetadata.operationType | string | The type of operation, such as insert, update, or delete. |
GoogleCloudCompute.ProjectMetadata.insertTime | date | The time that this operation was started by the server. |
GoogleCloudCompute.ProjectMetadata.selfLink | string | Server-defined URL for the project. |
GoogleCloudCompute.ProjectMetadata.targetLink | string | The URL of the resource that the operation modifies. |
GoogleCloudCompute.ProjectMetadata.name | string | Name of the operation. |
GoogleCloudCompute.ProjectMetada.progress | number | Progress indicator that ranges from 0 to 100. |
GoogleCloudCompute.ProjectMetadata.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource. |
GoogleCloudCompute.ProjectMetadata.startTime | date | The time that this operation was started by the server. |
GoogleCloudCompute.ProjectMetadata.status | string | The status of the operation, which can be one of the following PENDING, RUNNING, or DONE. |
GoogleCloudCompute.ProjectMetadata.kind | string | Type of the resource. Always compute#operation. |
#
Context Example#
Human Readable Output#
Google Cloud Compute Project Metadata Update Operation Started Successfullyid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | compute.projects.setCommonInstanceMetadata | 0 | RUNNING |
#
gcp-compute-aggregated-list-instances-by-ipRetrieves instance information based on public IP in your project across all regions and zones.
#
Base Commandgcp-compute-aggregated-list-instances-by-ip
#
InputArgument Name | Description | Required |
---|---|---|
ip | IP Address to search on. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Instances.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Instances.creationTimestamp | string | Creation timestamp in RFC3339 text format. |
GoogleCloudCompute.Instances.name | string | The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
GoogleCloudCompute.Instances.description | string | An optional description of this resource. Provide this property when you create the resource. |
GoogleCloudCompute.Instances.tags | string | Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the tags.items field. |
GoogleCloudCompute.Instances.tags.items | string | An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. |
GoogleCloudCompute.Instances.tags.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the tags contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. |
GoogleCloudCompute.Instances.machineType | string | Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. |
GoogleCloudCompute.Instances.status | string | The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED. |
GoogleCloudCompute.Instances.statusMessage | string | An optional, human-readable explanation of the status. |
GoogleCloudCompute.Instances.zone | string | URL of the zone where the instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Instances.canIpForward | boolean | Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding. |
GoogleCloudCompute.Instances.networkInterfaces | string | An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. |
GoogleCloudCompute.Instances.networkInterfaces.network | string | URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. |
GoogleCloudCompute.Instances.networkInterfaces.subnetwork | string | The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL |
GoogleCloudCompute.Instances.networkInterfaces.networkIP | string | An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. |
GoogleCloudCompute.Instances.networkInterfaces.name | string | The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs | string | An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.type | string | The type of configuration. The default and only option is ONE_TO_ONE_NAT. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.name | string | The name of this access configuration. The default and recommended name is External NAT but you can use any arbitrary string you would like. For example, My external IP or Network Access. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.natIP | string | An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.setPublicPtr | boolean | Specifies whether a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.publicPtrDomainName | string | The DNS domain name for the public PTR record. This field can only be set when the setPublicPtr field is enabled. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.networkTier | string | This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. |
GoogleCloudCompute.Instances.networkInterfaces.accessConfigs.kind | string | Type of the resource. Always compute#accessConfig for access configs. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges | string | An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.ipCidrRange | string | The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 0.0.0.0), a netmask (e.g. /24) or a CIDR format string (e.g. 0.0.0.0/24). |
GoogleCloudCompute.Instances.networkInterfaces.aliasIpRanges.subnetworkRangeName | string | Optional subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used. |
GoogleCloudCompute.Instances.networkInterfaces.fingerprint | string | Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.networkInterfaces.kind | string | Type of the resource. Always compute#networkInterface for network interfaces. |
GoogleCloudCompute.Instances.disks | string | Array of disks associated with this instance. Persistent disks must be created before you can assign them. |
GoogleCloudCompute.Instances.disks.type | string | Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. |
GoogleCloudCompute.Instances.disks.mode | string | The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. |
GoogleCloudCompute.Instances.disks.source | string | Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.deviceName | string | Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. |
GoogleCloudCompute.Instances.disks.index | number | A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. |
GoogleCloudCompute.Instances.disks.boot | boolean | Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. |
GoogleCloudCompute.Instances.disks.initializeParams | string | Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. |
GoogleCloudCompute.Instances.disks.initializeParams.diskName | string | Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImage | string | The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or disks.source is required except for local SSD. |
GoogleCloudCompute.Instances.disks.initializeParams.diskSizeGb | string | Specifies the size of the disk in base-2 GB. |
GoogleCloudCompute.Instances.disks.initializeParams.diskType | string | Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey | string | The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.initializeParams.sourceImageEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.initializeParams.labels | string | Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.key | string | The disk label key. |
GoogleCloudCompute.Instances.disks.initializeParams.labels.value | string | The disk label value. |
GoogleCloudCompute.Instances.disks.initializeParams.description | string | An optional description. Provide this property when creating the disk. |
GoogleCloudCompute.Instances.disks.autoDelete | boolean | Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). |
GoogleCloudCompute.Instances.disks.licenses | string | Any valid publicly visible licenses. |
GoogleCloudCompute.Instances.disks.interface | string | Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. |
GoogleCloudCompute.Instances.disks.guestOsFeatures | string | A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.guestOsFeatures.type | string | The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey | string | Encrypts or decrypts a disk using a customer-supplied encryption key. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.rawKey | string | Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.kmsKeyName | string | The name of the encryption key that is stored in Google Cloud KMS. |
GoogleCloudCompute.Instances.disks.diskEncryptionKey.sha256 | string | The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. |
GoogleCloudCompute.Instances.disks.kind | string | Type of the resource. Always compute#attachedDisk for attached disks. |
GoogleCloudCompute.Instances.metadata | string | The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys. |
GoogleCloudCompute.Instances.metadata.fingerprint | string | Specifies a fingerprint for this request, which is essentially a hash of the metadatas contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. |
GoogleCloudCompute.Instances.metadata.items | string | Array of key/value pairs. The total size of all keys and values must be less than 512 KB. |
GoogleCloudCompute.Instances.metadata.items.key | string | Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project. |
GoogleCloudCompute.Instances.metadata.items.value | string | Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 42 bytes (256 KiB). |
GoogleCloudCompute.Instances.metadata.kind | string | Type of the resource. Always compute#metadata for metadata. |
GoogleCloudCompute.Instances.serviceAccounts | string | A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. |
GoogleCloudCompute.Instances.serviceAccounts.email | string | Email address of the service account. |
GoogleCloudCompute.Instances.serviceAccounts.scopes | string | The list of scopes to be made available for this service account |
GoogleCloudCompute.Instances.selfLink | string | Server-defined URL for this resource. |
GoogleCloudCompute.Instances.scheduling | string | Sets the scheduling options for this instance. |
GoogleCloudCompute.Instances.scheduling.onHostMaintenance | string | Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. |
GoogleCloudCompute.Instances.scheduling.automaticRestart | boolean | Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. |
GoogleCloudCompute.Instances.scheduling.preemptible | boolean | Defines whether the instance is preemptible. This can only be set during instance creation, it cannot be set or changed after the instance has been created. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities | string | A set of node affinity and anti-affinity. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.key | string | Corresponds to the label key of Node resource. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.operator | string | Defines the operation of node selection. |
GoogleCloudCompute.Instances.scheduling.nodeAffinities.values | string | Corresponds to the label values of Node resource. |
GoogleCloudCompute.Instances.cpuPlatform | string | The CPU platform used by this instance. |
GoogleCloudCompute.Instances.labels | string | Labels to apply to this instance. These can be later modified by the setLabels method. |
GoogleCloudCompute.Instances.labels.key | string | The label key. |
GoogleCloudCompute.Instances.labels.value | string | The label value. |
GoogleCloudCompute.Instances.labelFingerprint | string | A fingerprint for this request, which is essentially a hash of the labels contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. |
GoogleCloudCompute.Instances.minCpuPlatform | string | Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". |
GoogleCloudCompute.Instances.guestAccelerators | string | A list of the type and count of accelerator cards attached to the instance. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorType | string | Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. |
GoogleCloudCompute.Instances.guestAccelerators.acceleratorCount | string | The number of the guest accelerator cards exposed to this instance. |
GoogleCloudCompute.Instances.startRestricted | boolean | Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. |
GoogleCloudCompute.Instances.deletionProtection | boolean | Whether the resource should be protected against deletion. |
GoogleCloudCompute.Instances.hostname | string | Hostname |
GoogleCloudCompute.Instances.kind | string | ] Type of the resource. Always compute#instance for instances. |
#
Command Example!gcp-compute-aggregated-list-instances-by-ip ip=8.8.8.8
#
Context Example#
Human Readable Output#
Google Cloud Compute Instancesid | machineType | name | zone |
---|---|---|---|
42 | machineType | test01 | https://www.mockapi.com/zones/europe-west2-c |
#
gcp-compute-add-network-tagAdd network tag for the specified instance.
#
Base Commandgcp-compute-add-network-tag
#
InputArgument Name | Description | Required |
---|---|---|
instance | Name of the instance scoping this request. | Required |
zone | The name of the zone for this request. | Required |
tag | Network tag to add. Tag must be unique, 1-63 characters long, and comply with RFC1035. | Required |
project_id | Project ID that you want to run this command on. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
GoogleCloudCompute.Operations.id | string | The unique identifier for the resource. This identifier is defined by the server. |
GoogleCloudCompute.Operations.name | string | Name of the resource. |
GoogleCloudCompute.Operations.zone | string | The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.clientOperationId | string | The value of requestId if you provided it in the request. Not present otherwise. |
GoogleCloudCompute.Operations.operationType | string | The type of operation, such as insert, update, or delete, and so on. |
GoogleCloudCompute.Operations.targetLink | string | The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
GoogleCloudCompute.Operations.targetId | string | The unique target ID, which identifies a specific incarnation of the target resource |
GoogleCloudCompute.Operations.status | string | The status of the operation, which can be one of the following: PENDING RUNNING or DONE |
GoogleCloudCompute.Operations.statusMessage | string | An optional textual description of the current status of the operation. |
GoogleCloudCompute.Operations.user | string | User who requested the operation for example EMAILADDRESS. |
GoogleCloudCompute.Operations.progress | number | An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. |
GoogleCloudCompute.Operations.insertTime | string | The time that this operation was requested. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.startTime | string | The time that this operation was started by the server. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.endTime | string | The time that this operation was completed. This value is in RFC3339 text format. |
GoogleCloudCompute.Operations.error | string | If errors are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.error.errors | string | The array of errors encountered while processing this operation. |
GoogleCloudCompute.Operations.error.errors.code | string | The error type identifier for this error. |
GoogleCloudCompute.Operations.error.errors.location | string | Indicates the field in the request that caused the error. This property is optional. |
GoogleCloudCompute.Operations.error.errors.message | string | An optional, human-readable error message. |
GoogleCloudCompute.Operations.warnings | string | If warning messages are generated during processing of the operation, this field will be populated. |
GoogleCloudCompute.Operations.warnings.code | string | A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. |
GoogleCloudCompute.Operations.warnings.message | string | A human-readable description of the warning code. |
GoogleCloudCompute.Operations.warnings.data | string | Metadata about this warning in key: value format. |
GoogleCloudCompute.Operations.warnings.data.key | string | A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). |
GoogleCloudCompute.Operations.warnings.data.value | string | A warning data value corresponding to the key. |
GoogleCloudCompute.Operations.httpErrorStatusCode | number | If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. |
GoogleCloudCompute.Operations.httpErrorMessage | string | If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. |
GoogleCloudCompute.Operations.selfLink | string | Server-defined URL for the resource. |
GoogleCloudCompute.Operations.region | string | The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
GoogleCloudCompute.Operations.description | string | A textual description of the operation, which is set when the operation is created. |
GoogleCloudCompute.Operations.kind | string | Type of the resource. Always compute#operation for Operation resources. |
#
Command Example!gcp-compute-add-network-tag tag="example-tag" zone="europe-west2-c" instance="test01"
#
Context Example#
Human Readable Output#
Google Cloud Compute Operationsid | kind | name | operationType | progress | status |
---|---|---|---|---|---|
42 | compute#operation | mock-operation | setTags | 0 | RUNNING |