Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/alpha.Subnetwork
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a subnetwork in the specified project using the data included in the request.
Create Subnetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Subnetwork(name: string, args: SubnetworkArgs, opts?: CustomResourceOptions);@overload
def Subnetwork(resource_name: str,
               args: SubnetworkArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def Subnetwork(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               region: Optional[str] = None,
               external_ipv6_prefix: Optional[str] = None,
               secondary_ip_ranges: Optional[Sequence[SubnetworkSecondaryRangeArgs]] = None,
               enable_flow_logs: Optional[bool] = None,
               enable_l2: Optional[bool] = None,
               enable_private_v6_access: Optional[bool] = None,
               aggregation_interval: Optional[SubnetworkAggregationInterval] = None,
               flow_sampling: Optional[float] = None,
               ip_cidr_range: Optional[str] = None,
               ipv6_access_type: Optional[SubnetworkIpv6AccessType] = None,
               log_config: Optional[SubnetworkLogConfigArgs] = None,
               vlans: Optional[Sequence[int]] = None,
               description: Optional[str] = None,
               private_ipv6_google_access: Optional[SubnetworkPrivateIpv6GoogleAccess] = None,
               private_ip_google_access: Optional[bool] = None,
               network: Optional[str] = None,
               project: Optional[str] = None,
               purpose: Optional[SubnetworkPurpose] = None,
               allow_subnet_cidr_routes_overlap: Optional[bool] = None,
               request_id: Optional[str] = None,
               reserved_internal_range: Optional[str] = None,
               role: Optional[SubnetworkRole] = None,
               name: Optional[str] = None,
               stack_type: Optional[SubnetworkStackType] = None,
               metadata: Optional[SubnetworkMetadata] = None)func NewSubnetwork(ctx *Context, name string, args SubnetworkArgs, opts ...ResourceOption) (*Subnetwork, error)public Subnetwork(string name, SubnetworkArgs args, CustomResourceOptions? opts = null)
public Subnetwork(String name, SubnetworkArgs args)
public Subnetwork(String name, SubnetworkArgs args, CustomResourceOptions options)
type: google-native:compute/alpha:Subnetwork
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 SubnetworkArgs
- 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 SubnetworkArgs
- 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 SubnetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubnetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubnetworkArgs
- 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 subnetworkResource = new GoogleNative.Compute.Alpha.Subnetwork("subnetworkResource", new()
{
    Region = "string",
    ExternalIpv6Prefix = "string",
    SecondaryIpRanges = new[]
    {
        new GoogleNative.Compute.Alpha.Inputs.SubnetworkSecondaryRangeArgs
        {
            IpCidrRange = "string",
            RangeName = "string",
            ReservedInternalRange = "string",
        },
    },
    EnableFlowLogs = false,
    EnableL2 = false,
    AggregationInterval = GoogleNative.Compute.Alpha.SubnetworkAggregationInterval.Interval10Min,
    FlowSampling = 0,
    IpCidrRange = "string",
    Ipv6AccessType = GoogleNative.Compute.Alpha.SubnetworkIpv6AccessType.External,
    LogConfig = new GoogleNative.Compute.Alpha.Inputs.SubnetworkLogConfigArgs
    {
        AggregationInterval = GoogleNative.Compute.Alpha.SubnetworkLogConfigAggregationInterval.Interval10Min,
        Enable = false,
        FilterExpr = "string",
        FlowSampling = 0,
        Metadata = GoogleNative.Compute.Alpha.SubnetworkLogConfigMetadata.CustomMetadata,
        MetadataFields = new[]
        {
            "string",
        },
    },
    Vlans = new[]
    {
        0,
    },
    Description = "string",
    PrivateIpv6GoogleAccess = GoogleNative.Compute.Alpha.SubnetworkPrivateIpv6GoogleAccess.DisableGoogleAccess,
    PrivateIpGoogleAccess = false,
    Network = "string",
    Project = "string",
    Purpose = GoogleNative.Compute.Alpha.SubnetworkPurpose.Aggregate,
    AllowSubnetCidrRoutesOverlap = false,
    RequestId = "string",
    ReservedInternalRange = "string",
    Role = GoogleNative.Compute.Alpha.SubnetworkRole.Active,
    Name = "string",
    StackType = GoogleNative.Compute.Alpha.SubnetworkStackType.Ipv4Ipv6,
    Metadata = GoogleNative.Compute.Alpha.SubnetworkMetadata.ExcludeAllMetadata,
});
example, err := compute.NewSubnetwork(ctx, "subnetworkResource", &compute.SubnetworkArgs{
	Region:             pulumi.String("string"),
	ExternalIpv6Prefix: pulumi.String("string"),
	SecondaryIpRanges: compute.SubnetworkSecondaryRangeArray{
		&compute.SubnetworkSecondaryRangeArgs{
			IpCidrRange:           pulumi.String("string"),
			RangeName:             pulumi.String("string"),
			ReservedInternalRange: pulumi.String("string"),
		},
	},
	EnableFlowLogs:      pulumi.Bool(false),
	EnableL2:            pulumi.Bool(false),
	AggregationInterval: compute.SubnetworkAggregationIntervalInterval10Min,
	FlowSampling:        pulumi.Float64(0),
	IpCidrRange:         pulumi.String("string"),
	Ipv6AccessType:      compute.SubnetworkIpv6AccessTypeExternal,
	LogConfig: &compute.SubnetworkLogConfigArgs{
		AggregationInterval: compute.SubnetworkLogConfigAggregationIntervalInterval10Min,
		Enable:              pulumi.Bool(false),
		FilterExpr:          pulumi.String("string"),
		FlowSampling:        pulumi.Float64(0),
		Metadata:            compute.SubnetworkLogConfigMetadataCustomMetadata,
		MetadataFields: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Vlans: pulumi.IntArray{
		pulumi.Int(0),
	},
	Description:                  pulumi.String("string"),
	PrivateIpv6GoogleAccess:      compute.SubnetworkPrivateIpv6GoogleAccessDisableGoogleAccess,
	PrivateIpGoogleAccess:        pulumi.Bool(false),
	Network:                      pulumi.String("string"),
	Project:                      pulumi.String("string"),
	Purpose:                      compute.SubnetworkPurposeAggregate,
	AllowSubnetCidrRoutesOverlap: pulumi.Bool(false),
	RequestId:                    pulumi.String("string"),
	ReservedInternalRange:        pulumi.String("string"),
	Role:                         compute.SubnetworkRoleActive,
	Name:                         pulumi.String("string"),
	StackType:                    compute.SubnetworkStackTypeIpv4Ipv6,
	Metadata:                     compute.SubnetworkMetadataExcludeAllMetadata,
})
var subnetworkResource = new Subnetwork("subnetworkResource", SubnetworkArgs.builder()
    .region("string")
    .externalIpv6Prefix("string")
    .secondaryIpRanges(SubnetworkSecondaryRangeArgs.builder()
        .ipCidrRange("string")
        .rangeName("string")
        .reservedInternalRange("string")
        .build())
    .enableFlowLogs(false)
    .enableL2(false)
    .aggregationInterval("INTERVAL_10_MIN")
    .flowSampling(0)
    .ipCidrRange("string")
    .ipv6AccessType("EXTERNAL")
    .logConfig(SubnetworkLogConfigArgs.builder()
        .aggregationInterval("INTERVAL_10_MIN")
        .enable(false)
        .filterExpr("string")
        .flowSampling(0)
        .metadata("CUSTOM_METADATA")
        .metadataFields("string")
        .build())
    .vlans(0)
    .description("string")
    .privateIpv6GoogleAccess("DISABLE_GOOGLE_ACCESS")
    .privateIpGoogleAccess(false)
    .network("string")
    .project("string")
    .purpose("AGGREGATE")
    .allowSubnetCidrRoutesOverlap(false)
    .requestId("string")
    .reservedInternalRange("string")
    .role("ACTIVE")
    .name("string")
    .stackType("IPV4_IPV6")
    .metadata("EXCLUDE_ALL_METADATA")
    .build());
subnetwork_resource = google_native.compute.alpha.Subnetwork("subnetworkResource",
    region="string",
    external_ipv6_prefix="string",
    secondary_ip_ranges=[{
        "ip_cidr_range": "string",
        "range_name": "string",
        "reserved_internal_range": "string",
    }],
    enable_flow_logs=False,
    enable_l2=False,
    aggregation_interval=google_native.compute.alpha.SubnetworkAggregationInterval.INTERVAL10_MIN,
    flow_sampling=0,
    ip_cidr_range="string",
    ipv6_access_type=google_native.compute.alpha.SubnetworkIpv6AccessType.EXTERNAL,
    log_config={
        "aggregation_interval": google_native.compute.alpha.SubnetworkLogConfigAggregationInterval.INTERVAL10_MIN,
        "enable": False,
        "filter_expr": "string",
        "flow_sampling": 0,
        "metadata": google_native.compute.alpha.SubnetworkLogConfigMetadata.CUSTOM_METADATA,
        "metadata_fields": ["string"],
    },
    vlans=[0],
    description="string",
    private_ipv6_google_access=google_native.compute.alpha.SubnetworkPrivateIpv6GoogleAccess.DISABLE_GOOGLE_ACCESS,
    private_ip_google_access=False,
    network="string",
    project="string",
    purpose=google_native.compute.alpha.SubnetworkPurpose.AGGREGATE,
    allow_subnet_cidr_routes_overlap=False,
    request_id="string",
    reserved_internal_range="string",
    role=google_native.compute.alpha.SubnetworkRole.ACTIVE,
    name="string",
    stack_type=google_native.compute.alpha.SubnetworkStackType.IPV4_IPV6,
    metadata=google_native.compute.alpha.SubnetworkMetadata.EXCLUDE_ALL_METADATA)
const subnetworkResource = new google_native.compute.alpha.Subnetwork("subnetworkResource", {
    region: "string",
    externalIpv6Prefix: "string",
    secondaryIpRanges: [{
        ipCidrRange: "string",
        rangeName: "string",
        reservedInternalRange: "string",
    }],
    enableFlowLogs: false,
    enableL2: false,
    aggregationInterval: google_native.compute.alpha.SubnetworkAggregationInterval.Interval10Min,
    flowSampling: 0,
    ipCidrRange: "string",
    ipv6AccessType: google_native.compute.alpha.SubnetworkIpv6AccessType.External,
    logConfig: {
        aggregationInterval: google_native.compute.alpha.SubnetworkLogConfigAggregationInterval.Interval10Min,
        enable: false,
        filterExpr: "string",
        flowSampling: 0,
        metadata: google_native.compute.alpha.SubnetworkLogConfigMetadata.CustomMetadata,
        metadataFields: ["string"],
    },
    vlans: [0],
    description: "string",
    privateIpv6GoogleAccess: google_native.compute.alpha.SubnetworkPrivateIpv6GoogleAccess.DisableGoogleAccess,
    privateIpGoogleAccess: false,
    network: "string",
    project: "string",
    purpose: google_native.compute.alpha.SubnetworkPurpose.Aggregate,
    allowSubnetCidrRoutesOverlap: false,
    requestId: "string",
    reservedInternalRange: "string",
    role: google_native.compute.alpha.SubnetworkRole.Active,
    name: "string",
    stackType: google_native.compute.alpha.SubnetworkStackType.Ipv4Ipv6,
    metadata: google_native.compute.alpha.SubnetworkMetadata.ExcludeAllMetadata,
});
type: google-native:compute/alpha:Subnetwork
properties:
    aggregationInterval: INTERVAL_10_MIN
    allowSubnetCidrRoutesOverlap: false
    description: string
    enableFlowLogs: false
    enableL2: false
    externalIpv6Prefix: string
    flowSampling: 0
    ipCidrRange: string
    ipv6AccessType: EXTERNAL
    logConfig:
        aggregationInterval: INTERVAL_10_MIN
        enable: false
        filterExpr: string
        flowSampling: 0
        metadata: CUSTOM_METADATA
        metadataFields:
            - string
    metadata: EXCLUDE_ALL_METADATA
    name: string
    network: string
    privateIpGoogleAccess: false
    privateIpv6GoogleAccess: DISABLE_GOOGLE_ACCESS
    project: string
    purpose: AGGREGATE
    region: string
    requestId: string
    reservedInternalRange: string
    role: ACTIVE
    secondaryIpRanges:
        - ipCidrRange: string
          rangeName: string
          reservedInternalRange: string
    stackType: IPV4_IPV6
    vlans:
        - 0
Subnetwork 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 Subnetwork resource accepts the following input properties:
- Region string
- URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- AggregationInterval Pulumi.Google Native. Compute. Alpha. Subnetwork Aggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
- AllowSubnet boolCidr Routes Overlap 
- Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time.
- Description string
- An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- EnableFlow boolLogs 
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- EnableL2 bool
- Enables Layer2 communication on the subnetwork.
- EnablePrivate boolV6Access 
- Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
- ExternalIpv6Prefix string
- The external IPv6 address range that is owned by this subnetwork.
- FlowSampling double
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- IpCidr stringRange 
- The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
- Ipv6AccessType Pulumi.Google Native. Compute. Alpha. Subnetwork Ipv6Access Type 
- The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
- LogConfig Pulumi.Google Native. Compute. Alpha. Inputs. Subnetwork Log Config 
- This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- Metadata
Pulumi.Google Native. Compute. Alpha. Subnetwork Metadata 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.
- Name string
- The name of the resource, provided by the client when initially creating the resource. 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.
- Network string
- The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
- PrivateIp boolGoogle Access 
- Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- PrivateIpv6Google Pulumi.Access Google Native. Compute. Alpha. Subnetwork Private Ipv6Google Access 
- This field is for internal use. This field can be both set at resource creation time and updated using patch.
- Project string
- Purpose
Pulumi.Google Native. Compute. Alpha. Subnetwork Purpose 
- The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- 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).
- ReservedInternal stringRange 
- The URL of the reserved internal range.
- Role
Pulumi.Google Native. Compute. Alpha. Subnetwork Role 
- The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
- SecondaryIp List<Pulumi.Ranges Google Native. Compute. Alpha. Inputs. Subnetwork Secondary Range> 
- An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- StackType Pulumi.Google Native. Compute. Alpha. Subnetwork Stack Type 
- The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
- Vlans List<int>
- A repeated field indicating the VLAN IDs supported on this subnetwork. During Subnet creation, specifying vlan is valid only if enable_l2 is true. During Subnet Update, specifying vlan is allowed only for l2 enabled subnets. Restricted to only one VLAN.
- Region string
- URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- AggregationInterval SubnetworkAggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
- AllowSubnet boolCidr Routes Overlap 
- Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time.
- Description string
- An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- EnableFlow boolLogs 
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- EnableL2 bool
- Enables Layer2 communication on the subnetwork.
- EnablePrivate boolV6Access 
- Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
- ExternalIpv6Prefix string
- The external IPv6 address range that is owned by this subnetwork.
- FlowSampling float64
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- IpCidr stringRange 
- The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
- Ipv6AccessType SubnetworkIpv6Access Type 
- The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
- LogConfig SubnetworkLog Config Args 
- This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- Metadata
SubnetworkMetadata 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.
- Name string
- The name of the resource, provided by the client when initially creating the resource. 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.
- Network string
- The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
- PrivateIp boolGoogle Access 
- Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- PrivateIpv6Google SubnetworkAccess Private Ipv6Google Access 
- This field is for internal use. This field can be both set at resource creation time and updated using patch.
- Project string
- Purpose
SubnetworkPurpose 
- The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- 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).
- ReservedInternal stringRange 
- The URL of the reserved internal range.
- Role
SubnetworkRole 
- The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
- SecondaryIp []SubnetworkRanges Secondary Range Args 
- An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- StackType SubnetworkStack Type 
- The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
- Vlans []int
- A repeated field indicating the VLAN IDs supported on this subnetwork. During Subnet creation, specifying vlan is valid only if enable_l2 is true. During Subnet Update, specifying vlan is allowed only for l2 enabled subnets. Restricted to only one VLAN.
- region String
- URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- aggregationInterval SubnetworkAggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
- allowSubnet BooleanCidr Routes Overlap 
- Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time.
- description String
- An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- enableFlow BooleanLogs 
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- enableL2 Boolean
- Enables Layer2 communication on the subnetwork.
- enablePrivate BooleanV6Access 
- Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
- externalIpv6Prefix String
- The external IPv6 address range that is owned by this subnetwork.
- flowSampling Double
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- ipCidr StringRange 
- The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
- ipv6AccessType SubnetworkIpv6Access Type 
- The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
- logConfig SubnetworkLog Config 
- This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- metadata
SubnetworkMetadata 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.
- name String
- The name of the resource, provided by the client when initially creating the resource. 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.
- network String
- The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
- privateIp BooleanGoogle Access 
- Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- privateIpv6Google SubnetworkAccess Private Ipv6Google Access 
- This field is for internal use. This field can be both set at resource creation time and updated using patch.
- project String
- purpose
SubnetworkPurpose 
- The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- 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).
- reservedInternal StringRange 
- The URL of the reserved internal range.
- role
SubnetworkRole 
- The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
- secondaryIp List<SubnetworkRanges Secondary Range> 
- An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- stackType SubnetworkStack Type 
- The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
- vlans List<Integer>
- A repeated field indicating the VLAN IDs supported on this subnetwork. During Subnet creation, specifying vlan is valid only if enable_l2 is true. During Subnet Update, specifying vlan is allowed only for l2 enabled subnets. Restricted to only one VLAN.
- region string
- URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- aggregationInterval SubnetworkAggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
- allowSubnet booleanCidr Routes Overlap 
- Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time.
- description string
- An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- enableFlow booleanLogs 
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- enableL2 boolean
- Enables Layer2 communication on the subnetwork.
- enablePrivate booleanV6Access 
- Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
- externalIpv6Prefix string
- The external IPv6 address range that is owned by this subnetwork.
- flowSampling number
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- ipCidr stringRange 
- The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
- ipv6AccessType SubnetworkIpv6Access Type 
- The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
- logConfig SubnetworkLog Config 
- This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- metadata
SubnetworkMetadata 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.
- name string
- The name of the resource, provided by the client when initially creating the resource. 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.
- network string
- The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
- privateIp booleanGoogle Access 
- Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- privateIpv6Google SubnetworkAccess Private Ipv6Google Access 
- This field is for internal use. This field can be both set at resource creation time and updated using patch.
- project string
- purpose
SubnetworkPurpose 
- The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- 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).
- reservedInternal stringRange 
- The URL of the reserved internal range.
- role
SubnetworkRole 
- The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
- secondaryIp SubnetworkRanges Secondary Range[] 
- An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- stackType SubnetworkStack Type 
- The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
- vlans number[]
- A repeated field indicating the VLAN IDs supported on this subnetwork. During Subnet creation, specifying vlan is valid only if enable_l2 is true. During Subnet Update, specifying vlan is allowed only for l2 enabled subnets. Restricted to only one VLAN.
- region str
- URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- aggregation_interval SubnetworkAggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
- allow_subnet_ boolcidr_ routes_ overlap 
- Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time.
- description str
- An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- enable_flow_ boollogs 
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- enable_l2 bool
- Enables Layer2 communication on the subnetwork.
- enable_private_ boolv6_ access 
- Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
- external_ipv6_ strprefix 
- The external IPv6 address range that is owned by this subnetwork.
- flow_sampling float
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- ip_cidr_ strrange 
- The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
- ipv6_access_ Subnetworktype Ipv6Access Type 
- The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
- log_config SubnetworkLog Config Args 
- This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- metadata
SubnetworkMetadata 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.
- name str
- The name of the resource, provided by the client when initially creating the resource. 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.
- network str
- The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
- private_ip_ boolgoogle_ access 
- Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- private_ipv6_ Subnetworkgoogle_ access Private Ipv6Google Access 
- This field is for internal use. This field can be both set at resource creation time and updated using patch.
- project str
- purpose
SubnetworkPurpose 
- The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- 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).
- reserved_internal_ strrange 
- The URL of the reserved internal range.
- role
SubnetworkRole 
- The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
- secondary_ip_ Sequence[Subnetworkranges Secondary Range Args] 
- An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- stack_type SubnetworkStack Type 
- The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
- vlans Sequence[int]
- A repeated field indicating the VLAN IDs supported on this subnetwork. During Subnet creation, specifying vlan is valid only if enable_l2 is true. During Subnet Update, specifying vlan is allowed only for l2 enabled subnets. Restricted to only one VLAN.
- region String
- URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- aggregationInterval "INTERVAL_10_MIN" | "INTERVAL_15_MIN" | "INTERVAL_1_MIN" | "INTERVAL_30_SEC" | "INTERVAL_5_MIN" | "INTERVAL_5_SEC"
- Can only be specified if VPC flow logging for this subnetwork is enabled. Sets the aggregation interval for collecting flow logs. Increasing the interval time reduces the amount of generated flow logs for long-lasting connections. Default is an interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.
- allowSubnet BooleanCidr Routes Overlap 
- Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true allows this subnetwork's primary and secondary ranges to overlap with (and contain) static routes that have already been configured on the corresponding network. For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true. Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature. The default value is false and applies to all existing subnetworks and automatically created subnetworks. This field cannot be set to true at resource creation time.
- description String
- An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- enableFlow BooleanLogs 
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- enableL2 Boolean
- Enables Layer2 communication on the subnetwork.
- enablePrivate BooleanV6Access 
- Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly access Google services via internal IPv6 addresses. This field can be both set at resource creation time and updated using patch.
- externalIpv6Prefix String
- The external IPv6 address range that is owned by this subnetwork.
- flowSampling Number
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- ipCidr StringRange 
- The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
- ipv6AccessType "EXTERNAL" | "INTERNAL"
- The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack.
- logConfig Property Map
- This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- metadata "EXCLUDE_ALL_METADATA" | "INCLUDE_ALL_METADATA"
- Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.
- name String
- The name of the resource, provided by the client when initially creating the resource. 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.
- network String
- The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
- privateIp BooleanGoogle Access 
- Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
- privateIpv6Google "DISABLE_GOOGLE_ACCESS" | "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" | "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE"Access 
- This field is for internal use. This field can be both set at resource creation time and updated using patch.
- project String
- purpose "AGGREGATE" | "CLOUD_EXTENSION" | "GLOBAL_MANAGED_PROXY" | "INTERNAL_HTTPS_LOAD_BALANCER" | "PRIVATE" | "PRIVATE_NAT" | "PRIVATE_RFC_1918" | "PRIVATE_SERVICE_CONNECT" | "REGIONAL_MANAGED_PROXY"
- The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- 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).
- reservedInternal StringRange 
- The URL of the reserved internal range.
- role "ACTIVE" | "BACKUP"
- The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
- secondaryIp List<Property Map>Ranges 
- An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
- stackType "IPV4_IPV6" | "IPV4_ONLY" | "IPV6_ONLY"
- The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch.
- vlans List<Number>
- A repeated field indicating the VLAN IDs supported on this subnetwork. During Subnet creation, specifying vlan is valid only if enable_l2 is true. During Subnet Update, specifying vlan is allowed only for l2 enabled subnets. Restricted to only one VLAN.
Outputs
All input properties are implicitly available as output properties. Additionally, the Subnetwork resource produces the following output properties:
- CreationTimestamp string
- Creation timestamp in RFC3339 text format.
- Fingerprint string
- Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- GatewayAddress string
- The gateway address for default routes to reach destination addresses outside this subnetwork.
- Id string
- The provider-assigned unique ID for this managed resource.
- InternalIpv6Prefix string
- The internal IPv6 address range that is assigned to this subnetwork.
- Ipv6CidrRange string
- This field is for internal use.
- Kind string
- Type of the resource. Always compute#subnetwork for Subnetwork resources.
- SelfLink string
- Server-defined URL for the resource.
- SelfLink stringWith Id 
- Server-defined URL for this resource with the resource id.
- State string
- The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
- CreationTimestamp string
- Creation timestamp in RFC3339 text format.
- Fingerprint string
- Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- GatewayAddress string
- The gateway address for default routes to reach destination addresses outside this subnetwork.
- Id string
- The provider-assigned unique ID for this managed resource.
- InternalIpv6Prefix string
- The internal IPv6 address range that is assigned to this subnetwork.
- Ipv6CidrRange string
- This field is for internal use.
- Kind string
- Type of the resource. Always compute#subnetwork for Subnetwork resources.
- SelfLink string
- Server-defined URL for the resource.
- SelfLink stringWith Id 
- Server-defined URL for this resource with the resource id.
- State string
- The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
- creationTimestamp String
- Creation timestamp in RFC3339 text format.
- fingerprint String
- Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- gatewayAddress String
- The gateway address for default routes to reach destination addresses outside this subnetwork.
- id String
- The provider-assigned unique ID for this managed resource.
- internalIpv6Prefix String
- The internal IPv6 address range that is assigned to this subnetwork.
- ipv6CidrRange String
- This field is for internal use.
- kind String
- Type of the resource. Always compute#subnetwork for Subnetwork resources.
- selfLink String
- Server-defined URL for the resource.
- selfLink StringWith Id 
- Server-defined URL for this resource with the resource id.
- state String
- The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
- creationTimestamp string
- Creation timestamp in RFC3339 text format.
- fingerprint string
- Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- gatewayAddress string
- The gateway address for default routes to reach destination addresses outside this subnetwork.
- id string
- The provider-assigned unique ID for this managed resource.
- internalIpv6Prefix string
- The internal IPv6 address range that is assigned to this subnetwork.
- ipv6CidrRange string
- This field is for internal use.
- kind string
- Type of the resource. Always compute#subnetwork for Subnetwork resources.
- selfLink string
- Server-defined URL for the resource.
- selfLink stringWith Id 
- Server-defined URL for this resource with the resource id.
- state string
- The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
- creation_timestamp str
- Creation timestamp in RFC3339 text format.
- fingerprint str
- Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- gateway_address str
- The gateway address for default routes to reach destination addresses outside this subnetwork.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_ipv6_ strprefix 
- The internal IPv6 address range that is assigned to this subnetwork.
- ipv6_cidr_ strrange 
- This field is for internal use.
- kind str
- Type of the resource. Always compute#subnetwork for Subnetwork resources.
- self_link str
- Server-defined URL for the resource.
- self_link_ strwith_ id 
- Server-defined URL for this resource with the resource id.
- state str
- The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
- creationTimestamp String
- Creation timestamp in RFC3339 text format.
- fingerprint String
- Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
- gatewayAddress String
- The gateway address for default routes to reach destination addresses outside this subnetwork.
- id String
- The provider-assigned unique ID for this managed resource.
- internalIpv6Prefix String
- The internal IPv6 address range that is assigned to this subnetwork.
- ipv6CidrRange String
- This field is for internal use.
- kind String
- Type of the resource. Always compute#subnetwork for Subnetwork resources.
- selfLink String
- Server-defined URL for the resource.
- selfLink StringWith Id 
- Server-defined URL for this resource with the resource id.
- state String
- The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY
Supporting Types
SubnetworkAggregationInterval, SubnetworkAggregationIntervalArgs      
- Interval10Min
- INTERVAL_10_MIN
- Interval15Min
- INTERVAL_15_MIN
- Interval1Min
- INTERVAL_1_MIN
- Interval30Sec
- INTERVAL_30_SEC
- Interval5Min
- INTERVAL_5_MIN
- Interval5Sec
- INTERVAL_5_SEC
- SubnetworkAggregation Interval Interval10Min 
- INTERVAL_10_MIN
- SubnetworkAggregation Interval Interval15Min 
- INTERVAL_15_MIN
- SubnetworkAggregation Interval Interval1Min 
- INTERVAL_1_MIN
- SubnetworkAggregation Interval Interval30Sec 
- INTERVAL_30_SEC
- SubnetworkAggregation Interval Interval5Min 
- INTERVAL_5_MIN
- SubnetworkAggregation Interval Interval5Sec 
- INTERVAL_5_SEC
- Interval10Min
- INTERVAL_10_MIN
- Interval15Min
- INTERVAL_15_MIN
- Interval1Min
- INTERVAL_1_MIN
- Interval30Sec
- INTERVAL_30_SEC
- Interval5Min
- INTERVAL_5_MIN
- Interval5Sec
- INTERVAL_5_SEC
- Interval10Min
- INTERVAL_10_MIN
- Interval15Min
- INTERVAL_15_MIN
- Interval1Min
- INTERVAL_1_MIN
- Interval30Sec
- INTERVAL_30_SEC
- Interval5Min
- INTERVAL_5_MIN
- Interval5Sec
- INTERVAL_5_SEC
- INTERVAL10_MIN
- INTERVAL_10_MIN
- INTERVAL15_MIN
- INTERVAL_15_MIN
- INTERVAL1_MIN
- INTERVAL_1_MIN
- INTERVAL30_SEC
- INTERVAL_30_SEC
- INTERVAL5_MIN
- INTERVAL_5_MIN
- INTERVAL5_SEC
- INTERVAL_5_SEC
- "INTERVAL_10_MIN"
- INTERVAL_10_MIN
- "INTERVAL_15_MIN"
- INTERVAL_15_MIN
- "INTERVAL_1_MIN"
- INTERVAL_1_MIN
- "INTERVAL_30_SEC"
- INTERVAL_30_SEC
- "INTERVAL_5_MIN"
- INTERVAL_5_MIN
- "INTERVAL_5_SEC"
- INTERVAL_5_SEC
SubnetworkIpv6AccessType, SubnetworkIpv6AccessTypeArgs      
- External
- EXTERNALVMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
- Internal
- INTERNALVMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
- SubnetworkIpv6Access Type External 
- EXTERNALVMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
- SubnetworkIpv6Access Type Internal 
- INTERNALVMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
- External
- EXTERNALVMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
- Internal
- INTERNALVMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
- External
- EXTERNALVMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
- Internal
- INTERNALVMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
- EXTERNAL
- EXTERNALVMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
- INTERNAL
- INTERNALVMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
- "EXTERNAL"
- EXTERNALVMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network.
- "INTERNAL"
- INTERNALVMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.
SubnetworkLogConfig, SubnetworkLogConfigArgs      
- AggregationInterval Pulumi.Google Native. Compute. Alpha. Subnetwork Log Config Aggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- Enable bool
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- FilterExpr string
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- FlowSampling double
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- Metadata
Pulumi.Google Native. Compute. Alpha. Subnetwork Log Config Metadata 
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- MetadataFields List<string>
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- AggregationInterval SubnetworkLog Config Aggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- Enable bool
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- FilterExpr string
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- FlowSampling float64
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- Metadata
SubnetworkLog Config Metadata 
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- MetadataFields []string
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregationInterval SubnetworkLog Config Aggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable Boolean
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filterExpr String
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flowSampling Double
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata
SubnetworkLog Config Metadata 
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadataFields List<String>
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregationInterval SubnetworkLog Config Aggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable boolean
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filterExpr string
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flowSampling number
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata
SubnetworkLog Config Metadata 
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadataFields string[]
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregation_interval SubnetworkLog Config Aggregation Interval 
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable bool
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filter_expr str
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flow_sampling float
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata
SubnetworkLog Config Metadata 
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadata_fields Sequence[str]
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregationInterval "INTERVAL_10_MIN" | "INTERVAL_15_MIN" | "INTERVAL_1_MIN" | "INTERVAL_30_SEC" | "INTERVAL_5_MIN" | "INTERVAL_5_SEC"
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable Boolean
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filterExpr String
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flowSampling Number
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata "CUSTOM_METADATA" | "EXCLUDE_ALL_METADATA" | "INCLUDE_ALL_METADATA"
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadataFields List<String>
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
SubnetworkLogConfigAggregationInterval, SubnetworkLogConfigAggregationIntervalArgs          
- Interval10Min
- INTERVAL_10_MIN
- Interval15Min
- INTERVAL_15_MIN
- Interval1Min
- INTERVAL_1_MIN
- Interval30Sec
- INTERVAL_30_SEC
- Interval5Min
- INTERVAL_5_MIN
- Interval5Sec
- INTERVAL_5_SEC
- SubnetworkLog Config Aggregation Interval Interval10Min 
- INTERVAL_10_MIN
- SubnetworkLog Config Aggregation Interval Interval15Min 
- INTERVAL_15_MIN
- SubnetworkLog Config Aggregation Interval Interval1Min 
- INTERVAL_1_MIN
- SubnetworkLog Config Aggregation Interval Interval30Sec 
- INTERVAL_30_SEC
- SubnetworkLog Config Aggregation Interval Interval5Min 
- INTERVAL_5_MIN
- SubnetworkLog Config Aggregation Interval Interval5Sec 
- INTERVAL_5_SEC
- Interval10Min
- INTERVAL_10_MIN
- Interval15Min
- INTERVAL_15_MIN
- Interval1Min
- INTERVAL_1_MIN
- Interval30Sec
- INTERVAL_30_SEC
- Interval5Min
- INTERVAL_5_MIN
- Interval5Sec
- INTERVAL_5_SEC
- Interval10Min
- INTERVAL_10_MIN
- Interval15Min
- INTERVAL_15_MIN
- Interval1Min
- INTERVAL_1_MIN
- Interval30Sec
- INTERVAL_30_SEC
- Interval5Min
- INTERVAL_5_MIN
- Interval5Sec
- INTERVAL_5_SEC
- INTERVAL10_MIN
- INTERVAL_10_MIN
- INTERVAL15_MIN
- INTERVAL_15_MIN
- INTERVAL1_MIN
- INTERVAL_1_MIN
- INTERVAL30_SEC
- INTERVAL_30_SEC
- INTERVAL5_MIN
- INTERVAL_5_MIN
- INTERVAL5_SEC
- INTERVAL_5_SEC
- "INTERVAL_10_MIN"
- INTERVAL_10_MIN
- "INTERVAL_15_MIN"
- INTERVAL_15_MIN
- "INTERVAL_1_MIN"
- INTERVAL_1_MIN
- "INTERVAL_30_SEC"
- INTERVAL_30_SEC
- "INTERVAL_5_MIN"
- INTERVAL_5_MIN
- "INTERVAL_5_SEC"
- INTERVAL_5_SEC
SubnetworkLogConfigMetadata, SubnetworkLogConfigMetadataArgs        
- CustomMetadata 
- CUSTOM_METADATA
- ExcludeAll Metadata 
- EXCLUDE_ALL_METADATA
- IncludeAll Metadata 
- INCLUDE_ALL_METADATA
- SubnetworkLog Config Metadata Custom Metadata 
- CUSTOM_METADATA
- SubnetworkLog Config Metadata Exclude All Metadata 
- EXCLUDE_ALL_METADATA
- SubnetworkLog Config Metadata Include All Metadata 
- INCLUDE_ALL_METADATA
- CustomMetadata 
- CUSTOM_METADATA
- ExcludeAll Metadata 
- EXCLUDE_ALL_METADATA
- IncludeAll Metadata 
- INCLUDE_ALL_METADATA
- CustomMetadata 
- CUSTOM_METADATA
- ExcludeAll Metadata 
- EXCLUDE_ALL_METADATA
- IncludeAll Metadata 
- INCLUDE_ALL_METADATA
- CUSTOM_METADATA
- CUSTOM_METADATA
- EXCLUDE_ALL_METADATA
- EXCLUDE_ALL_METADATA
- INCLUDE_ALL_METADATA
- INCLUDE_ALL_METADATA
- "CUSTOM_METADATA"
- CUSTOM_METADATA
- "EXCLUDE_ALL_METADATA"
- EXCLUDE_ALL_METADATA
- "INCLUDE_ALL_METADATA"
- INCLUDE_ALL_METADATA
SubnetworkLogConfigResponse, SubnetworkLogConfigResponseArgs        
- AggregationInterval string
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- Enable bool
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- FilterExpr string
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- FlowSampling double
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- Metadata string
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- MetadataFields List<string>
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- AggregationInterval string
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- Enable bool
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- FilterExpr string
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- FlowSampling float64
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- Metadata string
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- MetadataFields []string
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregationInterval String
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable Boolean
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filterExpr String
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flowSampling Double
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata String
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadataFields List<String>
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregationInterval string
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable boolean
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filterExpr string
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flowSampling number
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata string
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadataFields string[]
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregation_interval str
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable bool
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filter_expr str
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flow_sampling float
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata str
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadata_fields Sequence[str]
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
- aggregationInterval String
- Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
- enable Boolean
- Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
- filterExpr String
- Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
- flowSampling Number
- Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
- metadata String
- Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
- metadataFields List<String>
- Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
SubnetworkMetadata, SubnetworkMetadataArgs    
- ExcludeAll Metadata 
- EXCLUDE_ALL_METADATA
- IncludeAll Metadata 
- INCLUDE_ALL_METADATA
- SubnetworkMetadata Exclude All Metadata 
- EXCLUDE_ALL_METADATA
- SubnetworkMetadata Include All Metadata 
- INCLUDE_ALL_METADATA
- ExcludeAll Metadata 
- EXCLUDE_ALL_METADATA
- IncludeAll Metadata 
- INCLUDE_ALL_METADATA
- ExcludeAll Metadata 
- EXCLUDE_ALL_METADATA
- IncludeAll Metadata 
- INCLUDE_ALL_METADATA
- EXCLUDE_ALL_METADATA
- EXCLUDE_ALL_METADATA
- INCLUDE_ALL_METADATA
- INCLUDE_ALL_METADATA
- "EXCLUDE_ALL_METADATA"
- EXCLUDE_ALL_METADATA
- "INCLUDE_ALL_METADATA"
- INCLUDE_ALL_METADATA
SubnetworkPrivateIpv6GoogleAccess, SubnetworkPrivateIpv6GoogleAccessArgs        
- DisableGoogle Access 
- DISABLE_GOOGLE_ACCESSDisable private IPv6 access to/from Google services.
- EnableBidirectional Access To Google 
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLEBidirectional private IPv6 access to/from Google services.
- EnableOutbound Vm Access To Google 
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLEOutbound private IPv6 access from VMs in this subnet to Google services.
- SubnetworkPrivate Ipv6Google Access Disable Google Access 
- DISABLE_GOOGLE_ACCESSDisable private IPv6 access to/from Google services.
- SubnetworkPrivate Ipv6Google Access Enable Bidirectional Access To Google 
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLEBidirectional private IPv6 access to/from Google services.
- SubnetworkPrivate Ipv6Google Access Enable Outbound Vm Access To Google 
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLEOutbound private IPv6 access from VMs in this subnet to Google services.
- DisableGoogle Access 
- DISABLE_GOOGLE_ACCESSDisable private IPv6 access to/from Google services.
- EnableBidirectional Access To Google 
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLEBidirectional private IPv6 access to/from Google services.
- EnableOutbound Vm Access To Google 
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLEOutbound private IPv6 access from VMs in this subnet to Google services.
- DisableGoogle Access 
- DISABLE_GOOGLE_ACCESSDisable private IPv6 access to/from Google services.
- EnableBidirectional Access To Google 
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLEBidirectional private IPv6 access to/from Google services.
- EnableOutbound Vm Access To Google 
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLEOutbound private IPv6 access from VMs in this subnet to Google services.
- DISABLE_GOOGLE_ACCESS
- DISABLE_GOOGLE_ACCESSDisable private IPv6 access to/from Google services.
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLEBidirectional private IPv6 access to/from Google services.
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLEOutbound private IPv6 access from VMs in this subnet to Google services.
- "DISABLE_GOOGLE_ACCESS"
- DISABLE_GOOGLE_ACCESSDisable private IPv6 access to/from Google services.
- "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE"
- ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLEBidirectional private IPv6 access to/from Google services.
- "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE"
- ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLEOutbound private IPv6 access from VMs in this subnet to Google services.
SubnetworkPurpose, SubnetworkPurposeArgs    
- Aggregate
- AGGREGATESubnetwork used to aggregate multiple private subnetworks.
- CloudExtension 
- CLOUD_EXTENSIONSubnetworks created for Cloud Extension Machines.
- GlobalManaged Proxy 
- GLOBAL_MANAGED_PROXYSubnet reserved for Global Envoy-based Load Balancing.
- InternalHttps Load Balancer 
- INTERNAL_HTTPS_LOAD_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.
- Private
- PRIVATERegular user created or automatically created subnet.
- PrivateNat 
- PRIVATE_NATSubnetwork used as source range for Private NAT Gateways.
- PrivateRfc1918 
- PRIVATE_RFC_1918Regular user created or automatically created subnet.
- PrivateService Connect 
- PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.
- RegionalManaged Proxy 
- REGIONAL_MANAGED_PROXYSubnetwork used for Regional Envoy-based Load Balancing.
- SubnetworkPurpose Aggregate 
- AGGREGATESubnetwork used to aggregate multiple private subnetworks.
- SubnetworkPurpose Cloud Extension 
- CLOUD_EXTENSIONSubnetworks created for Cloud Extension Machines.
- SubnetworkPurpose Global Managed Proxy 
- GLOBAL_MANAGED_PROXYSubnet reserved for Global Envoy-based Load Balancing.
- SubnetworkPurpose Internal Https Load Balancer 
- INTERNAL_HTTPS_LOAD_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.
- SubnetworkPurpose Private 
- PRIVATERegular user created or automatically created subnet.
- SubnetworkPurpose Private Nat 
- PRIVATE_NATSubnetwork used as source range for Private NAT Gateways.
- SubnetworkPurpose Private Rfc1918 
- PRIVATE_RFC_1918Regular user created or automatically created subnet.
- SubnetworkPurpose Private Service Connect 
- PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.
- SubnetworkPurpose Regional Managed Proxy 
- REGIONAL_MANAGED_PROXYSubnetwork used for Regional Envoy-based Load Balancing.
- Aggregate
- AGGREGATESubnetwork used to aggregate multiple private subnetworks.
- CloudExtension 
- CLOUD_EXTENSIONSubnetworks created for Cloud Extension Machines.
- GlobalManaged Proxy 
- GLOBAL_MANAGED_PROXYSubnet reserved for Global Envoy-based Load Balancing.
- InternalHttps Load Balancer 
- INTERNAL_HTTPS_LOAD_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.
- Private
- PRIVATERegular user created or automatically created subnet.
- PrivateNat 
- PRIVATE_NATSubnetwork used as source range for Private NAT Gateways.
- PrivateRfc1918 
- PRIVATE_RFC_1918Regular user created or automatically created subnet.
- PrivateService Connect 
- PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.
- RegionalManaged Proxy 
- REGIONAL_MANAGED_PROXYSubnetwork used for Regional Envoy-based Load Balancing.
- Aggregate
- AGGREGATESubnetwork used to aggregate multiple private subnetworks.
- CloudExtension 
- CLOUD_EXTENSIONSubnetworks created for Cloud Extension Machines.
- GlobalManaged Proxy 
- GLOBAL_MANAGED_PROXYSubnet reserved for Global Envoy-based Load Balancing.
- InternalHttps Load Balancer 
- INTERNAL_HTTPS_LOAD_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.
- Private
- PRIVATERegular user created or automatically created subnet.
- PrivateNat 
- PRIVATE_NATSubnetwork used as source range for Private NAT Gateways.
- PrivateRfc1918 
- PRIVATE_RFC_1918Regular user created or automatically created subnet.
- PrivateService Connect 
- PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.
- RegionalManaged Proxy 
- REGIONAL_MANAGED_PROXYSubnetwork used for Regional Envoy-based Load Balancing.
- AGGREGATE
- AGGREGATESubnetwork used to aggregate multiple private subnetworks.
- CLOUD_EXTENSION
- CLOUD_EXTENSIONSubnetworks created for Cloud Extension Machines.
- GLOBAL_MANAGED_PROXY
- GLOBAL_MANAGED_PROXYSubnet reserved for Global Envoy-based Load Balancing.
- INTERNAL_HTTPS_LOAD_BALANCER
- INTERNAL_HTTPS_LOAD_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.
- PRIVATE
- PRIVATERegular user created or automatically created subnet.
- PRIVATE_NAT
- PRIVATE_NATSubnetwork used as source range for Private NAT Gateways.
- PRIVATE_RFC1918
- PRIVATE_RFC_1918Regular user created or automatically created subnet.
- PRIVATE_SERVICE_CONNECT
- PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.
- REGIONAL_MANAGED_PROXY
- REGIONAL_MANAGED_PROXYSubnetwork used for Regional Envoy-based Load Balancing.
- "AGGREGATE"
- AGGREGATESubnetwork used to aggregate multiple private subnetworks.
- "CLOUD_EXTENSION"
- CLOUD_EXTENSIONSubnetworks created for Cloud Extension Machines.
- "GLOBAL_MANAGED_PROXY"
- GLOBAL_MANAGED_PROXYSubnet reserved for Global Envoy-based Load Balancing.
- "INTERNAL_HTTPS_LOAD_BALANCER"
- INTERNAL_HTTPS_LOAD_BALANCERSubnet reserved for Internal HTTP(S) Load Balancing.
- "PRIVATE"
- PRIVATERegular user created or automatically created subnet.
- "PRIVATE_NAT"
- PRIVATE_NATSubnetwork used as source range for Private NAT Gateways.
- "PRIVATE_RFC_1918"
- PRIVATE_RFC_1918Regular user created or automatically created subnet.
- "PRIVATE_SERVICE_CONNECT"
- PRIVATE_SERVICE_CONNECTSubnetworks created for Private Service Connect in the producer network.
- "REGIONAL_MANAGED_PROXY"
- REGIONAL_MANAGED_PROXYSubnetwork used for Regional Envoy-based Load Balancing.
SubnetworkRole, SubnetworkRoleArgs    
- Active
- ACTIVEThe ACTIVE subnet that is currently used.
- Backup
- BACKUPThe BACKUP subnet that could be promoted to ACTIVE.
- SubnetworkRole Active 
- ACTIVEThe ACTIVE subnet that is currently used.
- SubnetworkRole Backup 
- BACKUPThe BACKUP subnet that could be promoted to ACTIVE.
- Active
- ACTIVEThe ACTIVE subnet that is currently used.
- Backup
- BACKUPThe BACKUP subnet that could be promoted to ACTIVE.
- Active
- ACTIVEThe ACTIVE subnet that is currently used.
- Backup
- BACKUPThe BACKUP subnet that could be promoted to ACTIVE.
- ACTIVE
- ACTIVEThe ACTIVE subnet that is currently used.
- BACKUP
- BACKUPThe BACKUP subnet that could be promoted to ACTIVE.
- "ACTIVE"
- ACTIVEThe ACTIVE subnet that is currently used.
- "BACKUP"
- BACKUPThe BACKUP subnet that could be promoted to ACTIVE.
SubnetworkSecondaryRange, SubnetworkSecondaryRangeArgs      
- IpCidr stringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- RangeName string
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- ReservedInternal stringRange 
- The URL of the reserved internal range.
- IpCidr stringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- RangeName string
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- ReservedInternal stringRange 
- The URL of the reserved internal range.
- ipCidr StringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- rangeName String
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reservedInternal StringRange 
- The URL of the reserved internal range.
- ipCidr stringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- rangeName string
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reservedInternal stringRange 
- The URL of the reserved internal range.
- ip_cidr_ strrange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- range_name str
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reserved_internal_ strrange 
- The URL of the reserved internal range.
- ipCidr StringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- rangeName String
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reservedInternal StringRange 
- The URL of the reserved internal range.
SubnetworkSecondaryRangeResponse, SubnetworkSecondaryRangeResponseArgs        
- IpCidr stringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- RangeName string
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- ReservedInternal stringRange 
- The URL of the reserved internal range.
- IpCidr stringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- RangeName string
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- ReservedInternal stringRange 
- The URL of the reserved internal range.
- ipCidr StringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- rangeName String
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reservedInternal StringRange 
- The URL of the reserved internal range.
- ipCidr stringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- rangeName string
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reservedInternal stringRange 
- The URL of the reserved internal range.
- ip_cidr_ strrange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- range_name str
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reserved_internal_ strrange 
- The URL of the reserved internal range.
- ipCidr StringRange 
- The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
- rangeName String
- The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
- reservedInternal StringRange 
- The URL of the reserved internal range.
SubnetworkStackType, SubnetworkStackTypeArgs      
- Ipv4Ipv6
- IPV4_IPV6New VMs in this subnet can have both IPv4 and IPv6 addresses.
- Ipv4Only
- IPV4_ONLYNew VMs in this subnet will only be assigned IPv4 addresses.
- Ipv6Only
- IPV6_ONLYNew VMs in this subnet will only be assigned IPv6 addresses.
- SubnetworkStack Type Ipv4Ipv6 
- IPV4_IPV6New VMs in this subnet can have both IPv4 and IPv6 addresses.
- SubnetworkStack Type Ipv4Only 
- IPV4_ONLYNew VMs in this subnet will only be assigned IPv4 addresses.
- SubnetworkStack Type Ipv6Only 
- IPV6_ONLYNew VMs in this subnet will only be assigned IPv6 addresses.
- Ipv4Ipv6
- IPV4_IPV6New VMs in this subnet can have both IPv4 and IPv6 addresses.
- Ipv4Only
- IPV4_ONLYNew VMs in this subnet will only be assigned IPv4 addresses.
- Ipv6Only
- IPV6_ONLYNew VMs in this subnet will only be assigned IPv6 addresses.
- Ipv4Ipv6
- IPV4_IPV6New VMs in this subnet can have both IPv4 and IPv6 addresses.
- Ipv4Only
- IPV4_ONLYNew VMs in this subnet will only be assigned IPv4 addresses.
- Ipv6Only
- IPV6_ONLYNew VMs in this subnet will only be assigned IPv6 addresses.
- IPV4_IPV6
- IPV4_IPV6New VMs in this subnet can have both IPv4 and IPv6 addresses.
- IPV4_ONLY
- IPV4_ONLYNew VMs in this subnet will only be assigned IPv4 addresses.
- IPV6_ONLY
- IPV6_ONLYNew VMs in this subnet will only be assigned IPv6 addresses.
- "IPV4_IPV6"
- IPV4_IPV6New VMs in this subnet can have both IPv4 and IPv6 addresses.
- "IPV4_ONLY"
- IPV4_ONLYNew VMs in this subnet will only be assigned IPv4 addresses.
- "IPV6_ONLY"
- IPV6_ONLYNew VMs in this subnet will only be assigned IPv6 addresses.
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.