glesys.Network
Explore with Pulumi AI
Create a private network in the VMware environment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as glesys from "@pulumi/glesys";
const examplenetwork = new glesys.Network("examplenetwork", {
datacenter: "Stockholm",
description: "Example network STO",
});
import pulumi
import pulumi_glesys as glesys
examplenetwork = glesys.Network("examplenetwork",
datacenter="Stockholm",
description="Example network STO")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/glesys/glesys"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glesys.NewNetwork(ctx, "examplenetwork", &glesys.NetworkArgs{
Datacenter: pulumi.String("Stockholm"),
Description: pulumi.String("Example network STO"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Glesys = Pulumi.Glesys;
return await Deployment.RunAsync(() =>
{
var examplenetwork = new Glesys.Network("examplenetwork", new()
{
Datacenter = "Stockholm",
Description = "Example network STO",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.glesys.Network;
import com.pulumi.glesys.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()
.datacenter("Stockholm")
.description("Example network STO")
.build());
}
}
resources:
examplenetwork:
type: glesys:Network
properties:
datacenter: Stockholm
description: Example network STO
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,
datacenter: Optional[str] = None,
description: Optional[str] = None,
network_id: 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: glesys: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 networkResource = new Glesys.Network("networkResource", new()
{
Datacenter = "string",
Description = "string",
NetworkId = "string",
});
example, err := glesys.NewNetwork(ctx, "networkResource", &glesys.NetworkArgs{
Datacenter: pulumi.String("string"),
Description: pulumi.String("string"),
NetworkId: pulumi.String("string"),
})
var networkResource = new Network("networkResource", NetworkArgs.builder()
.datacenter("string")
.description("string")
.networkId("string")
.build());
network_resource = glesys.Network("networkResource",
datacenter="string",
description="string",
network_id="string")
const networkResource = new glesys.Network("networkResource", {
datacenter: "string",
description: "string",
networkId: "string",
});
type: glesys:Network
properties:
datacenter: string
description: string
networkId: 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:
- Datacenter string
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- Description string
- Network description
- Network
Id string - The ID of this resource.
- Datacenter string
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- Description string
- Network description
- Network
Id string - The ID of this resource.
- datacenter String
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description String
- Network description
- network
Id String - The ID of this resource.
- datacenter string
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description string
- Network description
- network
Id string - The ID of this resource.
- datacenter str
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description str
- Network description
- network_
id str - The ID of this resource.
- datacenter String
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description String
- Network description
- network
Id String - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
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,
datacenter: Optional[str] = None,
description: Optional[str] = None,
network_id: Optional[str] = None,
public: Optional[str] = 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)
resources: _: type: glesys:Network get: id: ${id}
- 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.
- Datacenter string
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- Description string
- Network description
- Network
Id string - The ID of this resource.
- Public string
- Public determines if the network is externally routed
- Datacenter string
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- Description string
- Network description
- Network
Id string - The ID of this resource.
- Public string
- Public determines if the network is externally routed
- datacenter String
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description String
- Network description
- network
Id String - The ID of this resource.
- public_ String
- Public determines if the network is externally routed
- datacenter string
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description string
- Network description
- network
Id string - The ID of this resource.
- public string
- Public determines if the network is externally routed
- datacenter str
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description str
- Network description
- network_
id str - The ID of this resource.
- public str
- Public determines if the network is externally routed
- datacenter String
- Datacenter,
Falkenberg
,Stockholm
,Amsterdam
,London
,Oslo
- description String
- Network description
- network
Id String - The ID of this resource.
- public String
- Public determines if the network is externally routed
Package Details
- Repository
- glesys glesys/terraform-provider-glesys
- License
- Notes
- This Pulumi package is based on the
glesys
Terraform Provider.