Gets a list of volumes belonging to the project
Required permission
Project > Volumes > General > Read
Path parameters
projectId
string requiredID of the project
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
[array] requiredResult data.- {object}A volume object
id
string requiredIdentifier for the volumename
string requiredVolume namespec
{object} requiredExample storage schemaattachedObjects
[array]List of objects this volume is attached to.- {object}The object to attach this volume to.
id
string requiredThe id of object to attach this volume to.pattern^[A-Za-z0-9-]+$type
string requiredThe type of the object to attach this volume to.one ofservice, jobbackupSchedules
[array]- {object}
scheduling
{object} requiredSchedule for the backup.interval
string requiredThe interval between backups. Each addon can only have one backup schedule of each interval for each backup type.one ofhourly, daily, weeklyminute
[array] requiredAn array of minutes when the backup should be performed.- integerA minute when the backup should be performed.min0max59
hour
[array]An array of hours in 24 hour format when the backup should be performed. At these hours, a backup will be performed at each of the minutes provided in the `minute` field. Required for `daily` and `weekly` intervals and unavailable for `hourly` intervals.- integerAn hour when the backup should be performed, in 24 hour format.min0max23
day
[array]An array of days of the week when the backup should be performed, where `0` represents Monday and `6` represents Sunday. On these days, a backup will be performed at each of the minutes provided in the `minute` field whenever it is an hour from the `hour` field. Required for `weekly` intervals and unavailable for `hourly` and `daily` intervals.- integerA day of the week when the backup should be performed, where `0` represents Monday and `6` represents Sunday.min0max6
retentionTime
integer requiredThe time the backup is retained for, in days.min1status
string requiredStatus the volume is in on the clustercreatedAt
string requiredThe timestamp the volume was created atupdatedAt
string requiredThe timestamp the volume was last updated atpagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/volumes
GET /v1/teams/{teamId}/projects/{projectId}/volumes
Example response
200 OK
The list of volumes.
JSON
{
"data": [
{
"id": "example-volume",
"name": "Example Volume",
"spec": {
"storageClassName": "nvme",
"storageSize": 6144
},
"attachedObjects": [
{
"id": "example-service",
"type": "service"
}
],
"backupSchedules": [
{
"scheduling": {
"interval": "weekly",
"minute": [
30
],
"hour": [
18
],
"day": [
4
]
},
"retentionTime": 7
}
],
"status": "BOUND",
"createdAt": "2021-01-01 12:00:00.000Z",
"updatedAt": "2021-01-01 12:00:00.000Z"
}
],
"pagination": {
"hasNextPage": false,
"count": 1
}
}