cURL
curl --request GET \ --url https://api.mkinf.io/v0.1/projects/{projectId}/disks/{id} \ --header 'Authorization: Bearer <token>'
{ "attached_to": [ { "attachment_type": "string", "mode": "string", "vm_id": "123e4567-e89b-12d3-a456-426614174000" } ], "block_size": 4096, "created_at": "2021-12-03T19:58:34Z", "id": "123e4567-e89b-12d3-a456-426614174000", "location": "us-northcentral1-a", "name": "my-disk", "serial_number": "96FD14FDBCF7E21E8EC", "size": "10GiB", "type": "persistent-ssd", "updated_at": "2021-12-03T19:58:34Z" }
Get a disk
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Project id
Disk id
The response is of type object.
object