Scaleway v1.27.0 published on Monday, Apr 21, 2025 by pulumiverse
scaleway.getWebHostOffer
Explore with Pulumi AI
Deprecated: scaleway.index/getwebhostoffer.getWebHostOffer has been deprecated in favor of scaleway.hosting/getoffer.getOffer
Gets information about a webhosting offer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
// Get info by offer name
const byName = scaleway.hosting.getOffer({
    name: "performance",
    controlPanel: "Cpanel",
});
// Get info by offer id
const byId = scaleway.hosting.getOffer({
    offerId: "de2426b4-a9e9-11ec-b909-0242ac120002",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by offer name
by_name = scaleway.hosting.get_offer(name="performance",
    control_panel="Cpanel")
# Get info by offer id
by_id = scaleway.hosting.get_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/hosting"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get info by offer name
		_, err := hosting.GetOffer(ctx, &hosting.GetOfferArgs{
			Name:         pulumi.StringRef("performance"),
			ControlPanel: pulumi.StringRef("Cpanel"),
		}, nil)
		if err != nil {
			return err
		}
		// Get info by offer id
		_, err = hosting.GetOffer(ctx, &hosting.GetOfferArgs{
			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(() => 
{
    // Get info by offer name
    var byName = Scaleway.Hosting.GetOffer.Invoke(new()
    {
        Name = "performance",
        ControlPanel = "Cpanel",
    });
    // Get info by offer id
    var byId = Scaleway.Hosting.GetOffer.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.hosting.HostingFunctions;
import com.pulumi.scaleway.hosting.inputs.GetOfferArgs;
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 name
        final var byName = HostingFunctions.getOffer(GetOfferArgs.builder()
            .name("performance")
            .controlPanel("Cpanel")
            .build());
        // Get info by offer id
        final var byId = HostingFunctions.getOffer(GetOfferArgs.builder()
            .offerId("de2426b4-a9e9-11ec-b909-0242ac120002")
            .build());
    }
}
variables:
  # Get info by offer name
  byName:
    fn::invoke:
      function: scaleway:hosting:getOffer
      arguments:
        name: performance
        controlPanel: Cpanel
  # Get info by offer id
  byId:
    fn::invoke:
      function: scaleway:hosting:getOffer
      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(control_panel: Optional[str] = None,
                       name: Optional[str] = None,
                       offer_id: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetWebHostOfferResult
def get_web_host_offer_output(control_panel: Optional[pulumi.Input[str]] = None,
                       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)
public static Output<GetWebHostOfferResult> getWebHostOffer(GetWebHostOfferArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:index/getWebHostOffer:getWebHostOffer
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Control
Panel string - Name of the control panel (Cpanel or Plesk). This argument is only used when 
offer_idis not specified. - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Offer
Id string - The offer id. Only one of 
nameandoffer_idshould be specified. - Region string
 region) The region in which offer exists.
- Control
Panel string - Name of the control panel (Cpanel or Plesk). This argument is only used when 
offer_idis not specified. - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Offer
Id string - The offer id. Only one of 
nameandoffer_idshould be specified. - Region string
 region) The region in which offer exists.
- control
Panel String - Name of the control panel (Cpanel or Plesk). This argument is only used when 
offer_idis not specified. - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - offer
Id String - The offer id. Only one of 
nameandoffer_idshould be specified. - region String
 region) The region in which offer exists.
- control
Panel string - Name of the control panel (Cpanel or Plesk). This argument is only used when 
offer_idis not specified. - name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - offer
Id string - The offer id. Only one of 
nameandoffer_idshould be specified. - region string
 region) The region in which offer exists.
- control_
panel str - Name of the control panel (Cpanel or Plesk). This argument is only used when 
offer_idis not specified. - name str
 - The offer name. Only one of 
nameandoffer_idshould be specified. - offer_
id str - The offer id. Only one of 
nameandoffer_idshould be specified. - region str
 region) The region in which offer exists.
- control
Panel String - Name of the control panel (Cpanel or Plesk). This argument is only used when 
offer_idis not specified. - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - offer
Id String - The offer id. Only one of 
nameandoffer_idshould be specified. - region String
 region) The region in which offer exists.
