UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

60 lines 2.07 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getBaremetalServerOutput = exports.getBaremetalServer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a baremetal server. * For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getBaremetalServer({ * name: "foobar", * zone: "fr-par-2", * }); * const byId = scaleway.getBaremetalServer({ * serverId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getBaremetalServer(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getBaremetalServer:getBaremetalServer", { "name": args.name, "serverId": args.serverId, "zone": args.zone, }, opts); } exports.getBaremetalServer = getBaremetalServer; /** * Gets information about a baremetal server. * For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getBaremetalServer({ * name: "foobar", * zone: "fr-par-2", * }); * const byId = scaleway.getBaremetalServer({ * serverId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getBaremetalServerOutput(args, opts) { return pulumi.output(args).apply((a) => getBaremetalServer(a, opts)); } exports.getBaremetalServerOutput = getBaremetalServerOutput; //# sourceMappingURL=getBaremetalServer.js.map