Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ HTTP Request ] [ Parameters ] [ Request Example ] [ Response Example ] [ Sample Code ]

This API returns details of the specified Data Lake. And, you must enter a specific date, and based on this date, you can get information about the usage status of the lake. Date must be a date in the month for which detailed information is required, and use the format "YYYY-MM-DD". For example, if you need information for July 2021, send it as 2021-07-10 => 2021-07-{choose among the dates before the present}.

HTTP Request

Parameters

no parameters

Request Example

...

이 API는 지정한 Lake의 상세 정보를 반환한다. lake의 정보를 얻기 위해 url로 전달되는 lake id 외에 date매개변수를 지정해야 한다. date 매개변수로 전달된 값에 따라 그 시점의 lake 상세정보가 반환된다.

HTTP Request

Code Block
GET https://${CloudVendor}.${CountryCode}.machlake.com/lakes/${lake_id}
Content-Type: application/json; charset=utf8
x-api-key: {API Key}
 
{
    "date"   : "{date}"
}

Parameters

no parameters

Request Example

Code Block
GET https://aws1.us.machlake.com/lakes/xbacd1234/

Response Example

Code Block
languagejson
Status 200
 
{
    "lake_id" : "lake01",
    "lake_info"   : {
        "lake_name"    : "My Lake",
        "lake_plan"    : "basic",
        "lake_type"    : "N",
        "region"       : "us-west-1",
        "timezone"     : "America/Los_Angeles",
        "create_time"  : "2021-09-30 10:30:05",
        "update_time"  : "2021-10-01 14:59:12"
    },
    "lake_status" : {
        "count_of_tag"   : 128,
        "count_of_value" : 123456,
        "query_call": 0,
        "traffic": 4743829,
        "storage": 3032870912,
        "state"  : "running" 
    },
    "plan_limit": {
      "max_tag": 1000,
      "max_query": 10000,
      "max_disk": 32212254720,
      "max_concurrent": 100000,
      "limit_select_tag": 1000,
      "limit_select_value": 100,
      "limit_append_value": 100,
      "limit_append_tag": 1000,
      "default_tag_count": 10000
    },
    "tag_schema" : [
       {
        "col_name"   : "name",
        "col_type"   : "varchar",
        "col_length" : 40
       }
    ],
    "value_schema" : [
       {
        "col_name"   : "time",
        "col_type"   : "datetime"
       },
       {
        "col_name"   : "value",
        "col_type"   : "double"
       }
    ],
    "access_control_list": [
        {"name":"all_acc", "cidr": "0.0.0.0/0"}
    ]
}

Sample Code