v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-131,0021,0174.3 MB
instanceGroups

Creates an instance group in the specified project using the parameters that are included in the request.

post/projects/{project}/zones/{zone}/instanceGroups

Path parameters

projectstring required

Project ID for this request.

zonestring required

The name of the zone where you want to create the instance group.

Query parameters

requestIdstring

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Request body

creationTimestampstring

Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text format.

descriptionstring

An optional description of this resource. Provide this property when you create the resource.

regionstring

Output only. [Output Only] The URL of theregion where the instance group is located (for regional resources).

fingerprintstring byte

Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.

sizeinteger

Output only. [Output Only] The total number of instances in the instance group.

namestring

The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035.

kindstring

Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups.

idstring uint64

Output only. [Output Only] A unique identifier for this instance group, generated by the server.

networkstring

[Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).

subnetworkstring

Output only. [Output Only] The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0).

selfLinkstring

Output only. [Output Only] The URL for this instance group. The server generates this URL.

zonestring

Output only. [Output Only] The URL of thezone where the instance group is located (for zonal resources).

Response

Successful response