DescribeVolumesModifications
Describes the most recent volume modification request for the specified EBS volumes.
For more information, see Monitor the progress of volume modifications in the Amazon EBS User Guide.
Request Parameters
The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.
- DryRun
-
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.Type: Boolean
Required: No
- Filter.N
-
The filters.
-
modification-state
- The current modification state (modifying | optimizing | completed | failed). -
original-iops
- The original IOPS rate of the volume. -
original-size
- The original size of the volume, in GiB. -
original-volume-type
- The original volume type of the volume (standard | io1 | io2 | gp2 | sc1 | st1). -
originalMultiAttachEnabled
- Indicates whether Multi-Attach support was enabled (true | false). -
start-time
- The modification start time. -
target-iops
- The target IOPS rate of the volume. -
target-size
- The target size of the volume, in GiB. -
target-volume-type
- The target volume type of the volume (standard | io1 | io2 | gp2 | sc1 | st1). -
targetMultiAttachEnabled
- Indicates whether Multi-Attach support is to be enabled (true | false). -
volume-id
- The ID of the volume.
Type: Array of Filter objects
Required: No
-
- MaxResults
-
The maximum number of results (up to a limit of 500) to be returned in a paginated request. For more information, see Pagination.
Type: Integer
Required: No
- NextToken
-
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
Type: String
Required: No
- VolumeId.N
-
The IDs of the volumes.
Type: Array of strings
Required: No
Response Elements
The following elements are returned by the service.
- nextToken
-
The token to include in another request to get the next page of items. This value is
null
when there are no more items to return.Type: String
- requestId
-
The ID of the request.
Type: String
- volumeModificationSet
-
Information about the volume modifications.
Type: Array of VolumeModification objects
Errors
For information about the errors that are common to all actions, see Common client error codes.
Examples
Example 1
This example displays volume status after modifications to size, type, IOPS provisioning, and Multi-Attach support.
Sample Request
https://ec2.amazonaws.com/?Action=DescribeVolumesModifications
&VolumeId.1=vol-0123456789EXAMPLE
&Version=2016-11-15
Sample Response
<DescribeVolumesModificationsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<volumeModificationSet>
<item>
<targetIops>10000</targetIops>
<originalIops>300</originalIops>
<modificationState>optimizing</modificationState>
<targetSize>200</targetSize>
<targetVolumeType>io1</targetVolumeType>
<volumeId>vol-0123456789EXAMPLE</volumeId>
<progress>40</progress>
<startTime>2017-01-19T23:58:04.922Z</startTime>
<originalSize>100</originalSize>
<originalVolumeType>gp2</originalVolumeType>
<originalMultiAttachEnabled>false</originalMultiAttachEnabled>
<targetMultiAttachEnabled>true</targetMultiAttachEnabled>
</item>
</volumeModificationSet>
</DescribeVolumesModificationsResponse>
Example 2
This example displays information about all volumes in a Region with a modification state of optimizing or completed.
Sample Request
https://ec2.amazonaws.com/?Action=DescribeVolumesModifications
&Filter.1.Value.2=completed
&Filter.1.Value.1=optimizing
&Version=2016-11-15
&Filter.1.Name=modification-state
Sample Response
<DescribeVolumesModificationsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
<requestId>35fdf8d3-6ffa-46dc-8f8e-62fe70bc31a2</requestId>
<volumeModificationSet>
<item>
<targetIops>10000</targetIops>
<originalIops>100</originalIops>
<modificationState>optimizing</modificationState>
<targetSize>2000</targetSize>
<targetVolumeType>io1</targetVolumeType>
<volumeId>vol-06397e7a0eEXAMPLE</volumeId>
<progress>3</progress>
<startTime>2017-02-10T23:40:57.612Z</startTime>
<originalSize>10</originalSize>
<originalVolumeType>gp2</originalVolumeType>
</item>
<item>
<targetIops>10000</targetIops>
<originalIops>100</originalIops>
<modificationState>completed</modificationState>
<targetSize>200</targetSize>
<targetVolumeType>io1</targetVolumeType>
<volumeId>vol-bEXAMPLE</volumeId>
<progress>100</progress>
<startTime>2017-02-10T22:50:52.207Z</startTime>
<endTime>2017-02-10T22:56:04.823Z</endTime>
<originalSize>8</originalSize>
<originalVolumeType>gp2</originalVolumeType>
</item>
</volumeModificationSet>
</DescribeVolumesModificationsResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: