Gluster Management APIs
URL
/volumes
HTTP Method
get
Parameters
None
Request Body(application/json)
None
Sample Request :
curl -X GET http://localhost:24007/v1/volumes
URL
/volumes
HTTP Method
post
Parameters
None
Request Body(application/json)
Create Volume with bricks auto provisioned
Field | Description | Data Type |
---|---|---|
name | Optional. Volume Name | string |
size | Optional. Volume Size | int |
OR Create Volume with bricks manually provisioned
Field | Description | Data Type |
---|---|---|
name | Optional. Volume Name | string |
Sample Request :
curl -X POST http://localhost:24007/v1/volumes
URL
/volumes/{volname}/start
HTTP Method
post
Parameters
Parameter | Description | Data Type |
---|---|---|
volname | Required. Volume Name | string |
Request Body(application/json)
None
Sample Request :
curl -X POST http://localhost:24007/v1/volumes/gv1/start
URL
/volumes/{volname}/stop
HTTP Method
post
Parameters
Parameter | Description | Data Type |
---|---|---|
volname | Required. Volume Name | string |
Request Body(application/json)
None
Sample Request :
curl -X POST http://localhost:24007/v1/volumes/{volname}/stop