Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getWebHostOffer
Explore with Pulumi AI
Gets information about a webhosting offer.
Example Usage
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",
});
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")
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.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
	})
}
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 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());
    }
}
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 dictionaryThe following arguments are supported:
getWebHostOffer Result
The following output properties are available:
- Billing
Operation stringPath  - The unique identifier used for billing.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Price string
 - The offer price.
 - Products
List<Pulumiverse.
Scaleway. Outputs. Get Web Host Offer Product>  - The offer product.
 - Region string
 - Name string
 - Offer
Id string 
- Billing
Operation stringPath  - The unique identifier used for billing.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Price string
 - The offer price.
 - Products
[]Get
Web Host Offer Product  - The offer product.
 - Region string
 - Name string
 - Offer
Id string 
- billing
Operation StringPath  - The unique identifier used for billing.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - price String
 - The offer price.
 - products
List<Get
Web Host Offer Product>  - The offer product.
 - region String
 - name String
 - offer
Id String 
- billing
Operation stringPath  - The unique identifier used for billing.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - price string
 - The offer price.
 - products
Get
Web Host Offer Product[]  - The offer product.
 - region string
 - name string
 - offer
Id string 
- billing_
operation_ strpath  - The unique identifier used for billing.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - price str
 - The offer price.
 - products
Sequence[Get
Web Host Offer Product]  - The offer product.
 - region str
 - name str
 - offer_
id str 
- billing
Operation StringPath  - 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
 - offer
Id String 
Supporting Types
GetWebHostOfferProduct    
- Databases
Quota int - The quota of databases.
 - Email
Accounts intQuota  - The quota of email accounts.
 - Email
Storage intQuota  - The quota of email storage.
 - Hosting
Storage intQuota  - The quota of hosting storage.
 - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Option bool
 - The product option.
 - Ram int
 - The capacity of the memory in GB.
 - Support
Included bool - If support is included.
 - VCpu int
 - The number of cores.
 
- Databases
Quota int - The quota of databases.
 - Email
Accounts intQuota  - The quota of email accounts.
 - Email
Storage intQuota  - The quota of email storage.
 - Hosting
Storage intQuota  - The quota of hosting storage.
 - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Option bool
 - The product option.
 - Ram int
 - The capacity of the memory in GB.
 - Support
Included bool - If support is included.
 - VCpu int
 - The number of cores.
 
- databases
Quota Integer - The quota of databases.
 - email
Accounts IntegerQuota  - The quota of email accounts.
 - email
Storage IntegerQuota  - The quota of email storage.
 - hosting
Storage IntegerQuota  - The quota of hosting storage.
 - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - option Boolean
 - The product option.
 - ram Integer
 - The capacity of the memory in GB.
 - support
Included Boolean - If support is included.
 - v
Cpu Integer - The number of cores.
 
- databases
Quota number - The quota of databases.
 - email
Accounts numberQuota  - The quota of email accounts.
 - email
Storage numberQuota  - The quota of email storage.
 - hosting
Storage numberQuota  - The quota of hosting storage.
 - name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - option boolean
 - The product option.
 - ram number
 - The capacity of the memory in GB.
 - support
Included boolean - If support is included.
 - v
Cpu number - The number of cores.
 
- databases_
quota int - The quota of databases.
 - email_
accounts_ intquota  - The quota of email accounts.
 - email_
storage_ intquota  - The quota of email storage.
 - hosting_
storage_ intquota  - The quota of hosting storage.
 - name str
 - The offer name. Only one of 
nameandoffer_idshould 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.
 
- databases
Quota Number - The quota of databases.
 - email
Accounts NumberQuota  - The quota of email accounts.
 - email
Storage NumberQuota  - The quota of email storage.
 - hosting
Storage NumberQuota  - The quota of hosting storage.
 - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - option Boolean
 - The product option.
 - ram Number
 - The capacity of the memory in GB.
 - support
Included Boolean - If support is included.
 - v
Cpu Number - The number of cores.
 
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.