gcp.vmwareengine.Network
Explore with Pulumi AI
Provides connectivity for VMware Engine private clouds.
To get more information about Network, see:
Example Usage
Vmware Engine Network Standard
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const vmw_engine_network = new gcp.vmwareengine.Network("vmw-engine-network", {
name: "standard-nw",
location: "global",
type: "STANDARD",
description: "VMwareEngine standard network sample",
});
import pulumi
import pulumi_gcp as gcp
vmw_engine_network = gcp.vmwareengine.Network("vmw-engine-network",
name="standard-nw",
location="global",
type="STANDARD",
description="VMwareEngine standard network sample")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vmwareengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmwareengine.NewNetwork(ctx, "vmw-engine-network", &vmwareengine.NetworkArgs{
Name: pulumi.String("standard-nw"),
Location: pulumi.String("global"),
Type: pulumi.String("STANDARD"),
Description: pulumi.String("VMwareEngine standard network sample"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var vmw_engine_network = new Gcp.VMwareEngine.Network("vmw-engine-network", new()
{
Name = "standard-nw",
Location = "global",
Type = "STANDARD",
Description = "VMwareEngine standard network sample",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vmwareengine.Network;
import com.pulumi.gcp.vmwareengine.NetworkArgs;
import 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 vmw_engine_network = new Network("vmw-engine-network", NetworkArgs.builder()
.name("standard-nw")
.location("global")
.type("STANDARD")
.description("VMwareEngine standard network sample")
.build());
}
}
resources:
vmw-engine-network:
type: gcp:vmwareengine:Network
properties:
name: standard-nw
location: global
type: STANDARD
description: VMwareEngine standard network sample
Vmware Engine Network Legacy
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumi/time";
// there can be only 1 Legacy network per region for a given project,
// so creating new project for isolation in CI.
const acceptanceProject = new gcp.organizations.Project("acceptance", {
name: "vmw-proj",
projectId: "vmw-proj",
orgId: "123456789",
billingAccount: "000000-0000000-0000000-000000",
deletionPolicy: "DELETE",
});
const wait60Seconds = new time.index.Sleep("wait_60_seconds", {createDuration: "60s"}, {
dependsOn: [acceptanceProject],
});
const acceptance = new gcp.projects.Service("acceptance", {
project: acceptanceProject.projectId,
service: "vmwareengine.googleapis.com",
}, {
dependsOn: [wait60Seconds],
});
const vmw_engine_network = new gcp.vmwareengine.Network("vmw-engine-network", {
project: acceptance.project,
name: "us-west1-default",
location: "us-west1",
type: "LEGACY",
description: "VMwareEngine legacy network sample",
});
import pulumi
import pulumi_gcp as gcp
import pulumi_time as time
# there can be only 1 Legacy network per region for a given project,
# so creating new project for isolation in CI.
acceptance_project = gcp.organizations.Project("acceptance",
name="vmw-proj",
project_id="vmw-proj",
org_id="123456789",
billing_account="000000-0000000-0000000-000000",
deletion_policy="DELETE")
wait60_seconds = time.index.Sleep("wait_60_seconds", create_duration=60s,
opts = pulumi.ResourceOptions(depends_on=[acceptance_project]))
acceptance = gcp.projects.Service("acceptance",
project=acceptance_project.project_id,
service="vmwareengine.googleapis.com",
opts = pulumi.ResourceOptions(depends_on=[wait60_seconds]))
vmw_engine_network = gcp.vmwareengine.Network("vmw-engine-network",
project=acceptance.project,
name="us-west1-default",
location="us-west1",
type="LEGACY",
description="VMwareEngine legacy network sample")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vmwareengine"
"github.com/pulumi/pulumi-time/sdk/go/time"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// there can be only 1 Legacy network per region for a given project,
// so creating new project for isolation in CI.
acceptanceProject, err := organizations.NewProject(ctx, "acceptance", &organizations.ProjectArgs{
Name: pulumi.String("vmw-proj"),
ProjectId: pulumi.String("vmw-proj"),
OrgId: pulumi.String("123456789"),
BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
DeletionPolicy: pulumi.String("DELETE"),
})
if err != nil {
return err
}
wait60Seconds, err := time.NewSleep(ctx, "wait_60_seconds", &time.SleepArgs{
CreateDuration: "60s",
}, pulumi.DependsOn([]pulumi.Resource{
acceptanceProject,
}))
if err != nil {
return err
}
acceptance, err := projects.NewService(ctx, "acceptance", &projects.ServiceArgs{
Project: acceptanceProject.ProjectId,
Service: pulumi.String("vmwareengine.googleapis.com"),
}, pulumi.DependsOn([]pulumi.Resource{
wait60Seconds,
}))
if err != nil {
return err
}
_, err = vmwareengine.NewNetwork(ctx, "vmw-engine-network", &vmwareengine.NetworkArgs{
Project: acceptance.Project,
Name: pulumi.String("us-west1-default"),
Location: pulumi.String("us-west1"),
Type: pulumi.String("LEGACY"),
Description: pulumi.String("VMwareEngine legacy network sample"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Time = Pulumi.Time;
return await Deployment.RunAsync(() =>
{
// there can be only 1 Legacy network per region for a given project,
// so creating new project for isolation in CI.
var acceptanceProject = new Gcp.Organizations.Project("acceptance", new()
{
Name = "vmw-proj",
ProjectId = "vmw-proj",
OrgId = "123456789",
BillingAccount = "000000-0000000-0000000-000000",
DeletionPolicy = "DELETE",
});
var wait60Seconds = new Time.Index.Sleep("wait_60_seconds", new()
{
CreateDuration = "60s",
}, new CustomResourceOptions
{
DependsOn =
{
acceptanceProject,
},
});
var acceptance = new Gcp.Projects.Service("acceptance", new()
{
Project = acceptanceProject.ProjectId,
ServiceName = "vmwareengine.googleapis.com",
}, new CustomResourceOptions
{
DependsOn =
{
wait60Seconds,
},
});
var vmw_engine_network = new Gcp.VMwareEngine.Network("vmw-engine-network", new()
{
Project = acceptance.Project,
Name = "us-west1-default",
Location = "us-west1",
Type = "LEGACY",
Description = "VMwareEngine legacy network sample",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.time.sleep;
import com.pulumi.time.SleepArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.vmwareengine.Network;
import com.pulumi.gcp.vmwareengine.NetworkArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
// there can be only 1 Legacy network per region for a given project,
// so creating new project for isolation in CI.
var acceptanceProject = new Project("acceptanceProject", ProjectArgs.builder()
.name("vmw-proj")
.projectId("vmw-proj")
.orgId("123456789")
.billingAccount("000000-0000000-0000000-000000")
.deletionPolicy("DELETE")
.build());
var wait60Seconds = new Sleep("wait60Seconds", SleepArgs.builder()
.createDuration("60s")
.build(), CustomResourceOptions.builder()
.dependsOn(acceptanceProject)
.build());
var acceptance = new Service("acceptance", ServiceArgs.builder()
.project(acceptanceProject.projectId())
.service("vmwareengine.googleapis.com")
.build(), CustomResourceOptions.builder()
.dependsOn(wait60Seconds)
.build());
var vmw_engine_network = new Network("vmw-engine-network", NetworkArgs.builder()
.project(acceptance.project())
.name("us-west1-default")
.location("us-west1")
.type("LEGACY")
.description("VMwareEngine legacy network sample")
.build());
}
}
resources:
vmw-engine-network:
type: gcp:vmwareengine:Network
properties:
project: ${acceptance.project}
name: us-west1-default
location: us-west1
type: LEGACY
description: VMwareEngine legacy network sample
acceptance:
type: gcp:projects:Service
properties:
project: ${acceptanceProject.projectId}
service: vmwareengine.googleapis.com
options:
dependson:
- ${wait60Seconds}
# there can be only 1 Legacy network per region for a given project,
# so creating new project for isolation in CI.
acceptanceProject:
type: gcp:organizations:Project
name: acceptance
properties:
name: vmw-proj
projectId: vmw-proj
orgId: '123456789'
billingAccount: 000000-0000000-0000000-000000
deletionPolicy: DELETE
wait60Seconds:
type: time:sleep
name: wait_60_seconds
properties:
createDuration: 60s
options:
dependson:
- ${acceptanceProject}
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: NetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: gcp:vmwareengine:Network
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 NetworkArgs
- 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 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 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 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 String
- The unique name of the resource.
- args 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 examplenetworkResourceResourceFromVmwareenginenetwork = new Gcp.VMwareEngine.Network("examplenetworkResourceResourceFromVmwareenginenetwork", new()
{
Location = "string",
Type = "string",
Description = "string",
Name = "string",
Project = "string",
});
example, err := vmwareengine.NewNetwork(ctx, "examplenetworkResourceResourceFromVmwareenginenetwork", &vmwareengine.NetworkArgs{
Location: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var examplenetworkResourceResourceFromVmwareenginenetwork = new Network("examplenetworkResourceResourceFromVmwareenginenetwork", NetworkArgs.builder()
.location("string")
.type("string")
.description("string")
.name("string")
.project("string")
.build());
examplenetwork_resource_resource_from_vmwareenginenetwork = gcp.vmwareengine.Network("examplenetworkResourceResourceFromVmwareenginenetwork",
location="string",
type="string",
description="string",
name="string",
project="string")
const examplenetworkResourceResourceFromVmwareenginenetwork = new gcp.vmwareengine.Network("examplenetworkResourceResourceFromVmwareenginenetwork", {
location: "string",
type: "string",
description: "string",
name: "string",
project: "string",
});
type: gcp:vmwareengine:Network
properties:
description: string
location: string
name: string
project: string
type: string
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:
- Location string
- The location where the VMwareEngineNetwork should reside.
- Type string
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - Description string
- User-provided description for this VMware Engine network.
- Name string
- The ID of the VMwareEngineNetwork.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- The location where the VMwareEngineNetwork should reside.
- Type string
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - Description string
- User-provided description for this VMware Engine network.
- Name string
- The ID of the VMwareEngineNetwork.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location where the VMwareEngineNetwork should reside.
- type String
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - description String
- User-provided description for this VMware Engine network.
- name String
- The ID of the VMwareEngineNetwork.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The location where the VMwareEngineNetwork should reside.
- type string
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - description string
- User-provided description for this VMware Engine network.
- name string
- The ID of the VMwareEngineNetwork.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- The location where the VMwareEngineNetwork should reside.
- type str
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - description str
- User-provided description for this VMware Engine network.
- name str
- The ID of the VMwareEngineNetwork.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location where the VMwareEngineNetwork should reside.
- type String
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - description String
- User-provided description for this VMware Engine network.
- name String
- The ID of the VMwareEngineNetwork.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- State of the VMware Engine network.
- Uid string
- System-generated unique identifier for the resource.
- Vpc
Networks List<NetworkVpc Network> - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- State of the VMware Engine network.
- Uid string
- System-generated unique identifier for the resource.
- Vpc
Networks []NetworkVpc Network - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- State of the VMware Engine network.
- uid String
- System-generated unique identifier for the resource.
- vpc
Networks List<NetworkVpc Network> - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- State of the VMware Engine network.
- uid string
- System-generated unique identifier for the resource.
- vpc
Networks NetworkVpc Network[] - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- State of the VMware Engine network.
- uid str
- System-generated unique identifier for the resource.
- vpc_
networks Sequence[NetworkVpc Network] - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- State of the VMware Engine network.
- uid String
- System-generated unique identifier for the resource.
- vpc
Networks List<Property Map> - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
Look up Existing Network Resource
Get an existing Network resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
state: Optional[str] = None,
type: Optional[str] = None,
uid: Optional[str] = None,
vpc_networks: Optional[Sequence[NetworkVpcNetworkArgs]] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- User-provided description for this VMware Engine network.
- Location string
- The location where the VMwareEngineNetwork should reside.
- Name string
- The ID of the VMwareEngineNetwork.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- State string
- State of the VMware Engine network.
- Type string
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - Uid string
- System-generated unique identifier for the resource.
- Vpc
Networks List<NetworkVpc Network> - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- Description string
- User-provided description for this VMware Engine network.
- Location string
- The location where the VMwareEngineNetwork should reside.
- Name string
- The ID of the VMwareEngineNetwork.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- State string
- State of the VMware Engine network.
- Type string
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - Uid string
- System-generated unique identifier for the resource.
- Vpc
Networks []NetworkVpc Network Args - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- description String
- User-provided description for this VMware Engine network.
- location String
- The location where the VMwareEngineNetwork should reside.
- name String
- The ID of the VMwareEngineNetwork.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state String
- State of the VMware Engine network.
- type String
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - uid String
- System-generated unique identifier for the resource.
- vpc
Networks List<NetworkVpc Network> - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- description string
- User-provided description for this VMware Engine network.
- location string
- The location where the VMwareEngineNetwork should reside.
- name string
- The ID of the VMwareEngineNetwork.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state string
- State of the VMware Engine network.
- type string
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - uid string
- System-generated unique identifier for the resource.
- vpc
Networks NetworkVpc Network[] - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- description str
- User-provided description for this VMware Engine network.
- location str
- The location where the VMwareEngineNetwork should reside.
- name str
- The ID of the VMwareEngineNetwork.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state str
- State of the VMware Engine network.
- type str
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - uid str
- System-generated unique identifier for the resource.
- vpc_
networks Sequence[NetworkVpc Network Args] - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
- description String
- User-provided description for this VMware Engine network.
- location String
- The location where the VMwareEngineNetwork should reside.
- name String
- The ID of the VMwareEngineNetwork.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- state String
- State of the VMware Engine network.
- type String
- VMware Engine network type.
Possible values are:
LEGACY
,STANDARD
. - uid String
- System-generated unique identifier for the resource.
- vpc
Networks List<Property Map> - VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services. Structure is documented below.
Supporting Types
NetworkVpcNetwork, NetworkVpcNetworkArgs
Import
Network can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/vmwareEngineNetworks/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using the pulumi import
command, Network can be imported using one of the formats above. For example:
$ pulumi import gcp:vmwareengine/network:Network default projects/{{project}}/locations/{{location}}/vmwareEngineNetworks/{{name}}
$ pulumi import gcp:vmwareengine/network:Network default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:vmwareengine/network:Network default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.