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

ibm.IsInstanceDiskManagement

Explore with Pulumi AI

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

    Create, update, or delete an IBM instance disk management. For more information, about instance disk management, see managing instance storage.

    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 IsInstanceDiskManagement Resource

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

    Constructor syntax

    new IsInstanceDiskManagement(name: string, args: IsInstanceDiskManagementArgs, opts?: CustomResourceOptions);
    @overload
    def IsInstanceDiskManagement(resource_name: str,
                                 args: IsInstanceDiskManagementArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsInstanceDiskManagement(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 disks: Optional[Sequence[IsInstanceDiskManagementDiskArgs]] = None,
                                 instance: Optional[str] = None,
                                 is_instance_disk_management_id: Optional[str] = None)
    func NewIsInstanceDiskManagement(ctx *Context, name string, args IsInstanceDiskManagementArgs, opts ...ResourceOption) (*IsInstanceDiskManagement, error)
    public IsInstanceDiskManagement(string name, IsInstanceDiskManagementArgs args, CustomResourceOptions? opts = null)
    public IsInstanceDiskManagement(String name, IsInstanceDiskManagementArgs args)
    public IsInstanceDiskManagement(String name, IsInstanceDiskManagementArgs args, CustomResourceOptions options)
    
    type: ibm:IsInstanceDiskManagement
    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 IsInstanceDiskManagementArgs
    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 IsInstanceDiskManagementArgs
    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 IsInstanceDiskManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsInstanceDiskManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsInstanceDiskManagementArgs
    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 isInstanceDiskManagementResource = new Ibm.IsInstanceDiskManagement("isInstanceDiskManagementResource", new()
    {
        Disks = new[]
        {
            new Ibm.Inputs.IsInstanceDiskManagementDiskArgs
            {
                Id = "string",
                Name = "string",
            },
        },
        Instance = "string",
        IsInstanceDiskManagementId = "string",
    });
    
    example, err := ibm.NewIsInstanceDiskManagement(ctx, "isInstanceDiskManagementResource", &ibm.IsInstanceDiskManagementArgs{
    	Disks: ibm.IsInstanceDiskManagementDiskArray{
    		&ibm.IsInstanceDiskManagementDiskArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	Instance:                   pulumi.String("string"),
    	IsInstanceDiskManagementId: pulumi.String("string"),
    })
    
    var isInstanceDiskManagementResource = new IsInstanceDiskManagement("isInstanceDiskManagementResource", IsInstanceDiskManagementArgs.builder()
        .disks(IsInstanceDiskManagementDiskArgs.builder()
            .id("string")
            .name("string")
            .build())
        .instance("string")
        .isInstanceDiskManagementId("string")
        .build());
    
    is_instance_disk_management_resource = ibm.IsInstanceDiskManagement("isInstanceDiskManagementResource",
        disks=[{
            "id": "string",
            "name": "string",
        }],
        instance="string",
        is_instance_disk_management_id="string")
    
    const isInstanceDiskManagementResource = new ibm.IsInstanceDiskManagement("isInstanceDiskManagementResource", {
        disks: [{
            id: "string",
            name: "string",
        }],
        instance: "string",
        isInstanceDiskManagementId: "string",
    });
    
    type: ibm:IsInstanceDiskManagement
    properties:
        disks:
            - id: string
              name: string
        instance: string
        isInstanceDiskManagementId: string
    

    IsInstanceDiskManagement 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 IsInstanceDiskManagement resource accepts the following input properties:

    Disks List<IsInstanceDiskManagementDisk>

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    Instance string
    The unique-identifier of the instance.
    IsInstanceDiskManagementId string
    (String) The unique-identifier of an instance disk management.
    Disks []IsInstanceDiskManagementDiskArgs

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    Instance string
    The unique-identifier of the instance.
    IsInstanceDiskManagementId string
    (String) The unique-identifier of an instance disk management.
    disks List<IsInstanceDiskManagementDisk>

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance String
    The unique-identifier of the instance.
    isInstanceDiskManagementId String
    (String) The unique-identifier of an instance disk management.
    disks IsInstanceDiskManagementDisk[]

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance string
    The unique-identifier of the instance.
    isInstanceDiskManagementId string
    (String) The unique-identifier of an instance disk management.
    disks Sequence[IsInstanceDiskManagementDiskArgs]

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance str
    The unique-identifier of the instance.
    is_instance_disk_management_id str
    (String) The unique-identifier of an instance disk management.
    disks List<Property Map>

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance String
    The unique-identifier of the instance.
    isInstanceDiskManagementId String
    (String) The unique-identifier of an instance disk management.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IsInstanceDiskManagement 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 IsInstanceDiskManagement Resource

    Get an existing IsInstanceDiskManagement 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?: IsInstanceDiskManagementState, opts?: CustomResourceOptions): IsInstanceDiskManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            disks: Optional[Sequence[IsInstanceDiskManagementDiskArgs]] = None,
            instance: Optional[str] = None,
            is_instance_disk_management_id: Optional[str] = None) -> IsInstanceDiskManagement
    func GetIsInstanceDiskManagement(ctx *Context, name string, id IDInput, state *IsInstanceDiskManagementState, opts ...ResourceOption) (*IsInstanceDiskManagement, error)
    public static IsInstanceDiskManagement Get(string name, Input<string> id, IsInstanceDiskManagementState? state, CustomResourceOptions? opts = null)
    public static IsInstanceDiskManagement get(String name, Output<String> id, IsInstanceDiskManagementState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsInstanceDiskManagement    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:
    Disks List<IsInstanceDiskManagementDisk>

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    Instance string
    The unique-identifier of the instance.
    IsInstanceDiskManagementId string
    (String) The unique-identifier of an instance disk management.
    Disks []IsInstanceDiskManagementDiskArgs

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    Instance string
    The unique-identifier of the instance.
    IsInstanceDiskManagementId string
    (String) The unique-identifier of an instance disk management.
    disks List<IsInstanceDiskManagementDisk>

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance String
    The unique-identifier of the instance.
    isInstanceDiskManagementId String
    (String) The unique-identifier of an instance disk management.
    disks IsInstanceDiskManagementDisk[]

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance string
    The unique-identifier of the instance.
    isInstanceDiskManagementId string
    (String) The unique-identifier of an instance disk management.
    disks Sequence[IsInstanceDiskManagementDiskArgs]

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance str
    The unique-identifier of the instance.
    is_instance_disk_management_id str
    (String) The unique-identifier of an instance disk management.
    disks List<Property Map>

    Disks that needs to be updated. Nested disks blocks have the following structure:

    Nested scheme for disks:

    instance String
    The unique-identifier of the instance.
    isInstanceDiskManagementId String
    (String) The unique-identifier of an instance disk management.

    Supporting Types

    IsInstanceDiskManagementDisk, IsInstanceDiskManagementDiskArgs

    Id string
    The unique-identifier of the instance disk.
    Name string
    The unique user defined name for the instance disk.
    Id string
    The unique-identifier of the instance disk.
    Name string
    The unique user defined name for the instance disk.
    id String
    The unique-identifier of the instance disk.
    name String
    The unique user defined name for the instance disk.
    id string
    The unique-identifier of the instance disk.
    name string
    The unique user defined name for the instance disk.
    id str
    The unique-identifier of the instance disk.
    name str
    The unique user defined name for the instance disk.
    id String
    The unique-identifier of the instance disk.
    name String
    The unique user defined name for the instance disk.

    Import

    The ibm_is_instance_disk_management resource can be imported byusing Instance disk management ID.

    Example

    $ pulumi import ibm:index/isInstanceDiskManagement:IsInstanceDiskManagement example 0716-111172bb2-decc-4555-b1a6-5d128c62806c
    

    To learn more about importing existing cloud resources, see Importing resources.

    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