1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. vmwareengine
  5. Subnet
Google Cloud v8.27.1 published on Friday, Apr 25, 2025 by Pulumi

gcp.vmwareengine.Subnet

Explore with Pulumi AI

Subnet in a private cloud. A Private Cloud contains two types of subnets: management subnets (such as vMotion) that are read-only,and userDefined, which can also be updated. This resource should be used to read and update userDefined subnets. To read management subnets, please utilize the subnet data source.

To get more information about Subnet, see:

Example Usage

Vmware Engine Subnet User Defined

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const subnet_nw = new gcp.vmwareengine.Network("subnet-nw", {
    name: "pc-nw",
    location: "global",
    type: "STANDARD",
    description: "PC network description.",
});
const subnet_pc = new gcp.vmwareengine.PrivateCloud("subnet-pc", {
    location: "us-west1-a",
    name: "sample-pc",
    description: "Sample test PC.",
    networkConfig: {
        managementCidr: "192.168.50.0/24",
        vmwareEngineNetwork: subnet_nw.id,
    },
    managementCluster: {
        clusterId: "sample-mgmt-cluster",
        nodeTypeConfigs: [{
            nodeTypeId: "standard-72",
            nodeCount: 3,
        }],
    },
});
const vmw_engine_subnet = new gcp.vmwareengine.Subnet("vmw-engine-subnet", {
    name: "service-1",
    parent: subnet_pc.id,
    ipCidrRange: "192.168.100.0/26",
});
Copy
import pulumi
import pulumi_gcp as gcp

subnet_nw = gcp.vmwareengine.Network("subnet-nw",
    name="pc-nw",
    location="global",
    type="STANDARD",
    description="PC network description.")
subnet_pc = gcp.vmwareengine.PrivateCloud("subnet-pc",
    location="us-west1-a",
    name="sample-pc",
    description="Sample test PC.",
    network_config={
        "management_cidr": "192.168.50.0/24",
        "vmware_engine_network": subnet_nw.id,
    },
    management_cluster={
        "cluster_id": "sample-mgmt-cluster",
        "node_type_configs": [{
            "node_type_id": "standard-72",
            "node_count": 3,
        }],
    })
