@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
126 lines • 4.06 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about a baremetal server.
* For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by server name
* const byName = scaleway.elasticmetal.getServer({
* name: "foobar",
* zone: "fr-par-2",
* });
* // Get info by server id
* const byId = scaleway.elasticmetal.getServer({
* serverId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getServer(args?: GetServerArgs, opts?: pulumi.InvokeOptions): Promise<GetServerResult>;
/**
* A collection of arguments for invoking getServer.
*/
export interface GetServerArgs {
/**
* The server name. Only one of `name` and `serverId` should be specified.
*/
name?: string;
/**
* The ID of the project the baremetal server is associated with.
*/
projectId?: string;
serverId?: string;
/**
* `zone`) The zone in which the server exists.
*/
zone?: string;
}
/**
* A collection of values returned by getServer.
*/
export interface GetServerResult {
readonly cloudInit: string;
readonly description: string;
readonly domain: string;
readonly hostname: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly installConfigAfterward: boolean;
readonly ips: outputs.elasticmetal.GetServerIp[];
readonly ipv4s: outputs.elasticmetal.GetServerIpv4[];
readonly ipv6s: outputs.elasticmetal.GetServerIpv6[];
readonly name?: string;
readonly offer: string;
readonly offerId: string;
readonly offerName: string;
readonly options: outputs.elasticmetal.GetServerOption[];
readonly organizationId: string;
readonly os: string;
readonly osName: string;
readonly partitioning: string;
readonly password: string;
readonly passwordWo: string;
readonly passwordWoVersion: number;
readonly privateIps: outputs.elasticmetal.GetServerPrivateIp[];
readonly privateNetworks: outputs.elasticmetal.GetServerPrivateNetwork[];
readonly projectId?: string;
readonly protected: boolean;
readonly reinstallOnConfigChanges: boolean;
readonly serverId?: string;
readonly servicePassword: string;
readonly servicePasswordWo: string;
readonly servicePasswordWoVersion: number;
readonly serviceUser: string;
readonly sshKeyIds: string[];
readonly tags: string[];
readonly user: string;
readonly zone?: string;
}
/**
* Gets information about a baremetal server.
* For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by server name
* const byName = scaleway.elasticmetal.getServer({
* name: "foobar",
* zone: "fr-par-2",
* });
* // Get info by server id
* const byId = scaleway.elasticmetal.getServer({
* serverId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getServerOutput(args?: GetServerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServerResult>;
/**
* A collection of arguments for invoking getServer.
*/
export interface GetServerOutputArgs {
/**
* The server name. Only one of `name` and `serverId` should be specified.
*/
name?: pulumi.Input<string | undefined>;
/**
* The ID of the project the baremetal server is associated with.
*/
projectId?: pulumi.Input<string | undefined>;
serverId?: pulumi.Input<string | undefined>;
/**
* `zone`) The zone in which the server exists.
*/
zone?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getServer.d.ts.map