1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsBareMetalServerInitialization
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IsBareMetalServerInitialization

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Reinitialize a Bare Metal Server with the existing image, keys and user data. This is a one time action resource, which would reinitialize/reload/replace the OS, keys, user_data on the bare metal server with image and keys (with/without user_data). Read more about Bare Metal Servers reinitialization. For multiple reload, multiple ibm.IsBareMetalServerInitialization resource need to be used. For more information, about managing VPC Bare Metal Server, see About Bare Metal Servers for VPC.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Create IsBareMetalServerInitialization Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IsBareMetalServerInitialization(name: string, args: IsBareMetalServerInitializationArgs, opts?: CustomResourceOptions);
    @overload
    def IsBareMetalServerInitialization(resource_name: str,
                                        args: IsBareMetalServerInitializationArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsBareMetalServerInitialization(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        bare_metal_server: Optional[str] = None,
                                        image: Optional[str] = None,
                                        keys: Optional[Sequence[str]] = None,
                                        is_bare_metal_server_initialization_id: Optional[str] = None,
                                        timeouts: Optional[IsBareMetalServerInitializationTimeoutsArgs] = None,
                                        user_data: Optional[str] = None)
    func NewIsBareMetalServerInitialization(ctx *Context, name string, args IsBareMetalServerInitializationArgs, opts ...ResourceOption) (*IsBareMetalServerInitialization, error)
    public IsBareMetalServerInitialization(string name, IsBareMetalServerInitializationArgs args, CustomResourceOptions? opts = null)
    public IsBareMetalServerInitialization(String name, IsBareMetalServerInitializationArgs args)
    public IsBareMetalServerInitialization(String name, IsBareMetalServerInitializationArgs args, CustomResourceOptions options)
    
    type: ibm:IsBareMetalServerInitialization
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IsBareMetalServerInitializationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IsBareMetalServerInitializationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IsBareMetalServerInitializationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsBareMetalServerInitializationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsBareMetalServerInitializationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var isBareMetalServerInitializationResource = new Ibm.IsBareMetalServerInitialization("isBareMetalServerInitializationResource", new()
    {
        BareMetalServer = "string",
        Image = "string",
        Keys = new[]
        {
            "string",
        },
        IsBareMetalServerInitializationId = "string",
        Timeouts = new Ibm.Inputs.IsBareMetalServerInitializationTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        UserData = "string",
    });
    
    example, err := ibm.NewIsBareMetalServerInitialization(ctx, "isBareMetalServerInitializationResource", &ibm.IsBareMetalServerInitializationArgs{
    	BareMetalServer: pulumi.String("string"),
    	Image:           pulumi.String("string"),
    	Keys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IsBareMetalServerInitializationId: pulumi.String("string"),
    	Timeouts: &ibm.IsBareMetalServerInitializationTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	UserData: pulumi.String("string"),
    })
    
    var isBareMetalServerInitializationResource = new IsBareMetalServerInitialization("isBareMetalServerInitializationResource", IsBareMetalServerInitializationArgs.builder()
        .bareMetalServer("string")
        .image("string")
        .keys("string")
        .isBareMetalServerInitializationId("string")
        .timeouts(IsBareMetalServerInitializationTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .userData("string")
        .build());
    
    is_bare_metal_server_initialization_resource = ibm.IsBareMetalServerInitialization("isBareMetalServerInitializationResource",
        bare_metal_server="string",
        image="string",
        keys=["string"],
        is_bare_metal_server_initialization_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        user_data="string")
    
    const isBareMetalServerInitializationResource = new ibm.IsBareMetalServerInitialization("isBareMetalServerInitializationResource", {
        bareMetalServer: "string",
        image: "string",
        keys: ["string"],
        isBareMetalServerInitializationId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        userData: "string",
    });
    
    type: ibm:IsBareMetalServerInitialization
    properties:
        bareMetalServer: string
        image: string
        isBareMetalServerInitializationId: string
        keys:
            - string
        timeouts:
            create: string
            delete: string
            update: string
        userData: string
    

    IsBareMetalServerInitialization Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IsBareMetalServerInitialization resource accepts the following input properties:

    BareMetalServer string
    Bare metal server identifier.
    Image string
    Image id to use to reinitialize the bare metal server.
    Keys List<string>
    Keys ids to use to reinitialize the bare metal server.
    IsBareMetalServerInitializationId string
    Timeouts IsBareMetalServerInitializationTimeouts
    UserData string

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    BareMetalServer string
    Bare metal server identifier.
    Image string
    Image id to use to reinitialize the bare metal server.
    Keys []string
    Keys ids to use to reinitialize the bare metal server.
    IsBareMetalServerInitializationId string
    Timeouts IsBareMetalServerInitializationTimeoutsArgs
    UserData string

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bareMetalServer String
    Bare metal server identifier.
    image String
    Image id to use to reinitialize the bare metal server.
    keys List<String>
    Keys ids to use to reinitialize the bare metal server.
    isBareMetalServerInitializationId String
    timeouts IsBareMetalServerInitializationTimeouts
    userData String

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bareMetalServer string
    Bare metal server identifier.
    image string
    Image id to use to reinitialize the bare metal server.
    keys string[]
    Keys ids to use to reinitialize the bare metal server.
    isBareMetalServerInitializationId string
    timeouts IsBareMetalServerInitializationTimeouts
    userData string

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bare_metal_server str
    Bare metal server identifier.
    image str
    Image id to use to reinitialize the bare metal server.
    keys Sequence[str]
    Keys ids to use to reinitialize the bare metal server.
    is_bare_metal_server_initialization_id str
    timeouts IsBareMetalServerInitializationTimeoutsArgs
    user_data str

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bareMetalServer String
    Bare metal server identifier.
    image String
    Image id to use to reinitialize the bare metal server.
    keys List<String>
    Keys ids to use to reinitialize the bare metal server.
    isBareMetalServerInitializationId String
    timeouts Property Map
    userData String

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IsBareMetalServerInitialization resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IsBareMetalServerInitialization Resource

    Get an existing IsBareMetalServerInitialization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IsBareMetalServerInitializationState, opts?: CustomResourceOptions): IsBareMetalServerInitialization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bare_metal_server: Optional[str] = None,
            image: Optional[str] = None,
            is_bare_metal_server_initialization_id: Optional[str] = None,
            keys: Optional[Sequence[str]] = None,
            timeouts: Optional[IsBareMetalServerInitializationTimeoutsArgs] = None,
            user_data: Optional[str] = None) -> IsBareMetalServerInitialization
    func GetIsBareMetalServerInitialization(ctx *Context, name string, id IDInput, state *IsBareMetalServerInitializationState, opts ...ResourceOption) (*IsBareMetalServerInitialization, error)
    public static IsBareMetalServerInitialization Get(string name, Input<string> id, IsBareMetalServerInitializationState? state, CustomResourceOptions? opts = null)
    public static IsBareMetalServerInitialization get(String name, Output<String> id, IsBareMetalServerInitializationState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsBareMetalServerInitialization    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BareMetalServer string
    Bare metal server identifier.
    Image string
    Image id to use to reinitialize the bare metal server.
    IsBareMetalServerInitializationId string
    Keys List<string>
    Keys ids to use to reinitialize the bare metal server.
    Timeouts IsBareMetalServerInitializationTimeouts
    UserData string

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    BareMetalServer string
    Bare metal server identifier.
    Image string
    Image id to use to reinitialize the bare metal server.
    IsBareMetalServerInitializationId string
    Keys []string
    Keys ids to use to reinitialize the bare metal server.
    Timeouts IsBareMetalServerInitializationTimeoutsArgs
    UserData string

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bareMetalServer String
    Bare metal server identifier.
    image String
    Image id to use to reinitialize the bare metal server.
    isBareMetalServerInitializationId String
    keys List<String>
    Keys ids to use to reinitialize the bare metal server.
    timeouts IsBareMetalServerInitializationTimeouts
    userData String

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bareMetalServer string
    Bare metal server identifier.
    image string
    Image id to use to reinitialize the bare metal server.
    isBareMetalServerInitializationId string
    keys string[]
    Keys ids to use to reinitialize the bare metal server.
    timeouts IsBareMetalServerInitializationTimeouts
    userData string

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bare_metal_server str
    Bare metal server identifier.
    image str
    Image id to use to reinitialize the bare metal server.
    is_bare_metal_server_initialization_id str
    keys Sequence[str]
    Keys ids to use to reinitialize the bare metal server.
    timeouts IsBareMetalServerInitializationTimeoutsArgs
    user_data str

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    bareMetalServer String
    Bare metal server identifier.
    image String
    Image id to use to reinitialize the bare metal server.
    isBareMetalServerInitializationId String
    keys List<String>
    Keys ids to use to reinitialize the bare metal server.
    timeouts Property Map
    userData String

    User data to transfer to the server bare metal server. If unspecified, no user data will be made available. (For reload/reinitialize provide the same user data as at the time of provisioning)

    To reinitialize a bare metal server, the server status must be stopped, or have failed a previous reinitialization. For more information, see Managing Bare Metal Servers for VPC.

    Supporting Types

    IsBareMetalServerInitializationTimeouts, IsBareMetalServerInitializationTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud