1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/alpha
  6. InstanceGroup

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/alpha.InstanceGroup

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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

Create InstanceGroup Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InstanceGroup(name: string, args?: InstanceGroupArgs, opts?: CustomResourceOptions);
@overload
def InstanceGroup(resource_name: str,
                  args: Optional[InstanceGroupArgs] = None,
                  opts: Optional[ResourceOptions] = None)

@overload
def InstanceGroup(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None,
                  named_ports: Optional[Sequence[NamedPortArgs]] = None,
                  project: Optional[str] = None,
                  request_id: Optional[str] = None,
                  zone: Optional[str] = None)
func NewInstanceGroup(ctx *Context, name string, args *InstanceGroupArgs, opts ...ResourceOption) (*InstanceGroup, error)
public InstanceGroup(string name, InstanceGroupArgs? args = null, CustomResourceOptions? opts = null)
public InstanceGroup(String name, InstanceGroupArgs args)
public InstanceGroup(String name, InstanceGroupArgs args, CustomResourceOptions options)
type: google-native:compute/alpha:InstanceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args InstanceGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args InstanceGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args InstanceGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args InstanceGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InstanceGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var instanceGroupResource = new GoogleNative.Compute.Alpha.InstanceGroup("instanceGroupResource", new()
{
    Description = "string",
    Name = "string",
    NamedPorts = new[]
    {
        new GoogleNative.Compute.Alpha.Inputs.NamedPortArgs
        {
            Name = "string",
            Port = 0,
        },
    },
    Project = "string",
    RequestId = "string",
    Zone = "string",
});
Copy
example, err := compute.NewInstanceGroup(ctx, "instanceGroupResource", &compute.InstanceGroupArgs{
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	NamedPorts: compute.NamedPortArray{
		&compute.NamedPortArgs{
			Name: pulumi.String("string"),
			Port: pulumi.Int(0),
		},
	},
	Project:   pulumi.String("string"),
	RequestId: pulumi.String("string"),
	Zone:      pulumi.String("string"),
})
Copy
var instanceGroupResource = new InstanceGroup("instanceGroupResource", InstanceGroupArgs.builder()
    .description("string")
    .name("string")
    .namedPorts(NamedPortArgs.builder()
        .name("string")
        .port(0)
        .build())
    .project("string")
    .requestId("string")
    .zone("string")
    .build());
Copy
instance_group_resource = google_native.compute.alpha.InstanceGroup("instanceGroupResource",
    description="string",
    name="string",
    named_ports=[{
        "name": "string",
        "port": 0,
    }],
    project="string",
    request_id="string",
    zone="string")
Copy
const instanceGroupResource = new google_native.compute.alpha.InstanceGroup("instanceGroupResource", {
    description: "string",
    name: "string",
    namedPorts: [{
        name: "string",
        port: 0,
    }],
    project: "string",
    requestId: "string",
    zone: "string",
});
Copy
type: google-native:compute/alpha:InstanceGroup
properties:
    description: string
    name: string
    namedPorts:
        - name: string
          port: 0
    project: string
    requestId: string
    zone: string
Copy

InstanceGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The InstanceGroup resource accepts the following input properties:

Description string
An optional description of this resource. Provide this property when you create the resource.
Name string
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
NamedPorts List<Pulumi.GoogleNative.Compute.Alpha.Inputs.NamedPort>
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
Project Changes to this property will trigger replacement. string
RequestId string
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).
Zone Changes to this property will trigger replacement. string
Description string
An optional description of this resource. Provide this property when you create the resource.
Name string
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
NamedPorts []NamedPortArgs
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
Project Changes to this property will trigger replacement. string
RequestId string
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).
Zone Changes to this property will trigger replacement. string
description String
An optional description of this resource. Provide this property when you create the resource.
name String
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
namedPorts List<NamedPort>
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
project Changes to this property will trigger replacement. String
requestId String
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).
zone Changes to this property will trigger replacement. String
description string
An optional description of this resource. Provide this property when you create the resource.
name string
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
namedPorts NamedPort[]
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
project Changes to this property will trigger replacement. string
requestId string
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).
zone Changes to this property will trigger replacement. string
description str
An optional description of this resource. Provide this property when you create the resource.
name str
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
named_ports Sequence[NamedPortArgs]
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
project Changes to this property will trigger replacement. str
request_id str
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).
zone Changes to this property will trigger replacement. str
description String
An optional description of this resource. Provide this property when you create the resource.
name String
The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
namedPorts List<Property Map>
Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
project Changes to this property will trigger replacement. String
requestId String
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).
zone Changes to this property will trigger replacement. String