getWebHostOffer Result
The following output properties are available:
- Billing
Operation stringPath  - The billing operation identifier for the option.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Offers
List<Pulumiverse.
Scaleway. Outputs. Get Web Host Offer Offer>  - The detailed offer of the hosting.
 - Price string
 - The offer price.
 - Products
List<Pulumiverse.
Scaleway. Outputs. Get Web Host Offer Product>  - (deprecated) The offer product.
 - Region string
 - Control
Panel string - Name string
 - The name of the option.
 - Offer
Id string 
- Billing
Operation stringPath  - The billing operation identifier for the option.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Offers
[]Get
Web Host Offer Offer  - The detailed offer of the hosting.
 - Price string
 - The offer price.
 - Products
[]Get
Web Host Offer Product  - (deprecated) The offer product.
 - Region string
 - Control
Panel string - Name string
 - The name of the option.
 - Offer
Id string 
- billing
Operation StringPath  - The billing operation identifier for the option.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - offers
List<Get
Web Host Offer Offer>  - The detailed offer of the hosting.
 - price String
 - The offer price.
 - products
List<Get
Web Host Offer Product>  - (deprecated) The offer product.
 - region String
 - control
Panel String - name String
 - The name of the option.
 - offer
Id String 
- billing
Operation stringPath  - The billing operation identifier for the option.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - offers
Get
Web Host Offer Offer[]  - The detailed offer of the hosting.
 - price string
 - The offer price.
 - products
Get
Web Host Offer Product[]  - (deprecated) The offer product.
 - region string
 - control
Panel string - name string
 - The name of the option.
 - offer
Id string 
- billing_
operation_ strpath  - The billing operation identifier for the option.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - offers
Sequence[Get
Web Host Offer Offer]  - The detailed offer of the hosting.
 - price str
 - The offer price.
 - products
Sequence[Get
Web Host Offer Product]  - (deprecated) The offer product.
 - region str
 - control_
panel str - name str
 - The name of the option.
 - offer_
id str 
- billing
Operation StringPath  - The billing operation identifier for the option.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - offers List<Property Map>
 - The detailed offer of the hosting.
 - price String
 - The offer price.
 - products List<Property Map>
 - (deprecated) The offer product.
 - region String
 - control
Panel String - name String
 - The name of the option.
 - offer
Id String 
Supporting Types
GetWebHostOfferOffer    
- Available bool
 - Indicates if the offer is available.
 - Billing
Operation stringPath  - The billing operation identifier for the option.
 - Control
Panel stringName  - The name of the control panel (e.g., Cpanel or Plesk).
 - End
Of boolLife  - Indicates if the offer is deprecated or no longer supported.
 - Id string
 - The unique identifier of the option.
 - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Options
List<Pulumiverse.
Scaleway. Inputs. Get Web Host Offer Offer Option>  - A list of available options for the offer:
 - Price string
 - The offer price.
 - Quota
Warning string - Warning information regarding quota limitations for the option.
 
- Available bool
 - Indicates if the offer is available.
 - Billing
Operation stringPath  - The billing operation identifier for the option.
 - Control
Panel stringName  - The name of the control panel (e.g., Cpanel or Plesk).
 - End
Of boolLife  - Indicates if the offer is deprecated or no longer supported.
 - Id string
 - The unique identifier of the option.
 - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Options
[]Get
Web Host Offer Offer Option  - A list of available options for the offer:
 - Price string
 - The offer price.
 - Quota
Warning string - Warning information regarding quota limitations for the option.
 
- available Boolean
 - Indicates if the offer is available.
 - billing
Operation StringPath  - The billing operation identifier for the option.
 - control
Panel StringName  - The name of the control panel (e.g., Cpanel or Plesk).
 - end
Of BooleanLife  - Indicates if the offer is deprecated or no longer supported.
 - id String
 - The unique identifier of the option.
 - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - options
List<Get
Web Host Offer Offer Option>  - A list of available options for the offer:
 - price String
 - The offer price.
 - quota
Warning String - Warning information regarding quota limitations for the option.
 
- available boolean
 - Indicates if the offer is available.
 - billing
