Describe Volumes
ec2_describe_volumes | R Documentation |
Describes the specified EBS volumes or all of your EBS volumes¶
Description¶
Describes the specified EBS volumes or all of your EBS volumes.
If you are describing a long list of volumes, we recommend that you paginate the output to make the list more manageable. For more information, see Pagination.
For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.
We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Usage¶
ec2_describe_volumes(VolumeIds, DryRun, Filters, NextToken, MaxResults)
Arguments¶
VolumeIds |
The volume IDs. If not specified, then all volumes are included in the response. |
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
|
Filters |
The filters.
|
NextToken |
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. |
MaxResults |
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination. |
Value¶
A list with the following syntax:
list(
NextToken = "string",
Volumes = list(
list(
OutpostArn = "string",
Iops = 123,
Tags = list(
list(
Key = "string",
Value = "string"
)
),
VolumeType = "standard"|"io1"|"io2"|"gp2"|"sc1"|"st1"|"gp3",
FastRestored = TRUE|FALSE,
MultiAttachEnabled = TRUE|FALSE,
Throughput = 123,
SseType = "sse-ebs"|"sse-kms"|"none",
Operator = list(
Managed = TRUE|FALSE,
Principal = "string"
),
VolumeId = "string",
Size = 123,
SnapshotId = "string",
AvailabilityZone = "string",
State = "creating"|"available"|"in-use"|"deleting"|"deleted"|"error",
CreateTime = as.POSIXct(
"2015-01-01"
),
Attachments = list(
list(
DeleteOnTermination = TRUE|FALSE,
AssociatedResource = "string",
InstanceOwningService = "string",
VolumeId = "string",
InstanceId = "string",
Device = "string",
State = "attaching"|"attached"|"detaching"|"detached"|"busy",
AttachTime = as.POSIXct(
"2015-01-01"
)
)
),
Encrypted = TRUE|FALSE,
KmsKeyId = "string"
)
)
)
Request syntax¶
svc$describe_volumes(
VolumeIds = list(
"string"
),
DryRun = TRUE|FALSE,
Filters = list(
list(
Name = "string",
Values = list(
"string"
)
)
),
NextToken = "string",
MaxResults = 123
)
Examples¶
## Not run:
# This example describes all of your volumes in the default region.
svc$describe_volumes()
# This example describes all volumes that are both attached to the
# instance with the ID i-1234567890abcdef0 and set to delete when the
# instance terminates.
svc$describe_volumes(
Filters = list(
list(
Name = "attachment.instance-id",
Values = list(
"i-1234567890abcdef0"
)
),
list(
Name = "attachment.delete-on-termination",
Values = list(
"true"
)
)
)
)
## End(Not run)