Skip to content

Commit

Permalink
spec: update csp spec for volumes to return free_bytes and used_bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Raunak <[email protected]>
  • Loading branch information
raunakkumar committed Mar 19, 2021
1 parent b5040c9 commit c40b92f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ GET http://localhost:8080/csp/containers/v1/volumes
"config": {
"parameter1": "default",
"parameter2": false
}
},
"used_bytes" : 12570624,
"free_bytes" : 1061171200
},
{
"id": "067b5b0c6a3d0ece0600000000000000000000001d",
Expand All @@ -129,7 +131,9 @@ GET http://localhost:8080/csp/containers/v1/volumes
"config": {
"parameter1": "default",
"parameter2": false
}
},
"used_bytes" : 12570624,
"free_bytes" : 1061171200
}
]
```
Expand All @@ -154,7 +158,9 @@ GET http://localhost:8080/csp/containers/v1/volumes/067b5b0c6a3d0ece060000000000
"config": {
"parameter1": "default",
"parameter2": false
}
},
"used_bytes" : 12570624,
"free_bytes" : 1061171200
}
```

Expand All @@ -181,7 +187,9 @@ GET http://localhost:8080/csp/containers/v1/volumes?name=volume1
"parameter2": false
},
"base_snapshot_id": "",
"volume_group_id": ""
"volume_group_id": "",
"used_bytes" : 12570624,
"free_bytes" : 1061171200
}
]
```
Expand Down Expand Up @@ -224,7 +232,9 @@ PUT `/containers/v1/volumes/{id}`
"config": {
"parameter1": "default",
"parameter2": false
}
},
"used_bytes" : 12570624,
"free_bytes" : 1061171200
}
```

Expand Down Expand Up @@ -915,6 +925,8 @@ DELETE http://localhost:8080/csp/containers/v1/snapshot_groups/052265c9672660666
| | volume_group_id | string | | X | X |
| | published | boolean | | | X |
| | config | map[string]interface{} | | | X |
| | free_bytes | number | | | X |
| | used_bytes | number | | | X |
| PublishOptions | | | | | |
| | host_uuid | string | X | X | |
| | access_protocol | string | X | X | |
Expand Down

0 comments on commit c40b92f

Please sign in to comment.