1. Packages
  2. Scaleway
  3. API Docs
  4. hosting
  5. getOffer
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.hosting.getOffer

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

Using getOffer

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 getOffer(args: GetOfferArgs, opts?: InvokeOptions): Promise<GetOfferResult>
function getOfferOutput(args: GetOfferOutputArgs, opts?: InvokeOptions): Output<GetOfferResult>
Copy
def get_offer(control_panel: Optional[str] = None,
              name: Optional[str] = None,
              offer_id: Optional[str] = None,
              region: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetOfferResult
def get_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[GetOfferResult]
Copy
func GetOffer(ctx *Context, args *GetOfferArgs, opts ...InvokeOption) (*GetOfferResult, error)
func GetOfferOutput(ctx *Context, args *GetOfferOutputArgs, opts ...InvokeOption) GetOfferResultOutput
Copy

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

public static class GetOffer 
{
    public static Task<GetOfferResult> InvokeAsync(GetOfferArgs args, InvokeOptions? opts = null)
    public static Output<GetOfferResult> Invoke(GetOfferInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOfferResult> getOffer(GetOfferArgs args, InvokeOptions options)
public static Output<GetOfferResult> getOffer(GetOfferArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:hosting/getOffer:getOffer
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ControlPanel string
Name of the control panel (Cpanel or Plesk). This argument is only used when offer_id is not specified.
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 Changes to this property will trigger replacement. string
region) The region in which offer exists.
ControlPanel string
Name of the control panel (Cpanel or Plesk). This argument is only used when offer_id is not specified.
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 Changes to this property will trigger replacement. string
region) The region in which offer exists.
controlPanel String
Name of the control panel (Cpanel or Plesk). This argument is only used when offer_id is not specified.
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 Changes to this property will trigger replacement. String
region) The region in which offer exists.
controlPanel string
Name of the control panel (Cpanel or Plesk). This argument is only used when offer_id is not specified.
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 Changes to this property will trigger replacement. 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_id is not specified.
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 Changes to this property will trigger replacement. str
region) The region in which offer exists.
controlPanel String
Name of the control panel (Cpanel or Plesk). This argument is only used when offer_id is not specified.
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 Changes to this property will trigger replacement. String
region) The region in which offer exists.

getOffer Result

The following output properties are available:

BillingOperationPath string
The billing operation identifier for the option.
Id string
The provider-assigned unique ID for this managed resource.
Offers List<Pulumiverse.Scaleway.Hosting.Outputs.GetOfferOffer>
The detailed offer of the hosting.
Price string
The offer price.
Products List<Pulumiverse.Scaleway.Hosting.Outputs.GetOfferProduct>
(deprecated) The offer product.

Deprecated: The product field is deprecated. Please use the offer field instead.

Region string
ControlPanel string
Name string
The name of the option.
OfferId string
BillingOperationPath string
The billing operation identifier for the option.
Id string
The provider-assigned unique ID for this managed resource.
Offers []GetOfferOffer
The detailed offer of the hosting.
Price string
The offer price.
Products []GetOfferProduct
(deprecated) The offer product.

Deprecated: The product field is deprecated. Please use the offer field instead.

Region string
ControlPanel string
Name string
The name of the option.
OfferId string
billingOperationPath String
The billing operation identifier for the option.
id String
The provider-assigned unique ID for this managed resource.
offers List<GetOfferOffer>
The detailed offer of the hosting.
price String
The offer price.
products List<GetOfferProduct>
(deprecated) The offer product.

Deprecated: The product field is deprecated. Please use the offer field instead.

region String
controlPanel String
name String
The name of the option.
offerId String
billingOperationPath string
The billing operation identifier for the option.
id string
The provider-assigned unique ID for this managed resource.
offers GetOfferOffer[]
The detailed offer of the hosting.
price string
The offer price.
products GetOfferProduct[]
(deprecated) The offer product.

Deprecated: The product field is deprecated. Please use the offer field instead.

region string
controlPanel string
name string
The name of the option.
offerId string
billing_operation_path str
The billing operation identifier for the option.
id str
The provider-assigned unique ID for this managed resource.
offers Sequence[GetOfferOffer]
The detailed offer of the hosting.
price str
The offer price.
products Sequence[GetOfferProduct]
(deprecated) The offer product.

Deprecated: The product field is deprecated. Please use the offer field instead.

region str
control_panel str
name str
The name of the option.
offer_id str
billingOperationPath String
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.

Deprecated: The product field is deprecated. Please use the offer field instead.

region String
controlPanel String
name String
The name of the option.
offerId String

Supporting Types

GetOfferOffer

Available This property is required. bool
Indicates if the offer is available.
BillingOperationPath This property is required. string
The billing operation identifier for the option.
ControlPanelName This property is required. string
The name of the control panel (e.g., Cpanel or Plesk).
EndOfLife This property is required. bool
Indicates if the offer is deprecated or no longer supported.
Id This property is required. string
The unique identifier of the option.
Name This property is required. string
The offer name. Only one of name and offer_id should be specified.
Options This property is required. List<Pulumiverse.Scaleway.Hosting.Inputs.GetOfferOfferOption>
A list of available options for the offer:
Price This property is required. string
The offer price.
QuotaWarning This property is required. string
Warning information regarding quota limitations for the option.
Available This property is required. bool
Indicates if the offer is available.
BillingOperationPath This property is required. string
The billing operation identifier for the option.
ControlPanelName This property is required. string
The name of the control panel (e.g., Cpanel or Plesk).
EndOfLife This property is required. bool
Indicates if the offer is deprecated or no longer supported.
Id This property is required. string
The unique identifier of the option.
Name This property is required. string
The offer name. Only one of name and offer_id should be specified.
Options This property is required. []GetOfferOfferOption
A list of available options for the offer:
Price This property is required. string
The offer price.
QuotaWarning This property is required. string
Warning information regarding quota limitations for the option.
available This property is required. Boolean
Indicates if the offer is available.
billingOperationPath This property is required. String
The billing operation identifier for the option.
controlPanelName This property is required. String
The name of the control panel (e.g., Cpanel or Plesk).
endOfLife This property is required. Boolean
Indicates if the offer is deprecated or no longer supported.
id This property is required. String
The unique identifier of the option.
name This property is required. String
The offer name. Only one of name and offer_id should be specified.
options This property is required. List<GetOfferOfferOption>
A list of available options for the offer:
price This property is required. String
The offer price.
quotaWarning This property is required. String
Warning information regarding quota limitations for the option.
available This property is required. boolean
Indicates if the offer is available.
billingOperationPath This property is required. string
The billing operation identifier for the option.
controlPanelName This property is required. string
The name of the control panel (e.g., Cpanel or Plesk).
endOfLife This property is required. boolean
Indicates if the offer is deprecated or no longer supported.
id This property is required. string
The unique identifier of the option.
name This property is required. string
The offer name. Only one of name and offer_id should be specified.
options This property is required. GetOfferOfferOption[]
A list of available options for the offer:
price This property is required. string
The offer price.
quotaWarning This property is required. string
Warning information regarding quota limitations for the option.
available This property is required. bool
Indicates if the offer is available.
billing_operation_path This property is required. str
The billing operation identifier for the option.
control_panel_name This property is required. str
The name of the control panel (e.g., Cpanel or Plesk).
end_of_life This property is required. bool
Indicates if the offer is deprecated or no longer supported.
id This property is required. str
The unique identifier of the option.
name This property is required. str
The offer name. Only one of name and offer_id should be specified.
options This property is required. Sequence[GetOfferOfferOption]
A list of available options for the offer:
price This property is required. str
The offer price.
quota_warning This property is required. str
Warning information regarding quota limitations for the option.
available This property is required. Boolean
Indicates if the offer is available.
billingOperationPath This property is required. String
The billing operation identifier for the option.
controlPanelName This property is required. String
The name of the control panel (e.g., Cpanel or Plesk).
endOfLife This property is required. Boolean
Indicates if the offer is deprecated or no longer supported.
id This property is required. String
The unique identifier of the option.
name This property is required. String
The offer name. Only one of name and offer_id should be specified.
options This property is required. List<Property Map>
A list of available options for the offer:
price This property is required. String
The offer price.
quotaWarning This property is required. String
Warning information regarding quota limitations for the option.

GetOfferOfferOption

BillingOperationPath This property is required. string
The billing operation identifier for the option.
CurrentValue This property is required. int
The current value set for the option.
Id This property is required. string
The unique identifier of the option.
MaxValue This property is required. int
The maximum allowed value for the option.
MinValue This property is required. int
The minimum value for the option.
Name This property is required. string
The offer name. Only one of name and offer_id should be specified.
Price This property is required. string
The offer price.
QuotaWarning This property is required. string
Warning information regarding quota limitations for the option.
BillingOperationPath This property is required. string
The billing operation identifier for the option.
CurrentValue This property is required. int
The current value set for the option.
Id This property is required. string
The unique identifier of the option.
MaxValue This property is required. int
The maximum allowed value for the option.
MinValue This property is required. int
The minimum value for the option.
Name This property is required. string
The offer name. Only one of name and offer_id should be specified.
Price This property is required. string
The offer price.
QuotaWarning This property is required. string
Warning information regarding quota limitations for the option.
billingOperationPath This property is required. String
The billing operation identifier for the option.
currentValue This property is required. Integer
The current value set for the option.
id This property is required. String
The unique identifier of the option.
maxValue This property is required. Integer
The maximum allowed value for the option.
minValue This property is required. Integer
The minimum value for the option.
name This property is required. String
The offer name. Only one of name and offer_id should be specified.
price This property is required. String
The offer price.
quotaWarning This property is required. String
Warning information regarding quota limitations for the option.
billingOperationPath This property is required. string
The billing operation identifier for the option.
currentValue This property is required. number
The current value set for the option.
id This property is required. string
The unique identifier of the option.
maxValue This property is required. number
The maximum allowed value for the option.
minValue This property is required. number
The minimum value for the option.
name This property is required. string
The offer name. Only one of name and offer_id should be specified.
price This property is required. string
The offer price.
quotaWarning This property is required. string
Warning information regarding quota limitations for the option.
billing_operation_path This property is required. str
The billing operation identifier for the option.
current_value This property is required. int
The current value set for the option.
id This property is required. str
The unique identifier of the option.
max_value This property is required. int
The maximum allowed value for the option.
min_value This property is required. int
The minimum value for the option.
name This property is required. str
The offer name. Only one of name and offer_id should be specified.
price This property is required. str
The offer price.
quota_warning This property is required. str
Warning information regarding quota limitations for the option.
billingOperationPath This property is required. String
The billing operation identifier for the option.
currentValue This property is required. Number
The current value set for the option.
id This property is required. String
The unique identifier of the option.
maxValue This property is required. Number
The maximum allowed value for the option.
minValue This property is required. Number
The minimum value for the option.
name This property is required. String
The offer name. Only one of name and offer_id should be specified.
price This property is required. String
The offer price.
quotaWarning This property is required. String
Warning information regarding quota limitations for the option.

GetOfferProduct

DatabasesQuota This property is required. int
The quota of databases.
EmailAccountsQuota This property is required. int
The quota of email accounts.
EmailStorageQuota This property is required. int
The quota of email storage.
HostingStorageQuota This property is required. int
The quota of hosting storage.
Name This property is required. string
The offer name. Only one of name and offer_id should be specified.
Option This property is required. bool
The product option.
Ram This property is required. int
The capacity of the memory in GB.
SupportIncluded This property is required. bool
If support is included.
VCpu This property is required. int
The number of cores.
DatabasesQuota This property is required. int
The quota of databases.
EmailAccountsQuota This property is required. int
The quota of email accounts.
EmailStorageQuota This property is required. int
The quota of email storage.
HostingStorageQuota This property is required. int
The quota of hosting storage.
Name This property is required. string
The offer name. Only one of name and offer_id should be specified.
Option This property is required. bool
The product option.
Ram This property is required. int
The capacity of the memory in GB.
SupportIncluded This property is required. bool
If support is included.
VCpu This property is required. int
The number of cores.
databasesQuota This property is required. Integer
The quota of databases.
emailAccountsQuota This property is required. Integer
The quota of email accounts.
emailStorageQuota This property is required. Integer
The quota of email storage.
hostingStorageQuota This property is required. Integer
The quota of hosting storage.
name This property is required. String
The offer name. Only one of name and offer_id should be specified.
option This property is required. Boolean
The product option.
ram This property is required. Integer
The capacity of the memory in GB.
supportIncluded This property is required. Boolean
If support is included.
vCpu This property is required. Integer
The number of cores.
databasesQuota This property is required. number
The quota of databases.
emailAccountsQuota This property is required. number
The quota of email accounts.
emailStorageQuota This property is required. number
The quota of email storage.
hostingStorageQuota This property is required. number
The quota of hosting storage.
name This property is required. string
The offer name. Only one of name and offer_id should be specified.
option This property is required. boolean
The product option.
ram This property is required. number
The capacity of the memory in GB.
supportIncluded This property is required. boolean
If support is included.
vCpu This property is required. number
The number of cores.
databases_quota This property is required. int
The quota of databases.
email_accounts_quota This property is required. int
The quota of email accounts.
email_storage_quota This property is required. int
The quota of email storage.
hosting_storage_quota This property is required. int
The quota of hosting storage.
name This property is required. str
The offer name. Only one of name and offer_id should be specified.
option This property is required. bool
The product option.
ram This property is required. int
The capacity of the memory in GB.
support_included This property is required. bool
If support is included.
v_cpu This property is required. int
The number of cores.
databasesQuota This property is required. Number
The quota of databases.
emailAccountsQuota This property is required. Number
The quota of email accounts.
emailStorageQuota This property is required. Number
The quota of email storage.
hostingStorageQuota This property is required. Number
The quota of hosting storage.
name This property is required. String
The offer name. Only one of name and offer_id should be specified.
option This property is required. Boolean
The product option.
ram This property is required. Number
The capacity of the memory in GB.
supportIncluded This property is required. Boolean
If support is included.
vCpu This property is required. Number
The number of cores.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse