REST API Endpoints Reference

February 12, 2019 ยท View on GitHub

Note: Fields in request structs marked with "omitempty" struct tag are optional.

NameMethodsPathRequestResponse
GetVersionGET/versionVersionResp
VolumeCreatePOST/volumesVolCreateReqVolumeCreateResp
VolumeExpandPOST/volumes/{volname}/expandVolExpandReqVolumeExpandResp
VolumeOptionGetGET/volumes/{volname}/options/{optname:.*}VolumeOptionGetResp
VolumeOptionsGetGET/volumes/{volname}/optionsVolumeOptionsGetResp
VolumeOptionsPOST/volumes/{volname}/optionsVolOptionReqVolumeOptionResp
VolumeResetDELETE/volumes/{volname}/optionsVolOptionResetReqVolumeOptionResp
OptionGroupListGET/volumes/options-groupOptionGroupListResp
OptionGroupCreatePOST/volumes/options-groupOptionGroupReq
OptionGroupDeleteDELETE/volumes/options-group/{groupname}
VolumeDeleteDELETE/volumes/{volname}
VolumeInfoGET/volumes/{volname}VolumeGetResp
VolumeBricksStatusGET/volumes/{volname}/bricksBricksStatusResp
VolumeStatusGET/volumes/{volname}/statusVolumeStatusResp
VolumeListGET/volumesVolumeListResp
VolumeStartPOST/volumes/{volname}/startVolumeStartReqVolumeStartResp
VolumeStopPOST/volumes/{volname}/stopVolumeStopResp
StatedumpPOST/volumes/{volname}/statedumpVolStatedumpReq
ReplaceBrickPOST/volumes/{volname}/replacebrickReplaceBrickReqReplaceBrickResp
EditVolumePOST/volumes/{volname}/editVolEditReqVolumeEditResp
ProfileVolumeGET/volumes/{volname}/profile/{option}BrickProfileInfo
SnapshotCreatePOST/snapshotsSnapCreateReqSnapCreateResp
SnapshotActivatePOST/snapshots/{snapname}/activateSnapActivateReqSnapshotActivateResp
SnapshotDeactivatePOST/snapshots/{snapname}/deactivateSnapshotDeactivateResp
SnapshotClonePOST/snapshots/{snapname}/cloneSnapCloneReqSnapshotCloneResp
SnapshotRestorePOST/snapshots/{snapname}/restore
SnapshotInfoGET/snapshots/{snapname}SnapGetResp
SnapshotListAllGET/snapshotsSnapListResp
SnapshotStatusGET/snapshots/{snapname}/statusSnapStatusResp
SnapshotDeleteDELETE/snapshots/{snapname}
SnapshotConfigGetGET/snapshots/config
SnapshotConfigSetPOST/snapshots/config
SnapshotConfigResetDELETE/snapshots/config
GetPeerGET/peers/{peerid}PeerGetResp
GetPeersGET/peersPeerListResp
DeletePeerDELETE/peers/{peerid}
AddPeerPOST/peersPeerAddReqPeerAddResp
EditPeerPOST/peers/{peerid}PeerEditReqPeerEditResp
SetClusterOptionsPOST/cluster/options
GetClusterOptionsGET/cluster/options
GeoReplicationCreatePOST/geo-replication/{mastervolid}/{remotevolid}GeorepCreateReqGeorepSession
GeoReplicationStartPOST/geo-replication/{mastervolid}/{remotevolid}/startGeorepCommandsReqGeorepSession
GeoReplicationStopPOST/geo-replication/{mastervolid}/{remotevolid}/stopGeorepCommandsReqGeorepSession
GeoReplicationDeleteDELETE/geo-replication/{mastervolid}/{remotevolid}
GeoReplicationPausePOST/geo-replication/{mastervolid}/{remotevolid}/pauseGeorepCommandsReqGeorepSession
GeoReplicationResumePOST/geo-replication/{mastervolid}/{remotevolid}/resumeGeorepCommandsReqGeorepSession
GeoReplicationStatusGET/geo-replication/{mastervolid}/{remotevolid}GeorepSession
GeoReplicationConfigGetGET/geo-replication/{mastervolid}/{remotevolid}/configGeorepOption
GeoReplicationConfigSetPOST/geo-replication/{mastervolid}/{remotevolid}/configGeorepOptionGeorepOption
GeoReplicationConfigResetDELETE/geo-replication/{mastervolid}/{remotevolid}/config
GeoReplicationStatusListGET/geo-replicationGeorepSessionList
GeoReplicationSshKeyGeneratePOST/ssh-key/{volname}/generateGeorepSSHPublicKey
GeoReplicationSshKeyPushPOST/ssh-key/{volname}/pushGeorepSSHPublicKey
GeoReplicationSshKeyGetGET/ssh-key/{volname}GeorepSSHPublicKey
BitrotEnablePOST/volumes/{volname}/bitrot/enable
BitrotDisablePOST/volumes/{volname}/bitrot/disable
BitrotScrubOndemandPOST/volumes/{volname}/bitrot/scrubondemand
BitrotScrubStatusGET/volumes/{volname}/bitrot/scrubstatus
QuotaListGET/quota/{volname}/limit
QuotaLimitPOST/quota/{volname}/limit
QuotaRemoveDELETE/quota/{volname}/limit
EventsWebhookAddPOST/events/webhookWebhook
EventsWebhookTestPOST/events/webhook/testWebhook
EventsWebhookDeleteDELETE/events/webhookWebhookDel
EventsWebhookListGET/events/webhookWebhookList
EventsListGET/eventsEvent
SelfHealInfoGET/volumes/{volname}/{opts}/heal-infoBrickHealInfo
SelfHealInfo2GET/volumes/{volname}/heal-infoBrickHealInfo
SelfHealPOST/volumes/{volname}/heal
Split-Brain-OperationsPOST/volumes/{volname}/split-brain/{operation}SplitBrainReq
DeviceAddPOST/devices/{peerid}AddDeviceReqAddDeviceResp
DeviceInfoGET/devices/{peerid}/{device:.*}ListDeviceResp
DevicesInPeerGET/devices/{peerid}ListDeviceResp
DeviceEditPOST/devices/{peerid}/{device:.*}EditDeviceReq
DevicesListGET/devicesListDeviceResp
RebalanceStartPOST/volumes/{volname}/rebalance/startStartReq
RebalanceStopPOST/volumes/{volname}/rebalance/stop
RebalanceStatusGET/volumes/{volname}/rebalance
BlockCreatePOST/blockvolumes/{provider}BlockVolumeCreateRequestBlockVolumeCreateResp
BlockDeleteDELETE/blockvolumes/{provider}/{name}
BlockListGET/blockvolumes/{provider}
BlockGetGET/blockvolumes/{provider}/{name}
TraceEnablePOST/tracemgmtSetupTracingReqJaegerConfigInfo
TraceStatusGET/tracemgmtJaegerConfigInfo
TraceUpdatePOST/tracemgmt/updateSetupTracingReqJaegerConfigInfo
TraceDisableDELETE/tracemgmt
StatedumpGET/statedump
List EndpointsGET/endpointsListEndpointsResp
Glusterd2 service statusGET/ping