Hetzner Cloud
getNetwork
Using getNetwork
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
function getNetworkOutput(args: GetNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkResult>
def get_network(id: Optional[int] = None,
ip_range: Optional[str] = None,
labels: Optional[Mapping[str, Any]] = None,
most_recent: Optional[bool] = None,
name: Optional[str] = None,
with_selector: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkResult
def get_network_output(id: Optional[pulumi.Input[int]] = None,
ip_range: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, Any]]] = None,
most_recent: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
with_selector: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkResult]
func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput
> Note: This function is named LookupNetwork
in the Go SDK.
public static class GetNetwork
{
public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: hcloud:index/getNetwork:getNetwork
Arguments:
# Arguments dictionary
The following arguments are supported:
- Id int
ID of the Network.
- Ip
Range string IPv4 prefix of the Network.
- Labels Dictionary<string, object>
- Most
Recent bool - Name string
Name of the Network.
- With
Selector string Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- Id int
ID of the Network.
- Ip
Range string IPv4 prefix of the Network.
- Labels map[string]interface{}
- Most
Recent bool - Name string
Name of the Network.
- With
Selector string Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- id Integer
ID of the Network.
- ip
Range String IPv4 prefix of the Network.
- labels
Map
- most
Recent Boolean - name String
Name of the Network.
- with
Selector String Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- id number
ID of the Network.
- ip
Range string IPv4 prefix of the Network.
- labels {[key: string]: any}
- most
Recent boolean - name string
Name of the Network.
- with
Selector 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]
- most_
recent bool - name str
Name of the Network.
- with_
selector str Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
- id Number
ID of the Network.
- ip
Range String IPv4 prefix of the Network.
- labels
Map
- most
Recent Boolean - name String
Name of the Network.
- with
Selector String Label Selector. For more information about possible values, visit the Hetzner Cloud Documentation.
getNetwork Result
The following output properties are available:
- Delete
Protection bool (boolean) Whether delete protection is enabled.
- Id int
Unique ID of the Network.
- Ip
Range string IPv4 prefix of the Network.
- Labels Dictionary<string, object>
- Most
Recent bool - Name string
Name of the Network.
- With
Selector string
- Delete
Protection bool (boolean) Whether delete protection is enabled.
- Id int
Unique ID of the Network.
- Ip
Range string IPv4 prefix of the Network.
- Labels map[string]interface{}
- Most
Recent bool - Name string
Name of the Network.
- With
Selector string
- delete
Protection Boolean (boolean) Whether delete protection is enabled.
- id Integer
Unique ID of the Network.
- ip
Range String IPv4 prefix of the Network.
- labels
Map
- most
Recent Boolean - name String
Name of the Network.
- with
Selector String
- delete
Protection boolean (boolean) Whether delete protection is enabled.
- id number
Unique ID of the Network.
- ip
Range string IPv4 prefix of the Network.
- labels {[key: string]: any}
- most
Recent boolean - name string
Name of the Network.
- with
Selector string
- delete_
protection bool (boolean) Whether delete protection is enabled.
- id int
Unique ID of the Network.
- ip_
range str IPv4 prefix of the Network.
- labels Mapping[str, Any]
- most_
recent bool - name str
Name of the Network.
- with_
selector str
- delete
Protection Boolean (boolean) Whether delete protection is enabled.
- id Number
Unique ID of the Network.
- ip
Range String IPv4 prefix of the Network.
- labels
Map
- most
Recent Boolean - name String
Name of the Network.
- with
Selector String
Package Details
- Repository
- https://github.com/pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
hcloud
Terraform Provider.