1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/v1
  6. Network

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

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

google-native.compute/v1.Network

Explore with Pulumi AI

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

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

Creates a network in the specified project using the data included in the request.

Create Network Resource

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

Constructor syntax

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

@overload
def Network(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            auto_create_subnetworks: Optional[bool] = None,
            description: Optional[str] = None,
            enable_ula_internal_ipv6: Optional[bool] = None,
            internal_ipv6_range: Optional[str] = None,
            ipv4_range: Optional[str] = None,
            mtu: Optional[int] = None,
            name: Optional[str] = None,
            network_firewall_policy_enforcement_order: Optional[NetworkNetworkFirewallPolicyEnforcementOrder] = None,
            project: Optional[str] = None,
            request_id: Optional[str] = None,
            routing_config: Optional[NetworkRoutingConfigArgs] = None)
func NewNetwork(ctx *Context, name string, args *NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs? args = null, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: google-native:compute/v1:Network
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args NetworkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args NetworkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NetworkArgs
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 examplenetworkResourceResourceFromComputev1 = new GoogleNative.Compute.V1.Network("examplenetworkResourceResourceFromComputev1", new()
{
    AutoCreateSubnetworks = false,
    Description = "string",
    EnableUlaInternalIpv6 = false,
    InternalIpv6Range = "string",
    Mtu = 0,
    Name = "string",
    NetworkFirewallPolicyEnforcementOrder = GoogleNative.Compute.V1.NetworkNetworkFirewallPolicyEnforcementOrder.AfterClassicFirewall,
    Project = "string",
    RequestId = "string",
    RoutingConfig = new GoogleNative.Compute.V1.Inputs.NetworkRoutingConfigArgs
    {
        RoutingMode = GoogleNative.Compute.V1.NetworkRoutingConfigRoutingMode.Global,
    },
});
Copy
example, err := computev1.NewNetwork(ctx, "examplenetworkResourceResourceFromComputev1", &computev1.NetworkArgs{
	AutoCreateSubnetworks:                 pulumi.Bool(false),
	Description:                           pulumi.String("string"),
	EnableUlaInternalIpv6:                 pulumi.Bool(false),
	InternalIpv6Range:                     pulumi.String("string"),
	Mtu:                                   pulumi.Int(0),
	Name:                                  pulumi.String("string"),
	NetworkFirewallPolicyEnforcementOrder: computev1.NetworkNetworkFirewallPolicyEnforcementOrderAfterClassicFirewall,
	Project:                               pulumi.String("string"),
	RequestId:                             pulumi.String("string"),
	RoutingConfig: &compute.NetworkRoutingConfigArgs{
		RoutingMode: computev1.NetworkRoutingConfigRoutingModeGlobal,
	},
})
Copy
var examplenetworkResourceResourceFromComputev1 = new Network("examplenetworkResourceResourceFromComputev1", NetworkArgs.builder()
    .autoCreateSubnetworks(false)
    .description("string")
    .enableUlaInternalIpv6(false)
    .internalIpv6Range("string")
    .mtu(0)
    .name("string")
    .networkFirewallPolicyEnforcementOrder("AFTER_CLASSIC_FIREWALL")
    .project("string")
    .requestId("string")
    .routingConfig(NetworkRoutingConfigArgs.builder()
        .routingMode("GLOBAL")
        .build())
    .build());
Copy
examplenetwork_resource_resource_from_computev1 = google_native.compute.v1.Network("examplenetworkResourceResourceFromComputev1",
    auto_create_subnetworks=False,
    description="string",
    enable_ula_internal_ipv6=False,
    internal_ipv6_range="string",
    mtu=0,
    name="string",
    network_firewall_policy_enforcement_order=google_native.compute.v1.NetworkNetworkFirewallPolicyEnforcementOrder.AFTER_CLASSIC_FIREWALL,
    project="string",
    request_id="string",
    routing_config={
        "routing_mode": google_native.compute.v1.NetworkRoutingConfigRoutingMode.GLOBAL_,
    })
Copy
const examplenetworkResourceResourceFromComputev1 = new google_native.compute.v1.Network("examplenetworkResourceResourceFromComputev1", {
    autoCreateSubnetworks: false,
    description: "string",
    enableUlaInternalIpv6: false,
    internalIpv6Range: "string",
    mtu: 0,
    name: "string",
    networkFirewallPolicyEnforcementOrder: google_native.compute.v1.NetworkNetworkFirewallPolicyEnforcementOrder.AfterClassicFirewall,
    project: "string",
    requestId: "string",
    routingConfig: {
        routingMode: google_native.compute.v1.NetworkRoutingConfigRoutingMode.Global,
    },
});
Copy
type: google-native:compute/v1:Network
properties:
    autoCreateSubnetworks: false
    description: string
    enableUlaInternalIpv6: false
    internalIpv6Range: string
    mtu: 0
    name: string
    networkFirewallPolicyEnforcementOrder: AFTER_CLASSIC_FIREWALL
    project: string
    requestId: string
    routingConfig:
        routingMode: GLOBAL
Copy

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

AutoCreateSubnetworks bool
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
Description string
An optional description of this resource. Provide this field when you create the resource.
EnableUlaInternalIpv6 bool
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
InternalIpv6Range string
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
Ipv4Range string
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Deprecated: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Mtu int
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
Name string
Name of the resource. Provided by the client when the resource is created. 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
NetworkFirewallPolicyEnforcementOrder Pulumi.GoogleNative.Compute.V1.NetworkNetworkFirewallPolicyEnforcementOrder
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
Project Changes to this property will trigger replacement. string
RequestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
RoutingConfig Pulumi.GoogleNative.Compute.V1.Inputs.NetworkRoutingConfig
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
AutoCreateSubnetworks bool
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
Description string
An optional description of this resource. Provide this field when you create the resource.
EnableUlaInternalIpv6 bool
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
InternalIpv6Range string
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
Ipv4Range string
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Deprecated: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Mtu int
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
Name string
Name of the resource. Provided by the client when the resource is created. 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
NetworkFirewallPolicyEnforcementOrder NetworkNetworkFirewallPolicyEnforcementOrder
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
Project Changes to this property will trigger replacement. string
RequestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
RoutingConfig NetworkRoutingConfigArgs
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
autoCreateSubnetworks Boolean
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
description String
An optional description of this resource. Provide this field when you create the resource.
enableUlaInternalIpv6 Boolean
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
internalIpv6Range String
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
ipv4Range String
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Deprecated: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

mtu Integer
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
name String
Name of the resource. Provided by the client when the resource is created. 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
networkFirewallPolicyEnforcementOrder NetworkNetworkFirewallPolicyEnforcementOrder
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
project Changes to this property will trigger replacement. String
requestId String
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
routingConfig NetworkRoutingConfig
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
autoCreateSubnetworks boolean
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
description string
An optional description of this resource. Provide this field when you create the resource.
enableUlaInternalIpv6 boolean
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
internalIpv6Range string
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
ipv4Range string
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Deprecated: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

mtu number
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
name string
Name of the resource. Provided by the client when the resource is created. 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
networkFirewallPolicyEnforcementOrder NetworkNetworkFirewallPolicyEnforcementOrder
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
project Changes to this property will trigger replacement. string
requestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
routingConfig NetworkRoutingConfig
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
auto_create_subnetworks bool
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
description str
An optional description of this resource. Provide this field when you create the resource.
enable_ula_internal_ipv6 bool
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
internal_ipv6_range str
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
ipv4_range str
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Deprecated: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

mtu int
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
name str
Name of the resource. Provided by the client when the resource is created. 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
network_firewall_policy_enforcement_order NetworkNetworkFirewallPolicyEnforcementOrder
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
project Changes to this property will trigger replacement. str
request_id str
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
routing_config NetworkRoutingConfigArgs
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
autoCreateSubnetworks Boolean
Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
description String
An optional description of this resource. Provide this field when you create the resource.
enableUlaInternalIpv6 Boolean
Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
internalIpv6Range String
When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
ipv4Range String
Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

Deprecated: Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

mtu Number
Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
name String
Name of the resource. Provided by the client when the resource is created. 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
networkFirewallPolicyEnforcementOrder "AFTER_CLASSIC_FIREWALL" | "BEFORE_CLASSIC_FIREWALL"
The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
project Changes to this property will trigger replacement. String
requestId String
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
routingConfig Property Map
The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.

Outputs

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

CreationTimestamp string
Creation timestamp in RFC3339 text format.
FirewallPolicy string
URL of the firewall policy the network is associated with.
GatewayIPv4 string
The gateway address for default routing out of the network, selected by Google Cloud.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
Type of the resource. Always compute#network for networks.
Peerings List<Pulumi.GoogleNative.Compute.V1.Outputs.NetworkPeeringResponse>
A list of network peerings for the resource.
SelfLink string
Server-defined URL for the resource.
SelfLinkWithId string
Server-defined URL for this resource with the resource id.
Subnetworks List<string>
Server-defined fully-qualified URLs for all subnetworks in this VPC network.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
FirewallPolicy string
URL of the firewall policy the network is associated with.
GatewayIPv4 string
The gateway address for default routing out of the network, selected by Google Cloud.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
Type of the resource. Always compute#network for networks.
Peerings []NetworkPeeringResponse
A list of network peerings for the resource.
SelfLink string
Server-defined URL for the resource.
SelfLinkWithId string
Server-defined URL for this resource with the resource id.
Subnetworks []string
Server-defined fully-qualified URLs for all subnetworks in this VPC network.
creationTimestamp String
Creation timestamp in RFC3339 text format.
firewallPolicy String
URL of the firewall policy the network is associated with.
gatewayIPv4 String
The gateway address for default routing out of the network, selected by Google Cloud.
id String
The provider-assigned unique ID for this managed resource.
kind String
Type of the resource. Always compute#network for networks.
peerings List<NetworkPeeringResponse>
A list of network peerings for the resource.
selfLink String
Server-defined URL for the resource.
selfLinkWithId String
Server-defined URL for this resource with the resource id.
subnetworks List<String>
Server-defined fully-qualified URLs for all subnetworks in this VPC network.
creationTimestamp string
Creation timestamp in RFC3339 text format.
firewallPolicy string
URL of the firewall policy the network is associated with.
gatewayIPv4 string
The gateway address for default routing out of the network, selected by Google Cloud.
id string
The provider-assigned unique ID for this managed resource.
kind string
Type of the resource. Always compute#network for networks.
peerings NetworkPeeringResponse[]
A list of network peerings for the resource.
selfLink string
Server-defined URL for the resource.
selfLinkWithId string
Server-defined URL for this resource with the resource id.
subnetworks string[]
Server-defined fully-qualified URLs for all subnetworks in this VPC network.
creation_timestamp str
Creation timestamp in RFC3339 text format.
firewall_policy str
URL of the firewall policy the network is associated with.
gateway_i_pv4 str
The gateway address for default routing out of the network, selected by Google Cloud.
id str
The provider-assigned unique ID for this managed resource.
kind str
Type of the resource. Always compute#network for networks.
peerings Sequence[NetworkPeeringResponse]
A list of network peerings for the resource.
self_link str
Server-defined URL for the resource.
self_link_with_id str
Server-defined URL for this resource with the resource id.
subnetworks Sequence[str]
Server-defined fully-qualified URLs for all subnetworks in this VPC network.
creationTimestamp String
Creation timestamp in RFC3339 text format.
firewallPolicy String
URL of the firewall policy the network is associated with.
gatewayIPv4 String
The gateway address for default routing out of the network, selected by Google Cloud.
id String
The provider-assigned unique ID for this managed resource.
kind String
Type of the resource. Always compute#network for networks.
peerings List<Property Map>
A list of network peerings for the resource.
selfLink String
Server-defined URL for the resource.
selfLinkWithId String
Server-defined URL for this resource with the resource id.
subnetworks List<String>
Server-defined fully-qualified URLs for all subnetworks in this VPC network.

Supporting Types

NetworkNetworkFirewallPolicyEnforcementOrder
, NetworkNetworkFirewallPolicyEnforcementOrderArgs

AfterClassicFirewall
AFTER_CLASSIC_FIREWALL
BeforeClassicFirewall
BEFORE_CLASSIC_FIREWALL
NetworkNetworkFirewallPolicyEnforcementOrderAfterClassicFirewall
AFTER_CLASSIC_FIREWALL
NetworkNetworkFirewallPolicyEnforcementOrderBeforeClassicFirewall
BEFORE_CLASSIC_FIREWALL
AfterClassicFirewall
AFTER_CLASSIC_FIREWALL
BeforeClassicFirewall
BEFORE_CLASSIC_FIREWALL
AfterClassicFirewall
AFTER_CLASSIC_FIREWALL
BeforeClassicFirewall
BEFORE_CLASSIC_FIREWALL
AFTER_CLASSIC_FIREWALL
AFTER_CLASSIC_FIREWALL
BEFORE_CLASSIC_FIREWALL
BEFORE_CLASSIC_FIREWALL
"AFTER_CLASSIC_FIREWALL"
AFTER_CLASSIC_FIREWALL
"BEFORE_CLASSIC_FIREWALL"
BEFORE_CLASSIC_FIREWALL

NetworkPeeringResponse
, NetworkPeeringResponseArgs

AutoCreateRoutes This property is required. bool
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
ExchangeSubnetRoutes This property is required. bool
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
ExportCustomRoutes This property is required. bool
Whether to export the custom routes to peer network. The default value is false.
ExportSubnetRoutesWithPublicIp This property is required. bool
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
ImportCustomRoutes This property is required. bool
Whether to import the custom routes from peer network. The default value is false.
ImportSubnetRoutesWithPublicIp This property is required. bool
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
Name This property is required. string
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Network This property is required. string
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
PeerMtu This property is required. int
Maximum Transmission Unit in bytes.
StackType This property is required. string
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
State This property is required. string
State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.
StateDetails This property is required. string
Details about the current state of the peering.
AutoCreateRoutes This property is required. bool
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
ExchangeSubnetRoutes This property is required. bool
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
ExportCustomRoutes This property is required. bool
Whether to export the custom routes to peer network. The default value is false.
ExportSubnetRoutesWithPublicIp This property is required. bool
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
ImportCustomRoutes This property is required. bool
Whether to import the custom routes from peer network. The default value is false.
ImportSubnetRoutesWithPublicIp This property is required. bool
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
Name This property is required. string
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Network This property is required. string
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
PeerMtu This property is required. int
Maximum Transmission Unit in bytes.
StackType This property is required. string
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
State This property is required. string
State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.
StateDetails This property is required. string
Details about the current state of the peering.
autoCreateRoutes This property is required. Boolean
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exchangeSubnetRoutes This property is required. Boolean
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exportCustomRoutes This property is required. Boolean
Whether to export the custom routes to peer network. The default value is false.
exportSubnetRoutesWithPublicIp This property is required. Boolean
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
importCustomRoutes This property is required. Boolean
Whether to import the custom routes from peer network. The default value is false.
importSubnetRoutesWithPublicIp This property is required. Boolean
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
name This property is required. String
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network This property is required. String
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
peerMtu This property is required. Integer
Maximum Transmission Unit in bytes.
stackType This property is required. String
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
state This property is required. String
State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.
stateDetails This property is required. String
Details about the current state of the peering.
autoCreateRoutes This property is required. boolean
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exchangeSubnetRoutes This property is required. boolean
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exportCustomRoutes This property is required. boolean
Whether to export the custom routes to peer network. The default value is false.
exportSubnetRoutesWithPublicIp This property is required. boolean
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
importCustomRoutes This property is required. boolean
Whether to import the custom routes from peer network. The default value is false.
importSubnetRoutesWithPublicIp This property is required. boolean
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
name This property is required. string
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network This property is required. string
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
peerMtu This property is required. number
Maximum Transmission Unit in bytes.
stackType This property is required. string
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
state This property is required. string
State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.
stateDetails This property is required. string
Details about the current state of the peering.
auto_create_routes This property is required. bool
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exchange_subnet_routes This property is required. bool
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
export_custom_routes This property is required. bool
Whether to export the custom routes to peer network. The default value is false.
export_subnet_routes_with_public_ip This property is required. bool
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
import_custom_routes This property is required. bool
Whether to import the custom routes from peer network. The default value is false.
import_subnet_routes_with_public_ip This property is required. bool
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
name This property is required. str
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network This property is required. str
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
peer_mtu This property is required. int
Maximum Transmission Unit in bytes.
stack_type This property is required. str
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
state This property is required. str
State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.
state_details This property is required. str
Details about the current state of the peering.
autoCreateRoutes This property is required. Boolean
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exchangeSubnetRoutes This property is required. Boolean
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exportCustomRoutes This property is required. Boolean
Whether to export the custom routes to peer network. The default value is false.
exportSubnetRoutesWithPublicIp This property is required. Boolean
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
importCustomRoutes This property is required. Boolean
Whether to import the custom routes from peer network. The default value is false.
importSubnetRoutesWithPublicIp This property is required. Boolean
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
name This property is required. String
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network This property is required. String
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
peerMtu This property is required. Number
Maximum Transmission Unit in bytes.
stackType This property is required. String
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY.
state This property is required. String
State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.
stateDetails This property is required. String
Details about the current state of the peering.

NetworkRoutingConfig
, NetworkRoutingConfigArgs

RoutingMode Pulumi.GoogleNative.Compute.V1.NetworkRoutingConfigRoutingMode
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
RoutingMode NetworkRoutingConfigRoutingMode
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routingMode NetworkRoutingConfigRoutingMode
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routingMode NetworkRoutingConfigRoutingMode
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routing_mode NetworkRoutingConfigRoutingMode
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routingMode "GLOBAL" | "REGIONAL"
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.

NetworkRoutingConfigResponse
, NetworkRoutingConfigResponseArgs

RoutingMode This property is required. string
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
RoutingMode This property is required. string
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routingMode This property is required. String
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routingMode This property is required. string
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routing_mode This property is required. str
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.
routingMode This property is required. String
The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.

NetworkRoutingConfigRoutingMode
, NetworkRoutingConfigRoutingModeArgs

Global
GLOBAL
Regional
REGIONAL
NetworkRoutingConfigRoutingModeGlobal
GLOBAL
NetworkRoutingConfigRoutingModeRegional
REGIONAL
Global
GLOBAL
Regional
REGIONAL
Global
GLOBAL
Regional
REGIONAL
GLOBAL_
GLOBAL
REGIONAL
REGIONAL
"GLOBAL"
GLOBAL
"REGIONAL"
REGIONAL

Package Details

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

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

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