Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

GetNetwork

Using GetNetwork

function getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
def get_network(id: Optional[int] = None, ip_range: Optional[str] = None, labels: Optional[Mapping[str, Any]] = None, name: Optional[str] = None, with_selector: 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 int

ID of the Network.

IpRange string

IPv4 prefix of the Network.

Labels Dictionary<string, object>
Name string

Name of the Network.

WithSelector string

Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.

Id int

ID of the Network.

IpRange string

IPv4 prefix of the Network.

Labels map[string]interface{}
Name string

Name of the Network.

WithSelector string

Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.

id number

ID of the Network.

ipRange string

IPv4 prefix of the Network.

labels {[key: string]: any}
name string

Name of the Network.

withSelector string

Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.

id int

ID of the Network.

ip_range str

IPv4 prefix of the Network.

labels Mapping[str, Any]
name str

Name of the Network.

with_selector str

Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.

GetNetwork Result

The following output properties are available:

Id int

Unique ID of the Network.

IpRange string

IPv4 prefix of the Network.

Labels Dictionary<string, object>
Name string

Name of the Network.

WithSelector string
Id int

Unique ID of the Network.

IpRange string

IPv4 prefix of the Network.

Labels map[string]interface{}
Name string

Name of the Network.

WithSelector string
id number

Unique ID of the Network.

ipRange string

IPv4 prefix of the Network.

labels {[key: string]: any}
name string

Name of the Network.

withSelector string
id int

Unique ID of the Network.

ip_range str

IPv4 prefix of the Network.

labels Mapping[str, Any]
name str

Name of the Network.

with_selector str

Package Details

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