Status
Current state: "WIP/Under DiscussionAccepted"
Discussion thread: N/A
JIRA: N/A
...
Provide Http EndPoints for these components:
* Components:
* Root endpoint: List all the available endpoints
* Config: Do the configuration.
* Bookkeeper : API related to BookKeeper.
* * Ledger: API related to ledgers
...
/api/v1/<component>/<action>
2. Root endpoint:
/api/v1 | ||||||
---|---|---|---|---|---|---|
GET | ||||||
Get all the available endpoints | ||||||
Response
|
3. Config:
/api/v1/config/valuesserver_config | ||||||||
---|---|---|---|---|---|---|---|---|
GET | ||||||||
Get value of all configured values overridden on local server config | ||||||||
Response
|
/api/v1/config/server_config | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POSTPUT | |||||||||||||
Update server configuration | |||||||||||||
Parameters
Body
Response | |||||||||||||
/api/v1/bookkeeper/format_metadata/?force_format=<force> | |||||||||||||
POST | |||||||||||||
Format bookkeeper metadata | |||||||||||||
Parameters
|
4. Bookkeeper:
Response
| ||||||||||||||||||
/api/v1/bookkeeper/list_bookies/?type=<type>&print_hostnames=<hostnames> | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||||
Get all the available bookies. | ||||||||||||||||||
Parameters
Response
| ||||||||||||||||||
/api/v1/bookkeeper/update_cookie/?bookie_id_type=<idType> | ||||||||||||||||||
POST | ||||||||||||||||||
Update bookie id in cookie. | ||||||||||||||||||
Parameters
Response
|
5. Ledger:
...
/api/v1/ledger/create/
...
Parameters
3. Ledger:
Name | Type | Required | Description |
---|---|---|---|
ensemble_size | Int | Yes | ensemble size |
write_quorum_size | Int | Yes | write quorum size |
ack_quorum_size | Int | Yes | ack quorum size |
digest_type | String | Yes | MAC or CRC32 |
password | String | Yes | password |
medadata | <String, String> | No | custom metadata |
Body
{ "write_quorum_size": <int_value>, "ack_quorum_size": <int_value>, "digest_type": "MAC", "password": <password_string>, "medadata": { |
---|
Response
...
Don't have permission
...
/api/v1/ledger/delete/?ledger_id=<ledger_id> | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DELETE | ||||||||||||||||
Delete a ledger. | ||||||||||||||||
Parameters
Response
|
/api/v1/ledger/list/?print_metadata=<metadata> | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||
List all the ledgers | ||||||||||||||||
Parameters
Response
|
/api/v1/ledger/metadata/?ledger_id=<ledger_id> | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||
Get the metadata of a ledger | ||||||||||||||||
Parameters
Response
|
/api/v1/ledger/read/?ledger_id=<ledger_id>&start_entry_id=<start_entry_id>&end_entry_id=<end_entry_id> | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||||||||||
Read a range of entries from ledger | ||||||||||||||||||||||||
Parameters
Response
|
64. Bookies
/api/v1/bookie/formatlist_bookiebookies/?delete_cookie=<delete_cookie> | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PUT | ||||||||||||||||||||
type=<type>&print_hostnames=<hostnames> | ||||||||||||||||||||
GET | ||||||||||||||||||||
Get all the available bookiesFormat a bookie. | ||||||||||||||||||||
Parameters
Response
|
/api/v1/bookie/list_bookie_info | ||||||
---|---|---|---|---|---|---|
Get | ||||||
Get current bookie bookies disk usage info of this cluster. | ||||||
Response
|
/api/v1/bookie/listlast_disk_files/?file_type=<type>log_mark | ||||||
---|---|---|---|---|---|---|
GET | ||||||
Get all the files on disk of current bookie. Parameters | ||||||
Name | Type | Required | Description | type | String | No | file type: journal/entrylog/index
Response
|
/api/v1/bookie/readlist_entrydisk_logfile/?printfile_msg=<print_msg>&ledger_id=<ledger_id> &entry_id=<entry_id>&start_position=<start_position>&end_positon=<end_positon> | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||||||||||||||||
type=<type> | ||||||||||||||||||||||||||||||
GET | ||||||||||||||||||||||||||||||
Get all the files on disk of current bookie Read entry log content from entry log files. | ||||||||||||||||||||||||||||||
Parameters
Response
|
/api/v1/bookie/read_journal_file/?journal_dir=<journal_dir>&journal_id=<journal_id>&print_msg=<print_msg> | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||||||||||
Read journal fie content from disk. | ||||||||||||||||||||||||
Parameters
Response
|
/api/v1/bookie/print_last_log_mark | |||||||
---|---|---|---|---|---|---|---|
GET | |||||||
Get the last log marker
Response
|
/api/v1/bookie/expendexpand_storage | ||||||
---|---|---|---|---|---|---|
POSTPUT | ||||||
Format Expand storage for a bookie. | ||||||
Response
|
75. Recover
/api/v1/recover/bookie/:bookie_src/:bookie_dest/:delete_cookieautorecovery/bookie/ | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PUTPOST | |||||||||||||||||||||||||
Ledger data recovery for failed bookie | |||||||||||||||||||||||||
Parameters
Body
Response
|
/api/v1/recover/who_is_auditor/autorecovery/list_under_replicated_ledger/?missingreplica=<bookie_address>&excludingmissingreplica=<bookie_address> | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | ||||||||||||||||||||
Get auditor id.all under replicated ledgers. | ||||||||||||||||||||
Parameters
Response
|
/api/v1/autorecovery/who_is_auditor | ||||||||
---|---|---|---|---|---|---|---|---|
GET | ||||||||
Get auditor bookie id. | ||||||||
Response
|
/api/v1/recoverautorecovery/trigertrigger_audit | ||||||||
---|---|---|---|---|---|---|---|---|
PUT | ||||||||
Force trigger audit by resting the lostBookieRecoveryDelay. | ||||||||
Response
|
/api/v1/recoverautorecovery/lost_bookie_recovery_delay | ||||||||
---|---|---|---|---|---|---|---|---|
GET | ||||||||
Get lostBookieRecoveryDelay value in seconds. | ||||||||
Response
|
/api/v1/recoverautorecover/lost_bookie_recovery_delay/?delay_seconds=<seconds> | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POSTPUT | |||||||||||||||||
Set lostBookieRecoveryDelay value in seconds. | |||||||||||||||||
Parameters
Body
Response
|
/api/v1/recoverautorecovery/decommission | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POSTPUT | |||||||||||||
Decommission Bookie, Force trigger Audittask and make sure all the ledgers stored in the decommissioning bookie are replicated. | |||||||||||||
Parameters
| |||||||||||||
/api/v1/recover/list_under_replicated_ledger | |||||||||||||
GET | |||||||||||||
Get all under replicated ledgers. | |||||||||||||
Body
Response
|
...
Compatibility, Deprecation, and Migration Plan
...