@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
96 lines (95 loc) • 3.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about a baremetal offer. For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*/
export declare function getOffer(args?: GetOfferArgs, opts?: pulumi.InvokeOptions): Promise<GetOfferResult>;
/**
* A collection of arguments for invoking getOffer.
*/
export interface GetOfferArgs {
includeDisabled?: boolean;
/**
* The offer name. Only one of `name` and `offerId` should be specified.
*/
name?: string;
/**
* The offer id. Only one of `name` and `offerId` should be specified.
*/
offerId?: string;
/**
* Period of subscription the desired offer. Should be `hourly` or `monthly`.
*/
subscriptionPeriod?: string;
/**
* `zone`) The zone in which the offer should be created.
*/
zone?: string;
}
/**
* A collection of values returned by getOffer.
*/
export interface GetOfferResult {
/**
* Available Bandwidth with the offer.
*/
readonly bandwidth: number;
/**
* Commercial range of the offer.
*/
readonly commercialRange: string;
/**
* A list of cpu specifications. (Structure is documented below.)
*/
readonly cpu: outputs.elasticmetal.GetOfferCpu;
/**
* A list of disk specifications. (Structure is documented below.)
*/
readonly disks: outputs.elasticmetal.GetOfferDisk[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly includeDisabled?: boolean;
/**
* A list of memory specifications. (Structure is documented below.)
*/
readonly memories: outputs.elasticmetal.GetOfferMemory[];
/**
* Name of the CPU.
*/
readonly name?: string;
readonly offerId?: string;
/**
* Stock status for this offer. Possible values are: `empty`, `low` or `available`.
*/
readonly stock: string;
readonly subscriptionPeriod?: string;
readonly zone: string;
}
/**
* Gets information about a baremetal offer. For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*/
export declare function getOfferOutput(args?: GetOfferOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOfferResult>;
/**
* A collection of arguments for invoking getOffer.
*/
export interface GetOfferOutputArgs {
includeDisabled?: pulumi.Input<boolean>;
/**
* The offer name. Only one of `name` and `offerId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* The offer id. Only one of `name` and `offerId` should be specified.
*/
offerId?: pulumi.Input<string>;
/**
* Period of subscription the desired offer. Should be `hourly` or `monthly`.
*/
subscriptionPeriod?: pulumi.Input<string>;
/**
* `zone`) The zone in which the offer should be created.
*/
zone?: pulumi.Input<string>;
}