1. Packages
  2. Scaleway
  3. API Docs
  4. getWebhosting
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

scaleway.getWebhosting

Explore with Pulumi AI

scaleway logo
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

    Gets information about a webhosting.

    Example Usage

    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",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    by_domain = scaleway.get_webhosting(domain="foobar.com")
    by_id = scaleway.get_webhosting(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"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupWebhosting(ctx, &scaleway.LookupWebhostingArgs{
    			Domain: pulumi.StringRef("foobar.com"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.LookupWebhosting(ctx, &scaleway.LookupWebhostingArgs{
    			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(() => 
    {
        var byDomain = Scaleway.GetWebhosting.Invoke(new()
        {
            Domain = "foobar.com",
        });
    
        var byId = Scaleway.GetWebhosting.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.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetWebhostingArgs;
    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) {
            final var byDomain = ScalewayFunctions.getWebhosting(GetWebhostingArgs.builder()
                .domain("foobar.com")
                .build());
    
            final var byId = ScalewayFunctions.getWebhosting(GetWebhostingArgs.builder()
                .webhostingId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      byDomain:
        fn::invoke:
          Function: scaleway:getWebhosting
          Arguments:
            domain: foobar.com
      byId:
        fn::invoke:
          Function: scaleway:getWebhosting
          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)
    // Output-based functions aren't available in Java yet
    
    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 List<Pulumiverse.Scaleway.Outputs.GetWebhostingCpanelUrl>
    CreatedAt string
    DnsStatus string
    Email string
    Id string
    The provider-assigned unique ID for this managed resource.
    OfferId string
    OfferName string
    OptionIds List<string>
    Options List<Pulumiverse.Scaleway.Outputs.GetWebhostingOption>
    OrganizationId string
    PlatformHostname string
    PlatformNumber int
    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.
    OfferId string
    OfferName string
    OptionIds []string
    Options []GetWebhostingOption
    OrganizationId string
    PlatformHostname string
    PlatformNumber int
    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.
    offerId String
    offerName String
    optionIds List<String>
    options List<GetWebhostingOption>
    organizationId String
    platformHostname String
    platformNumber Integer
    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.
    offerId string
    offerName string
    optionIds string[]
    options GetWebhostingOption[]
    organizationId string
    platformHostname string
    platformNumber number
    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.
    offerId String
    offerName String
    optionIds List<String>
    options List<Property Map>
    organizationId String
    platformHostname String
    platformNumber Number
    region String
    status String
    tags List<String>
    updatedAt String
    username String
    domain String
    projectId String
    webhostingId String

    Supporting Types

    GetWebhostingCpanelUrl

    Dashboard string
    Webmail string
    Dashboard string
    Webmail string
    dashboard String
    webmail String
    dashboard string
    webmail string
    dashboard String
    webmail String

    GetWebhostingOption

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    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.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse