Class VolumeV1


  • public class VolumeV1
    extends com.pulumi.resources.CustomResource
    Manages a V1 volume resource within OpenStack. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.blockstorage.VolumeV1; import com.pulumi.openstack.blockstorage.VolumeV1Args; 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) { var volume1 = new VolumeV1("volume1", VolumeV1Args.builder() .description("first test volume") .region("RegionOne") .size(3) .build()); } } ``` ## Import Volumes can be imported using the `id`, e.g. ```sh $ pulumi import openstack:blockstorage/volumeV1:VolumeV1 volume_1 ea257959-eeb1-4c10-8d33-26f0409a755d ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      VolumeV1​(java.lang.String name)  
      VolumeV1​(java.lang.String name, VolumeV1Args args)  
      VolumeV1​(java.lang.String name, VolumeV1Args args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.List<VolumeV1Attachment>> attachments()  
      com.pulumi.core.Output<java.lang.String> availabilityZone()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static VolumeV1 get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VolumeV1State state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> imageId()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> metadata()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.Integer> size()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> snapshotId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> sourceVolId()  
      com.pulumi.core.Output<java.lang.String> volumeType()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VolumeV1

        public VolumeV1​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • VolumeV1

        public VolumeV1​(java.lang.String name,
                        VolumeV1Args args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • VolumeV1

        public VolumeV1​(java.lang.String name,
                        VolumeV1Args args,
                        @Nullable
                        com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • attachments

        public com.pulumi.core.Output<java.util.List<VolumeV1Attachment>> attachments()
        Returns:
        If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
      • availabilityZone

        public com.pulumi.core.Output<java.lang.String> availabilityZone()
        Returns:
        The availability zone for the volume. Changing this creates a new volume.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        A description of the volume. Changing this updates the volume's description.
      • imageId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> imageId()
        Returns:
        The image ID from which to create the volume. Changing this creates a new volume.
      • metadata

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> metadata()
        Returns:
        Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        A unique name for the volume. Changing this updates the volume's name.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to create the volume. If omitted, the `region` argument of the provider is used. Changing this creates a new volume.
      • size

        public com.pulumi.core.Output<java.lang.Integer> size()
        Returns:
        The size of the volume to create (in gigabytes). Changing this creates a new volume.
      • snapshotId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> snapshotId()
        Returns:
        The snapshot ID from which to create the volume. Changing this creates a new volume.
      • sourceVolId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> sourceVolId()
        Returns:
        The volume ID from which to create the volume. Changing this creates a new volume.
      • volumeType

        public com.pulumi.core.Output<java.lang.String> volumeType()
        Returns:
        The type of volume to create. Changing this creates a new volume.
      • get

        public static VolumeV1 get​(java.lang.String name,
                                   com.pulumi.core.Output<java.lang.String> id,
                                   @Nullable
                                   VolumeV1State state,
                                   @Nullable
                                   com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.