閱讀467 返回首頁    go 汽車大全


DescribeTable__API 概覽_API 參考_表格存儲-阿裏雲

行為:

查詢指定表的結構信息和預留讀/寫吞吐量設置信息。

請求結構:

  1. message DescribeTableRequest {
  2. required string table_name = 1;
  3. }

table_name:

  • 類型:string。

  • 是否必要參數:是。

  • 需要查詢的表名。

響應消息結構:

  1. message DescribeTableResponse {
  2. required TableMeta table_meta = 1;
  3. required ReservedThroughputDetails reserved_throughput_details = 2;
  4. }

table_meta:

  • 類型: TableMeta

  • 該表的 Schema,與建表時給出的 Schema 相同。

reserved_throughput_details:

  • 類型:ReservedThroughputDetails

  • 該表的預留讀/寫吞吐設置信息除了包含當前的預留讀/寫吞吐設置值之外,還包含了最近一次更新該表的預留讀/寫吞吐設置的時間和當日已下調預留讀/寫吞吐的次數。

請求示例:

  1. DescribeTableRequest {
  2. table_name: "consume_history"
  3. }

響應示例:

  1. DescribeTableResponse {
  2. table_meta {
  3. table_name: "consume_history"
  4. primary_key {
  5. name: "CardID"
  6. type: STRING
  7. }
  8. primary_key {
  9. name: "SellerID"
  10. type: STRING
  11. }
  12. primary_key {
  13. name: "DeviceID"
  14. type: STRING
  15. }
  16. primary_key {
  17. name: "OrderNumber"
  18. type: INTEGER
  19. }
  20. }
  21. capacity_unit_details {
  22. capacity_unit {
  23. read: 10
  24. write: 150
  25. }
  26. last_increase_time: 1407507306
  27. last_decrease_time: 1407507306
  28. number_of_decreases_today: 2
  29. }
  30. }

最後更新:2016-11-23 16:03:56

  上一篇:go UpdateTable__API 概覽_API 參考_表格存儲-阿裏雲
  下一篇:go 表格存儲 ProtocolBuffer 消息定義__API 概覽_API 參考_表格存儲-阿裏雲