@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
67 lines (66 loc) • 1.87 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides details about multiple Hetzner Cloud Networks.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const network2 = hcloud.getNetwork({});
* const network3 = hcloud.getNetwork({
* withSelector: "key=value",
* });
* ```
*/
export declare function getNetworks(args?: GetNetworksArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworksResult>;
/**
* A collection of arguments for invoking getNetworks.
*/
export interface GetNetworksArgs {
/**
* [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
*/
withSelector?: string;
}
/**
* A collection of values returned by getNetworks.
*/
export interface GetNetworksResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* (list) List of all matching networks. See `data.hcloud_network` for schema.
*/
readonly networks: outputs.GetNetworksNetwork[];
readonly withSelector?: string;
}
/**
* Provides details about multiple Hetzner Cloud Networks.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const network2 = hcloud.getNetwork({});
* const network3 = hcloud.getNetwork({
* withSelector: "key=value",
* });
* ```
*/
export declare function getNetworksOutput(args?: GetNetworksOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworksResult>;
/**
* A collection of arguments for invoking getNetworks.
*/
export interface GetNetworksOutputArgs {
/**
* [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
*/
withSelector?: pulumi.Input<string>;
}