Create Tag
[ 1 HTTP Request ] [ 1.1 Parameters ] [ 2 Request Example ] [ 3 Response Example ] [ 4 Sample Code ]
์ด API๋ machlake์์ ํ๋์ ์ผ์๋ฅผ ํ์ํ๊ธฐ ์ํด ์ฌ์ฉ๋๋ tag๋ฅผ ์์ฑํ๋ค. Tag๋ฅผ ์์ฑํ ๋ ์ด๋ฏธ ๋์์ธํ ์คํค๋ง์ ๊ฐ์ ํํ๋ก ๋ฐ์ดํฐ๋ฅผ ์ ๋ ฅํด์ผ ํ๋ค. ์ฌ๋ฌ๊ฐ์ tag๋ฅผ ํ๊บผ๋ฒ์ ๋ฑ๋กํ ์ ์๋ค. Tag ์์ฑ API๋ฅผ ์ํํ์ฌ ๊ฒฐ๊ณผ๊ฐ ์ฑ๊ณต์ด๋ฉด ์ ๋ ฅํ ๋ฐ์ดํฐ์ ๋ฐ๋ผ Tag์ id์ ์ ๋ณด๋ค์ด ์ ๋ ฅ๋๊ณ ์ ๋ ฅ ๊ฒฐ๊ณผ๋ฅผ json arryํํ๋ก ๋ฐํํ๋ค.
HTTP Request
Copy Copy to clipboard
POST https://${CloudVendor}.${CountryCode}.machlake.com/lakes/${lake_id}/tags
{
"tag" : [["{tag_name}", {additional value 1}, "{additional value 2}"], [ second tag values ], ...]
}
Parameters
no parameters
Request Example
POST https://aws1.us.machlake.com/lakes/xbacd1234/tags
{
"tag" : [["newtag01"], ["newtag02"]]
}
Response Example
POST https://aws1.us.machlake.com/lakes/xbacd1234/tags
{
"tag" : [["newtag01"], ["newtag02"]]
}
Sample Code
์ด ์์ ๋ sensor1, sensor2์ ์ด๋ฆ์ ๊ฐ๋ tag๋ฅผ ์์ฑํ๋ค. Tag_schema ๋ฉํ์ ๋ณด๋ name column๋ง์ ๊ฐ๋ ์ํฉ์ด๋ฏ๋ก json๋ฐ์ดํฐ๋ name_variable์ ๋ฐฐ์ด๋ก ๊ตฌ์ฑ๋์๋ค. Tag_schema๊ฐ ๋ค๋ฅธ ๊ฒฝ์ฐ ์ถ๊ฐ ํ๋๊ฐ์ด ํ์ํ ์ ์๋ค.
ย
, multiple selections available,