1. Packages
  2. Scaleway
  3. API Docs
  4. getBaremetalOffer
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

scaleway.getBaremetalOffer

Explore with Pulumi AI

scaleway logo
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

    Gets information about a baremetal offer. For more information, see the documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myOffer = scaleway.getBaremetalOffer({
        offerId: "25dcf38b-c90c-4b18-97a2-6956e9d1e113",
        zone: "fr-par-2",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_offer = scaleway.get_baremetal_offer(offer_id="25dcf38b-c90c-4b18-97a2-6956e9d1e113",
        zone="fr-par-2")
    
    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.GetBaremetalOffer(ctx, &scaleway.GetBaremetalOfferArgs{
    			OfferId: pulumi.StringRef("25dcf38b-c90c-4b18-97a2-6956e9d1e113"),
    			Zone:    pulumi.StringRef("fr-par-2"),
    		}, 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 myOffer = Scaleway.GetBaremetalOffer.Invoke(new()
        {
            OfferId = "25dcf38b-c90c-4b18-97a2-6956e9d1e113",
            Zone = "fr-par-2",
        });
    
    });
    
    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.GetBaremetalOfferArgs;
    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 myOffer = ScalewayFunctions.getBaremetalOffer(GetBaremetalOfferArgs.builder()
                .offerId("25dcf38b-c90c-4b18-97a2-6956e9d1e113")
                .zone("fr-par-2")
                .build());
    
        }
    }
    
    variables:
      myOffer:
        fn::invoke:
          Function: scaleway:getBaremetalOffer
          Arguments:
            offerId: 25dcf38b-c90c-4b18-97a2-6956e9d1e113
            zone: fr-par-2
    

    Using getBaremetalOffer

    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 getBaremetalOffer(args: GetBaremetalOfferArgs, opts?: InvokeOptions): Promise<GetBaremetalOfferResult>
    function getBaremetalOfferOutput(args: GetBaremetalOfferOutputArgs, opts?: InvokeOptions): Output<GetBaremetalOfferResult>
    def get_baremetal_offer(include_disabled: Optional[bool] = None,
                            name: Optional[str] = None,
                            offer_id: Optional[str] = None,
                            subscription_period: Optional[str] = None,
                            zone: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetBaremetalOfferResult
    def get_baremetal_offer_output(include_disabled: Optional[pulumi.Input[bool]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            offer_id: Optional[pulumi.Input[str]] = None,
                            subscription_period: Optional[pulumi.Input[str]] = None,
                            zone: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetBaremetalOfferResult]
    func GetBaremetalOffer(ctx *Context, args *GetBaremetalOfferArgs, opts ...InvokeOption) (*GetBaremetalOfferResult, error)
    func GetBaremetalOfferOutput(ctx *Context, args *GetBaremetalOfferOutputArgs, opts ...InvokeOption) GetBaremetalOfferResultOutput

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

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

    The following arguments are supported:

    IncludeDisabled bool
    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.
    SubscriptionPeriod string
    Period of subscription the desired offer. Should be hourly or monthly.
    Zone string
    zone) The zone in which the offer should be created.
    IncludeDisabled bool
    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.
    SubscriptionPeriod string
    Period of subscription the desired offer. Should be hourly or monthly.
    Zone string
    zone) The zone in which the offer should be created.
    includeDisabled Boolean
    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.
    subscriptionPeriod String
    Period of subscription the desired offer. Should be hourly or monthly.
    zone String
    zone) The zone in which the offer should be created.
    includeDisabled boolean
    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.
    subscriptionPeriod string
    Period of subscription the desired offer. Should be hourly or monthly.
    zone string
    zone) The zone in which the offer should be created.
    include_disabled bool
    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.
    subscription_period str
    Period of subscription the desired offer. Should be hourly or monthly.
    zone str
    zone) The zone in which the offer should be created.
    includeDisabled Boolean
    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.
    subscriptionPeriod String
    Period of subscription the desired offer. Should be hourly or monthly.
    zone String
    zone) The zone in which the offer should be created.

    getBaremetalOffer Result

    The following output properties are available:

    Bandwidth int
    Available Bandwidth with the offer.
    CommercialRange string
    Commercial range of the offer.
    Cpu Pulumiverse.Scaleway.Outputs.GetBaremetalOfferCpu
    A list of cpu specifications. (Structure is documented below.)
    Disks List<Pulumiverse.Scaleway.Outputs.GetBaremetalOfferDisk>
    A list of disk specifications. (Structure is documented below.)
    Id string
    The provider-assigned unique ID for this managed resource.
    Memories List<Pulumiverse.Scaleway.Outputs.GetBaremetalOfferMemory>
    A list of memory specifications. (Structure is documented below.)
    Stock string
    Stock status for this offer. Possible values are: empty, low or available.
    Zone string
    IncludeDisabled bool
    Name string
    Name of the CPU.
    OfferId string
    SubscriptionPeriod string
    Bandwidth int
    Available Bandwidth with the offer.
    CommercialRange string
    Commercial range of the offer.
    Cpu GetBaremetalOfferCpu
    A list of cpu specifications. (Structure is documented below.)
    Disks []GetBaremetalOfferDisk
    A list of disk specifications. (Structure is documented below.)
    Id string
    The provider-assigned unique ID for this managed resource.
    Memories []GetBaremetalOfferMemory
    A list of memory specifications. (Structure is documented below.)
    Stock string
    Stock status for this offer. Possible values are: empty, low or available.
    Zone string
    IncludeDisabled bool
    Name string
    Name of the CPU.
    OfferId string
    SubscriptionPeriod string
    bandwidth Integer
    Available Bandwidth with the offer.
    commercialRange String
    Commercial range of the offer.
    cpu GetBaremetalOfferCpu
    A list of cpu specifications. (Structure is documented below.)
    disks List<GetBaremetalOfferDisk>
    A list of disk specifications. (Structure is documented below.)
    id String
    The provider-assigned unique ID for this managed resource.
    memories List<GetBaremetalOfferMemory>
    A list of memory specifications. (Structure is documented below.)
    stock String
    Stock status for this offer. Possible values are: empty, low or available.
    zone String
    includeDisabled Boolean
    name String
    Name of the CPU.
    offerId String
    subscriptionPeriod String
    bandwidth number
    Available Bandwidth with the offer.
    commercialRange string
    Commercial range of the offer.
    cpu GetBaremetalOfferCpu
    A list of cpu specifications. (Structure is documented below.)
    disks GetBaremetalOfferDisk[]
    A list of disk specifications. (Structure is documented below.)
    id string
    The provider-assigned unique ID for this managed resource.
    memories GetBaremetalOfferMemory[]
    A list of memory specifications. (Structure is documented below.)
    stock string
    Stock status for this offer. Possible values are: empty, low or available.
    zone string
    includeDisabled boolean
    name string
    Name of the CPU.
    offerId string
    subscriptionPeriod string
    bandwidth int
    Available Bandwidth with the offer.
    commercial_range str
    Commercial range of the offer.
    cpu GetBaremetalOfferCpu
    A list of cpu specifications. (Structure is documented below.)
    disks Sequence[GetBaremetalOfferDisk]
    A list of disk specifications. (Structure is documented below.)
    id str
    The provider-assigned unique ID for this managed resource.
    memories Sequence[GetBaremetalOfferMemory]
    A list of memory specifications. (Structure is documented below.)
    stock str
    Stock status for this offer. Possible values are: empty, low or available.
    zone str
    include_disabled bool
    name str
    Name of the CPU.
    offer_id str
    subscription_period str
    bandwidth Number
    Available Bandwidth with the offer.
    commercialRange String
    Commercial range of the offer.
    cpu Property Map
    A list of cpu specifications. (Structure is documented below.)
    disks List<Property Map>
    A list of disk specifications. (Structure is documented below.)
    id String
    The provider-assigned unique ID for this managed resource.
    memories List<Property Map>
    A list of memory specifications. (Structure is documented below.)
    stock String
    Stock status for this offer. Possible values are: empty, low or available.
    zone String
    includeDisabled Boolean
    name String
    Name of the CPU.
    offerId String
    subscriptionPeriod String

    Supporting Types

    GetBaremetalOfferCpu

    CoreCount int
    Number of core on this CPU.
    Frequency int
    Frequency of the memory in MHz.
    Name string
    The offer name. Only one of name and offer_id should be specified.
    ThreadCount int
    Number of thread on this CPU.
    CoreCount int
    Number of core on this CPU.
    Frequency int
    Frequency of the memory in MHz.
    Name string
    The offer name. Only one of name and offer_id should be specified.
    ThreadCount int
    Number of thread on this CPU.
    coreCount Integer
    Number of core on this CPU.
    frequency Integer
    Frequency of the memory in MHz.
    name String
    The offer name. Only one of name and offer_id should be specified.
    threadCount Integer
    Number of thread on this CPU.
    coreCount number
    Number of core on this CPU.
    frequency number
    Frequency of the memory in MHz.
    name string
    The offer name. Only one of name and offer_id should be specified.
    threadCount number
    Number of thread on this CPU.
    core_count int
    Number of core on this CPU.
    frequency int
    Frequency of the memory in MHz.
    name str
    The offer name. Only one of name and offer_id should be specified.
    thread_count int
    Number of thread on this CPU.
    coreCount Number
    Number of core on this CPU.
    frequency Number
    Frequency of the memory in MHz.
    name String
    The offer name. Only one of name and offer_id should be specified.
    threadCount Number
    Number of thread on this CPU.

    GetBaremetalOfferDisk

    Capacity int
    Capacity of the memory in GB.
    Type string
    Type of memory.
    Capacity int
    Capacity of the memory in GB.
    Type string
    Type of memory.
    capacity Integer
    Capacity of the memory in GB.
    type String
    Type of memory.
    capacity number
    Capacity of the memory in GB.
    type string
    Type of memory.
    capacity int
    Capacity of the memory in GB.
    type str
    Type of memory.
    capacity Number
    Capacity of the memory in GB.
    type String
    Type of memory.

    GetBaremetalOfferMemory

    Capacity int
    Capacity of the memory in GB.
    Frequency int
    Frequency of the memory in MHz.
    IsEcc bool
    True if error-correcting code is available on this memory.
    Type string
    Type of memory.
    Capacity int
    Capacity of the memory in GB.
    Frequency int
    Frequency of the memory in MHz.
    IsEcc bool
    True if error-correcting code is available on this memory.
    Type string
    Type of memory.
    capacity Integer
    Capacity of the memory in GB.
    frequency Integer
    Frequency of the memory in MHz.
    isEcc Boolean
    True if error-correcting code is available on this memory.
    type String
    Type of memory.
    capacity number
    Capacity of the memory in GB.
    frequency number
    Frequency of the memory in MHz.
    isEcc boolean
    True if error-correcting code is available on this memory.
    type string
    Type of memory.
    capacity int
    Capacity of the memory in GB.
    frequency int
    Frequency of the memory in MHz.
    is_ecc bool
    True if error-correcting code is available on this memory.
    type str
    Type of memory.
    capacity Number
    Capacity of the memory in GB.
    frequency Number
    Frequency of the memory in MHz.
    isEcc Boolean
    True if error-correcting code is available on this memory.
    type String
    Type of memory.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse