@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
109 lines (108 loc) • 2.79 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 plan.
*
* ## Example Usage
*
* Get the information for a plan by `id`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myPlan = vultr.getBareMetalPlan({
* filters: [{
* name: "id",
* values: ["vbm-4c-32gb"],
* }],
* });
* ```
*/
export declare function getBareMetalPlan(args?: GetBareMetalPlanArgs, opts?: pulumi.InvokeOptions): Promise<GetBareMetalPlanResult>;
/**
* A collection of arguments for invoking getBareMetalPlan.
*/
export interface GetBareMetalPlanArgs {
/**
* Query parameters for finding plans.
*/
filters?: inputs.GetBareMetalPlanFilter[];
}
/**
* A collection of values returned by getBareMetalPlan.
*/
export interface GetBareMetalPlanResult {
/**
* The bandwidth available on the plan.
*/
readonly bandwidth: number;
/**
* The number of CPUs available on the plan.
*/
readonly cpuCount: number;
/**
* The CPU model of the plan.
*/
readonly cpuModel: string;
/**
* The number of CPU threads.
*/
readonly cpuThreads: number;
/**
* The description of the disk(s) on the plan.
*/
readonly disk: number;
/**
* The number of disks that this plan offers.
*/
readonly diskCount: number;
readonly filters?: outputs.GetBareMetalPlanFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly locations: string[];
/**
* The price per month of the plan in USD.
*/
readonly monthlyCost: number;
/**
* The amount of memory available on the plan in MB.
*/
readonly ram: number;
/**
* The type of plan it is.
*/
readonly type: string;
}
/**
* Get information about a Vultr bare metal server plan.
*
* ## Example Usage
*
* Get the information for a plan by `id`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myPlan = vultr.getBareMetalPlan({
* filters: [{
* name: "id",
* values: ["vbm-4c-32gb"],
* }],
* });
* ```
*/
export declare function getBareMetalPlanOutput(args?: GetBareMetalPlanOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBareMetalPlanResult>;
/**
* A collection of arguments for invoking getBareMetalPlan.
*/
export interface GetBareMetalPlanOutputArgs {
/**
* Query parameters for finding plans.
*/
filters?: pulumi.Input<pulumi.Input<inputs.GetBareMetalPlanFilterArgs>[]>;
}