...
Paste code macro | ||||
---|---|---|---|---|
| ||||
GET https://${CloudVendor}.${CountryCode}.api.machlake.com/v1/lakes/${lake_id} Content-Type: application/json; charset=utf8 x-api-key: {API Key} { "date" : "{date}" } |
Parameters
no parameters
Request Example
Paste code macro | ||||
---|---|---|---|---|
| ||||
GET https://${CloudVendor}.${CountryCode}api.machlake.com/v1/lakes/${lake_id}?date=2021-07-06lake01 |
Response Example
Paste code macro | ||||
---|---|---|---|---|
| ||||
Status 200 { "lake_idsuccess" : "lake01"true, "lake_info""reason": "get lake info success", "data" : { "lake_nameid" : "My Lakelake01", "lake_planinfo" : : "basic",{ "lake_typename" : "NMy Lake", "region" "lake_plan" : "us-west-1basic", "timezone" : "America/Los_Angeles", "create_time" : "2021-09-30 10:30:05", "update_time" : "2021-10-01 14:59:12" "region" }, : "lake_status" : {aws1.kor", "count_of_tag"timezone" : 128"America/Los_Angeles", "countcreate_of_valuetime" : 123456 "2021-09-30 10:30:05", "queryupdate_calltime" : 0, "2021-10-01 14:59:12" "traffic": 4743829}, "storagelake_status" : 3032870912,{ "state" : "runningcount_of_tag" : }128, "plan_limit": { "maxcount_of_tagvalue" : 1000123456, "max_query": 10000, "maxquery_diskcall": 32212254720, "max_concurrent": 10000015, "limit_select_tag": 1000, "limit_select_valuetraffic": 100, "limit_append_value": 100: 0.006, "limit_append_tag": 1000, "default_tag_countstorage": 10000 }, : 0.056, "tag_schema" : [ { "state" "col_name" : "namerunning", "col_type" : "varchar"}, "colplan_lengthlimit" : 40{ } "max_tag" ], "value_schema" : [ : 1000, { "colmax_namequery" : "time"10000, "col_type" : "datetimemax_storage" : }10, { "colmax_nameconcurrent" : "value"100000, "col_type" : "doublelimit_select_tag" : 1000, } ], "accesslimit_controlselect_listvalue": 100, [ {"name":"all_acc", "cidr": "0.0.0.0/0"}"limit_append_value": 100, ] } |
Sample Code
Expand | ||
---|---|---|
| ||
Code Block | 65001 :: Text Encoding to UTF-8 in CMD
:: Example For Get Lake View API by using curl in window script
:: written by yeony kim
set API_KEY=YOUR_API_TOKEN
set CONTENT_HEADER="Content-Type: application/json"
set API_HEADER="x-api-key: %API_KEY%"
set LAKE_ID=YOUR_LAKE_ID
set URL=https://api.machlake.com/lakes/%LAKE_ID%
:: ------------------------------------------------------------------------------------------------- ::
:: CASE - GET LAKE List
curl -k -X GET %URL% -H %CONTENT_HEADER% -H %API_HEADER%
:: Return Format
:: {"data":{"access_control_list":[{"cidr":"0.0.0.0/0","name":"default"}],"lake_id":"YOUR_LAKE_ID","lake_info":{"create_date":"2021-10-14 01:20:34","lake_name":"sample_lake","lake_plan":"basic","lake_type":"Normal","region":"ap-northeast-2","timezone":"Asia/Seoul","update_date":"0"},"lake_status":{"count_of_tag":0,"count_of_value":0,"query_call":0,"state":"running","storage":7456575488,"traffic":1990097},"plan_limit":{"default_tag_count":10000,"limit_append_tag":1000,"limit_append_value":100,"limit_select_tag":1000,"limit_select_value":100,"max_concurrent":100000,"max_network":10737418240,"max_query":10000,"max_storage":21474836480,"max_tag_count":100000},"tag_schema":[{"col_length":40,"col_name":"name","col_type":"varchar"}],"value_schema":[{"col_length":0,"col_name":"time","col_type":"datetime"},{"col_length":0,"col_name":"value","col_type":"double"}]},"status":"success"} | |
Expand | ||
| ||
Code Block | "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"
}
]
}
} |
Sample Code
Expand | ||
---|---|---|
| ||
| ||
Expand | ||
| ||
| ||
Expand | ||
| ||
|
Expand | ||
---|---|---|
| ||
|
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Expand | |||||
---|---|---|---|---|---|
| |||||
|