webhosting

package
v0.0.0-...-c33e12d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOfferArgs

type GetOfferArgs struct {
	// The offer name. Only one of `name` and `offerId` should be specified.
	Name *string `pulumi:"name"`
	// The offer id. Only one of `name` and `offerId` should be specified.
	OfferId *string `pulumi:"offerId"`
	// `region`) The region in which offer exists.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getOffer.

type GetOfferOutputArgs

type GetOfferOutputArgs struct {
	// The offer name. Only one of `name` and `offerId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The offer id. Only one of `name` and `offerId` should be specified.
	OfferId pulumi.StringPtrInput `pulumi:"offerId"`
	// `region`) The region in which offer exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getOffer.

func (GetOfferOutputArgs) ElementType

func (GetOfferOutputArgs) ElementType() reflect.Type

type GetOfferProduct

type GetOfferProduct struct {
	// The quota of databases.
	DatabasesQuota int `pulumi:"databasesQuota"`
	// The quota of email accounts.
	EmailAccountsQuota int `pulumi:"emailAccountsQuota"`
	// The quota of email storage.
	EmailStorageQuota int `pulumi:"emailStorageQuota"`
	// The quota of hosting storage.
	HostingStorageQuota int `pulumi:"hostingStorageQuota"`
	// The offer name. Only one of `name` and `offerId` should be specified.
	Name string `pulumi:"name"`
	// The product option.
	Option bool `pulumi:"option"`
	// The capacity of the memory in GB.
	Ram int `pulumi:"ram"`
	// If support is included.
	SupportIncluded bool `pulumi:"supportIncluded"`
	// The number of cores.
	VCpu int `pulumi:"vCpu"`
}

type GetOfferProductArgs

type GetOfferProductArgs struct {
	// The quota of databases.
	DatabasesQuota pulumi.IntInput `pulumi:"databasesQuota"`
	// The quota of email accounts.
	EmailAccountsQuota pulumi.IntInput `pulumi:"emailAccountsQuota"`
	// The quota of email storage.
	EmailStorageQuota pulumi.IntInput `pulumi:"emailStorageQuota"`
	// The quota of hosting storage.
	HostingStorageQuota pulumi.IntInput `pulumi:"hostingStorageQuota"`
	// The offer name. Only one of `name` and `offerId` should be specified.
	Name pulumi.StringInput `pulumi:"name"`
	// The product option.
	Option pulumi.BoolInput `pulumi:"option"`
	// The capacity of the memory in GB.
	Ram pulumi.IntInput `pulumi:"ram"`
	// If support is included.
	SupportIncluded pulumi.BoolInput `pulumi:"supportIncluded"`
	// The number of cores.
	VCpu pulumi.IntInput `pulumi:"vCpu"`
}

func (GetOfferProductArgs) ElementType

func (GetOfferProductArgs) ElementType() reflect.Type

func (GetOfferProductArgs) ToGetOfferProductOutput

func (i GetOfferProductArgs) ToGetOfferProductOutput() GetOfferProductOutput

func (GetOfferProductArgs) ToGetOfferProductOutputWithContext

func (i GetOfferProductArgs) ToGetOfferProductOutputWithContext(ctx context.Context) GetOfferProductOutput

type GetOfferProductArray

type GetOfferProductArray []GetOfferProductInput

func (GetOfferProductArray) ElementType

func (GetOfferProductArray) ElementType() reflect.Type

func (GetOfferProductArray) ToGetOfferProductArrayOutput

func (i GetOfferProductArray) ToGetOfferProductArrayOutput() GetOfferProductArrayOutput

func (GetOfferProductArray) ToGetOfferProductArrayOutputWithContext

func (i GetOfferProductArray) ToGetOfferProductArrayOutputWithContext(ctx context.Context) GetOfferProductArrayOutput

type GetOfferProductArrayInput

type GetOfferProductArrayInput interface {
	pulumi.Input

	ToGetOfferProductArrayOutput() GetOfferProductArrayOutput
	ToGetOfferProductArrayOutputWithContext(context.Context) GetOfferProductArrayOutput
}

GetOfferProductArrayInput is an input type that accepts GetOfferProductArray and GetOfferProductArrayOutput values. You can construct a concrete instance of `GetOfferProductArrayInput` via:

GetOfferProductArray{ GetOfferProductArgs{...} }

type GetOfferProductArrayOutput

type GetOfferProductArrayOutput struct{ *pulumi.OutputState }

func (GetOfferProductArrayOutput) ElementType

func (GetOfferProductArrayOutput) ElementType() reflect.Type

func (GetOfferProductArrayOutput) Index

func (GetOfferProductArrayOutput) ToGetOfferProductArrayOutput

func (o GetOfferProductArrayOutput) ToGetOfferProductArrayOutput() GetOfferProductArrayOutput

func (GetOfferProductArrayOutput) ToGetOfferProductArrayOutputWithContext

func (o GetOfferProductArrayOutput) ToGetOfferProductArrayOutputWithContext(ctx context.Context) GetOfferProductArrayOutput

type GetOfferProductInput

type GetOfferProductInput interface {
	pulumi.Input

	ToGetOfferProductOutput() GetOfferProductOutput
	ToGetOfferProductOutputWithContext(context.Context) GetOfferProductOutput
}

GetOfferProductInput is an input type that accepts GetOfferProductArgs and GetOfferProductOutput values. You can construct a concrete instance of `GetOfferProductInput` via:

GetOfferProductArgs{...}

type GetOfferProductOutput

type GetOfferProductOutput struct{ *pulumi.OutputState }

func (GetOfferProductOutput) DatabasesQuota

func (o GetOfferProductOutput) DatabasesQuota() pulumi.IntOutput

The quota of databases.

func (GetOfferProductOutput) ElementType

func (GetOfferProductOutput) ElementType() reflect.Type

func (GetOfferProductOutput) EmailAccountsQuota

func (o GetOfferProductOutput) EmailAccountsQuota() pulumi.IntOutput

The quota of email accounts.

func (GetOfferProductOutput) EmailStorageQuota

func (o GetOfferProductOutput) EmailStorageQuota() pulumi.IntOutput

The quota of email storage.

func (GetOfferProductOutput) HostingStorageQuota

func (o GetOfferProductOutput) HostingStorageQuota() pulumi.IntOutput

The quota of hosting storage.

func (GetOfferProductOutput) Name

The offer name. Only one of `name` and `offerId` should be specified.

func (GetOfferProductOutput) Option

The product option.

func (GetOfferProductOutput) Ram

The capacity of the memory in GB.

func (GetOfferProductOutput) SupportIncluded

func (o GetOfferProductOutput) SupportIncluded() pulumi.BoolOutput

If support is included.

func (GetOfferProductOutput) ToGetOfferProductOutput

func (o GetOfferProductOutput) ToGetOfferProductOutput() GetOfferProductOutput

func (GetOfferProductOutput) ToGetOfferProductOutputWithContext

func (o GetOfferProductOutput) ToGetOfferProductOutputWithContext(ctx context.Context) GetOfferProductOutput

func (GetOfferProductOutput) VCpu

The number of cores.

type GetOfferResult

type GetOfferResult struct {
	// The unique identifier used for billing.
	BillingOperationPath string `pulumi:"billingOperationPath"`
	// The provider-assigned unique ID for this managed resource.
	Id      string  `pulumi:"id"`
	Name    *string `pulumi:"name"`
	OfferId *string `pulumi:"offerId"`
	// The offer price.
	Price string `pulumi:"price"`
	// The offer product.
	Products []GetOfferProduct `pulumi:"products"`
	Region   string            `pulumi:"region"`
}

A collection of values returned by getOffer.

func GetOffer

func GetOffer(ctx *pulumi.Context, args *GetOfferArgs, opts ...pulumi.InvokeOption) (*GetOfferResult, error)

Gets information about a webhosting offer.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/webhosting"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := webhosting.GetOffer(ctx, &webhosting.GetOfferArgs{
			Name: pulumi.StringRef("performance"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = webhosting.GetOffer(ctx, &webhosting.GetOfferArgs{
			OfferId: pulumi.StringRef("de2426b4-a9e9-11ec-b909-0242ac120002"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetOfferResultOutput

type GetOfferResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOffer.

func (GetOfferResultOutput) BillingOperationPath

func (o GetOfferResultOutput) BillingOperationPath() pulumi.StringOutput

The unique identifier used for billing.

func (GetOfferResultOutput) ElementType

func (GetOfferResultOutput) ElementType() reflect.Type

func (GetOfferResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetOfferResultOutput) Name

func (GetOfferResultOutput) OfferId

func (GetOfferResultOutput) Price

The offer price.

func (GetOfferResultOutput) Products

The offer product.

func (GetOfferResultOutput) Region

func (GetOfferResultOutput) ToGetOfferResultOutput

func (o GetOfferResultOutput) ToGetOfferResultOutput() GetOfferResultOutput

func (GetOfferResultOutput) ToGetOfferResultOutputWithContext

func (o GetOfferResultOutput) ToGetOfferResultOutputWithContext(ctx context.Context) GetOfferResultOutput

type GetWebHostingCpanelUrl

type GetWebHostingCpanelUrl struct {
	Dashboard string `pulumi:"dashboard"`
	Webmail   string `pulumi:"webmail"`
}

type GetWebHostingCpanelUrlArgs

type GetWebHostingCpanelUrlArgs struct {
	Dashboard pulumi.StringInput `pulumi:"dashboard"`
	Webmail   pulumi.StringInput `pulumi:"webmail"`
}

func (GetWebHostingCpanelUrlArgs) ElementType

func (GetWebHostingCpanelUrlArgs) ElementType() reflect.Type

func (GetWebHostingCpanelUrlArgs) ToGetWebHostingCpanelUrlOutput

func (i GetWebHostingCpanelUrlArgs) ToGetWebHostingCpanelUrlOutput() GetWebHostingCpanelUrlOutput

func (GetWebHostingCpanelUrlArgs) ToGetWebHostingCpanelUrlOutputWithContext

func (i GetWebHostingCpanelUrlArgs) ToGetWebHostingCpanelUrlOutputWithContext(ctx context.Context) GetWebHostingCpanelUrlOutput

type GetWebHostingCpanelUrlArray

type GetWebHostingCpanelUrlArray []GetWebHostingCpanelUrlInput

func (GetWebHostingCpanelUrlArray) ElementType

func (GetWebHostingCpanelUrlArray) ToGetWebHostingCpanelUrlArrayOutput

func (i GetWebHostingCpanelUrlArray) ToGetWebHostingCpanelUrlArrayOutput() GetWebHostingCpanelUrlArrayOutput

func (GetWebHostingCpanelUrlArray) ToGetWebHostingCpanelUrlArrayOutputWithContext

func (i GetWebHostingCpanelUrlArray) ToGetWebHostingCpanelUrlArrayOutputWithContext(ctx context.Context) GetWebHostingCpanelUrlArrayOutput

type GetWebHostingCpanelUrlArrayInput

type GetWebHostingCpanelUrlArrayInput interface {
	pulumi.Input

	ToGetWebHostingCpanelUrlArrayOutput() GetWebHostingCpanelUrlArrayOutput
	ToGetWebHostingCpanelUrlArrayOutputWithContext(context.Context) GetWebHostingCpanelUrlArrayOutput
}

GetWebHostingCpanelUrlArrayInput is an input type that accepts GetWebHostingCpanelUrlArray and GetWebHostingCpanelUrlArrayOutput values. You can construct a concrete instance of `GetWebHostingCpanelUrlArrayInput` via:

GetWebHostingCpanelUrlArray{ GetWebHostingCpanelUrlArgs{...} }

type GetWebHostingCpanelUrlArrayOutput

type GetWebHostingCpanelUrlArrayOutput struct{ *pulumi.OutputState }

func (GetWebHostingCpanelUrlArrayOutput) ElementType

func (GetWebHostingCpanelUrlArrayOutput) Index

func (GetWebHostingCpanelUrlArrayOutput) ToGetWebHostingCpanelUrlArrayOutput

func (o GetWebHostingCpanelUrlArrayOutput) ToGetWebHostingCpanelUrlArrayOutput() GetWebHostingCpanelUrlArrayOutput

func (GetWebHostingCpanelUrlArrayOutput) ToGetWebHostingCpanelUrlArrayOutputWithContext

func (o GetWebHostingCpanelUrlArrayOutput) ToGetWebHostingCpanelUrlArrayOutputWithContext(ctx context.Context) GetWebHostingCpanelUrlArrayOutput

type GetWebHostingCpanelUrlInput

type GetWebHostingCpanelUrlInput interface {
	pulumi.Input

	ToGetWebHostingCpanelUrlOutput() GetWebHostingCpanelUrlOutput
	ToGetWebHostingCpanelUrlOutputWithContext(context.Context) GetWebHostingCpanelUrlOutput
}

GetWebHostingCpanelUrlInput is an input type that accepts GetWebHostingCpanelUrlArgs and GetWebHostingCpanelUrlOutput values. You can construct a concrete instance of `GetWebHostingCpanelUrlInput` via:

GetWebHostingCpanelUrlArgs{...}

type GetWebHostingCpanelUrlOutput

type GetWebHostingCpanelUrlOutput struct{ *pulumi.OutputState }

func (GetWebHostingCpanelUrlOutput) Dashboard

func (GetWebHostingCpanelUrlOutput) ElementType

func (GetWebHostingCpanelUrlOutput) ToGetWebHostingCpanelUrlOutput

func (o GetWebHostingCpanelUrlOutput) ToGetWebHostingCpanelUrlOutput() GetWebHostingCpanelUrlOutput

func (GetWebHostingCpanelUrlOutput) ToGetWebHostingCpanelUrlOutputWithContext

func (o GetWebHostingCpanelUrlOutput) ToGetWebHostingCpanelUrlOutputWithContext(ctx context.Context) GetWebHostingCpanelUrlOutput

func (GetWebHostingCpanelUrlOutput) Webmail

type GetWebHostingOption

type GetWebHostingOption struct {
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

type GetWebHostingOptionArgs

type GetWebHostingOptionArgs struct {
	Id   pulumi.StringInput `pulumi:"id"`
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetWebHostingOptionArgs) ElementType

func (GetWebHostingOptionArgs) ElementType() reflect.Type

func (GetWebHostingOptionArgs) ToGetWebHostingOptionOutput

func (i GetWebHostingOptionArgs) ToGetWebHostingOptionOutput() GetWebHostingOptionOutput

func (GetWebHostingOptionArgs) ToGetWebHostingOptionOutputWithContext

func (i GetWebHostingOptionArgs) ToGetWebHostingOptionOutputWithContext(ctx context.Context) GetWebHostingOptionOutput

type GetWebHostingOptionArray

type GetWebHostingOptionArray []GetWebHostingOptionInput

func (GetWebHostingOptionArray) ElementType

func (GetWebHostingOptionArray) ElementType() reflect.Type

func (GetWebHostingOptionArray) ToGetWebHostingOptionArrayOutput

func (i GetWebHostingOptionArray) ToGetWebHostingOptionArrayOutput() GetWebHostingOptionArrayOutput

func (GetWebHostingOptionArray) ToGetWebHostingOptionArrayOutputWithContext

func (i GetWebHostingOptionArray) ToGetWebHostingOptionArrayOutputWithContext(ctx context.Context) GetWebHostingOptionArrayOutput

type GetWebHostingOptionArrayInput

type GetWebHostingOptionArrayInput interface {
	pulumi.Input

	ToGetWebHostingOptionArrayOutput() GetWebHostingOptionArrayOutput
	ToGetWebHostingOptionArrayOutputWithContext(context.Context) GetWebHostingOptionArrayOutput
}

GetWebHostingOptionArrayInput is an input type that accepts GetWebHostingOptionArray and GetWebHostingOptionArrayOutput values. You can construct a concrete instance of `GetWebHostingOptionArrayInput` via:

GetWebHostingOptionArray{ GetWebHostingOptionArgs{...} }

type GetWebHostingOptionArrayOutput

type GetWebHostingOptionArrayOutput struct{ *pulumi.OutputState }

func (GetWebHostingOptionArrayOutput) ElementType

func (GetWebHostingOptionArrayOutput) Index

func (GetWebHostingOptionArrayOutput) ToGetWebHostingOptionArrayOutput

func (o GetWebHostingOptionArrayOutput) ToGetWebHostingOptionArrayOutput() GetWebHostingOptionArrayOutput

func (GetWebHostingOptionArrayOutput) ToGetWebHostingOptionArrayOutputWithContext

func (o GetWebHostingOptionArrayOutput) ToGetWebHostingOptionArrayOutputWithContext(ctx context.Context) GetWebHostingOptionArrayOutput

type GetWebHostingOptionInput

type GetWebHostingOptionInput interface {
	pulumi.Input

	ToGetWebHostingOptionOutput() GetWebHostingOptionOutput
	ToGetWebHostingOptionOutputWithContext(context.Context) GetWebHostingOptionOutput
}

GetWebHostingOptionInput is an input type that accepts GetWebHostingOptionArgs and GetWebHostingOptionOutput values. You can construct a concrete instance of `GetWebHostingOptionInput` via:

GetWebHostingOptionArgs{...}

type GetWebHostingOptionOutput

type GetWebHostingOptionOutput struct{ *pulumi.OutputState }

func (GetWebHostingOptionOutput) ElementType

func (GetWebHostingOptionOutput) ElementType() reflect.Type

func (GetWebHostingOptionOutput) Id

func (GetWebHostingOptionOutput) Name

func (GetWebHostingOptionOutput) ToGetWebHostingOptionOutput

func (o GetWebHostingOptionOutput) ToGetWebHostingOptionOutput() GetWebHostingOptionOutput

func (GetWebHostingOptionOutput) ToGetWebHostingOptionOutputWithContext

func (o GetWebHostingOptionOutput) ToGetWebHostingOptionOutputWithContext(ctx context.Context) GetWebHostingOptionOutput

type LookupWebHostingArgs

type LookupWebHostingArgs struct {
	// The hosting domain name. Only one of `domain` and `webhostingId` should be specified.
	Domain *string `pulumi:"domain"`
	// The ID of the organization the hosting is associated with.
	OrganizationId *string `pulumi:"organizationId"`
	// `projectId`) The ID of the project the hosting is associated with.
	ProjectId *string `pulumi:"projectId"`
	// The hosting id. Only one of `domain` and `webhostingId` should be specified.
	WebhostingId *string `pulumi:"webhostingId"`
}

A collection of arguments for invoking getWebHosting.

type LookupWebHostingOutputArgs

type LookupWebHostingOutputArgs struct {
	// The hosting domain name. Only one of `domain` and `webhostingId` should be specified.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// The ID of the organization the hosting is associated with.
	OrganizationId pulumi.StringPtrInput `pulumi:"organizationId"`
	// `projectId`) The ID of the project the hosting is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// The hosting id. Only one of `domain` and `webhostingId` should be specified.
	WebhostingId pulumi.StringPtrInput `pulumi:"webhostingId"`
}

A collection of arguments for invoking getWebHosting.

func (LookupWebHostingOutputArgs) ElementType

func (LookupWebHostingOutputArgs) ElementType() reflect.Type

type LookupWebHostingResult

type LookupWebHostingResult struct {
	CpanelUrls []GetWebHostingCpanelUrl `pulumi:"cpanelUrls"`
	CreatedAt  string                   `pulumi:"createdAt"`
	DnsStatus  string                   `pulumi:"dnsStatus"`
	Domain     *string                  `pulumi:"domain"`
	Email      string                   `pulumi:"email"`
	// The provider-assigned unique ID for this managed resource.
	Id               string                `pulumi:"id"`
	OfferId          string                `pulumi:"offerId"`
	OfferName        string                `pulumi:"offerName"`
	OptionIds        []string              `pulumi:"optionIds"`
	Options          []GetWebHostingOption `pulumi:"options"`
	OrganizationId   string                `pulumi:"organizationId"`
	PlatformHostname string                `pulumi:"platformHostname"`
	PlatformNumber   int                   `pulumi:"platformNumber"`
	ProjectId        *string               `pulumi:"projectId"`
	Region           string                `pulumi:"region"`
	Status           string                `pulumi:"status"`
	Tags             []string              `pulumi:"tags"`
	UpdatedAt        string                `pulumi:"updatedAt"`
	Username         string                `pulumi:"username"`
	WebhostingId     *string               `pulumi:"webhostingId"`
}

A collection of values returned by getWebHosting.

func LookupWebHosting

func LookupWebHosting(ctx *pulumi.Context, args *LookupWebHostingArgs, opts ...pulumi.InvokeOption) (*LookupWebHostingResult, error)

Gets information about a webhosting.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/webhosting"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := webhosting.LookupWebHosting(ctx, &webhosting.LookupWebHostingArgs{
			Domain: pulumi.StringRef("foobar.com"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = webhosting.LookupWebHosting(ctx, &webhosting.LookupWebHostingArgs{
			WebhostingId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupWebHostingResultOutput

type LookupWebHostingResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getWebHosting.

func (LookupWebHostingResultOutput) CpanelUrls

func (LookupWebHostingResultOutput) CreatedAt

func (LookupWebHostingResultOutput) DnsStatus

func (LookupWebHostingResultOutput) Domain

func (LookupWebHostingResultOutput) ElementType

func (LookupWebHostingResultOutput) Email

func (LookupWebHostingResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupWebHostingResultOutput) OfferId

func (LookupWebHostingResultOutput) OfferName

func (LookupWebHostingResultOutput) OptionIds

func (LookupWebHostingResultOutput) Options

func (LookupWebHostingResultOutput) OrganizationId

func (LookupWebHostingResultOutput) PlatformHostname

func (o LookupWebHostingResultOutput) PlatformHostname() pulumi.StringOutput

func (LookupWebHostingResultOutput) PlatformNumber

func (o LookupWebHostingResultOutput) PlatformNumber() pulumi.IntOutput

func (LookupWebHostingResultOutput) ProjectId

func (LookupWebHostingResultOutput) Region

func (LookupWebHostingResultOutput) Status

func (LookupWebHostingResultOutput) Tags

func (LookupWebHostingResultOutput) ToLookupWebHostingResultOutput

func (o LookupWebHostingResultOutput) ToLookupWebHostingResultOutput() LookupWebHostingResultOutput

func (LookupWebHostingResultOutput) ToLookupWebHostingResultOutputWithContext

func (o LookupWebHostingResultOutput) ToLookupWebHostingResultOutputWithContext(ctx context.Context) LookupWebHostingResultOutput

func (LookupWebHostingResultOutput) UpdatedAt

func (LookupWebHostingResultOutput) Username

func (LookupWebHostingResultOutput) WebhostingId

type WebHosting

type WebHosting struct {
	pulumi.CustomResourceState

	// The URL to connect to cPanel Dashboard and to Webmail interface.
	CpanelUrls WebHostingCpanelUrlArrayOutput `pulumi:"cpanelUrls"`
	// Date and time of hosting's creation (RFC 3339 format).
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The DNS status of the hosting.
	DnsStatus pulumi.StringOutput `pulumi:"dnsStatus"`
	// The domain name of the hosting.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The contact email of the client for the hosting.
	Email pulumi.StringOutput `pulumi:"email"`
	// The ID of the selected offer for the hosting.
	OfferId pulumi.StringOutput `pulumi:"offerId"`
	// The name of the active offer.
	OfferName pulumi.StringOutput `pulumi:"offerName"`
	// The IDs of the selected options for the hosting.
	OptionIds pulumi.StringArrayOutput `pulumi:"optionIds"`
	// The active options of the hosting.
	Options WebHostingOptionArrayOutput `pulumi:"options"`
	// The organization ID the hosting is associated with.
	OrganizationId pulumi.StringOutput `pulumi:"organizationId"`
	// The hostname of the host platform.
	PlatformHostname pulumi.StringOutput `pulumi:"platformHostname"`
	// The number of the host platform.
	PlatformNumber pulumi.IntOutput `pulumi:"platformNumber"`
	// `projectId`) The ID of the project the VPC is associated with.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`) The region of the Hosting.
	Region pulumi.StringOutput `pulumi:"region"`
	// The hosting status.
	Status pulumi.StringOutput `pulumi:"status"`
	// The tags associated with the hosting.
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
	// Date and time of hosting's last update (RFC 3339 format).
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
	// The main hosting cPanel username.
	Username pulumi.StringOutput `pulumi:"username"`
}

Creates and manages Scaleway Web Hostings. For more information, see [the documentation](https://www.scaleway.com/en/developers/api/webhosting/).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/webhosting"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		byName, err := webhosting.GetOffer(ctx, &webhosting.GetOfferArgs{
			Name: pulumi.StringRef("lite"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = webhosting.NewWebHosting(ctx, "main", &webhosting.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
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Hostings can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:webhosting/webHosting:WebHosting hosting01 fr-par/11111111-1111-1111-1111-111111111111 ```

func GetWebHosting

func GetWebHosting(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WebHostingState, opts ...pulumi.ResourceOption) (*WebHosting, error)

GetWebHosting gets an existing WebHosting resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWebHosting

func NewWebHosting(ctx *pulumi.Context,
	name string, args *WebHostingArgs, opts ...pulumi.ResourceOption) (*WebHosting, error)

NewWebHosting registers a new resource with the given unique name, arguments, and options.

func (*WebHosting) ElementType

func (*WebHosting) ElementType() reflect.Type

func (*WebHosting) ToWebHostingOutput

func (i *WebHosting) ToWebHostingOutput() WebHostingOutput

func (*WebHosting) ToWebHostingOutputWithContext

func (i *WebHosting) ToWebHostingOutputWithContext(ctx context.Context) WebHostingOutput

type WebHostingArgs

type WebHostingArgs struct {
	// The domain name of the hosting.
	Domain pulumi.StringInput
	// The contact email of the client for the hosting.
	Email pulumi.StringInput
	// The ID of the selected offer for the hosting.
	OfferId pulumi.StringInput
	// The IDs of the selected options for the hosting.
	OptionIds pulumi.StringArrayInput
	// `projectId`) The ID of the project the VPC is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`) The region of the Hosting.
	Region pulumi.StringPtrInput
	// The tags associated with the hosting.
	Tags pulumi.StringArrayInput
}

The set of arguments for constructing a WebHosting resource.

func (WebHostingArgs) ElementType

func (WebHostingArgs) ElementType() reflect.Type

type WebHostingArray

type WebHostingArray []WebHostingInput

func (WebHostingArray) ElementType

func (WebHostingArray) ElementType() reflect.Type

func (WebHostingArray) ToWebHostingArrayOutput

func (i WebHostingArray) ToWebHostingArrayOutput() WebHostingArrayOutput

func (WebHostingArray) ToWebHostingArrayOutputWithContext

func (i WebHostingArray) ToWebHostingArrayOutputWithContext(ctx context.Context) WebHostingArrayOutput

type WebHostingArrayInput

type WebHostingArrayInput interface {
	pulumi.Input

	ToWebHostingArrayOutput() WebHostingArrayOutput
	ToWebHostingArrayOutputWithContext(context.Context) WebHostingArrayOutput
}

WebHostingArrayInput is an input type that accepts WebHostingArray and WebHostingArrayOutput values. You can construct a concrete instance of `WebHostingArrayInput` via:

WebHostingArray{ WebHostingArgs{...} }

type WebHostingArrayOutput

type WebHostingArrayOutput struct{ *pulumi.OutputState }

func (WebHostingArrayOutput) ElementType

func (WebHostingArrayOutput) ElementType() reflect.Type

func (WebHostingArrayOutput) Index

func (WebHostingArrayOutput) ToWebHostingArrayOutput

func (o WebHostingArrayOutput) ToWebHostingArrayOutput() WebHostingArrayOutput

func (WebHostingArrayOutput) ToWebHostingArrayOutputWithContext

func (o WebHostingArrayOutput) ToWebHostingArrayOutputWithContext(ctx context.Context) WebHostingArrayOutput

type WebHostingCpanelUrl

type WebHostingCpanelUrl struct {
	// The URL of the Dashboard.
	Dashboard *string `pulumi:"dashboard"`
	// The URL of the Webmail interface.
	Webmail *string `pulumi:"webmail"`
}

type WebHostingCpanelUrlArgs

type WebHostingCpanelUrlArgs struct {
	// The URL of the Dashboard.
	Dashboard pulumi.StringPtrInput `pulumi:"dashboard"`
	// The URL of the Webmail interface.
	Webmail pulumi.StringPtrInput `pulumi:"webmail"`
}

func (WebHostingCpanelUrlArgs) ElementType

func (WebHostingCpanelUrlArgs) ElementType() reflect.Type

func (WebHostingCpanelUrlArgs) ToWebHostingCpanelUrlOutput

func (i WebHostingCpanelUrlArgs) ToWebHostingCpanelUrlOutput() WebHostingCpanelUrlOutput

func (WebHostingCpanelUrlArgs) ToWebHostingCpanelUrlOutputWithContext

func (i WebHostingCpanelUrlArgs) ToWebHostingCpanelUrlOutputWithContext(ctx context.Context) WebHostingCpanelUrlOutput

type WebHostingCpanelUrlArray

type WebHostingCpanelUrlArray []WebHostingCpanelUrlInput

func (WebHostingCpanelUrlArray) ElementType

func (WebHostingCpanelUrlArray) ElementType() reflect.Type

func (WebHostingCpanelUrlArray) ToWebHostingCpanelUrlArrayOutput

func (i WebHostingCpanelUrlArray) ToWebHostingCpanelUrlArrayOutput() WebHostingCpanelUrlArrayOutput

func (WebHostingCpanelUrlArray) ToWebHostingCpanelUrlArrayOutputWithContext

func (i WebHostingCpanelUrlArray) ToWebHostingCpanelUrlArrayOutputWithContext(ctx context.Context) WebHostingCpanelUrlArrayOutput

type WebHostingCpanelUrlArrayInput

type WebHostingCpanelUrlArrayInput interface {
	pulumi.Input

	ToWebHostingCpanelUrlArrayOutput() WebHostingCpanelUrlArrayOutput
	ToWebHostingCpanelUrlArrayOutputWithContext(context.Context) WebHostingCpanelUrlArrayOutput
}

WebHostingCpanelUrlArrayInput is an input type that accepts WebHostingCpanelUrlArray and WebHostingCpanelUrlArrayOutput values. You can construct a concrete instance of `WebHostingCpanelUrlArrayInput` via:

WebHostingCpanelUrlArray{ WebHostingCpanelUrlArgs{...} }

type WebHostingCpanelUrlArrayOutput

type WebHostingCpanelUrlArrayOutput struct{ *pulumi.OutputState }

func (WebHostingCpanelUrlArrayOutput) ElementType

func (WebHostingCpanelUrlArrayOutput) Index

func (WebHostingCpanelUrlArrayOutput) ToWebHostingCpanelUrlArrayOutput

func (o WebHostingCpanelUrlArrayOutput) ToWebHostingCpanelUrlArrayOutput() WebHostingCpanelUrlArrayOutput

func (WebHostingCpanelUrlArrayOutput) ToWebHostingCpanelUrlArrayOutputWithContext

func (o WebHostingCpanelUrlArrayOutput) ToWebHostingCpanelUrlArrayOutputWithContext(ctx context.Context) WebHostingCpanelUrlArrayOutput

type WebHostingCpanelUrlInput

type WebHostingCpanelUrlInput interface {
	pulumi.Input

	ToWebHostingCpanelUrlOutput() WebHostingCpanelUrlOutput
	ToWebHostingCpanelUrlOutputWithContext(context.Context) WebHostingCpanelUrlOutput
}

WebHostingCpanelUrlInput is an input type that accepts WebHostingCpanelUrlArgs and WebHostingCpanelUrlOutput values. You can construct a concrete instance of `WebHostingCpanelUrlInput` via:

WebHostingCpanelUrlArgs{...}

type WebHostingCpanelUrlOutput

type WebHostingCpanelUrlOutput struct{ *pulumi.OutputState }

func (WebHostingCpanelUrlOutput) Dashboard

The URL of the Dashboard.

func (WebHostingCpanelUrlOutput) ElementType

func (WebHostingCpanelUrlOutput) ElementType() reflect.Type

func (WebHostingCpanelUrlOutput) ToWebHostingCpanelUrlOutput

func (o WebHostingCpanelUrlOutput) ToWebHostingCpanelUrlOutput() WebHostingCpanelUrlOutput

func (WebHostingCpanelUrlOutput) ToWebHostingCpanelUrlOutputWithContext

func (o WebHostingCpanelUrlOutput) ToWebHostingCpanelUrlOutputWithContext(ctx context.Context) WebHostingCpanelUrlOutput

func (WebHostingCpanelUrlOutput) Webmail

The URL of the Webmail interface.

type WebHostingInput

type WebHostingInput interface {
	pulumi.Input

	ToWebHostingOutput() WebHostingOutput
	ToWebHostingOutputWithContext(ctx context.Context) WebHostingOutput
}

type WebHostingMap

type WebHostingMap map[string]WebHostingInput

func (WebHostingMap) ElementType

func (WebHostingMap) ElementType() reflect.Type

func (WebHostingMap) ToWebHostingMapOutput

func (i WebHostingMap) ToWebHostingMapOutput() WebHostingMapOutput

func (WebHostingMap) ToWebHostingMapOutputWithContext

func (i WebHostingMap) ToWebHostingMapOutputWithContext(ctx context.Context) WebHostingMapOutput

type WebHostingMapInput

type WebHostingMapInput interface {
	pulumi.Input

	ToWebHostingMapOutput() WebHostingMapOutput
	ToWebHostingMapOutputWithContext(context.Context) WebHostingMapOutput
}

WebHostingMapInput is an input type that accepts WebHostingMap and WebHostingMapOutput values. You can construct a concrete instance of `WebHostingMapInput` via:

WebHostingMap{ "key": WebHostingArgs{...} }

type WebHostingMapOutput

type WebHostingMapOutput struct{ *pulumi.OutputState }

func (WebHostingMapOutput) ElementType

func (WebHostingMapOutput) ElementType() reflect.Type

func (WebHostingMapOutput) MapIndex

func (WebHostingMapOutput) ToWebHostingMapOutput

func (o WebHostingMapOutput) ToWebHostingMapOutput() WebHostingMapOutput

func (WebHostingMapOutput) ToWebHostingMapOutputWithContext

func (o WebHostingMapOutput) ToWebHostingMapOutputWithContext(ctx context.Context) WebHostingMapOutput

type WebHostingOption

type WebHostingOption struct {
	// The option ID.
	Id *string `pulumi:"id"`
	// The option name.
	Name *string `pulumi:"name"`
}

type WebHostingOptionArgs

type WebHostingOptionArgs struct {
	// The option ID.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The option name.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

func (WebHostingOptionArgs) ElementType

func (WebHostingOptionArgs) ElementType() reflect.Type

func (WebHostingOptionArgs) ToWebHostingOptionOutput

func (i WebHostingOptionArgs) ToWebHostingOptionOutput() WebHostingOptionOutput

func (WebHostingOptionArgs) ToWebHostingOptionOutputWithContext

func (i WebHostingOptionArgs) ToWebHostingOptionOutputWithContext(ctx context.Context) WebHostingOptionOutput

type WebHostingOptionArray

type WebHostingOptionArray []WebHostingOptionInput

func (WebHostingOptionArray) ElementType

func (WebHostingOptionArray) ElementType() reflect.Type

func (WebHostingOptionArray) ToWebHostingOptionArrayOutput

func (i WebHostingOptionArray) ToWebHostingOptionArrayOutput() WebHostingOptionArrayOutput

func (WebHostingOptionArray) ToWebHostingOptionArrayOutputWithContext

func (i WebHostingOptionArray) ToWebHostingOptionArrayOutputWithContext(ctx context.Context) WebHostingOptionArrayOutput

type WebHostingOptionArrayInput

type WebHostingOptionArrayInput interface {
	pulumi.Input

	ToWebHostingOptionArrayOutput() WebHostingOptionArrayOutput
	ToWebHostingOptionArrayOutputWithContext(context.Context) WebHostingOptionArrayOutput
}

WebHostingOptionArrayInput is an input type that accepts WebHostingOptionArray and WebHostingOptionArrayOutput values. You can construct a concrete instance of `WebHostingOptionArrayInput` via:

WebHostingOptionArray{ WebHostingOptionArgs{...} }

type WebHostingOptionArrayOutput

type WebHostingOptionArrayOutput struct{ *pulumi.OutputState }

func (WebHostingOptionArrayOutput) ElementType

func (WebHostingOptionArrayOutput) Index

func (WebHostingOptionArrayOutput) ToWebHostingOptionArrayOutput

func (o WebHostingOptionArrayOutput) ToWebHostingOptionArrayOutput() WebHostingOptionArrayOutput

func (WebHostingOptionArrayOutput) ToWebHostingOptionArrayOutputWithContext

func (o WebHostingOptionArrayOutput) ToWebHostingOptionArrayOutputWithContext(ctx context.Context) WebHostingOptionArrayOutput

type WebHostingOptionInput

type WebHostingOptionInput interface {
	pulumi.Input

	ToWebHostingOptionOutput() WebHostingOptionOutput
	ToWebHostingOptionOutputWithContext(context.Context) WebHostingOptionOutput
}

WebHostingOptionInput is an input type that accepts WebHostingOptionArgs and WebHostingOptionOutput values. You can construct a concrete instance of `WebHostingOptionInput` via:

WebHostingOptionArgs{...}

type WebHostingOptionOutput

type WebHostingOptionOutput struct{ *pulumi.OutputState }

func (WebHostingOptionOutput) ElementType

func (WebHostingOptionOutput) ElementType() reflect.Type

func (WebHostingOptionOutput) Id

The option ID.

func (WebHostingOptionOutput) Name

The option name.

func (WebHostingOptionOutput) ToWebHostingOptionOutput

func (o WebHostingOptionOutput) ToWebHostingOptionOutput() WebHostingOptionOutput

func (WebHostingOptionOutput) ToWebHostingOptionOutputWithContext

func (o WebHostingOptionOutput) ToWebHostingOptionOutputWithContext(ctx context.Context) WebHostingOptionOutput

type WebHostingOutput

type WebHostingOutput struct{ *pulumi.OutputState }

func (WebHostingOutput) CpanelUrls

The URL to connect to cPanel Dashboard and to Webmail interface.

func (WebHostingOutput) CreatedAt

func (o WebHostingOutput) CreatedAt() pulumi.StringOutput

Date and time of hosting's creation (RFC 3339 format).

func (WebHostingOutput) DnsStatus

func (o WebHostingOutput) DnsStatus() pulumi.StringOutput

The DNS status of the hosting.

func (WebHostingOutput) Domain

The domain name of the hosting.

func (WebHostingOutput) ElementType

func (WebHostingOutput) ElementType() reflect.Type

func (WebHostingOutput) Email

The contact email of the client for the hosting.

func (WebHostingOutput) OfferId

func (o WebHostingOutput) OfferId() pulumi.StringOutput

The ID of the selected offer for the hosting.

func (WebHostingOutput) OfferName

func (o WebHostingOutput) OfferName() pulumi.StringOutput

The name of the active offer.

func (WebHostingOutput) OptionIds

The IDs of the selected options for the hosting.

func (WebHostingOutput) Options

The active options of the hosting.

func (WebHostingOutput) OrganizationId

func (o WebHostingOutput) OrganizationId() pulumi.StringOutput

The organization ID the hosting is associated with.

func (WebHostingOutput) PlatformHostname

func (o WebHostingOutput) PlatformHostname() pulumi.StringOutput

The hostname of the host platform.

func (WebHostingOutput) PlatformNumber

func (o WebHostingOutput) PlatformNumber() pulumi.IntOutput

The number of the host platform.

func (WebHostingOutput) ProjectId

func (o WebHostingOutput) ProjectId() pulumi.StringOutput

`projectId`) The ID of the project the VPC is associated with.

func (WebHostingOutput) Region

`region`) The region of the Hosting.

func (WebHostingOutput) Status

The hosting status.

func (WebHostingOutput) Tags

The tags associated with the hosting.

func (WebHostingOutput) ToWebHostingOutput

func (o WebHostingOutput) ToWebHostingOutput() WebHostingOutput

func (WebHostingOutput) ToWebHostingOutputWithContext

func (o WebHostingOutput) ToWebHostingOutputWithContext(ctx context.Context) WebHostingOutput

func (WebHostingOutput) UpdatedAt

func (o WebHostingOutput) UpdatedAt() pulumi.StringOutput

Date and time of hosting's last update (RFC 3339 format).

func (WebHostingOutput) Username

func (o WebHostingOutput) Username() pulumi.StringOutput

The main hosting cPanel username.

type WebHostingState

type WebHostingState struct {
	// The URL to connect to cPanel Dashboard and to Webmail interface.
	CpanelUrls WebHostingCpanelUrlArrayInput
	// Date and time of hosting's creation (RFC 3339 format).
	CreatedAt pulumi.StringPtrInput
	// The DNS status of the hosting.
	DnsStatus pulumi.StringPtrInput
	// The domain name of the hosting.
	Domain pulumi.StringPtrInput
	// The contact email of the client for the hosting.
	Email pulumi.StringPtrInput
	// The ID of the selected offer for the hosting.
	OfferId pulumi.StringPtrInput
	// The name of the active offer.
	OfferName pulumi.StringPtrInput
	// The IDs of the selected options for the hosting.
	OptionIds pulumi.StringArrayInput
	// The active options of the hosting.
	Options WebHostingOptionArrayInput
	// The organization ID the hosting is associated with.
	OrganizationId pulumi.StringPtrInput
	// The hostname of the host platform.
	PlatformHostname pulumi.StringPtrInput
	// The number of the host platform.
	PlatformNumber pulumi.IntPtrInput
	// `projectId`) The ID of the project the VPC is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`) The region of the Hosting.
	Region pulumi.StringPtrInput
	// The hosting status.
	Status pulumi.StringPtrInput
	// The tags associated with the hosting.
	Tags pulumi.StringArrayInput
	// Date and time of hosting's last update (RFC 3339 format).
	UpdatedAt pulumi.StringPtrInput
	// The main hosting cPanel username.
	Username pulumi.StringPtrInput
}

func (WebHostingState) ElementType

func (WebHostingState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL