@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
72 lines • 2.82 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.getWebhostingOutput = exports.getWebhosting = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about a webhosting.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by offer domain
* const byDomain = scaleway.hosting.getHosting({
* domain: "foobar.com",
* });
* // Get info by id
* const byId = scaleway.hosting.getHosting({
* webhostingId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getwebhosting.getWebhosting has been deprecated in favor of scaleway.hosting/gethosting.getHosting */
function getWebhosting(args, opts) {
pulumi.log.warn("getWebhosting is deprecated: scaleway.index/getwebhosting.getWebhosting has been deprecated in favor of scaleway.hosting/gethosting.getHosting");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getWebhosting:getWebhosting", {
"domain": args.domain,
"organizationId": args.organizationId,
"projectId": args.projectId,
"webhostingId": args.webhostingId,
}, opts);
}
exports.getWebhosting = getWebhosting;
/**
* Gets information about a webhosting.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Get info by offer domain
* const byDomain = scaleway.hosting.getHosting({
* domain: "foobar.com",
* });
* // Get info by id
* const byId = scaleway.hosting.getHosting({
* webhostingId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getwebhosting.getWebhosting has been deprecated in favor of scaleway.hosting/gethosting.getHosting */
function getWebhostingOutput(args, opts) {
pulumi.log.warn("getWebhosting is deprecated: scaleway.index/getwebhosting.getWebhosting has been deprecated in favor of scaleway.hosting/gethosting.getHosting");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getWebhosting:getWebhosting", {
"domain": args.domain,
"organizationId": args.organizationId,
"projectId": args.projectId,
"webhostingId": args.webhostingId,
}, opts);
}
exports.getWebhostingOutput = getWebhostingOutput;
//# sourceMappingURL=getWebhosting.js.map