1. Packages
  2. Scaleway
  3. API Docs
  4. getWebhosting
Scaleway v1.34.0 published on Friday, Sep 12, 2025 by pulumiverse

scaleway.getWebhosting

Explore with Pulumi AI

scaleway logo
Scaleway v1.34.0 published on Friday, Sep 12, 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 "@pulumiverse/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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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>
    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]
    func LookupWebhosting(ctx *Context, args *LookupWebhostingArgs, opts ...InvokeOption) (*LookupWebhostingResult, error)
    func LookupWebhostingOutput(ctx *Context, args *LookupWebhostingOutputArgs, opts ...InvokeOption) LookupWebhostingResultOutput

    > 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)
    }
    public static CompletableFuture<GetWebhostingResult> getWebhosting(GetWebhostingArgs args, InvokeOptions options)
    public static Output<GetWebhostingResult> getWebhosting(GetWebhostingArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:index/getWebhosting:getWebhosting
      arguments:
        # arguments dictionary

    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 string
    URL to connect to dashboard interface
    Webmail string
    URL to connect to Webmail interface
    Dashboard string
    URL to connect to dashboard interface
    Webmail string
    URL to connect to Webmail interface
    dashboard String
    URL to connect to dashboard interface
    webmail String
    URL to connect to Webmail interface
    dashboard string
    URL to connect to dashboard interface
    webmail string
    URL to connect to Webmail interface
    dashboard str
    URL to connect to dashboard interface
    webmail str
    URL to connect to Webmail interface
    dashboard String
    URL to connect to dashboard interface
    webmail String
    URL to connect to Webmail interface

    GetWebhostingNameServer

    Hostname string
    Hostname of the server
    IsDefault bool
    Whether or not the webhosting is the default one
    Status string
    Status of the nameserver
    Hostname string
    Hostname of the server
    IsDefault bool
    Whether or not the webhosting is the default one
    Status string
    Status of the nameserver
    hostname String
    Hostname of the server
    isDefault Boolean
    Whether or not the webhosting is the default one
    status String
    Status of the nameserver
    hostname string
    Hostname of the server
    isDefault boolean
    Whether or not the webhosting is the default one
    status string
    Status of the nameserver
    hostname str
    Hostname of the server
    is_default bool
    Whether or not the webhosting is the default one
    status str
    Status of the nameserver
    hostname String
    Hostname of the server
    isDefault Boolean
    Whether or not the webhosting is the default one
    status String
    Status of the nameserver

    GetWebhostingOption

    Id string
    ID of the active option
    Name string
    Name of the option
    Id string
    ID of the active option
    Name string
    Name of the option
    id String
    ID of the active option
    name String
    Name of the option
    id string
    ID of the active option
    name string
    Name of the option
    id str
    ID of the active option
    name str
    Name of the option
    id String
    ID of the active option
    name String
    Name of the option

    GetWebhostingRecord

    Name string
    Name of the DNS record
    Priority int
    Priority of DNS records associated with the webhosting.
    Status string
    Status of the hosting record
    Ttl int
    Time to live in seconds of the record
    Type string
    Type of the DNS record
    Value string
    Value of the DNS record
    Name string
    Name of the DNS record
    Priority int
    Priority of DNS records associated with the webhosting.
    Status string
    Status of the hosting record
    Ttl int
    Time to live in seconds of the record
    Type string
    Type of the DNS record
    Value string
    Value of the DNS record
    name String
    Name of the DNS record
    priority Integer
    Priority of DNS records associated with the webhosting.
    status String
    Status of the hosting record
    ttl Integer
    Time to live in seconds of the record
    type String
    Type of the DNS record
    value String
    Value of the DNS record
    name string
    Name of the DNS record
    priority number
    Priority of DNS records associated with the webhosting.
    status string
    Status of the hosting record
    ttl number
    Time to live in seconds of the record
    type string
    Type of the DNS record
    value string
    Value of the DNS record
    name str
    Name of the DNS record
    priority int
    Priority of DNS records associated with the webhosting.
    status str
    Status of the hosting record
    ttl int
    Time to live in seconds of the record
    type str
    Type of the DNS record
    value str
    Value of the DNS record
    name String
    Name of the DNS record
    priority Number
    Priority of DNS records associated with the webhosting.
    status String
    Status of the hosting record
    ttl Number
    Time to live in seconds of the record
    type String
    Type of the DNS record
    value String
    Value of the DNS record

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.34.0 published on Friday, Sep 12, 2025 by pulumiverse