GET LABEL STATE

description

  1. NAME:
  2. get_label_state: get label's state
  3. SYNOPSIS
  4. curl -u user:passwd http://host:port/api/{db}/{label}/_state
  5. DESCRIPTION
  6. Check the status of a transaction
  7. RETURN VALUES
  8. Return of JSON format string of the status of specified transaction:
  9. 执行完毕后,会以Json格式返回这次导入的相关内容。当前包括一下字段
  10. Label: The specified label.
  11. Status: Success or not of this request.
  12. Message: Error messages
  13. State:
  14. UNKNOWN/PREPARE/COMMITTED/VISIBLE/ABORTED
  15. ERRORS

example

  1. 1. Get status of label "testLabel" on database "testDb"
  2. curl -u root http://host:port/api/testDb/testLabel/_state

keyword

  1. GET, LABEL, STATE