Operation stringPath  - The billing operation identifier for the option.
 - control
Panel stringName  - The name of the control panel (e.g., Cpanel or Plesk).
 - end
Of booleanLife  - Indicates if the offer is deprecated or no longer supported.
 - id string
 - The unique identifier of the option.
 - name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - options
Get
Web Host Offer Offer Option[]  - A list of available options for the offer:
 - price string
 - The offer price.
 - quota
Warning string - Warning information regarding quota limitations for the option.
 
- available bool
 - Indicates if the offer is available.
 - billing_
operation_ strpath  - The billing operation identifier for the option.
 - control_
panel_ strname  - The name of the control panel (e.g., Cpanel or Plesk).
 - end_
of_ boollife  - Indicates if the offer is deprecated or no longer supported.
 - id str
 - The unique identifier of the option.
 - name str
 - The offer name. Only one of 
nameandoffer_idshould be specified. - options
Sequence[Get
Web Host Offer Offer Option]  - A list of available options for the offer:
 - price str
 - The offer price.
 - quota_
warning str - Warning information regarding quota limitations for the option.
 
- available Boolean
 - Indicates if the offer is available.
 - billing
Operation StringPath  - The billing operation identifier for the option.
 - control
Panel StringName  - The name of the control panel (e.g., Cpanel or Plesk).
 - end
Of BooleanLife  - Indicates if the offer is deprecated or no longer supported.
 - id String
 - The unique identifier of the option.
 - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - options List<Property Map>
 - A list of available options for the offer:
 - price String
 - The offer price.
 - quota
Warning String - Warning information regarding quota limitations for the option.
 
GetWebHostOfferOfferOption     
- Billing
Operation stringPath  - The billing operation identifier for the option.
 - Current
Value int - The current value set for the option.
 - Id string
 - The unique identifier of the option.
 - Max
Value int - The maximum allowed value for the option.
 - Min
Value int - The minimum value for the option.
 - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Price string
 - The offer price.
 - Quota
Warning string - Warning information regarding quota limitations for the option.
 
- Billing
Operation stringPath  - The billing operation identifier for the option.
 - Current
Value int - The current value set for the option.
 - Id string
 - The unique identifier of the option.
 - Max
Value int - The maximum allowed value for the option.
 - Min
Value int - The minimum value for the option.
 - Name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - Price string
 - The offer price.
 - Quota
Warning string - Warning information regarding quota limitations for the option.
 
- billing
Operation StringPath  - The billing operation identifier for the option.
 - current
Value Integer - The current value set for the option.
 - id String
 - The unique identifier of the option.
 - max
Value Integer - The maximum allowed value for the option.
 - min
Value Integer - The minimum value for the option.
 - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - price String
 - The offer price.
 - quota
Warning String - Warning information regarding quota limitations for the option.
 
- billing
Operation stringPath  - The billing operation identifier for the option.
 - current
Value number - The current value set for the option.
 - id string
 - The unique identifier of the option.
 - max
Value number - The maximum allowed value for the option.
 - min
Value number - The minimum value for the option.
 - name string
 - The offer name. Only one of 
nameandoffer_idshould be specified. - price string
 - The offer price.
 - quota
Warning string - Warning information regarding quota limitations for the option.
 
- billing_
operation_ strpath  - The billing operation identifier for the option.
 - current_
value int - The current value set for the option.
 - id str
 - The unique identifier of the option.
 - max_
value int - The maximum allowed value for the option.
 - min_
value int - The minimum value for the option.
 - name str
 - The offer name. Only one of 
nameandoffer_idshould be specified. - price str
 - The offer price.
 - quota_
warning str - Warning information regarding quota limitations for the option.
 
- billing
Operation StringPath  - The billing operation identifier for the option.
 - current
Value Number - The current value set for the option.
 - id String
 - The unique identifier of the option.
 - max
Value Number - The maximum allowed value for the option.
 - min
Value Number - The minimum value for the option.
 - name String
 - The offer name. Only one of 
nameandoffer_idshould be specified. - price String
 - The offer price.
 - quota
Warning String - Warning information regarding quota limitations for the option.
 
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.