Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/v1.InstanceGroup
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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/v1:InstanceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name 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 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 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 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 String
- The unique name of the resource.
- args 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 exampleinstanceGroupResourceResourceFromComputev1 = new GoogleNative.Compute.V1.InstanceGroup("exampleinstanceGroupResourceResourceFromComputev1", new()
{
Description = "string",
Name = "string",
NamedPorts = new[]
{
new GoogleNative.Compute.V1.Inputs.NamedPortArgs
{
Name = "string",
Port = 0,
},
},
Project = "string",
RequestId = "string",
Zone = "string",
});
example, err := computev1.NewInstanceGroup(ctx, "exampleinstanceGroupResourceResourceFromComputev1", &computev1.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"),
})
var exampleinstanceGroupResourceResourceFromComputev1 = new InstanceGroup("exampleinstanceGroupResourceResourceFromComputev1", InstanceGroupArgs.builder()
.description("string")
.name("string")
.namedPorts(NamedPortArgs.builder()
.name("string")
.port(0)
.build())
.project("string")
.requestId("string")
.zone("string")
.build());
exampleinstance_group_resource_resource_from_computev1 = google_native.compute.v1.InstanceGroup("exampleinstanceGroupResourceResourceFromComputev1",
description="string",
name="string",
named_ports=[{
"name": "string",
"port": 0,
}],
project="string",
request_id="string",
zone="string")
const exampleinstanceGroupResourceResourceFromComputev1 = new google_native.compute.v1.InstanceGroup("exampleinstanceGroupResourceResourceFromComputev1", {
description: "string",
name: "string",
namedPorts: [{
name: "string",
port: 0,
}],
project: "string",
requestId: "string",
zone: "string",
});
type: google-native:compute/v1:InstanceGroup
properties:
description: string
name: string
namedPorts:
- name: string
port: 0
project: string
requestId: string
zone: string
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.
- Named
Ports List<Pulumi.Google Native. Compute. V1. Inputs. Named Port> - 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 string
- Request
Id 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 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.
- Named
Ports []NamedPort Args - 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 string
- Request
Id 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 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.
- named
Ports 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 String
- request
Id 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 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.
- named
Ports 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 string
- request
Id 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 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[NamedPort Args] - 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 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 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.
- named
Ports 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 String
- request
Id 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 String
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceGroup resource produces the following output properties:
- Creation
Timestamp 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).
- Self
Link string - The URL for this instance group. The server generates this URL.
- 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).
- Creation
Timestamp 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).
- Self
Link string - The URL for this instance group. The server generates this URL.
- 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).
- creation
Timestamp 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).
- self
Link String - The URL for this instance group. The server generates this URL.
- 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).
- creation
Timestamp 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).
- self
Link string - The URL for this instance group. The server generates this URL.
- 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.
- 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).
- creation
Timestamp 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).
- self
Link String - The URL for this instance group. The server generates this URL.
- 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
NamedPortResponse, NamedPortResponseArgs
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.