-
Notifications
You must be signed in to change notification settings - Fork 3
REST API
Bob has an REST Api specified in config-examples/openapi.yaml.
-
Methods
- GET /status
- GET /nodes
- GET /metadata/distrfunc
- GET /vdisks
- GET /vdisks/{VDiskId}
- GET /vdisks/{VDiskId}/records/count
- GET /vdisks/{VDiskId}/partitions
- GET /vdisks/{VDiskId}/partitions/{partitionId}
- DELETE /vdisks/{VDiskId}/partitions/by_timestamp/{timestamp}
- PUT /vdisks/{VDiskId}/partitions/by_timestamp/{timestamp}/{action}
- GET /disks/list
- POST /disks/{disk_name}/stop
- POST /disks/{disk_name}/start
- POST /vdisks/{vdisk_id}/remount
- DELETE /blobs/outdated
- GET /alien
- GET /alien/dir
- GET /vdisks/{vdisk_id}/replicas/local/dirs
- GET /data/{key}
- POST /data/{key}
Returns information about this node.
Returns a list of known nodes and vdisks on them.
Return information about key distribution function
Returns a list of vdisks
Returns a vdisk info by ID
Arguments:
- VDiskId - unsigned 32bit integer
Returns count of records of this on node
Arguments:
- VDiskId - unsigned 32bit integer
Returns a list of partitions
Arguments:
- VDiskId - unsigned 32bit integer
Returns a partition info by ID
Arguments:
- VDiskId - unsigned 32bit integer
- partitionId - string
Delete partitions by timestamp
Arguments:
- VDiskId - unsigned 32bit integer
- timestamp - unsigned 64bit integer
Attach/Detach a partition by timestamp
Arguments:
- VDiskId - unsigned 32bit integer
- timestamp - unsigned 64bit integer
- action - 'attach' or 'detach' string
Returns the list of disks with their states
Stops all disks controller for disk
Arguments:
- disk_name - string
Trying to start all disk controllers for disk
Arguments:
- disk_name - string
Remount partitions on vdisk
Arguments:
- vdisk_id - unsigned 32bit integer
Close active blobs of holders not used recently
Returns an alien dir info
Return directory of alien
Returns directories of local replicas of vdisk
Arguments:
- vdisk_id - unsigned 32bit integer
Returns data by key
Arguments:
- key - can be GUID, hexadecimal or decimal number
Examples of keys:
- GUID -
{5cc66ef2-e35f-44ea-80df-edf9ce481075}or5cc66ef2-e35f-44ea-80df-edf9ce481075 - Hexadecimal -
0xFF12,0xf - Decimal -
12
Add data to bob by key
Arguments:
- key - can be GUID, hexadecimal or decimal number. Same format as for GET method
Body is binary data to be stored in bob