Skip to content

Instantly share code, notes, and snippets.

@aravindavk
Created July 24, 2018 05:50
Show Gist options
  • Save aravindavk/8049b83dae57f3280fea2618495f6674 to your computer and use it in GitHub Desktop.
Save aravindavk/8049b83dae57f3280fea2618495f6674 to your computer and use it in GitHub Desktop.

Gluster Management APIs

Gluster Management APIs

Get Volumes information

URL

/volumes

HTTP Method

get

Parameters

None

Request Body(application/json)

None

Sample Request :

curl -X GET http://localhost:24007/v1/volumes

Volume Create

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

Start Volume

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

Stop Volume

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment