@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
153 lines (152 loc) • 3.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Get information about a Vultr bare metal server.
*
* ## Example Usage
*
* Get the information for a server by `label`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myServer = vultr.getBareMetalServer({
* filters: [{
* name: "label",
* values: ["my-server-label"],
* }],
* });
* ```
*/
export declare function getBareMetalServer(args?: GetBareMetalServerArgs, opts?: pulumi.InvokeOptions): Promise<GetBareMetalServerResult>;
/**
* A collection of arguments for invoking getBareMetalServer.
*/
export interface GetBareMetalServerArgs {
/**
* Query parameters for finding servers.
*/
filters?: inputs.GetBareMetalServerFilter[];
}
/**
* A collection of values returned by getBareMetalServer.
*/
export interface GetBareMetalServerResult {
/**
* The server's application ID.
*/
readonly appId: number;
/**
* The number of CPUs available on the server.
*/
readonly cpuCount: number;
/**
* The date the server was added to your Vultr account.
*/
readonly dateCreated: string;
/**
* The description of the disk(s) on the server.
*/
readonly disk: string;
readonly features: string[];
readonly filters?: outputs.GetBareMetalServerFilter[];
/**
* The server's IPv4 gateway.
*/
readonly gatewayV4: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The Marketplace ID for this application.
*/
readonly imageId: string;
/**
* The server's label.
*/
readonly label: string;
readonly macAddress: number;
/**
* The server's main IP address.
*/
readonly mainIp: string;
/**
* The server's IPv4 netmask.
*/
readonly netmaskV4: string;
/**
* The operating system of the server.
*/
readonly os: string;
/**
* The server's operating system ID.
*/
readonly osId: number;
/**
* The server's plan ID.
*/
readonly plan: string;
/**
* The amount of memory available on the server in MB.
*/
readonly ram: string;
/**
* The region ID of the server.
*/
readonly region: string;
/**
* The status of the server's subscription.
*/
readonly status: string;
/**
* A list of tags applied to the server.
*/
readonly tags: string[];
/**
* The scheme used for the default user (linux servers only).
*/
readonly userScheme: string;
readonly v6MainIp: string;
readonly v6Network: string;
readonly v6NetworkSize: number;
/**
* (Deprecated) A list of VPC 2.0 IDs attached to the server.
*/
readonly vpc2Ids: string[];
/**
* The ID of the VPC which is attached to the bare metal server.
*/
readonly vpcId: string;
}
/**
* Get information about a Vultr bare metal server.
*
* ## Example Usage
*
* Get the information for a server by `label`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myServer = vultr.getBareMetalServer({
* filters: [{
* name: "label",
* values: ["my-server-label"],
* }],
* });
* ```
*/
export declare function getBareMetalServerOutput(args?: GetBareMetalServerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBareMetalServerResult>;
/**
* A collection of arguments for invoking getBareMetalServer.
*/
export interface GetBareMetalServerOutputArgs {
/**
* Query parameters for finding servers.
*/
filters?: pulumi.Input<pulumi.Input<inputs.GetBareMetalServerFilterArgs>[]>;
}