1. Packages
  2. Scaleway
  3. API Docs
  4. getWebhosting
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.getWebhosting

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse
Deprecated: scaleway.index/getwebhosting.getWebhosting has been deprecated in favor of scaleway.hosting/gethosting.getHosting

Gets information about a webhosting.

Example Usage

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",
});
Copy
import pulumi
import pulumi_scaleway as scaleway

# Get info by offer domain
by_domain = scaleway.hosting.get_hosting(domain="foobar.com")
# Get info by id
by_id = scaleway.hosting.get_hosting(webhosting_id="11111111-1111-1111-1111-111111111111")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/hosting"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get info by offer domain
		_, err := hosting.LookupHosting(ctx, &hosting.LookupHostingArgs{
			Domain: pulumi.StringRef("foobar.com"),
		}, nil)
		if err != nil {
			return err
		}
		// Get info by id
		_, err = hosting.LookupHosting(ctx, &hosting.LookupHostingArgs{
			WebhostingId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    // Get info by offer domain
    var byDomain = Scaleway.Hosting.GetHosting.Invoke(new()
    {
        Domain = "foobar.com",
    });

    // Get info by id
    var byId = Scaleway.Hosting.GetHosting.Invoke(new()
    {
        WebhostingId = "11111111-1111-1111-1111-111111111111",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.hosting.HostingFunctions;
import com.pulumi.scaleway.hosting.inputs.GetHostingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        // Get info by offer domain
        final var byDomain = HostingFunctions.getHosting(GetHostingArgs.builder()
            .domain("foobar.com")
            .build());

        // Get info by id
        final var byId = HostingFunctions.getHosting(GetHostingArgs.builder()
            .webhostingId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
Copy
variables:
  # Get info by offer domain
  byDomain:
    fn::invoke:
      function: scaleway:hosting:getHosting
      arguments:
        domain: foobar.com
  # Get info by id
  byId:
    fn::invoke:
      function: scaleway:hosting:getHosting
      arguments:
        webhostingId: 11111111-1111-1111-1111-111111111111
Copy

Using getWebhosting

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getWebhosting(args: GetWebhostingArgs, opts?: InvokeOptions): Promise<GetWebhostingResult>
function getWebhostingOutput(args: GetWebhostingOutputArgs, opts?: InvokeOptions): Output<GetWebhostingResult>
Copy
def get_webhosting(domain: Optional[str] = None,
                   organization_id: Optional[str] = None,
                   project_id: Optional[str] = None,
                   webhosting_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetWebhostingResult
def get_webhosting_output(domain: Optional[pulumi.Input[str]] = None,
                   organization_id: Optional[pulumi.Input[str]] = None,
                   project_id: Optional[pulumi.Input[str]] = None,
                   webhosting_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetWebhostingResult]
Copy
func LookupWebhosting(ctx *Context, args *LookupWebhostingArgs, opts ...InvokeOption) (*LookupWebhostingResult, error)
func LookupWebhostingOutput(ctx *Context, args *LookupWebhostingOutputArgs, opts ...InvokeOption) LookupWebhostingResultOutput
Copy

> Note: This function is named LookupWebhosting in the Go SDK.

public static class GetWebhosting 
{
    public static Task<GetWebhostingResult> InvokeAsync(GetWebhostingArgs args, InvokeOptions? opts = null)
    public static Output<GetWebhostingResult> Invoke(GetWebhostingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWebhostingResult> getWebhosting(GetWebhostingArgs args, InvokeOptions options)
public static Output<GetWebhostingResult> getWebhosting(GetWebhostingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:index/getWebhosting:getWebhosting
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain string
The hosting domain name. Only one of domain and webhosting_id should be specified.
OrganizationId string
The ID of the organization the hosting is associated with.
ProjectId string
project_id) The ID of the project the hosting is associated with.
WebhostingId string
The hosting id. Only one of domain and webhosting_id should be specified.
Domain string
The hosting domain name. Only one of domain and webhosting_id should be specified.
OrganizationId string
The ID of the organization the hosting is associated with.
ProjectId string
project_id) The ID of the project the hosting is associated with.
WebhostingId string
The hosting id. Only one of domain and webhosting_id should be specified.
domain String
The hosting domain name. Only one of domain and webhosting_id should be specified.
organizationId String
The ID of the organization the hosting is associated with.
projectId String
project_id) The ID of the project the hosting is associated with.
webhostingId String
The hosting id. Only one of domain and webhosting_id should be specified.
domain string
The hosting domain name. Only one of domain and webhosting_id should be specified.
organizationId string
The ID of the organization the hosting is associated with.
projectId string
project_id) The ID of the project the hosting is associated with.
webhostingId string
The hosting id. Only one of domain and webhosting_id should be specified.
domain str
The hosting domain name. Only one of domain and webhosting_id should be specified.
organization_id str
The ID of the organization the hosting is associated with.
project_id str
project_id) The ID of the project the hosting is associated with.
webhosting_id str
The hosting id. Only one of domain and webhosting_id should be specified.
domain String
The hosting domain name. Only one of domain and webhosting_id should be specified.
organizationId String
The ID of the organization the hosting is associated with.
projectId String
project_id) The ID of the project the hosting is associated with.
webhostingId String
The hosting id. Only one of domain and webhosting_id should be specified.

getWebhosting Result

The following output properties are available:

CpanelUrls []GetWebhostingCpanelUrl
CreatedAt string
DnsStatus string
Email string
Id string
The provider-assigned unique ID for this managed resource.
NameServers []GetWebhostingNameServer
OfferId string
OfferName string
OptionIds []string
Options []GetWebhostingOption
OrganizationId string
PlatformHostname string
PlatformNumber int
Records []GetWebhostingRecord
Region string
Status string
Tags []string
UpdatedAt string
Username string
Domain string
ProjectId string
WebhostingId string
cpanelUrls List<GetWebhostingCpanelUrl>
createdAt String
dnsStatus String
email String
id String
The provider-assigned unique ID for this managed resource.
nameServers List<GetWebhostingNameServer>
offerId String
offerName String
optionIds List<String>
options List<GetWebhostingOption>
organizationId String
platformHostname String
platformNumber Integer
records List<GetWebhostingRecord>
region String
status String
tags List<String>
updatedAt String
username String
domain String
projectId String
webhostingId String
cpanelUrls GetWebhostingCpanelUrl[]
createdAt string
dnsStatus string
email string
id string
The provider-assigned unique ID for this managed resource.
nameServers GetWebhostingNameServer[]
offerId string
offerName string
optionIds string[]
options GetWebhostingOption[]
organizationId string
platformHostname string
platformNumber number
records GetWebhostingRecord[]
region string
status string
tags string[]
updatedAt string
username string
domain string
projectId string
webhostingId string
cpanelUrls List<Property Map>
createdAt String
dnsStatus String
email String
id String
The provider-assigned unique ID for this managed resource.
nameServers List<Property Map>
offerId String
offerName String
optionIds List<String>
options List<Property Map>
organizationId String
platformHostname String
platformNumber Number
records List<Property Map>
region String
status String
tags List<String>
updatedAt String
username String
domain String
projectId String
webhostingId String

Supporting Types

GetWebhostingCpanelUrl

Dashboard This property is required. string
Webmail This property is required. string
Dashboard This property is required. string
Webmail This property is required. string
dashboard This property is required. String
webmail This property is required. String
dashboard This property is required. string
webmail This property is required. string
dashboard This property is required. str
webmail This property is required. str
dashboard This property is required. String
webmail This property is required. String

GetWebhostingNameServer

Hostname This property is required. string
IsDefault This property is required. bool
Status This property is required. string
Hostname This property is required. string
IsDefault This property is required. bool
Status This property is required. string
hostname This property is required. String
isDefault This property is required. Boolean
status This property is required. String
hostname This property is required. string
isDefault This property is required. boolean
status This property is required. string
hostname This property is required. str
is_default This property is required. bool
status This property is required. str
hostname This property is required. String
isDefault This property is required. Boolean
status This property is required. String

GetWebhostingOption

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

GetWebhostingRecord

Name This property is required. string
Priority This property is required. int
Status This property is required. string
Ttl This property is required. int
Type This property is required. string
Value This property is required. string
Name This property is required. string
Priority This property is required. int
Status This property is required. string
Ttl This property is required. int
Type This property is required. string
Value This property is required. string
name This property is required. String
priority This property is required. Integer
status This property is required. String
ttl This property is required. Integer
type This property is required. String
value This property is required. String
name This property is required. string
priority This property is required. number
status This property is required. string
ttl This property is required. number
type This property is required. string
value This property is required. string
name This property is required. str
priority This property is required. int
status This property is required. str
ttl This property is required. int
type This property is required. str
value This property is required. str
name This property is required. String
priority This property is required. Number
status This property is required. String
ttl This property is required. Number
type This property is required. String
value This property is required. String

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse