Network
A Distributed Cloud Edge network, which provides L3 isolation within a zone. To get more information about Network, see:
How-to Guides
Example Usage
Edgenetwork Network
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const exampleNetwork = new gcp.edgenetwork.Network("example_network", {
networkId: "example-network",
location: "us-west1",
zone: "",
description: "Example network.",
mtu: 9000,
labels: {
environment: "dev",
},
});
import pulumi
import pulumi_gcp as gcp
example_network = gcp.edgenetwork.Network("example_network",
network_id="example-network",
location="us-west1",
zone="",
description="Example network.",
mtu=9000,
labels={
"environment": "dev",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var exampleNetwork = new Gcp.EdgeNetwork.Network("example_network", new()
{
NetworkId = "example-network",
Location = "us-west1",
Zone = "",
Description = "Example network.",
Mtu = 9000,
Labels =
{
{ "environment", "dev" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/edgenetwork"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{
NetworkId: pulumi.String("example-network"),
Location: pulumi.String("us-west1"),
Zone: pulumi.String(""),
Description: pulumi.String("Example network."),
Mtu: pulumi.Int(9000),
Labels: pulumi.StringMap{
"environment": pulumi.String("dev"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.edgenetwork.Network;
import com.pulumi.gcp.edgenetwork.NetworkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.networkId("example-network")
.location("us-west1")
.zone("")
.description("Example network.")
.mtu(9000)
.labels(Map.of("environment", "dev"))
.build());
}
}
resources:
exampleNetwork:
type: gcp:edgenetwork:Network
name: example_network
properties:
networkId: example-network
location: us-west1
zone: ""
description: Example network.
mtu: 9000
labels:
environment: dev
Import
Network can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
{{project}}/{{location}}/{{zone}}/{{network_id}}
{{location}}/{{zone}}/{{network_id}}
{{location}}/{{network_id}}
{{name}}
When using thepulumi import
command, Network can be imported using one of the formats above. For example:
$ pulumi import gcp:edgenetwork/network:Network default projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
$ pulumi import gcp:edgenetwork/network:Network default {{project}}/{{location}}/{{zone}}/{{network_id}}
$ pulumi import gcp:edgenetwork/network:Network default {{location}}/{{zone}}/{{network_id}}
$ pulumi import gcp:edgenetwork/network:Network default {{location}}/{{network_id}}
$ pulumi import gcp:edgenetwork/network:Network default {{name}}
Properties
The time when the subnet was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z
and 2014-10-02T15:01:23.045123456Z
.
A free-text description of the resource. Max length 1024 characters.
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
The combination of labels configured directly on the resource and default labels configured on the provider.
The time when the subnet was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: 2014-10-02T15:01:23Z
and 2014-10-02T15:01:23.045123456Z
.