1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsInstanceDiskManagement
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.IsInstanceDiskManagement

Explore with Pulumi AI

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. IsInstanceDiskManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. IsInstanceDiskManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IsInstanceDiskManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var isInstanceDiskManagementResource = new IsInstanceDiskManagement("isInstanceDiskManagementResource", IsInstanceDiskManagementArgs.builder()
    .disks(IsInstanceDiskManagementDiskArgs.builder()
        .id("string")
        .name("string")
        .build())
    .instance("string")
    .isInstanceDiskManagementId("string")
    .build());
Copy
is_instance_disk_management_resource = ibm.IsInstanceDiskManagement("isInstanceDiskManagementResource",
    disks=[{
        "id": "string",
        "name": "string",
    }],
    instance="string",
    is_instance_disk_management_id="string")
Copy
const isInstanceDiskManagementResource = new ibm.IsInstanceDiskManagement("isInstanceDiskManagementResource", {
    disks: [{
        id: "string",
        name: "string",
    }],
    instance: "string",
    isInstanceDiskManagementId: "string",
});
Copy
type: ibm:IsInstanceDiskManagement
properties:
    disks:
        - id: string
          name: string
    instance: string
    isInstanceDiskManagementId: string
Copy

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 This property is required. List<IsInstanceDiskManagementDisk>

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

Nested scheme for disks:

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

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

Nested scheme for disks:

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

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

Nested scheme for disks:

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

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

Nested scheme for disks:

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

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

Nested scheme for disks:

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

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

Nested scheme for disks:

instance This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required. string
The unique-identifier of the instance disk.
Name This property is required. string
The unique user defined name for the instance disk.
Id This property is required. string
The unique-identifier of the instance disk.
Name This property is required. string
The unique user defined name for the instance disk.
id This property is required. String
The unique-identifier of the instance disk.
name This property is required. String
The unique user defined name for the instance disk.
id This property is required. string
The unique-identifier of the instance disk.
name This property is required. string
The unique user defined name for the instance disk.
id This property is required. str
The unique-identifier of the instance disk.
name This property is required. str
The unique user defined name for the instance disk.
id This property is required. String
The unique-identifier of the instance disk.
name This property is required. 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
Copy

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.