Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getBaremetalOption
Explore with Pulumi AI
Gets information about a baremetal option. For more information, see the documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const byName = scaleway.getBaremetalOption({
    name: "Remote Access",
});
const byId = scaleway.getBaremetalOption({
    optionId: "931df052-d713-4674-8b58-96a63244c8e2",
});
import pulumi
import pulumi_scaleway as scaleway
by_name = scaleway.get_baremetal_option(name="Remote Access")
by_id = scaleway.get_baremetal_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"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.GetBaremetalOption(ctx, &scaleway.GetBaremetalOptionArgs{
			Name: pulumi.StringRef("Remote Access"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = scaleway.GetBaremetalOption(ctx, &scaleway.GetBaremetalOptionArgs{
			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(() => 
{
    var byName = Scaleway.GetBaremetalOption.Invoke(new()
    {
        Name = "Remote Access",
    });
    var byId = Scaleway.GetBaremetalOption.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.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetBaremetalOptionArgs;
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 byName = ScalewayFunctions.getBaremetalOption(GetBaremetalOptionArgs.builder()
            .name("Remote Access")
            .build());
        final var byId = ScalewayFunctions.getBaremetalOption(GetBaremetalOptionArgs.builder()
            .optionId("931df052-d713-4674-8b58-96a63244c8e2")
            .build());
    }
}
variables:
  byName:
    fn::invoke:
      Function: scaleway:getBaremetalOption
      Arguments:
        name: Remote Access
  byId:
    fn::invoke:
      Function: scaleway:getBaremetalOption
      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)
// Output-based functions aren't available in Java yet
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.
 - Zone string
 - Name string
 - The name of the option.
 - Option
Id 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.
 - Zone string
 - Name string
 - The name of the option.
 - Option
Id 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.
 - zone String
 - name String
 - The name of the option.
 - option
Id 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.
 - zone string
 - name string
 - The name of the option.
 - option
Id 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.
 - zone str
 - name str
 - The name of the option.
 - option_
id 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.
 - zone String
 - name String
 - The name of the option.
 - option
Id String 
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.