@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
68 lines • 2.18 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.getHostingOutput = exports.getHosting = 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",
* });
* ```
*/
function getHosting(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:hosting/getHosting:getHosting", {
"domain": args.domain,
"organizationId": args.organizationId,
"projectId": args.projectId,
"webhostingId": args.webhostingId,
}, opts);
}
exports.getHosting = getHosting;
/**
* 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",
* });
* ```
*/
function getHostingOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:hosting/getHosting:getHosting", {
"domain": args.domain,
"organizationId": args.organizationId,
"projectId": args.projectId,
"webhostingId": args.webhostingId,
}, opts);
}
exports.getHostingOutput = getHostingOutput;
//# sourceMappingURL=getHosting.js.map