Outputs

All input properties are implicitly available as output properties. Additionally, the InstanceGroup resource produces the following output properties:

CreationTimestamp string
The creation timestamp for this instance group in RFC3339 text format.
Fingerprint string
The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
The resource type, which is always compute#instanceGroup for instance groups.
Network string
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).
Region string
The URL of the region where the instance group is located (for regional resources).
SelfLink string
The URL for this instance group. The server generates this URL.
SelfLinkWithId string
Server-defined URL for this resource with the resource id.
Size int
The total number of instances in the instance group.
Subnetwork string
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).
CreationTimestamp string
The creation timestamp for this instance group in RFC3339 text format.
Fingerprint string
The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
The resource type, which is always compute#instanceGroup for instance groups.
Network string
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).
Region string
The URL of the region where the instance group is located (for regional resources).
SelfLink string
The URL for this instance group. The server generates this URL.
SelfLinkWithId string
Server-defined URL for this resource with the resource id.
Size int
The total number of instances in the instance group.
Subnetwork string
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).
creationTimestamp String
The creation timestamp for this instance group in RFC3339 text format.
fingerprint String
The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
id String
The provider-assigned unique ID for this managed resource.
kind String
The resource type, which is always compute#instanceGroup for instance groups.
network String
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).
region String
The URL of the region where the instance group is located (for regional resources).
selfLink String
The URL for this instance group. The server generates this URL.
selfLinkWithId String
Server-defined URL for this resource with the resource id.
size Integer
The total number of instances in the instance group.
subnetwork String
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).
creationTimestamp string
The creation timestamp for this instance group in RFC3339 text format.
fingerprint string
The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
id string
The provider-assigned unique ID for this managed resource.
kind string
The resource type, which is always compute#instanceGroup for instance groups.
network string
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).
region string
The URL of the region where the instance group is located (for regional resources).
selfLink string
The URL for this instance group. The server generates this URL.
selfLinkWithId string
Server-defined URL for this resource with the resource id.
size number
The total number of instances in the instance group.
subnetwork string
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).
creation_timestamp str
The creation timestamp for this instance group in RFC3339 text format.
fingerprint str
The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
id str
The provider-assigned unique ID for this managed resource.
kind str
The resource type, which is always compute#instanceGroup for instance groups.
network str
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).
region str
The URL of the region where the instance group is located (for regional resources).
self_link str
The URL for this instance group. The server generates this URL.
self_link_with_id str
Server-defined URL for this resource with the resource id.
size int
The total number of instances in the instance group.
subnetwork str
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).
creationTimestamp String
The creation timestamp for this instance group in RFC3339 text format.
fingerprint String
The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently.
id String
The provider-assigned unique ID for this managed resource.
kind String
The resource type, which is always compute#instanceGroup for instance groups.
network String
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).
region String
The URL of the region where the instance group is located (for regional resources).
selfLink String
The URL for this instance group. The server generates this URL.
selfLinkWithId String
Server-defined URL for this resource with the resource id.
size Number
The total number of instances in the instance group.
subnetwork String
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).

Supporting Types

NamedPort
, NamedPortArgs

Name string
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
Port int
The port number, which can be a value between 1 and 65535.
Name string
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
Port int
The port number, which can be a value between 1 and 65535.
name String
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port Integer
The port number, which can be a value between 1 and 65535.
name string
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port number
The port number, which can be a value between 1 and 65535.
name str
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port int
The port number, which can be a value between 1 and 65535.
name String
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port Number
The port number, which can be a value between 1 and 65535.

NamedPortResponse
, NamedPortResponseArgs

Name This property is required. string
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
Port This property is required. int
The port number, which can be a value between 1 and 65535.
Name This property is required. string
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
Port This property is required. int
The port number, which can be a value between 1 and 65535.
name This property is required. String
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port This property is required. Integer
The port number, which can be a value between 1 and 65535.
name This property is required. string
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port This property is required. number
The port number, which can be a value between 1 and 65535.
name This property is required. str
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port This property is required. int
The port number, which can be a value between 1 and 65535.
name This property is required. String
The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.
port This property is required. Number
The port number, which can be a value between 1 and 65535.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi