1. Packages
  2. Volcengine
  3. API Docs
  4. ebs
  5. VolumeAttach
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.ebs.VolumeAttach

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage volume attach

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooZones = Volcengine.Ecs.Zones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
        {
            SecurityGroupName = "acc-test-security-group",
            VpcId = fooVpc.Id,
        });
    
        var fooImages = Volcengine.Ecs.Images.Invoke(new()
        {
            OsType = "Linux",
            Visibility = "public",
            InstanceTypeId = "ecs.g1.large",
        });
    
        var fooInstance = new Volcengine.Ecs.Instance("fooInstance", new()
        {
            InstanceName = "acc-test-ecs",
            Description = "acc-test",
            HostName = "tf-acc-test",
            ImageId = fooImages.Apply(imagesResult => imagesResult.Images[0]?.ImageId),
            InstanceType = "ecs.g1.large",
            Password = "93f0cb0614Aab12",
            InstanceChargeType = "PostPaid",
            SystemVolumeType = "ESSD_PL0",
            SystemVolumeSize = 40,
            SubnetId = fooSubnet.Id,
            SecurityGroupIds = new[]
            {
                fooSecurityGroup.Id,
            },
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Ecs.Inputs.InstanceTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
        var fooVolume = new Volcengine.Ebs.Volume("fooVolume", new()
        {
            VolumeName = "acc-test-volume",
            VolumeType = "ESSD_PL0",
            Description = "acc-test",
            Kind = "data",
            Size = 40,
            ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
            VolumeChargeType = "PostPaid",
            ProjectName = "default",
        });
    
        var fooVolumeAttach = new Volcengine.Ebs.VolumeAttach("fooVolumeAttach", new()
        {
            InstanceId = fooInstance.Id,
            VolumeId = fooVolume.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ebs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := ecs.Zones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     *pulumi.String(fooZones.Zones[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
    			SecurityGroupName: pulumi.String("acc-test-security-group"),
    			VpcId:             fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		fooImages, err := ecs.Images(ctx, &ecs.ImagesArgs{
    			OsType:         pulumi.StringRef("Linux"),
    			Visibility:     pulumi.StringRef("public"),
    			InstanceTypeId: pulumi.StringRef("ecs.g1.large"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		fooInstance, err := ecs.NewInstance(ctx, "fooInstance", &ecs.InstanceArgs{
    			InstanceName:       pulumi.String("acc-test-ecs"),
    			Description:        pulumi.String("acc-test"),
    			HostName:           pulumi.String("tf-acc-test"),
    			ImageId:            *pulumi.String(fooImages.Images[0].ImageId),
    			InstanceType:       pulumi.String("ecs.g1.large"),
    			Password:           pulumi.String("93f0cb0614Aab12"),
    			InstanceChargeType: pulumi.String("PostPaid"),
    			SystemVolumeType:   pulumi.String("ESSD_PL0"),
    			SystemVolumeSize:   pulumi.Int(40),
    			SubnetId:           fooSubnet.ID(),
    			SecurityGroupIds: pulumi.StringArray{
    				fooSecurityGroup.ID(),
    			},
    			ProjectName: pulumi.String("default"),
    			Tags: ecs.InstanceTagArray{
    				&ecs.InstanceTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooVolume, err := ebs.NewVolume(ctx, "fooVolume", &ebs.VolumeArgs{
    			VolumeName:       pulumi.String("acc-test-volume"),
    			VolumeType:       pulumi.String("ESSD_PL0"),
    			Description:      pulumi.String("acc-test"),
    			Kind:             pulumi.String("data"),
    			Size:             pulumi.Int(40),
    			ZoneId:           *pulumi.String(fooZones.Zones[0].Id),
    			VolumeChargeType: pulumi.String("PostPaid"),
    			ProjectName:      pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ebs.NewVolumeAttach(ctx, "fooVolumeAttach", &ebs.VolumeAttachArgs{
    			InstanceId: fooInstance.ID(),
    			VolumeId:   fooVolume.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.vpc.SecurityGroup;
    import com.pulumi.volcengine.vpc.SecurityGroupArgs;
    import com.pulumi.volcengine.ecs.inputs.ImagesArgs;
    import com.pulumi.volcengine.ecs.Instance;
    import com.pulumi.volcengine.ecs.InstanceArgs;
    import com.pulumi.volcengine.ecs.inputs.InstanceTagArgs;
    import com.pulumi.volcengine.ebs.Volume;
    import com.pulumi.volcengine.ebs.VolumeArgs;
    import com.pulumi.volcengine.ebs.VolumeAttach;
    import com.pulumi.volcengine.ebs.VolumeAttachArgs;
    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 fooZones = EcsFunctions.Zones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()        
                .securityGroupName("acc-test-security-group")
                .vpcId(fooVpc.id())
                .build());
    
            final var fooImages = EcsFunctions.Images(ImagesArgs.builder()
                .osType("Linux")
                .visibility("public")
                .instanceTypeId("ecs.g1.large")
                .build());
    
            var fooInstance = new Instance("fooInstance", InstanceArgs.builder()        
                .instanceName("acc-test-ecs")
                .description("acc-test")
                .hostName("tf-acc-test")
                .imageId(fooImages.applyValue(imagesResult -> imagesResult.images()[0].imageId()))
                .instanceType("ecs.g1.large")
                .password("93f0cb0614Aab12")
                .instanceChargeType("PostPaid")
                .systemVolumeType("ESSD_PL0")
                .systemVolumeSize(40)
                .subnetId(fooSubnet.id())
                .securityGroupIds(fooSecurityGroup.id())
                .projectName("default")
                .tags(InstanceTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
            var fooVolume = new Volume("fooVolume", VolumeArgs.builder()        
                .volumeName("acc-test-volume")
                .volumeType("ESSD_PL0")
                .description("acc-test")
                .kind("data")
                .size(40)
                .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
                .volumeChargeType("PostPaid")
                .projectName("default")
                .build());
    
            var fooVolumeAttach = new VolumeAttach("fooVolumeAttach", VolumeAttachArgs.builder()        
                .instanceId(fooInstance.id())
                .volumeId(fooVolume.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.ecs.zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        vpc_id=foo_vpc.id)
    foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
        security_group_name="acc-test-security-group",
        vpc_id=foo_vpc.id)
    foo_images = volcengine.ecs.images(os_type="Linux",
        visibility="public",
        instance_type_id="ecs.g1.large")
    foo_instance = volcengine.ecs.Instance("fooInstance",
        instance_name="acc-test-ecs",
        description="acc-test",
        host_name="tf-acc-test",
        image_id=foo_images.images[0].image_id,
        instance_type="ecs.g1.large",
        password="93f0cb0614Aab12",
        instance_charge_type="PostPaid",
        system_volume_type="ESSD_PL0",
        system_volume_size=40,
        subnet_id=foo_subnet.id,
        security_group_ids=[foo_security_group.id],
        project_name="default",
        tags=[volcengine.ecs.InstanceTagArgs(
            key="k1",
            value="v1",
        )])
    foo_volume = volcengine.ebs.Volume("fooVolume",
        volume_name="acc-test-volume",
        volume_type="ESSD_PL0",
        description="acc-test",
        kind="data",
        size=40,
        zone_id=foo_zones.zones[0].id,
        volume_charge_type="PostPaid",
        project_name="default")
    foo_volume_attach = volcengine.ebs.VolumeAttach("fooVolumeAttach",
        instance_id=foo_instance.id,
        volume_id=foo_volume.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooZones = volcengine.ecs.Zones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
        securityGroupName: "acc-test-security-group",
        vpcId: fooVpc.id,
    });
    const fooImages = volcengine.ecs.Images({
        osType: "Linux",
        visibility: "public",
        instanceTypeId: "ecs.g1.large",
    });
    const fooInstance = new volcengine.ecs.Instance("fooInstance", {
        instanceName: "acc-test-ecs",
        description: "acc-test",
        hostName: "tf-acc-test",
        imageId: fooImages.then(fooImages => fooImages.images?.[0]?.imageId),
        instanceType: "ecs.g1.large",
        password: "93f0cb0614Aab12",
        instanceChargeType: "PostPaid",
        systemVolumeType: "ESSD_PL0",
        systemVolumeSize: 40,
        subnetId: fooSubnet.id,
        securityGroupIds: [fooSecurityGroup.id],
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    const fooVolume = new volcengine.ebs.Volume("fooVolume", {
        volumeName: "acc-test-volume",
        volumeType: "ESSD_PL0",
        description: "acc-test",
        kind: "data",
        size: 40,
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        volumeChargeType: "PostPaid",
        projectName: "default",
    });
    const fooVolumeAttach = new volcengine.ebs.VolumeAttach("fooVolumeAttach", {
        instanceId: fooInstance.id,
        volumeId: fooVolume.id,
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          vpcId: ${fooVpc.id}
      fooSecurityGroup:
        type: volcengine:vpc:SecurityGroup
        properties:
          securityGroupName: acc-test-security-group
          vpcId: ${fooVpc.id}
      fooInstance:
        type: volcengine:ecs:Instance
        properties:
          instanceName: acc-test-ecs
          description: acc-test
          hostName: tf-acc-test
          imageId: ${fooImages.images[0].imageId}
          instanceType: ecs.g1.large
          password: 93f0cb0614Aab12
          instanceChargeType: PostPaid
          systemVolumeType: ESSD_PL0
          systemVolumeSize: 40
          subnetId: ${fooSubnet.id}
          securityGroupIds:
            - ${fooSecurityGroup.id}
          projectName: default
          tags:
            - key: k1
              value: v1
      fooVolume:
        type: volcengine:ebs:Volume
        properties:
          volumeName: acc-test-volume
          volumeType: ESSD_PL0
          description: acc-test
          kind: data
          size: 40
          zoneId: ${fooZones.zones[0].id}
          volumeChargeType: PostPaid
          projectName: default
      fooVolumeAttach:
        type: volcengine:ebs:VolumeAttach
        properties:
          instanceId: ${fooInstance.id}
          volumeId: ${fooVolume.id}
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
      fooImages:
        fn::invoke:
          Function: volcengine:ecs:Images
          Arguments:
            osType: Linux
            visibility: public
            instanceTypeId: ecs.g1.large
    

    Create VolumeAttach Resource

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

    Constructor syntax

    new VolumeAttach(name: string, args: VolumeAttachArgs, opts?: CustomResourceOptions);
    @overload
    def VolumeAttach(resource_name: str,
                     args: VolumeAttachArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VolumeAttach(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     instance_id: Optional[str] = None,
                     volume_id: Optional[str] = None,
                     delete_with_instance: Optional[bool] = None)
    func NewVolumeAttach(ctx *Context, name string, args VolumeAttachArgs, opts ...ResourceOption) (*VolumeAttach, error)
    public VolumeAttach(string name, VolumeAttachArgs args, CustomResourceOptions? opts = null)
    public VolumeAttach(String name, VolumeAttachArgs args)
    public VolumeAttach(String name, VolumeAttachArgs args, CustomResourceOptions options)
    
    type: volcengine:ebs:VolumeAttach
    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 VolumeAttachArgs
    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 VolumeAttachArgs
    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 VolumeAttachArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeAttachArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeAttachArgs
    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 volumeAttachResource = new Volcengine.Ebs.VolumeAttach("volumeAttachResource", new()
    {
        InstanceId = "string",
        VolumeId = "string",
        DeleteWithInstance = false,
    });
    
    example, err := ebs.NewVolumeAttach(ctx, "volumeAttachResource", &ebs.VolumeAttachArgs{
    	InstanceId:         pulumi.String("string"),
    	VolumeId:           pulumi.String("string"),
    	DeleteWithInstance: pulumi.Bool(false),
    })
    
    var volumeAttachResource = new VolumeAttach("volumeAttachResource", VolumeAttachArgs.builder()
        .instanceId("string")
        .volumeId("string")
        .deleteWithInstance(false)
        .build());
    
    volume_attach_resource = volcengine.ebs.VolumeAttach("volumeAttachResource",
        instance_id="string",
        volume_id="string",
        delete_with_instance=False)
    
    const volumeAttachResource = new volcengine.ebs.VolumeAttach("volumeAttachResource", {
        instanceId: "string",
        volumeId: "string",
        deleteWithInstance: false,
    });
    
    type: volcengine:ebs:VolumeAttach
    properties:
        deleteWithInstance: false
        instanceId: string
        volumeId: string
    

    VolumeAttach Resource Properties

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

    Inputs

    The VolumeAttach resource accepts the following input properties:

    InstanceId string
    The Id of Instance.
    VolumeId string
    The Id of Volume.
    DeleteWithInstance bool
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    InstanceId string
    The Id of Instance.
    VolumeId string
    The Id of Volume.
    DeleteWithInstance bool
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instanceId String
    The Id of Instance.
    volumeId String
    The Id of Volume.
    deleteWithInstance Boolean
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instanceId string
    The Id of Instance.
    volumeId string
    The Id of Volume.
    deleteWithInstance boolean
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instance_id str
    The Id of Instance.
    volume_id str
    The Id of Volume.
    delete_with_instance bool
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instanceId String
    The Id of Instance.
    volumeId String
    The Id of Volume.
    deleteWithInstance Boolean
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.

    Outputs

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

    CreatedAt string
    Creation time of Volume.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of Volume.
    UpdatedAt string
    Update time of Volume.
    CreatedAt string
    Creation time of Volume.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of Volume.
    UpdatedAt string
    Update time of Volume.
    createdAt String
    Creation time of Volume.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of Volume.
    updatedAt String
    Update time of Volume.
    createdAt string
    Creation time of Volume.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of Volume.
    updatedAt string
    Update time of Volume.
    created_at str
    Creation time of Volume.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of Volume.
    updated_at str
    Update time of Volume.
    createdAt String
    Creation time of Volume.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of Volume.
    updatedAt String
    Update time of Volume.

    Look up Existing VolumeAttach Resource

    Get an existing VolumeAttach 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?: VolumeAttachState, opts?: CustomResourceOptions): VolumeAttach
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            delete_with_instance: Optional[bool] = None,
            instance_id: Optional[str] = None,
            status: Optional[str] = None,
            updated_at: Optional[str] = None,
            volume_id: Optional[str] = None) -> VolumeAttach
    func GetVolumeAttach(ctx *Context, name string, id IDInput, state *VolumeAttachState, opts ...ResourceOption) (*VolumeAttach, error)
    public static VolumeAttach Get(string name, Input<string> id, VolumeAttachState? state, CustomResourceOptions? opts = null)
    public static VolumeAttach get(String name, Output<String> id, VolumeAttachState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CreatedAt string
    Creation time of Volume.
    DeleteWithInstance bool
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    InstanceId string
    The Id of Instance.
    Status string
    Status of Volume.
    UpdatedAt string
    Update time of Volume.
    VolumeId string
    The Id of Volume.
    CreatedAt string
    Creation time of Volume.
    DeleteWithInstance bool
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    InstanceId string
    The Id of Instance.
    Status string
    Status of Volume.
    UpdatedAt string
    Update time of Volume.
    VolumeId string
    The Id of Volume.
    createdAt String
    Creation time of Volume.
    deleteWithInstance Boolean
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instanceId String
    The Id of Instance.
    status String
    Status of Volume.
    updatedAt String
    Update time of Volume.
    volumeId String
    The Id of Volume.
    createdAt string
    Creation time of Volume.
    deleteWithInstance boolean
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instanceId string
    The Id of Instance.
    status string
    Status of Volume.
    updatedAt string
    Update time of Volume.
    volumeId string
    The Id of Volume.
    created_at str
    Creation time of Volume.
    delete_with_instance bool
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instance_id str
    The Id of Instance.
    status str
    Status of Volume.
    updated_at str
    Update time of Volume.
    volume_id str
    The Id of Volume.
    createdAt String
    Creation time of Volume.
    deleteWithInstance Boolean
    Delete Volume with Attached Instance.It is not recommended to use this field. If used, please ensure that the value of this field is consistent with the value of delete_with_instance in volcengine_volume.
    instanceId String
    The Id of Instance.
    status String
    Status of Volume.
    updatedAt String
    Update time of Volume.
    volumeId String
    The Id of Volume.

    Import

    VolumeAttach can be imported using the id, e.g.

     $ pulumi import volcengine:ebs/volumeAttach:VolumeAttach default vol-abc12345:i-abc12345
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine