@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
76 lines • 3.17 kB
JavaScript
;
// *** 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 [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by server name
* const byName = scaleway.elasticmetal.getServer({
* name: "foobar",
* zone: "fr-par-2",
* });
* // Get info by server id
* const byId = scaleway.elasticmetal.getServer({
* serverId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getbaremetalserver.getBaremetalServer has been deprecated in favor of scaleway.elasticmetal/getserver.getServer */
function getBaremetalServer(args, opts) {
pulumi.log.warn("getBaremetalServer is deprecated: scaleway.index/getbaremetalserver.getBaremetalServer has been deprecated in favor of scaleway.elasticmetal/getserver.getServer");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getBaremetalServer:getBaremetalServer", {
"name": args.name,
"projectId": args.projectId,
"serverId": args.serverId,
"zone": args.zone,
}, opts);
}
exports.getBaremetalServer = getBaremetalServer;
/**
* Gets information about a baremetal server.
* For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by server name
* const byName = scaleway.elasticmetal.getServer({
* name: "foobar",
* zone: "fr-par-2",
* });
* // Get info by server id
* const byId = scaleway.elasticmetal.getServer({
* serverId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getbaremetalserver.getBaremetalServer has been deprecated in favor of scaleway.elasticmetal/getserver.getServer */
function getBaremetalServerOutput(args, opts) {
pulumi.log.warn("getBaremetalServer is deprecated: scaleway.index/getbaremetalserver.getBaremetalServer has been deprecated in favor of scaleway.elasticmetal/getserver.getServer");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getBaremetalServer:getBaremetalServer", {
"name": args.name,
"projectId": args.projectId,
"serverId": args.serverId,
"zone": args.zone,
}, opts);
}
exports.getBaremetalServerOutput = getBaremetalServerOutput;
//# sourceMappingURL=getBaremetalServer.js.map