Get info about a Linode Volume.
Field | Type | Required | Description |
---|---|---|---|
api_token |
str |
Required | The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: Get info about a volume by label
linode.cloud.volume_info:
label: example-volume
- name: Get info about a volume by id
linode.cloud.volume_info:
id: 12345
Field | Type | Required | Description |
---|---|---|---|
id |
int |
Optional | The ID of the Volume. Optional if label is defined. (Conflicts With: label ) |
label |
str |
Optional | The label of the Volume. Optional if id is defined. (Conflicts With: id ) |
-
volume
- The volume in JSON serialized form.- Sample Response:
{ "created": "2018-01-01T00:01:01", "filesystem_path": "/dev/disk/by-id/scsi-0Linode_Volume_my-volume", "hardware_type": "nvme", "id": 12345, "label": "my-volume", "linode_id": 12346, "linode_label": "linode123", "region": "us-east", "size": 30, "status": "active", "tags": [ "example tag", "another example" ], "updated": "2018-01-01T00:01:01" }
- See the Linode API response documentation for a list of returned fields
- Sample Response: