
Scaleway v1.8.0, Apr 11 23

Scaleway v1.8.0, Apr 11 23
scaleway.getBaremetalOffer
Explore with Pulumi AI
Gets information about a baremetal offer. For more information, see the documentation.
Example Usage
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 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, &scaleway.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";
const myOffer = 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,
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:
- Include
Disabled bool - 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.- Subscription
Period string Period of subscription the desired offer. Should be
hourly
ormonthly
.- Zone string
zone
) The zone in which the offer should be created.
- Include
Disabled bool - 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.- Subscription
Period string Period of subscription the desired offer. Should be
hourly
ormonthly
.- Zone string
zone
) The zone in which the offer should be created.
- include
Disabled Boolean - 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.- subscription
Period String Period of subscription the desired offer. Should be
hourly
ormonthly
.- zone String
zone
) The zone in which the offer should be created.
- include
Disabled boolean - 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.- subscription
Period string Period of subscription the desired offer. Should be
hourly
ormonthly
.- zone string
zone
) The zone in which the offer should be created.
- include_
disabled bool - 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.- subscription_
period str Period of subscription the desired offer. Should be
hourly
ormonthly
.- zone str
zone
) The zone in which the offer should be created.
- include
Disabled Boolean - 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.- subscription
Period String Period of subscription the desired offer. Should be
hourly
ormonthly
.- 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.
- Commercial
Range string Commercial range of the offer.
- Cpu
Lbrlabs.
Pulumi Package. Scaleway. Outputs. Get Baremetal Offer Cpu A list of cpu specifications. (Structure is documented below.)
- Disks
List<Lbrlabs.
Pulumi Package. Scaleway. Outputs. Get Baremetal Offer Disk> A list of disk specifications. (Structure is documented below.)
- Id string
The provider-assigned unique ID for this managed resource.
- Memories
List<Lbrlabs.
Pulumi Package. Scaleway. Outputs. Get Baremetal Offer Memory> A list of memory specifications. (Structure is documented below.)
- Stock string
Stock status for this offer. Possible values are:
empty
,low
oravailable
.- Zone string
- Include
Disabled bool - Name string
Name of the CPU.
- Offer
Id string - Subscription
Period string
- Bandwidth int
Available Bandwidth with the offer.
- Commercial
Range string Commercial range of the offer.
- Cpu
Get
Baremetal Offer Cpu A list of cpu specifications. (Structure is documented below.)
- Disks
[]Get
Baremetal Offer Disk A list of disk specifications. (Structure is documented below.)
- Id string
The provider-assigned unique ID for this managed resource.
- Memories
[]Get
Baremetal Offer Memory A list of memory specifications. (Structure is documented below.)
- Stock string
Stock status for this offer. Possible values are:
empty
,low
oravailable
.- Zone string
- Include
Disabled bool - Name string
Name of the CPU.
- Offer
Id string - Subscription
Period string
- bandwidth Integer
Available Bandwidth with the offer.
- commercial
Range String Commercial range of the offer.
- cpu
Get
Baremetal Offer Cpu A list of cpu specifications. (Structure is documented below.)
- disks
List<Get
Baremetal Offer Disk> A list of disk specifications. (Structure is documented below.)
- id String
The provider-assigned unique ID for this managed resource.
- memories
List<Get
Baremetal Offer Memory> A list of memory specifications. (Structure is documented below.)
- stock String
Stock status for this offer. Possible values are:
empty
,low
oravailable
.- zone String
- include
Disabled Boolean - name String
Name of the CPU.
- offer
Id String - subscription
Period String
- bandwidth number
Available Bandwidth with the offer.
- commercial
Range string Commercial range of the offer.
- cpu
Get
Baremetal Offer Cpu A list of cpu specifications. (Structure is documented below.)
- disks
Get
Baremetal Offer Disk[] A list of disk specifications. (Structure is documented below.)
- id string
The provider-assigned unique ID for this managed resource.
- memories
Get
Baremetal Offer Memory[] A list of memory specifications. (Structure is documented below.)
- stock string
Stock status for this offer. Possible values are:
empty
,low
oravailable
.- zone string
- include
Disabled boolean - name string
Name of the CPU.
- offer
Id string - subscription
Period string
- bandwidth int
Available Bandwidth with the offer.
- commercial_
range str Commercial range of the offer.
- cpu
Get
Baremetal Offer Cpu A list of cpu specifications. (Structure is documented below.)
- disks
Sequence[Get
Baremetal Offer Disk] A list of disk specifications. (Structure is documented below.)
- id str
The provider-assigned unique ID for this managed resource.
- memories
Sequence[Get
Baremetal Offer Memory] A list of memory specifications. (Structure is documented below.)
- stock str
Stock status for this offer. Possible values are:
empty
,low
oravailable
.- zone str
- include_
disabled bool - name str
Name of the CPU.
- offer_
id str - subscription_
period str
- bandwidth Number
Available Bandwidth with the offer.
- commercial
Range 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
oravailable
.- zone String
- include
Disabled Boolean - name String
Name of the CPU.
- offer
Id String - subscription
Period String
Supporting Types
GetBaremetalOfferCpu
- Core
Count int Number of core on this CPU.
- Frequency int
Frequency of the memory in MHz.
- Name string
The offer name. Only one of
name
andoffer_id
should be specified.- Thread
Count int Number of thread on this CPU.
- Core
Count int Number of core on this CPU.
- Frequency int
Frequency of the memory in MHz.
- Name string
The offer name. Only one of
name
andoffer_id
should be specified.- Thread
Count int Number of thread on this CPU.
- core
Count Integer Number of core on this CPU.
- frequency Integer
Frequency of the memory in MHz.
- name String
The offer name. Only one of
name
andoffer_id
should be specified.- thread
Count Integer Number of thread on this CPU.
- core
Count number Number of core on this CPU.
- frequency number
Frequency of the memory in MHz.
- name string
The offer name. Only one of
name
andoffer_id
should be specified.- thread
Count 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
andoffer_id
should be specified.- thread_
count int Number of thread on this CPU.
- core
Count Number Number of core on this CPU.
- frequency Number
Frequency of the memory in MHz.
- name String
The offer name. Only one of
name
andoffer_id
should be specified.- thread
Count Number Number of thread on this CPU.
GetBaremetalOfferDisk
GetBaremetalOfferMemory
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.