Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse
scaleway.hosting.getOffer
Explore with Pulumi AI
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 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>
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]
func GetOffer(ctx *Context, args *GetOfferArgs, opts ...InvokeOption) (*GetOfferResult, error)
func GetOfferOutput(ctx *Context, args *GetOfferOutputArgs, opts ...InvokeOption) GetOfferResultOutput
> 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)
}
public static CompletableFuture<GetOfferResult> getOffer(GetOfferArgs args, InvokeOptions options)
public static Output<GetOfferResult> getOffer(GetOfferArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:hosting/getOffer:getOffer
arguments:
# arguments dictionary
The following arguments are supported:
- Control
Panel 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
andoffer_id
should be specified. - Offer
Id string - The offer id. Only one of
name
andoffer_id
should be specified. - Region
Changes to this property will trigger replacement.
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_id
is not specified. - Name string
- The offer name. Only one of
name
andoffer_id
should be specified. - Offer
Id string - The offer id. Only one of
name
andoffer_id
should be specified. - Region
Changes to this property will trigger replacement.
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_id
is not specified. - name String
- The offer name. Only one of
name
andoffer_id
should be specified. - offer
Id String - The offer id. Only one of
name
andoffer_id
should be specified. - region
Changes to this property will trigger replacement.
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_id
is not specified. - name string
- The offer name. Only one of
name
andoffer_id
should be specified. - offer
Id string - The offer id. Only one of
name
andoffer_id
should be specified. - region
Changes to this property will trigger replacement.
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
andoffer_id
should be specified. - offer_
id str - The offer id. Only one of
name
andoffer_id
should be specified. - region
Changes to this property will trigger replacement.
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_id
is not specified. - name String
- The offer name. Only one of
name
andoffer_id
should be specified. - offer
Id String - The offer id. Only one of
name
andoffer_id
should be specified. - region
Changes to this property will trigger replacement.
region
) The region in which offer exists.
getOffer 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. Hosting. Outputs. Get Offer Offer> - The detailed offer of the hosting.
- Price string
- The offer price.
- Products
List<Pulumiverse.
Scaleway. Hosting. Outputs. Get 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
Offer Offer - The detailed offer of the hosting.
- Price string
- The offer price.
- Products
[]Get
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
Offer Offer> - The detailed offer of the hosting.
- price String
- The offer price.
- products
List<Get
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
Offer Offer[] - The detailed offer of the hosting.
- price string
- The offer price.
- products
Get
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
Offer Offer] - The detailed offer of the hosting.
- price str
- The offer price.
- products
Sequence[Get
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
GetOfferOffer
- Available
This property is required. bool - Indicates if the offer is available.
- Billing
Operation Path This property is required. string - The billing operation identifier for the option.
- Control
Panel Name This property is required. string - 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. string - The unique identifier of the option.
- Name
This property is required. string - The offer name. Only one of
name
andoffer_id
should be specified. - Options
This property is required. List<Pulumiverse.Scaleway. Hosting. Inputs. Get Offer Offer Option> - A list of available options for the offer:
- Price
This property is required. string - The offer price.
- Quota
Warning 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. string - The billing operation identifier for the option.
- Control
Panel Name This property is required. string - 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. string - The unique identifier of the option.
- Name
This property is required. string - The offer name. Only one of
name
andoffer_id
should be specified. - Options
This property is required. []GetOffer Offer Option - A list of available options for the offer:
- Price
This property is required. string - The offer price.
- Quota
Warning 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.
- billing
Operation Path This property is required. String - The billing operation identifier for the option.
- control
Panel Name This property is required. String - The name of the control panel (e.g., Cpanel or Plesk).
- end
Of Life 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
andoffer_id
should be specified. - options
This property is required. List<GetOffer Offer Option> - A list of available options for the offer:
- price
This property is required. String - The offer price.
- quota
Warning 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.
- billing
Operation Path This property is required. string - The billing operation identifier for the option.
- control
Panel Name This property is required. string - The name of the control panel (e.g., Cpanel or Plesk).
- end
Of Life 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
andoffer_id
should be specified. - options
This property is required. GetOffer Offer Option[] - A list of available options for the offer:
- price
This property is required. string - The offer price.
- quota
Warning 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
andoffer_id
should be specified. - options
This property is required. Sequence[GetOffer Offer Option] - 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.
- billing
Operation Path This property is required. String - The billing operation identifier for the option.
- control
Panel Name This property is required. String - The name of the control panel (e.g., Cpanel or Plesk).
- end
Of Life 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
andoffer_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.
- quota
Warning This property is required. String - Warning information regarding quota limitations for the option.
GetOfferOfferOption
- Billing
Operation Path This property is required. string - 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. string - 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. string - The offer name. Only one of
name
andoffer_id
should be specified. - Price
This property is required. string - The offer price.
- Quota
Warning This property is required. string - Warning information regarding quota limitations for the option.
- Billing
Operation Path This property is required. string - 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. string - 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. string - The offer name. Only one of
name
andoffer_id
should be specified. - Price
This property is required. string - The offer price.
- Quota
Warning This property is required. string - Warning information regarding quota limitations for the option.
- billing
Operation Path This property is required. String - The billing operation identifier for the option.
- current
Value This property is required. Integer - The current value set for the option.
- id
This property is required. String - The unique identifier of the option.
- max
Value This property is required. Integer - The maximum allowed value for the option.
- min
Value This property is required. Integer - The minimum value for the option.
- name
This property is required. String - The offer name. Only one of
name
andoffer_id
should be specified. - price
This property is required. String - The offer price.
- quota
Warning This property is required. String - Warning information regarding quota limitations for the option.
- billing
Operation Path This property is required. string - The billing operation identifier for the option.
- current
Value This property is required. number - The current value set for the option.
- id
This property is required. string - The unique identifier of the option.
- max
Value This property is required. number - The maximum allowed value for the option.
- min
Value This property is required. number - The minimum value for the option.
- name
This property is required. string - The offer name. Only one of
name
andoffer_id
should be specified. - price
This property is required. string - The offer price.
- quota
Warning 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
andoffer_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.
- billing
Operation Path This property is required. String - The billing operation identifier for the option.
- current
Value This property is required. Number - The current value set for the option.
- id
This property is required. String - The unique identifier of the option.
- max
Value This property is required. Number - The maximum allowed value for the option.
- min
Value This property is required. Number - The minimum value for the option.
- name
This property is required. String - The offer name. Only one of
name
andoffer_id
should be specified. - price
This property is required. String - The offer price.
- quota
Warning This property is required. String - Warning information regarding quota limitations for the option.
GetOfferProduct
- 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. string - The offer name. Only one of
name
andoffer_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.
- VCpu
This property is required. int - 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. string - The offer name. Only one of
name
andoffer_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.
- VCpu
This property is required. int - The number of cores.
- databases
Quota This property is required. Integer - The quota of databases.
- email
Accounts Quota This property is required. Integer - The quota of email accounts.
- email
Storage Quota This property is required. Integer - The quota of email storage.
- hosting
Storage Quota This property is required. Integer - The quota of hosting storage.
- name
This property is required. String - The offer name. Only one of
name
andoffer_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.
- support
Included This property is required. Boolean - If support is included.
- v
Cpu This property is required. Integer - The number of cores.
- databases
Quota This property is required. number - The quota of databases.
- email
Accounts Quota This property is required. number - The quota of email accounts.
- email
Storage Quota This property is required. number - The quota of email storage.
- hosting
Storage Quota This property is required. number - The quota of hosting storage.
- name
This property is required. string - The offer name. Only one of
name
andoffer_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.
- support
Included This property is required. boolean - If support is included.
- v
Cpu 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
andoffer_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.
- databases
Quota This property is required. Number - The quota of databases.
- email
Accounts Quota This property is required. Number - The quota of email accounts.
- email
Storage Quota This property is required. Number - The quota of email storage.
- hosting
Storage Quota This property is required. Number - The quota of hosting storage.
- name
This property is required. String - The offer name. Only one of
name
andoffer_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.
- support
Included This property is required. Boolean - If support is included.
- v
Cpu 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.