@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
84 lines (83 loc) • 2.14 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Get information about operating systems that can be launched when creating a Vultr VPS.
*
* ## Example Usage
*
* Get the information for an operating system by `name`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const centos = vultr.getOs({
* filters: [{
* name: "name",
* values: ["CentOS 7 x64"],
* }],
* });
* ```
*/
export declare function getOs(args?: GetOsArgs, opts?: pulumi.InvokeOptions): Promise<GetOsResult>;
/**
* A collection of arguments for invoking getOs.
*/
export interface GetOsArgs {
/**
* Query parameters for finding operating systems.
*/
filters?: inputs.GetOsFilter[];
}
/**
* A collection of values returned by getOs.
*/
export interface GetOsResult {
/**
* The architecture of the operating system.
*/
readonly arch: string;
/**
* The family of the operating system.
*/
readonly family: string;
readonly filters?: outputs.GetOsFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The name of the operating system.
*/
readonly name: string;
}
/**
* Get information about operating systems that can be launched when creating a Vultr VPS.
*
* ## Example Usage
*
* Get the information for an operating system by `name`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const centos = vultr.getOs({
* filters: [{
* name: "name",
* values: ["CentOS 7 x64"],
* }],
* });
* ```
*/
export declare function getOsOutput(args?: GetOsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOsResult>;
/**
* A collection of arguments for invoking getOs.
*/
export interface GetOsOutputArgs {
/**
* Query parameters for finding operating systems.
*/
filters?: pulumi.Input<pulumi.Input<inputs.GetOsFilterArgs>[]>;
}