Viewing docs for Scaleway v1.45.0
published on Friday, Apr 3, 2026 by pulumiverse
published on Friday, Apr 3, 2026 by pulumiverse
Viewing docs for Scaleway v1.45.0
published on Friday, Apr 3, 2026 by pulumiverse
published on Friday, Apr 3, 2026 by pulumiverse
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 getOption
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 getOption(args: GetOptionArgs, opts?: InvokeOptions): Promise<GetOptionResult>
function getOptionOutput(args: GetOptionOutputArgs, opts?: InvokeOptions): Output<GetOptionResult>def get_option(name: Optional[str] = None,
option_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOptionResult
def get_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[GetOptionResult]func GetOption(ctx *Context, args *GetOptionArgs, opts ...InvokeOption) (*GetOptionResult, error)
func GetOptionOutput(ctx *Context, args *GetOptionOutputArgs, opts ...InvokeOption) GetOptionResultOutput> Note: This function is named GetOption in the Go SDK.
public static class GetOption
{
public static Task<GetOptionResult> InvokeAsync(GetOptionArgs args, InvokeOptions? opts = null)
public static Output<GetOptionResult> Invoke(GetOptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOptionResult> getOption(GetOptionArgs args, InvokeOptions options)
public static Output<GetOptionResult> getOption(GetOptionArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:elasticmetal/getOption:getOption
arguments:
# arguments dictionaryThe following arguments are supported:
getOption 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.45.0
published on Friday, Apr 3, 2026 by pulumiverse
published on Friday, Apr 3, 2026 by pulumiverse
