Scaleway

v1.1.0 published on Saturday, Sep 17, 2022 by lbrlabs

getBaremetalOffer

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

Example Usage

using System.Collections.Generic;
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 main

import (
	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.GetBaremetalOffer(ctx, &GetBaremetalOfferArgs{
			OfferId: pulumi.StringRef("25dcf38b-c90c-4b18-97a2-6956e9d1e113"),
			Zone:    pulumi.StringRef("fr-par-2"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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());

    }
}
import pulumi
import pulumi_scaleway as scaleway

my_offer = scaleway.get_baremetal_offer(offer_id="25dcf38b-c90c-4b18-97a2-6956e9d1e113",
    zone="fr-par-2")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get info by offer id
const myOffer = pulumi.output(scaleway.getBaremetalOffer({
    offerId: "25dcf38b-c90c-4b18-97a2-6956e9d1e113",
    zone: "fr-par-2",
}));
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,
                        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,
                        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.

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.

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.

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.

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.

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.

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 Lbrlabs.PulumiPackage.Scaleway.Outputs.GetBaremetalOfferCpu

A list of cpu specifications. (Structure is documented below.)

Disks List<Lbrlabs.PulumiPackage.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<Lbrlabs.PulumiPackage.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
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
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
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
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
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

Supporting Types

GetBaremetalOfferCpu

CoreCount int
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
CoreCount int
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
coreCount Integer
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
coreCount number
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
core_count int
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
coreCount Number
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

GetBaremetalOfferDisk

Capacity int
Type string

Type of memory.

Capacity int
Type string

Type of memory.

capacity Integer
type String

Type of memory.

capacity number
type string

Type of memory.

capacity int
type str

Type of memory.

capacity Number
type String

Type of memory.

GetBaremetalOfferMemory

Capacity int
Frequency int

Frequency of the memory in MHz.

IsEcc bool
Type string

Type of memory.

Capacity int
Frequency int

Frequency of the memory in MHz.

IsEcc bool
Type string

Type of memory.

capacity Integer
frequency Integer

Frequency of the memory in MHz.

isEcc Boolean
type String

Type of memory.

capacity number
frequency number

Frequency of the memory in MHz.

isEcc boolean
type string

Type of memory.

capacity int
frequency int

Frequency of the memory in MHz.

is_ecc bool
type str

Type of memory.

capacity Number
frequency Number

Frequency of the memory in MHz.

isEcc Boolean
type String

Type of memory.

Package Details

Repository
https://github.com/lbrlabs/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.