@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
99 lines (98 loc) • 2.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides details about a specific Hetzner Cloud Datacenter.
*
* Use this resource to get detailed information about a specific Datacenter.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byId = hcloud.getDatacenter({
* id: 4,
* });
* const byName = hcloud.getDatacenter({
* name: "fsn1-dc14",
* });
* ```
*/
export declare function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatacenterResult>;
/**
* A collection of arguments for invoking getDatacenter.
*/
export interface GetDatacenterArgs {
/**
* ID of the Datacenter.
*/
id?: number;
/**
* Name of the Datacenter.
*/
name?: string;
}
/**
* A collection of values returned by getDatacenter.
*/
export interface GetDatacenterResult {
/**
* List of currently available Server Types in the Datacenter.
*/
readonly availableServerTypeIds: number[];
/**
* Description of the Datacenter.
*/
readonly description: string;
/**
* ID of the Datacenter.
*/
readonly id?: number;
/**
* Location of the Datacenter. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
*/
readonly location: {
[key: string]: string;
};
/**
* Name of the Datacenter.
*/
readonly name?: string;
/**
* List of supported Server Types in the Datacenter.
*/
readonly supportedServerTypeIds: number[];
}
/**
* Provides details about a specific Hetzner Cloud Datacenter.
*
* Use this resource to get detailed information about a specific Datacenter.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const byId = hcloud.getDatacenter({
* id: 4,
* });
* const byName = hcloud.getDatacenter({
* name: "fsn1-dc14",
* });
* ```
*/
export declare function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatacenterResult>;
/**
* A collection of arguments for invoking getDatacenter.
*/
export interface GetDatacenterOutputArgs {
/**
* ID of the Datacenter.
*/
id?: pulumi.Input<number>;
/**
* Name of the Datacenter.
*/
name?: pulumi.Input<string>;
}