import * as pulumi from "@pulumi/pulumi"; /** * Provides details about a Hetzner Cloud network. * This resource is useful if you want to use a non-terraform managed network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const network1 = hcloud.getNetwork({ * id: 1234, * }); * const network2 = hcloud.getNetwork({ * name: "my-network", * }); * const network3 = hcloud.getNetwork({ * withSelector: "key=value", * }); * ``` */ export declare function getNetwork(args?: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getNetwork. */ export interface GetNetworkArgs { /** * ID of the Network. */ id?: number; /** * IPv4 prefix of the Network. */ ipRange?: string; labels?: { [key: string]: string; }; /** * @deprecated This attribute has no purpose. */ mostRecent?: boolean; /** * Name of the Network. */ name?: string; /** * Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/reference/cloud#label-selector). */ withSelector?: string; } /** * A collection of values returned by getNetwork. */ export interface GetNetworkResult { /** * (bool) Whether delete protection is enabled. */ readonly deleteProtection: boolean; /** * (bool) Indicates if the routes from this network should be exposed to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active. */ readonly exposeRoutesToVswitch: boolean; /** * Unique ID of the Network. */ readonly id: number; /** * IPv4 prefix of the Network. */ readonly ipRange: string; readonly labels: { [key: string]: string; }; /** * @deprecated This attribute has no purpose. */ readonly mostRecent?: boolean; /** * Name of the Network. */ readonly name: string; readonly withSelector?: string; } /** * Provides details about a Hetzner Cloud network. * This resource is useful if you want to use a non-terraform managed network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const network1 = hcloud.getNetwork({ * id: 1234, * }); * const network2 = hcloud.getNetwork({ * name: "my-network", * }); * const network3 = hcloud.getNetwork({ * withSelector: "key=value", * }); * ``` */ export declare function getNetworkOutput(args?: GetNetworkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getNetwork. */ export interface GetNetworkOutputArgs { /** * ID of the Network. */ id?: pulumi.Input; /** * IPv4 prefix of the Network. */ ipRange?: pulumi.Input; labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * @deprecated This attribute has no purpose. */ mostRecent?: pulumi.Input; /** * Name of the Network. */ name?: pulumi.Input; /** * Label Selector. For more information about possible values, visit the [Hetzner Cloud Documentation](https://docs.hetzner.cloud/reference/cloud#label-selector). */ withSelector?: pulumi.Input; }