vmw_engine_subnet = gcp.vmwareengine.Subnet("vmw-engine-subnet",
    name="service-1",
    parent=subnet_pc.id,
    ip_cidr_range="192.168.100.0/26")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vmwareengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		subnet_nw, err := vmwareengine.NewNetwork(ctx, "subnet-nw", &vmwareengine.NetworkArgs{
			Name:        pulumi.String("pc-nw"),
			Location:    pulumi.String("global"),
			Type:        pulumi.String("STANDARD"),
			Description: pulumi.String("PC network description."),
		})
		if err != nil {
			return err
		}
		subnet_pc, err := vmwareengine.NewPrivateCloud(ctx, "subnet-pc", &vmwareengine.PrivateCloudArgs{
			Location:    pulumi.String("us-west1-a"),
			Name:        pulumi.String("sample-pc"),
			Description: pulumi.String("Sample test PC."),
			NetworkConfig: &vmwareengine.PrivateCloudNetworkConfigArgs{
				ManagementCidr:      pulumi.String("192.168.50.0/24"),
				VmwareEngineNetwork: subnet_nw.ID(),
			},
			ManagementCluster: &vmwareengine.PrivateCloudManagementClusterArgs{
				ClusterId: pulumi.String("sample-mgmt-cluster"),
				NodeTypeConfigs: vmwareengine.PrivateCloudManagementClusterNodeTypeConfigArray{
					&vmwareengine.PrivateCloudManagementClusterNodeTypeConfigArgs{
						NodeTypeId: pulumi.String("standard-72"),
						NodeCount:  pulumi.Int(3),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = vmwareengine.NewSubnet(ctx, "vmw-engine-subnet", &vmwareengine.SubnetArgs{
			Name:        pulumi.String("service-1"),
			Parent:      subnet_pc.ID(),
			IpCidrRange: pulumi.String("192.168.100.0/26"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var subnet_nw = new Gcp.VMwareEngine.Network("subnet-nw", new()
    {
        Name = "pc-nw",
        Location = "global",
        Type = "STANDARD",
        Description = "PC network description.",
    });

    var subnet_pc = new Gcp.VMwareEngine.PrivateCloud("subnet-pc", new()
    {
        Location = "us-west1-a",
        Name = "sample-pc",
        Description = "Sample test PC.",
        NetworkConfig = new Gcp.VMwareEngine.Inputs.PrivateCloudNetworkConfigArgs
        {
            ManagementCidr = "192.168.50.0/24",
            VmwareEngineNetwork = subnet_nw.Id,
        },
        ManagementCluster = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterArgs
        {
            ClusterId = "sample-mgmt-cluster",
            NodeTypeConfigs = new[]
            {
                new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterNodeTypeConfigArgs
                {
                    NodeTypeId = "standard-72",
                    NodeCount = 3,
                },
            },
        },
    });

    var vmw_engine_subnet = new Gcp.VMwareEngine.Subnet("vmw-engine-subnet", new()
    {
        Name = "service-1",
        Parent = subnet_pc.Id,
        IpCidrRange = "192.168.100.0/26",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vmwareengine.Network;
import com.pulumi.gcp.vmwareengine.NetworkArgs;
import com.pulumi.gcp.vmwareengine.PrivateCloud;
import com.pulumi.gcp.vmwareengine.PrivateCloudArgs;
import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudNetworkConfigArgs;
import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterArgs;
import com.pulumi.gcp.vmwareengine.Subnet;
import com.pulumi.gcp.vmwareengine.SubnetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var subnet_nw = new Network("subnet-nw", NetworkArgs.builder()
            .name("pc-nw")
            .location("global")
            .type("STANDARD")
            .description("PC network description.")
            .build());

        var subnet_pc = new PrivateCloud("subnet-pc", PrivateCloudArgs.builder()
            .location("us-west1-a")
            .name("sample-pc")
            .description("Sample test PC.")
            .networkConfig(PrivateCloudNetworkConfigArgs.builder()
                .managementCidr("192.168.50.0/24")
                .vmwareEngineNetwork(subnet_nw.id())
                .build())
            .managementCluster(PrivateCloudManagementClusterArgs.builder()
                .clusterId("sample-mgmt-cluster")
                .nodeTypeConfigs(PrivateCloudManagementClusterNodeTypeConfigArgs.builder()
                    .nodeTypeId("standard-72")
                    .nodeCount(3)
                    .build())
                .build())
            .build());

        var vmw_engine_subnet = new Subnet("vmw-engine-subnet", SubnetArgs.builder()
            .name("service-1")
            .parent(subnet_pc.id())
            .ipCidrRange("192.168.100.0/26")
            .build());

    }
}
Copy
resources:
  subnet-nw:
    type: gcp:vmwareengine:Network
    properties:
      name: pc-nw
      location: global
      type: STANDARD
      description: PC network description.
  subnet-pc:
    type: gcp:vmwareengine:PrivateCloud
    properties:
      location: us-west1-a
      name: sample-pc
      description: Sample test PC.
      networkConfig:
        managementCidr: 192.168.50.0/24
        vmwareEngineNetwork: ${["subnet-nw"].id}
      managementCluster:
        clusterId: sample-mgmt-cluster
        nodeTypeConfigs:
          - nodeTypeId: standard-72
            nodeCount: 3
  vmw-engine-subnet:
    type: gcp:vmwareengine:Subnet
    properties:
      name: service-1
      parent: ${["subnet-pc"].id}
      ipCidrRange: 192.168.100.0/26
Copy

Create Subnet Resource

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

Constructor syntax

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

@overload
def Subnet(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           ip_cidr_range: Optional[str] = None,
           parent: Optional[str] = None,
           name: Optional[str] = None)
func NewSubnet(ctx *Context, name string, args SubnetArgs, opts ...ResourceOption) (*Subnet, error)
public Subnet(string name, SubnetArgs args, CustomResourceOptions? opts = null)
public Subnet(String name, SubnetArgs args)
public Subnet(String name, SubnetArgs args, CustomResourceOptions options)
type: gcp:vmwareengine:Subnet
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 This property is required. SubnetArgs
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 This property is required. SubnetArgs
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 This property is required. SubnetArgs
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 This property is required. SubnetArgs
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. SubnetArgs
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 gcpSubnetResource = new Gcp.VMwareEngine.Subnet("gcpSubnetResource", new()
{
    IpCidrRange = "string",
    Parent = "string",
    Name = "string",
});
Copy
example, err := vmwareengine.NewSubnet(ctx, "gcpSubnetResource", &vmwareengine.SubnetArgs{
	IpCidrRange: pulumi.String("string"),
	Parent:      pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var gcpSubnetResource = new com.pulumi.gcp.vmwareengine.Subnet("gcpSubnetResource", com.pulumi.gcp.vmwareengine.SubnetArgs.builder()
    .ipCidrRange("string")
    .parent("string")
    .name("string")
    .build());
Copy
gcp_subnet_resource = gcp.vmwareengine.Subnet("gcpSubnetResource",
    ip_cidr_range="string",
    parent="string",
    name="string")
Copy
const gcpSubnetResource = new gcp.vmwareengine.Subnet("gcpSubnetResource", {
    ipCidrRange: "string",
    parent: "string",
    name: "string",
});
Copy
type: gcp:vmwareengine:Subnet
properties:
    ipCidrRange: string
    name: string
    parent: string
Copy

Subnet 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 Subnet resource accepts the following input properties:

IpCidrRange This property is required. string
The IP address range of the subnet in CIDR format.
Parent
This property is required.
Changes to this property will trigger replacement.
string
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Name Changes to this property will trigger replacement. string
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


IpCidrRange This property is required. string
The IP address range of the subnet in CIDR format.
Parent
This property is required.
Changes to this property will trigger replacement.
string
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Name Changes to this property will trigger replacement. string
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


ipCidrRange This property is required. String
The IP address range of the subnet in CIDR format.
parent
This property is required.
Changes to this property will trigger replacement.
String
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
name Changes to this property will trigger replacement. String
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


ipCidrRange This property is required. string
The IP address range of the subnet in CIDR format.
parent
This property is required.
Changes to this property will trigger replacement.
string
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
name Changes to this property will trigger replacement. string
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


ip_cidr_range This property is required. str
The IP address range of the subnet in CIDR format.
parent
This property is required.
Changes to this property will trigger replacement.
str
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
name Changes to this property will trigger replacement. str
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


ipCidrRange This property is required. String
The IP address range of the subnet in CIDR format.
parent
This property is required.
Changes to this property will trigger replacement.
String
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
name Changes to this property will trigger replacement. String
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


Outputs

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

CreateTime string
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
DhcpAddressRanges List<SubnetDhcpAddressRange>
DHCP address ranges. Structure is documented below.
GatewayId string
The canonical identifier of the logical router that this subnet is attached to.
GatewayIp string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
Id string
The provider-assigned unique ID for this managed resource.
StandardConfig bool
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
State string
State of the subnet.
Type string
The type of the subnet.
Uid string
System-generated unique identifier for the resource.
UpdateTime string
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
VlanId int
VLAN ID of the VLAN on which the subnet is configured.
CreateTime string
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
DhcpAddressRanges []SubnetDhcpAddressRange
DHCP address ranges. Structure is documented below.
GatewayId string
The canonical identifier of the logical router that this subnet is attached to.
GatewayIp string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
Id string
The provider-assigned unique ID for this managed resource.
StandardConfig bool
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
State string
State of the subnet.
Type string
The type of the subnet.
Uid string
System-generated unique identifier for the resource.
UpdateTime string
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
VlanId int
VLAN ID of the VLAN on which the subnet is configured.
createTime String
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcpAddressRanges List<SubnetDhcpAddressRange>
DHCP address ranges. Structure is documented below.
gatewayId String
The canonical identifier of the logical router that this subnet is attached to.
gatewayIp String
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
id String
The provider-assigned unique ID for this managed resource.
standardConfig Boolean
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state String
State of the subnet.
type String
The type of the subnet.
uid String
System-generated unique identifier for the resource.
updateTime String
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlanId Integer
VLAN ID of the VLAN on which the subnet is configured.
createTime string
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcpAddressRanges SubnetDhcpAddressRange[]
DHCP address ranges. Structure is documented below.
gatewayId string
The canonical identifier of the logical router that this subnet is attached to.
gatewayIp string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
id string
The provider-assigned unique ID for this managed resource.
standardConfig boolean
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state string
State of the subnet.
type string
The type of the subnet.
uid string
System-generated unique identifier for the resource.
updateTime string
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlanId number
VLAN ID of the VLAN on which the subnet is configured.
create_time str
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcp_address_ranges Sequence[SubnetDhcpAddressRange]
DHCP address ranges. Structure is documented below.
gateway_id str
The canonical identifier of the logical router that this subnet is attached to.
gateway_ip str
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
id str
The provider-assigned unique ID for this managed resource.
standard_config bool
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state str
State of the subnet.
type str
The type of the subnet.
uid str
System-generated unique identifier for the resource.
update_time str
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlan_id int
VLAN ID of the VLAN on which the subnet is configured.
createTime String
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcpAddressRanges List<Property Map>
DHCP address ranges. Structure is documented below.
gatewayId String
The canonical identifier of the logical router that this subnet is attached to.
gatewayIp String
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
id String
The provider-assigned unique ID for this managed resource.
standardConfig Boolean
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state String
State of the subnet.
type String
The type of the subnet.
uid String
System-generated unique identifier for the resource.
updateTime String
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlanId Number
VLAN ID of the VLAN on which the subnet is configured.

Look up Existing Subnet Resource

Get an existing Subnet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SubnetState, opts?: CustomResourceOptions): Subnet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        dhcp_address_ranges: Optional[Sequence[SubnetDhcpAddressRangeArgs]] = None,
        gateway_id: Optional[str] = None,
        gateway_ip: Optional[str] = None,
        ip_cidr_range: Optional[str] = None,
        name: Optional[str] = None,
        parent: Optional[str] = None,
        standard_config: Optional[bool] = None,
        state: Optional[str] = None,
        type: Optional[str] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None,
        vlan_id: Optional[int] = None) -> Subnet
func GetSubnet(ctx *Context, name string, id IDInput, state *SubnetState, opts ...ResourceOption) (*Subnet, error)
public static Subnet Get(string name, Input<string> id, SubnetState? state, CustomResourceOptions? opts = null)
public static Subnet get(String name, Output<String> id, SubnetState state, CustomResourceOptions options)
resources:  _:    type: gcp:vmwareengine:Subnet    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
DhcpAddressRanges List<SubnetDhcpAddressRange>
DHCP address ranges. Structure is documented below.
GatewayId string
The canonical identifier of the logical router that this subnet is attached to.
GatewayIp string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
IpCidrRange string
The IP address range of the subnet in CIDR format.
Name Changes to this property will trigger replacement. string
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


Parent Changes to this property will trigger replacement. string
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
StandardConfig bool
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
State string
State of the subnet.
Type string
The type of the subnet.
Uid string
System-generated unique identifier for the resource.
UpdateTime string
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
VlanId int
VLAN ID of the VLAN on which the subnet is configured.
CreateTime string
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
DhcpAddressRanges []SubnetDhcpAddressRangeArgs
DHCP address ranges. Structure is documented below.
GatewayId string
The canonical identifier of the logical router that this subnet is attached to.
GatewayIp string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
IpCidrRange string
The IP address range of the subnet in CIDR format.
Name Changes to this property will trigger replacement. string
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


Parent Changes to this property will trigger replacement. string
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
StandardConfig bool
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
State string
State of the subnet.
Type string
The type of the subnet.
Uid string
System-generated unique identifier for the resource.
UpdateTime string
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
VlanId int
VLAN ID of the VLAN on which the subnet is configured.
createTime String
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcpAddressRanges List<SubnetDhcpAddressRange>
DHCP address ranges. Structure is documented below.
gatewayId String
The canonical identifier of the logical router that this subnet is attached to.
gatewayIp String
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
ipCidrRange String
The IP address range of the subnet in CIDR format.
name Changes to this property will trigger replacement. String
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


parent Changes to this property will trigger replacement. String
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
standardConfig Boolean
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state String
State of the subnet.
type String
The type of the subnet.
uid String
System-generated unique identifier for the resource.
updateTime String
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlanId Integer
VLAN ID of the VLAN on which the subnet is configured.
createTime string
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcpAddressRanges SubnetDhcpAddressRange[]
DHCP address ranges. Structure is documented below.
gatewayId string
The canonical identifier of the logical router that this subnet is attached to.
gatewayIp string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
ipCidrRange string
The IP address range of the subnet in CIDR format.
name Changes to this property will trigger replacement. string
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


parent Changes to this property will trigger replacement. string
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
standardConfig boolean
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state string
State of the subnet.
type string
The type of the subnet.
uid string
System-generated unique identifier for the resource.
updateTime string
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlanId number
VLAN ID of the VLAN on which the subnet is configured.
create_time str
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcp_address_ranges Sequence[SubnetDhcpAddressRangeArgs]
DHCP address ranges. Structure is documented below.
gateway_id str
The canonical identifier of the logical router that this subnet is attached to.
gateway_ip str
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
ip_cidr_range str
The IP address range of the subnet in CIDR format.
name Changes to this property will trigger replacement. str
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


parent Changes to this property will trigger replacement. str
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
standard_config bool
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state str
State of the subnet.
type str
The type of the subnet.
uid str
System-generated unique identifier for the resource.
update_time str
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlan_id int
VLAN ID of the VLAN on which the subnet is configured.
createTime String
Creation time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
dhcpAddressRanges List<Property Map>
DHCP address ranges. Structure is documented below.
gatewayId String
The canonical identifier of the logical router that this subnet is attached to.
gatewayIp String
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
ipCidrRange String
The IP address range of the subnet in CIDR format.
name Changes to this property will trigger replacement. String
The ID of the subnet. For userDefined subnets, this name should be in the format of "service-n", where n ranges from 1 to 5.


parent Changes to this property will trigger replacement. String
The resource name of the private cloud to create a new subnet in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
standardConfig Boolean
Whether the NSX-T configuration in the backend follows the standard configuration supported by Google Cloud. If false, the subnet cannot be modified through Google Cloud, only through NSX-T directly.
state String
State of the subnet.
type String
The type of the subnet.
uid String
System-generated unique identifier for the resource.
updateTime String
Last updated time of this resource. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
vlanId Number
VLAN ID of the VLAN on which the subnet is configured.

Supporting Types

SubnetDhcpAddressRange
, SubnetDhcpAddressRangeArgs

FirstAddress string
(Output) The first IP address of the range.
LastAddress string
(Output) The last IP address of the range.
FirstAddress string
(Output) The first IP address of the range.
LastAddress string
(Output) The last IP address of the range.
firstAddress String
(Output) The first IP address of the range.
lastAddress String
(Output) The last IP address of the range.
firstAddress string
(Output) The first IP address of the range.
lastAddress string
(Output) The last IP address of the range.
first_address str
(Output) The first IP address of the range.
last_address str
(Output) The last IP address of the range.
firstAddress String
(Output) The first IP address of the range.
lastAddress String
(Output) The last IP address of the range.

Import

Subnet can be imported using any of these accepted formats:

  • {{parent}}/subnets/{{name}}

When using the pulumi import command, Subnet can be imported using one of the formats above. For example:

$ pulumi import gcp:vmwareengine/subnet:Subnet default {{parent}}/subnets/{{name}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.