scaleway.Webhosting
Explore with Pulumi AI
Creates and manages Scaleway Web Hostings. For more information, see the documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
import * as scaleway from "@pulumiverse/scaleway";
const byName = scaleway.getWebHostOffer({
name: "lite",
});
const main = new scaleway.Webhosting("main", {
offerId: byName.then(byName => byName.offerId),
email: "your@email.com",
domain: "yourdomain.com",
tags: [
"webhosting",
"provider",
"terraform",
],
});
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway
by_name = scaleway.get_web_host_offer(name="lite")
main = scaleway.Webhosting("main",
offer_id=by_name.offer_id,
email="your@email.com",
domain="yourdomain.com",
tags=[
"webhosting",
"provider",
"terraform",
])
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 {
byName, err := scaleway.GetWebHostOffer(ctx, &scaleway.GetWebHostOfferArgs{
Name: pulumi.StringRef("lite"),
}, nil)
if err != nil {
return err
}
_, err = scaleway.NewWebhosting(ctx, "main", &scaleway.WebhostingArgs{
OfferId: pulumi.String(byName.OfferId),
Email: pulumi.String("your@email.com"),
Domain: pulumi.String("yourdomain.com"),
Tags: pulumi.StringArray{
pulumi.String("webhosting"),
pulumi.String("provider"),
pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var byName = Scaleway.GetWebHostOffer.Invoke(new()
{
Name = "lite",
});
var main = new Scaleway.Webhosting("main", new()
{
OfferId = byName.Apply(getWebHostOfferResult => getWebHostOfferResult.OfferId),
Email = "your@email.com",
Domain = "yourdomain.com",
Tags = new[]
{
"webhosting",
"provider",
"terraform",
},
});
});
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.GetWebHostOfferArgs;
import com.pulumi.scaleway.Webhosting;
import com.pulumi.scaleway.WebhostingArgs;
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 byName = ScalewayFunctions.getWebHostOffer(GetWebHostOfferArgs.builder()
.name("lite")
.build());
var main = new Webhosting("main", WebhostingArgs.builder()
.offerId(byName.applyValue(getWebHostOfferResult -> getWebHostOfferResult.offerId()))
.email("your@email.com")
.domain("yourdomain.com")
.tags(
"webhosting",
"provider",
"terraform")
.build());
}
}
resources:
main:
type: scaleway:Webhosting
properties:
offerId: ${byName.offerId}
email: your@email.com
domain: yourdomain.com
tags:
- webhosting
- provider
- terraform
variables:
byName:
fn::invoke:
Function: scaleway:getWebHostOffer
Arguments:
name: lite
Create Webhosting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhosting(name: string, args: WebhostingArgs, opts?: CustomResourceOptions);
@overload
def Webhosting(resource_name: str,
args: WebhostingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Webhosting(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
email: Optional[str] = None,
offer_id: Optional[str] = None,
option_ids: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewWebhosting(ctx *Context, name string, args WebhostingArgs, opts ...ResourceOption) (*Webhosting, error)
public Webhosting(string name, WebhostingArgs args, CustomResourceOptions? opts = null)
public Webhosting(String name, WebhostingArgs args)
public Webhosting(String name, WebhostingArgs args, CustomResourceOptions options)
type: scaleway:Webhosting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebhostingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WebhostingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WebhostingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhostingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhostingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var webhostingResource = new Scaleway.Webhosting("webhostingResource", new()
{
Domain = "string",
Email = "string",
OfferId = "string",
OptionIds = new[]
{
"string",
},
ProjectId = "string",
Region = "string",
Tags = new[]
{
"string",
},
});
example, err := scaleway.NewWebhosting(ctx, "webhostingResource", &scaleway.WebhostingArgs{
Domain: pulumi.String("string"),
Email: pulumi.String("string"),
OfferId: pulumi.String("string"),
OptionIds: pulumi.StringArray{
pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var webhostingResource = new Webhosting("webhostingResource", WebhostingArgs.builder()
.domain("string")
.email("string")
.offerId("string")
.optionIds("string")
.projectId("string")
.region("string")
.tags("string")
.build());
webhosting_resource = scaleway.Webhosting("webhostingResource",
domain="string",
email="string",
offer_id="string",
option_ids=["string"],
project_id="string",
region="string",
tags=["string"])
const webhostingResource = new scaleway.Webhosting("webhostingResource", {
domain: "string",
email: "string",
offerId: "string",
optionIds: ["string"],
projectId: "string",
region: "string",
tags: ["string"],
});
type: scaleway:Webhosting
properties:
domain: string
email: string
offerId: string
optionIds:
- string
projectId: string
region: string
tags:
- string
Webhosting Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Webhosting resource accepts the following input properties:
- Domain string
- The domain name of the hosting.
- Email string
- The contact email of the client for the hosting.
- Offer
Id string - The ID of the selected offer for the hosting.
- Option
Ids List<string> - The IDs of the selected options for the hosting.
- Project
Id string project_id
) The ID of the project the VPC is associated with.- Region string
region
) The region of the Hosting.- List<string>
- The tags associated with the hosting.
- Domain string
- The domain name of the hosting.
- Email string
- The contact email of the client for the hosting.
- Offer
Id string - The ID of the selected offer for the hosting.
- Option
Ids []string - The IDs of the selected options for the hosting.
- Project
Id string project_id
) The ID of the project the VPC is associated with.- Region string
region
) The region of the Hosting.- []string
- The tags associated with the hosting.
- domain String
- The domain name of the hosting.
- email String
- The contact email of the client for the hosting.
- offer
Id String - The ID of the selected offer for the hosting.
- option
Ids List<String> - The IDs of the selected options for the hosting.
- project
Id String project_id
) The ID of the project the VPC is associated with.- region String
region
) The region of the Hosting.- List<String>
- The tags associated with the hosting.
- domain string
- The domain name of the hosting.
- email string
- The contact email of the client for the hosting.
- offer
Id string - The ID of the selected offer for the hosting.
- option
Ids string[] - The IDs of the selected options for the hosting.
- project
Id string project_id
) The ID of the project the VPC is associated with.- region string
region
) The region of the Hosting.- string[]
- The tags associated with the hosting.
- domain str
- The domain name of the hosting.
- email str
- The contact email of the client for the hosting.
- offer_
id str - The ID of the selected offer for the hosting.
- option_
ids Sequence[str] - The IDs of the selected options for the hosting.
- project_
id str project_id
) The ID of the project the VPC is associated with.- region str
region
) The region of the Hosting.- Sequence[str]
- The tags associated with the hosting.
- domain String
- The domain name of the hosting.
- email String
- The contact email of the client for the hosting.
- offer
Id String - The ID of the selected offer for the hosting.
- option
Ids List<String> - The IDs of the selected options for the hosting.
- project
Id String project_id
) The ID of the project the VPC is associated with.- region String
region
) The region of the Hosting.- List<String>
- The tags associated with the hosting.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhosting resource produces the following output properties:
- Cpanel
Urls List<Pulumiverse.Scaleway. Outputs. Webhosting Cpanel Url> - The URL to connect to cPanel Dashboard and to Webmail interface.
- Created
At string - Date and time of hosting's creation (RFC 3339 format).
- Dns
Status string - The DNS status of the hosting.
- Id string
- The provider-assigned unique ID for this managed resource.
- Offer
Name string - The name of the active offer.
- Options
List<Pulumiverse.
Scaleway. Outputs. Webhosting Option> - The active options of the hosting.
- Organization
Id string - The organization ID the hosting is associated with.
- Platform
Hostname string - The hostname of the host platform.
- Platform
Number int - The number of the host platform.
- Status string
- The hosting status.
- Updated
At string - Date and time of hosting's last update (RFC 3339 format).
- Username string
- The main hosting cPanel username.
- Cpanel
Urls []WebhostingCpanel Url - The URL to connect to cPanel Dashboard and to Webmail interface.
- Created
At string - Date and time of hosting's creation (RFC 3339 format).
- Dns
Status string - The DNS status of the hosting.
- Id string
- The provider-assigned unique ID for this managed resource.
- Offer
Name string - The name of the active offer.
- Options
[]Webhosting
Option - The active options of the hosting.
- Organization
Id string - The organization ID the hosting is associated with.
- Platform
Hostname string - The hostname of the host platform.
- Platform
Number int - The number of the host platform.
- Status string
- The hosting status.
- Updated
At string - Date and time of hosting's last update (RFC 3339 format).
- Username string
- The main hosting cPanel username.
- cpanel
Urls List<WebhostingCpanel Url> - The URL to connect to cPanel Dashboard and to Webmail interface.
- created
At String - Date and time of hosting's creation (RFC 3339 format).
- dns
Status String - The DNS status of the hosting.
- id String
- The provider-assigned unique ID for this managed resource.
- offer
Name String - The name of the active offer.
- options
List<Webhosting
Option> - The active options of the hosting.
- organization
Id String - The organization ID the hosting is associated with.
- platform
Hostname String - The hostname of the host platform.
- platform
Number Integer - The number of the host platform.
- status String
- The hosting status.
- updated
At String - Date and time of hosting's last update (RFC 3339 format).
- username String
- The main hosting cPanel username.
- cpanel
Urls WebhostingCpanel Url[] - The URL to connect to cPanel Dashboard and to Webmail interface.
- created
At string - Date and time of hosting's creation (RFC 3339 format).
- dns
Status string - The DNS status of the hosting.
- id string
- The provider-assigned unique ID for this managed resource.
- offer
Name string - The name of the active offer.
- options
Webhosting
Option[] - The active options of the hosting.
- organization
Id string - The organization ID the hosting is associated with.
- platform
Hostname string - The hostname of the host platform.
- platform
Number number - The number of the host platform.
- status string
- The hosting status.
- updated
At string - Date and time of hosting's last update (RFC 3339 format).
- username string
- The main hosting cPanel username.
- cpanel_
urls Sequence[WebhostingCpanel Url] - The URL to connect to cPanel Dashboard and to Webmail interface.
- created_
at str - Date and time of hosting's creation (RFC 3339 format).
- dns_
status str - The DNS status of the hosting.
- id str
- The provider-assigned unique ID for this managed resource.
- offer_
name str - The name of the active offer.
- options
Sequence[Webhosting
Option] - The active options of the hosting.
- organization_
id str - The organization ID the hosting is associated with.
- platform_
hostname str - The hostname of the host platform.
- platform_
number int - The number of the host platform.
- status str
- The hosting status.
- updated_
at str - Date and time of hosting's last update (RFC 3339 format).
- username str
- The main hosting cPanel username.
- cpanel
Urls List<Property Map> - The URL to connect to cPanel Dashboard and to Webmail interface.
- created
At String - Date and time of hosting's creation (RFC 3339 format).
- dns
Status String - The DNS status of the hosting.
- id String
- The provider-assigned unique ID for this managed resource.
- offer
Name String - The name of the active offer.
- options List<Property Map>
- The active options of the hosting.
- organization
Id String - The organization ID the hosting is associated with.
- platform
Hostname String - The hostname of the host platform.
- platform
Number Number - The number of the host platform.
- status String
- The hosting status.
- updated
At String - Date and time of hosting's last update (RFC 3339 format).
- username String
- The main hosting cPanel username.
Look up Existing Webhosting Resource
Get an existing Webhosting resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WebhostingState, opts?: CustomResourceOptions): Webhosting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cpanel_urls: Optional[Sequence[WebhostingCpanelUrlArgs]] = None,
created_at: Optional[str] = None,
dns_status: Optional[str] = None,
domain: Optional[str] = None,
email: Optional[str] = None,
offer_id: Optional[str] = None,
offer_name: Optional[str] = None,
option_ids: Optional[Sequence[str]] = None,
options: Optional[Sequence[WebhostingOptionArgs]] = None,
organization_id: Optional[str] = None,
platform_hostname: Optional[str] = None,
platform_number: Optional[int] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
username: Optional[str] = None) -> Webhosting
func GetWebhosting(ctx *Context, name string, id IDInput, state *WebhostingState, opts ...ResourceOption) (*Webhosting, error)
public static Webhosting Get(string name, Input<string> id, WebhostingState? state, CustomResourceOptions? opts = null)
public static Webhosting get(String name, Output<String> id, WebhostingState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cpanel
Urls List<Pulumiverse.Scaleway. Inputs. Webhosting Cpanel Url> - The URL to connect to cPanel Dashboard and to Webmail interface.
- Created
At string - Date and time of hosting's creation (RFC 3339 format).
- Dns
Status string - The DNS status of the hosting.
- Domain string
- The domain name of the hosting.
- Email string
- The contact email of the client for the hosting.
- Offer
Id string - The ID of the selected offer for the hosting.
- Offer
Name string - The name of the active offer.
- Option
Ids List<string> - The IDs of the selected options for the hosting.
- Options
List<Pulumiverse.
Scaleway. Inputs. Webhosting Option> - The active options of the hosting.
- Organization
Id string - The organization ID the hosting is associated with.
- Platform
Hostname string - The hostname of the host platform.
- Platform
Number int - The number of the host platform.
- Project
Id string project_id
) The ID of the project the VPC is associated with.- Region string
region
) The region of the Hosting.- Status string
- The hosting status.
- List<string>
- The tags associated with the hosting.
- Updated
At string - Date and time of hosting's last update (RFC 3339 format).
- Username string
- The main hosting cPanel username.
- Cpanel
Urls []WebhostingCpanel Url Args - The URL to connect to cPanel Dashboard and to Webmail interface.
- Created
At string - Date and time of hosting's creation (RFC 3339 format).
- Dns
Status string - The DNS status of the hosting.
- Domain string
- The domain name of the hosting.
- Email string
- The contact email of the client for the hosting.
- Offer
Id string - The ID of the selected offer for the hosting.
- Offer
Name string - The name of the active offer.
- Option
Ids []string - The IDs of the selected options for the hosting.
- Options
[]Webhosting
Option Args - The active options of the hosting.
- Organization
Id string - The organization ID the hosting is associated with.
- Platform
Hostname string - The hostname of the host platform.
- Platform
Number int - The number of the host platform.
- Project
Id string project_id
) The ID of the project the VPC is associated with.- Region string
region
) The region of the Hosting.- Status string
- The hosting status.
- []string
- The tags associated with the hosting.
- Updated
At string - Date and time of hosting's last update (RFC 3339 format).
- Username string
- The main hosting cPanel username.
- cpanel
Urls List<WebhostingCpanel Url> - The URL to connect to cPanel Dashboard and to Webmail interface.
- created
At String - Date and time of hosting's creation (RFC 3339 format).
- dns
Status String - The DNS status of the hosting.
- domain String
- The domain name of the hosting.
- email String
- The contact email of the client for the hosting.
- offer
Id String - The ID of the selected offer for the hosting.
- offer
Name String - The name of the active offer.
- option
Ids List<String> - The IDs of the selected options for the hosting.
- options
List<Webhosting
Option> - The active options of the hosting.
- organization
Id String - The organization ID the hosting is associated with.
- platform
Hostname String - The hostname of the host platform.
- platform
Number Integer - The number of the host platform.
- project
Id String project_id
) The ID of the project the VPC is associated with.- region String
region
) The region of the Hosting.- status String
- The hosting status.
- List<String>
- The tags associated with the hosting.
- updated
At String - Date and time of hosting's last update (RFC 3339 format).
- username String
- The main hosting cPanel username.
- cpanel
Urls WebhostingCpanel Url[] - The URL to connect to cPanel Dashboard and to Webmail interface.
- created
At string - Date and time of hosting's creation (RFC 3339 format).
- dns
Status string - The DNS status of the hosting.
- domain string
- The domain name of the hosting.
- email string
- The contact email of the client for the hosting.
- offer
Id string - The ID of the selected offer for the hosting.
- offer
Name string - The name of the active offer.
- option
Ids string[] - The IDs of the selected options for the hosting.
- options
Webhosting
Option[] - The active options of the hosting.
- organization
Id string - The organization ID the hosting is associated with.
- platform
Hostname string - The hostname of the host platform.
- platform
Number number - The number of the host platform.
- project
Id string project_id
) The ID of the project the VPC is associated with.- region string
region
) The region of the Hosting.- status string
- The hosting status.
- string[]
- The tags associated with the hosting.
- updated
At string - Date and time of hosting's last update (RFC 3339 format).
- username string
- The main hosting cPanel username.
- cpanel_
urls Sequence[WebhostingCpanel Url Args] - The URL to connect to cPanel Dashboard and to Webmail interface.
- created_
at str - Date and time of hosting's creation (RFC 3339 format).
- dns_
status str - The DNS status of the hosting.
- domain str
- The domain name of the hosting.
- email str
- The contact email of the client for the hosting.
- offer_
id str - The ID of the selected offer for the hosting.
- offer_
name str - The name of the active offer.
- option_
ids Sequence[str] - The IDs of the selected options for the hosting.
- options
Sequence[Webhosting
Option Args] - The active options of the hosting.
- organization_
id str - The organization ID the hosting is associated with.
- platform_
hostname str - The hostname of the host platform.
- platform_
number int - The number of the host platform.
- project_
id str project_id
) The ID of the project the VPC is associated with.- region str
region
) The region of the Hosting.- status str
- The hosting status.
- Sequence[str]
- The tags associated with the hosting.
- updated_
at str - Date and time of hosting's last update (RFC 3339 format).
- username str
- The main hosting cPanel username.
- cpanel
Urls List<Property Map> - The URL to connect to cPanel Dashboard and to Webmail interface.
- created
At String - Date and time of hosting's creation (RFC 3339 format).
- dns
Status String - The DNS status of the hosting.
- domain String
- The domain name of the hosting.
- email String
- The contact email of the client for the hosting.
- offer
Id String - The ID of the selected offer for the hosting.
- offer
Name String - The name of the active offer.
- option
Ids List<String> - The IDs of the selected options for the hosting.
- options List<Property Map>
- The active options of the hosting.
- organization
Id String - The organization ID the hosting is associated with.
- platform
Hostname String - The hostname of the host platform.
- platform
Number Number - The number of the host platform.
- project
Id String project_id
) The ID of the project the VPC is associated with.- region String
region
) The region of the Hosting.- status String
- The hosting status.
- List<String>
- The tags associated with the hosting.
- updated
At String - Date and time of hosting's last update (RFC 3339 format).
- username String
- The main hosting cPanel username.
Supporting Types
WebhostingCpanelUrl, WebhostingCpanelUrlArgs
WebhostingOption, WebhostingOptionArgs
Import
Hostings can be imported using the {region}/{id}
, e.g.
bash
$ pulumi import scaleway:index/webhosting:Webhosting hosting01 fr-par/11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.