Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Deprecated: scaleway.index/getbaremetaloption.getBaremetalOption has been deprecated in favor of scaleway.elasticmetal/getoption.getOption
Gets information about a baremetal option. For more information, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by option name
const byName = scaleway.elasticmetal.getOption({
name: "Remote Access",
});
// Get info by option id
const byId = scaleway.elasticmetal.getOption({
optionId: "931df052-d713-4674-8b58-96a63244c8e2",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by option name
by_name = scaleway.elasticmetal.get_option(name="Remote Access")
# Get info by option id
by_id = scaleway.elasticmetal.get_option(option_id="931df052-d713-4674-8b58-96a63244c8e2")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/elasticmetal"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by option name
_, err := elasticmetal.GetOption(ctx, &elasticmetal.GetOptionArgs{
Name: pulumi.StringRef("Remote Access"),
}, nil)
if err != nil {
return err
}
// Get info by option id
_, err = elasticmetal.GetOption(ctx, &elasticmetal.GetOptionArgs{
OptionId: pulumi.StringRef("931df052-d713-4674-8b58-96a63244c8e2"),
}, 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 option name
var byName = Scaleway.Elasticmetal.GetOption.Invoke(new()
{
Name = "Remote Access",
});
// Get info by option id
var byId = Scaleway.Elasticmetal.GetOption.Invoke(new()
{
OptionId = "931df052-d713-4674-8b58-96a63244c8e2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.elasticmetal.ElasticmetalFunctions;
import com.pulumi.scaleway.elasticmetal.inputs.GetOptionArgs;
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 option name
final var byName = ElasticmetalFunctions.getOption(GetOptionArgs.builder()
.name("Remote Access")
.build());
// Get info by option id
final var byId = ElasticmetalFunctions.getOption(GetOptionArgs.builder()
.optionId("931df052-d713-4674-8b58-96a63244c8e2")
.build());
}
}
variables:
# Get info by option name
byName:
fn::invoke:
function: scaleway:elasticmetal:getOption
arguments:
name: Remote Access
# Get info by option id
byId:
fn::invoke:
function: scaleway:elasticmetal:getOption
arguments:
optionId: 931df052-d713-4674-8b58-96a63244c8e2
Using getBaremetalOption
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 getBaremetalOption(args: GetBaremetalOptionArgs, opts?: InvokeOptions): Promise<GetBaremetalOptionResult>
function getBaremetalOptionOutput(args: GetBaremetalOptionOutputArgs, opts?: InvokeOptions): Output<GetBaremetalOptionResult>def get_baremetal_option(name: Optional[str] = None,
option_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBaremetalOptionResult
def get_baremetal_option_output(name: Optional[pulumi.Input[str]] = None,
option_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBaremetalOptionResult]func GetBaremetalOption(ctx *Context, args *GetBaremetalOptionArgs, opts ...InvokeOption) (*GetBaremetalOptionResult, error)
func GetBaremetalOptionOutput(ctx *Context, args *GetBaremetalOptionOutputArgs, opts ...InvokeOption) GetBaremetalOptionResultOutput> Note: This function is named GetBaremetalOption in the Go SDK.
public static class GetBaremetalOption
{
public static Task<GetBaremetalOptionResult> InvokeAsync(GetBaremetalOptionArgs args, InvokeOptions? opts = null)
public static Output<GetBaremetalOptionResult> Invoke(GetBaremetalOptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBaremetalOptionResult> getBaremetalOption(GetBaremetalOptionArgs args, InvokeOptions options)
public static Output<GetBaremetalOptionResult> getBaremetalOption(GetBaremetalOptionArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:index/getBaremetalOption:getBaremetalOption
arguments:
# arguments dictionaryThe following arguments are supported:
getBaremetalOption Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Manageable bool
- Is false if the option could not be added or removed.
- Name string
- The name of the option.
- Option
Id string - Zone string
- Id string
- The provider-assigned unique ID for this managed resource.
- Manageable bool
- Is false if the option could not be added or removed.
- Name string
- The name of the option.
- Option
Id string - Zone string
- id String
- The provider-assigned unique ID for this managed resource.
- manageable Boolean
- Is false if the option could not be added or removed.
- name String
- The name of the option.
- option
Id String - zone String
- id string
- The provider-assigned unique ID for this managed resource.
- manageable boolean
- Is false if the option could not be added or removed.
- name string
- The name of the option.
- option
Id string - zone string
- id str
- The provider-assigned unique ID for this managed resource.
- manageable bool
- Is false if the option could not be added or removed.
- name str
- The name of the option.
- option_
id str - zone str
- id String
- The provider-assigned unique ID for this managed resource.
- manageable Boolean
- Is false if the option could not be added or removed.
- name String
- The name of the option.
- option
Id String - zone String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
