UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

109 lines (108 loc) 3.23 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about a webhosting. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byDomain = scaleway.getWebhosting({ * domain: "foobar.com", * }); * const byId = scaleway.getWebhosting({ * webhostingId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getWebhosting(args?: GetWebhostingArgs, opts?: pulumi.InvokeOptions): Promise<GetWebhostingResult>; /** * A collection of arguments for invoking getWebhosting. */ export interface GetWebhostingArgs { /** * The hosting domain name. Only one of `domain` and `webhostingId` should be specified. */ domain?: string; /** * The ID of the organization the hosting is associated with. */ organizationId?: string; /** * `projectId`) The ID of the project the hosting is associated with. */ projectId?: string; /** * The hosting id. Only one of `domain` and `webhostingId` should be specified. */ webhostingId?: string; } /** * A collection of values returned by getWebhosting. */ export interface GetWebhostingResult { readonly cpanelUrls: outputs.GetWebhostingCpanelUrl[]; readonly createdAt: string; readonly dnsStatus: string; readonly domain?: string; readonly email: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly offerId: string; readonly offerName: string; readonly optionIds: string[]; readonly options: outputs.GetWebhostingOption[]; readonly organizationId: string; readonly platformHostname: string; readonly platformNumber: number; readonly projectId?: string; readonly region: string; readonly status: string; readonly tags: string[]; readonly updatedAt: string; readonly username: string; readonly webhostingId?: string; } /** * Gets information about a webhosting. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byDomain = scaleway.getWebhosting({ * domain: "foobar.com", * }); * const byId = scaleway.getWebhosting({ * webhostingId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getWebhostingOutput(args?: GetWebhostingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWebhostingResult>; /** * A collection of arguments for invoking getWebhosting. */ export interface GetWebhostingOutputArgs { /** * The hosting domain name. Only one of `domain` and `webhostingId` should be specified. */ domain?: pulumi.Input<string>; /** * The ID of the organization the hosting is associated with. */ organizationId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the hosting is associated with. */ projectId?: pulumi.Input<string>; /** * The hosting id. Only one of `domain` and `webhostingId` should be specified. */ webhostingId?: pulumi.Input<string>; }