1. Packages
  2. Scaleway
  3. API Docs
  4. getWebHostOffer
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

scaleway.getWebHostOffer

Explore with Pulumi AI

scaleway logo
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

    Gets information about a webhosting offer.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var byName = Scaleway.GetWebHostOffer.Invoke(new()
        {
            Name = "performance",
        });
    
        var byId = Scaleway.GetWebHostOffer.Invoke(new()
        {
            OfferId = "de2426b4-a9e9-11ec-b909-0242ac120002",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.GetWebHostOffer(ctx, &scaleway.GetWebHostOfferArgs{
    			Name: pulumi.StringRef("performance"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.GetWebHostOffer(ctx, &scaleway.GetWebHostOfferArgs{
    			OfferId: pulumi.StringRef("de2426b4-a9e9-11ec-b909-0242ac120002"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 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("performance")
                .build());
    
            final var byId = ScalewayFunctions.getWebHostOffer(GetWebHostOfferArgs.builder()
                .offerId("de2426b4-a9e9-11ec-b909-0242ac120002")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    by_name = scaleway.get_web_host_offer(name="performance")
    by_id = scaleway.get_web_host_offer(offer_id="de2426b4-a9e9-11ec-b909-0242ac120002")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const byName = scaleway.getWebHostOffer({
        name: "performance",
    });
    const byId = scaleway.getWebHostOffer({
        offerId: "de2426b4-a9e9-11ec-b909-0242ac120002",
    });
    
    variables:
      byName:
        fn::invoke:
          Function: scaleway:getWebHostOffer
          Arguments:
            name: performance
      byId:
        fn::invoke:
          Function: scaleway:getWebHostOffer
          Arguments:
            offerId: de2426b4-a9e9-11ec-b909-0242ac120002
    

    Using getWebHostOffer

    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 getWebHostOffer(args: GetWebHostOfferArgs, opts?: InvokeOptions): Promise<GetWebHostOfferResult>
    function getWebHostOfferOutput(args: GetWebHostOfferOutputArgs, opts?: InvokeOptions): Output<GetWebHostOfferResult>
    def get_web_host_offer(name: Optional[str] = None,
                           offer_id: Optional[str] = None,
                           region: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetWebHostOfferResult
    def get_web_host_offer_output(name: Optional[pulumi.Input[str]] = None,
                           offer_id: Optional[pulumi.Input[str]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetWebHostOfferResult]
    func GetWebHostOffer(ctx *Context, args *GetWebHostOfferArgs, opts ...InvokeOption) (*GetWebHostOfferResult, error)
    func GetWebHostOfferOutput(ctx *Context, args *GetWebHostOfferOutputArgs, opts ...InvokeOption) GetWebHostOfferResultOutput

    > Note: This function is named GetWebHostOffer in the Go SDK.

    public static class GetWebHostOffer 
    {
        public static Task<GetWebHostOfferResult> InvokeAsync(GetWebHostOfferArgs args, InvokeOptions? opts = null)
        public static Output<GetWebHostOfferResult> Invoke(GetWebHostOfferInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWebHostOfferResult> getWebHostOffer(GetWebHostOfferArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getWebHostOffer:getWebHostOffer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string

    The offer name. Only one of name and offer_id should be specified.

    OfferId string

    The offer id. Only one of name and offer_id should be specified.

    Region string

    region) The region in which offer exists.

    Name string

    The offer name. Only one of name and offer_id should be specified.

    OfferId string

    The offer id. Only one of name and offer_id should be specified.

    Region string

    region) The region in which offer exists.

    name String

    The offer name. Only one of name and offer_id should be specified.

    offerId String

    The offer id. Only one of name and offer_id should be specified.

    region String

    region) The region in which offer exists.

    name string

    The offer name. Only one of name and offer_id should be specified.

    offerId string

    The offer id. Only one of name and offer_id should be specified.

    region string

    region) The region in which offer exists.

    name str

    The offer name. Only one of name and offer_id should be specified.

    offer_id str

    The offer id. Only one of name and offer_id should be specified.

    region str

    region) The region in which offer exists.

    name String

    The offer name. Only one of name and offer_id should be specified.

    offerId String

    The offer id. Only one of name and offer_id should be specified.

    region String

    region) The region in which offer exists.

    getWebHostOffer Result

    The following output properties are available:

    BillingOperationPath string

    The unique identifier used for billing.

    Id string

    The provider-assigned unique ID for this managed resource.

    Price string

    The offer price.

    Products List<Lbrlabs.PulumiPackage.Scaleway.Outputs.GetWebHostOfferProduct>

    The offer product.

    Region string
    Name string
    OfferId string
    BillingOperationPath string

    The unique identifier used for billing.

    Id string

    The provider-assigned unique ID for this managed resource.

    Price string

    The offer price.

    Products []GetWebHostOfferProduct

    The offer product.

    Region string
    Name string
    OfferId string
    billingOperationPath String

    The unique identifier used for billing.

    id String

    The provider-assigned unique ID for this managed resource.

    price String

    The offer price.

    products List<GetWebHostOfferProduct>

    The offer product.

    region String
    name String
    offerId String
    billingOperationPath string

    The unique identifier used for billing.

    id string

    The provider-assigned unique ID for this managed resource.

    price string

    The offer price.

    products GetWebHostOfferProduct[]

    The offer product.

    region string
    name string
    offerId string
    billing_operation_path str

    The unique identifier used for billing.

    id str

    The provider-assigned unique ID for this managed resource.

    price str

    The offer price.

    products Sequence[GetWebHostOfferProduct]

    The offer product.

    region str
    name str
    offer_id str
    billingOperationPath String

    The unique identifier used for billing.

    id String

    The provider-assigned unique ID for this managed resource.

    price String

    The offer price.

    products List<Property Map>

    The offer product.

    region String
    name String
    offerId String

    Supporting Types

    GetWebHostOfferProduct

    DatabasesQuota int

    The quota of databases.

    EmailAccountsQuota int

    The quota of email accounts.

    EmailStorageQuota int

    The quota of email storage.

    HostingStorageQuota int

    The quota of hosting storage.

    Name string

    The offer name. Only one of name and offer_id should be specified.

    Option bool

    The product option.

    Ram int

    The capacity of the memory in GB.

    SupportIncluded bool

    If support is included.

    VCpu int

    The number of cores.

    DatabasesQuota int

    The quota of databases.

    EmailAccountsQuota int

    The quota of email accounts.

    EmailStorageQuota int

    The quota of email storage.

    HostingStorageQuota int

    The quota of hosting storage.

    Name string

    The offer name. Only one of name and offer_id should be specified.

    Option bool

    The product option.

    Ram int

    The capacity of the memory in GB.

    SupportIncluded bool

    If support is included.

    VCpu int

    The number of cores.

    databasesQuota Integer

    The quota of databases.

    emailAccountsQuota Integer

    The quota of email accounts.

    emailStorageQuota Integer

    The quota of email storage.

    hostingStorageQuota Integer

    The quota of hosting storage.

    name String

    The offer name. Only one of name and offer_id should be specified.

    option Boolean

    The product option.

    ram Integer

    The capacity of the memory in GB.

    supportIncluded Boolean

    If support is included.

    vCpu Integer

    The number of cores.

    databasesQuota number

    The quota of databases.

    emailAccountsQuota number

    The quota of email accounts.

    emailStorageQuota number

    The quota of email storage.

    hostingStorageQuota number

    The quota of hosting storage.

    name string

    The offer name. Only one of name and offer_id should be specified.

    option boolean

    The product option.

    ram number

    The capacity of the memory in GB.

    supportIncluded boolean

    If support is included.

    vCpu number

    The number of cores.

    databases_quota int

    The quota of databases.

    email_accounts_quota int

    The quota of email accounts.

    email_storage_quota int

    The quota of email storage.

    hosting_storage_quota int

    The quota of hosting storage.

    name str

    The offer name. Only one of name and offer_id should be specified.

    option bool

    The product option.

    ram int

    The capacity of the memory in GB.

    support_included bool

    If support is included.

    v_cpu int

    The number of cores.

    databasesQuota Number

    The quota of databases.

    emailAccountsQuota Number

    The quota of email accounts.

    emailStorageQuota Number

    The quota of email storage.

    hostingStorageQuota Number

    The quota of hosting storage.

    name String

    The offer name. Only one of name and offer_id should be specified.

    option Boolean

    The product option.

    ram Number

    The capacity of the memory in GB.

    supportIncluded Boolean

    If support is included.

    vCpu Number

    The number of cores.

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the scaleway Terraform Provider.

    scaleway logo
    Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs