The Automation API is now available. No CLI. No human-in-the-loop. Just your code. Learn More

GetNetwork

Using GetNetwork

function getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
def get_network(id: Optional[str] = None, label: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetNetworkResult
func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)

Note: This function is named LookupNetwork in the Go SDK.

public static class GetNetwork {
    public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id string

The unique identifier of an existing Network.

Label string

The name of an existing Network.

Id string

The unique identifier of an existing Network.

Label string

The name of an existing Network.

id string

The unique identifier of an existing Network.

label string

The name of an existing Network.

id str

The unique identifier of an existing Network.

label str

The name of an existing Network.

GetNetwork Result

The following output properties are available:

Cidr string

The block ip assigned to the network.

Default bool

If is the default network.

Name string

The name of the network.

Region string

The region where the network was create.

Id string

A unique ID that can be used to identify and reference a Network.

Label string

The label used in the configuration.

Cidr string

The block ip assigned to the network.

Default bool

If is the default network.

Name string

The name of the network.

Region string

The region where the network was create.

Id string

A unique ID that can be used to identify and reference a Network.

Label string

The label used in the configuration.

cidr string

The block ip assigned to the network.

default boolean

If is the default network.

name string

The name of the network.

region string

The region where the network was create.

id string

A unique ID that can be used to identify and reference a Network.

label string

The label used in the configuration.

cidr str

The block ip assigned to the network.

default bool

If is the default network.

name str

The name of the network.

region str

The region where the network was create.

id str

A unique ID that can be used to identify and reference a Network.

label str

The label used in the configuration.

Package Details

Repository
https://github.com/pulumi/pulumi-civo
License
Apache-2.0
Notes
This Pulumi package is based on the civo Terraform Provider.