Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getWebhosting
Explore with Pulumi AI
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.getWebhosting({
domain: "foobar.com",
});
// Get info by id
const byId = scaleway.getWebhosting({
webhostingId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by offer domain
by_domain = scaleway.get_webhosting(domain="foobar.com")
# Get info by id
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 {
// Get info by offer domain
_, err := scaleway.LookupWebhosting(ctx, &scaleway.LookupWebhostingArgs{
Domain: pulumi.StringRef("foobar.com"),
}, nil)
if err != nil {
return err
}
// Get info by id
_, 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(() =>
{
// Get info by offer domain
var byDomain = Scaleway.GetWebhosting.Invoke(new()
{
Domain = "foobar.com",
});
// Get info by id
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) {
// Get info by offer domain
final var byDomain = ScalewayFunctions.getWebhosting(GetWebhostingArgs.builder()
.domain("foobar.com")
.build());
// Get info by id
final var byId = ScalewayFunctions.getWebhosting(GetWebhostingArgs.builder()
.webhostingId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by offer domain
byDomain:
fn::invoke:
Function: scaleway:getWebhosting
Arguments:
domain: foobar.com
# Get info by id
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
andwebhosting_id
should be specified. - Organization
Id string - The ID of the organization the hosting is associated with.
- Project
Id string project_id
) The ID of the project the hosting is associated with.- Webhosting
Id string - The hosting id. Only one of
domain
andwebhosting_id
should be specified.
- Domain string
- The hosting domain name. Only one of
domain
andwebhosting_id
should be specified. - Organization
Id string - The ID of the organization the hosting is associated with.
- Project
Id string project_id
) The ID of the project the hosting is associated with.- Webhosting
Id string - The hosting id. Only one of
domain
andwebhosting_id
should be specified.
- domain String
- The hosting domain name. Only one of
domain
andwebhosting_id
should be specified. - organization
Id String - The ID of the organization the hosting is associated with.
- project
Id String project_id
) The ID of the project the hosting is associated with.- webhosting
Id String - The hosting id. Only one of
domain
andwebhosting_id
should be specified.
- domain string
- The hosting domain name. Only one of
domain
andwebhosting_id
should be specified. - organization
Id string - The ID of the organization the hosting is associated with.
- project
Id string project_id
) The ID of the project the hosting is associated with.- webhosting
Id string - The hosting id. Only one of
domain
andwebhosting_id
should be specified.
- domain str
- The hosting domain name. Only one of
domain
andwebhosting_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
andwebhosting_id
should be specified.
- domain String
- The hosting domain name. Only one of
domain
andwebhosting_id
should be specified. - organization
Id String - The ID of the organization the hosting is associated with.
- project
Id String project_id
) The ID of the project the hosting is associated with.- webhosting
Id String - The hosting id. Only one of
domain
andwebhosting_id
should be specified.
getWebhosting Result
The following output properties are available:
- Cpanel
Urls List<Pulumiverse.Scaleway. Outputs. Get Webhosting Cpanel Url> - Created
At string - Dns
Status string - Email string
- Id string
- The provider-assigned unique ID for this managed resource.
- Offer
Id string - Offer
Name string - Option
Ids List<string> - Options
List<Pulumiverse.
Scaleway. Outputs. Get Webhosting Option> - Organization
Id string - Platform
Hostname string - Platform
Number int - Region string
- Status string
- List<string>
- Updated
At string - Username string
- Domain string
- Project
Id string - Webhosting
Id string
- Cpanel
Urls []GetWebhosting Cpanel Url - Created
At string - Dns
Status string - Email string
- Id string
- The provider-assigned unique ID for this managed resource.
- Offer
Id string - Offer
Name string - Option
Ids []string - Options
[]Get
Webhosting Option - Organization
Id string - Platform
Hostname string - Platform
Number int - Region string
- Status string
- []string
- Updated
At string - Username string
- Domain string
- Project
Id string - Webhosting
Id string
- cpanel
Urls List<GetWebhosting Cpanel Url> - created
At String - dns
Status String - email String
- id String
- The provider-assigned unique ID for this managed resource.
- offer
Id String - offer
Name String - option
Ids List<String> - options
List<Get
Webhosting Option> - organization
Id String - platform
Hostname String - platform
Number Integer - region String
- status String
- List<String>
- updated
At String - username String
- domain String
- project
Id String - webhosting
Id String
- cpanel
Urls GetWebhosting Cpanel Url[] - created
At string - dns
Status string - email string
- id string
- The provider-assigned unique ID for this managed resource.
- offer
Id string - offer
Name string - option
Ids string[] - options
Get
Webhosting Option[] - organization
Id string - platform
Hostname string - platform
Number number - region string
- status string
- string[]
- updated
At string - username string
- domain string
- project
Id string - webhosting
Id string
- cpanel_
urls Sequence[GetWebhosting Cpanel Url] - created_
at str - dns_
status str - email str
- id str
- The provider-assigned unique ID for this managed resource.
- offer_
id str - offer_
name str - option_
ids Sequence[str] - options
Sequence[Get
Webhosting Option] - organization_
id str - platform_
hostname str - platform_
number int - region str
- status str
- Sequence[str]
- updated_
at str - username str
- domain str
- project_
id str - webhosting_
id str
- cpanel
Urls List<Property Map> - created
At String - dns
Status String - email String
- id String
- The provider-assigned unique ID for this managed resource.
- offer
Id String - offer
Name String - option
Ids List<String> - options List<Property Map>
- organization
Id String - platform
Hostname String - platform
Number Number - region String
- status String
- List<String>
- updated
At String - username String
- domain String
- project
Id String - webhosting
Id String
Supporting Types
GetWebhostingCpanelUrl
GetWebhostingOption
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.