Links
Comment on page

Device

Create

  • Request
JSON
XML
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name or https://platform.antares.id:8443/~/antares-cse/your-application-ID Note: your-application-ID must be starting with CAE. e.g. CAE760571675
Method
POST
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json;ty=3
Accept
application/json
X-ANTARES-Package
your-package-ID
Body
1
{
2
"m2m:cnt": {
3
"rn": "your-device-name"
4
}
5
}
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name or https://platform.antares.id:8443/~/antares-cse/your-application-ID Note: your-application-ID must be starting with CAE. e.g. CAE760571675
Method
POST
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml;ty=3
Accept
application/xml
X-ANTARES-Package
ID-paket-anda
Body
1
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="your-device-name">
2
</m2m:cnt>
Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.
  • Response
JSON
XML
1
{
2
"m2m:cnt": {
3
"rn": "learnLora",
4
"ty": 3,
5
"ri": "/antares-cse/cnt-456680027",
6
"pi": "/antares-cse/CAE492050112",
7
"ct": "20191119T162939",
8
"lt": "20191119T162939",
9
"acpi": [
10
"/antares-cse/acp-35730207",
11
"/antares-cse/acp-891035820"
12
],
13
"et": "20201119T162939",
14
"st": 0,
15
"mni": 30000000,
16
"mbs": 10000,
17
"mia": 0,
18
"cni": 0,
19
"cbs": 0,
20
"ol": "/antares-cse/antares-id/your-application-name/you-device-name/ol",
21
"la": "/antares-cse/antares-id/your-application-name/you-device-name/la"
22
}
23
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
3
xml/protocols/homedomain" rn="cin_178578843">
4
<ty>4</ty>
5
<ri>/antares-cse/cin-178578843</ri>
6
<pi>/antares-cse/cnt-995741382</pi>
7
<ct>20191119T171604</ct>
8
<lt>20191119T171604</lt>
9
<st>0</st>
10
<cnf>text/plain:0</cnf>
11
<cs>100</cs>
12
<con><obj>
13
<num key1="value1"/>
14
<str key2="value2"/>
15
<bool keyN="valueN"/>
16
</obj></con>
17
</m2m:cin>

Retrieve All Devices ID of a Particular Application

  • Request
JSON
XML
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name?fu=1&ty=3 or https://platform.antares.id:8443/~/antares-cse/your-application-ID?fu=1&ty=3 Note: your-application-ID must be starting CAE. e.g. CAE760571675
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name?fu=1&ty=3 or https://platform.antares.id:8443/~/antares-cse/your-application-ID?fu=1&ty=3 Note: your-application-ID must be starting CAE. e.g. CAE760571675
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml
  • Response
JSON
XML
{
"m2m:uril": [
"/antares-cse/antares-id/your-application-name/you-device-name",
"/antares-cse/antares-id/your-application-name/you-device-name2",
]
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:uril xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
3
xml/protocols/homedomain">/antares-cse/antares-id/your-application-name/your-device-name
4
/antares-cse/antares-id/your-application-name/your-device-name2
5
</m2m:uril>

Retrieve a Particular Device

  • Request
JSON
XML
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID Note: your-device-id must be starting with CNT-842419289
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID Note: your-device-id must be starting with CNT-842419289
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml
  • Response
JSON
XML
{
"m2m:cnt": {
"rn": "your-device-name",
"ty": 3,
"ri": "/antares-cse/cnt-456680027",
"pi": "/antares-cse/CAE492050112",
"ct": "20191119T162939",
"lt": "20191119T162939",
"acpi": [
"/antares-cse/acp-35730207",
"/antares-cse/acp-891035820"
],
"et": "20201119T162939",
"st": 0,
"mni": 30000000,
"mbs": 10000,
"mia": 0,
"cni": 0,
"cbs": 0,
"ol": "/antares-cse/antares-id/your-application-name/your-device-name/ol",
"la": "/antares-cse/antares-id/your-application-name/your-device-name/la"
}
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/
3
protocols/homedomain" rn="your-device-name">
4
<ty>3</ty>
5
<ri>/antares-cse/cnt-456680027</ri>
6
<pi>/antares-cse/CAE492050112</pi>
7
<ct>20191119T162939</ct>
8
<lt>20191119T162939</lt>
9
<acpi>/antares-cse/acp-35730207</acpi>
10
<acpi>/antares-cse/acp-891035820</acpi>
11
<et>20201119T162939</et>
12
<st>0</st>
13
<mni>30000000</mni>
14
<mbs>10000</mbs>
15
<mia>0</mia>
16
<cni>0</cni>
17
<cbs>0</cbs>
18
<ol>/antares-cse/antares-id/your-application-name/your-device-name/ol</ol>
19
<la>/antares-cse/antares-id/your-application-name/your-device-name/la</la>
20
</m2m:cnt>>

Update Label of Device

  • Request
JSON
XML
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID Note: your-device-id must be starting with CAE760571675
Method
PUT
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json;ty=3
Accept
application/json
Body
1
{
2
"m2m:cnt": {
3
"lbl": ["your-device-label1", "your-device-label2", "...etc"]
4
}
5
}
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID Note: your-device-id must be starting with CAE760571675
Method
PUT
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml;ty=3
Accept
application/xml
Body
1
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols">
2
<lbl>your-device-label1</lbl>
3
<lbl>your-device-label2</lbl>
4
<lbl>...etc</lbl>
5
</m2m:cnt>
  • Response
JSON
XML
{
"m2m:cnt": {
"lt": "20220810T150442",
"lbl": [
"your-device-label1",
"your-device-label2",
"...etc"
],
"st": 4
}
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/protocols/homedomain">
3
<lt>20220810T144737</lt>
4
<lbl>your-device-label1 your-device-label2 ...etc</lbl>
5
<st>3</st>
6
</m2m:cnt>

Delete a Particular Device

  • Request
JSON
XML
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID Note: your-device-id must be starting with CNT. e.g. CNT-842419289
Method
PUT
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID Note: your-device-id must be starting with CNT. e.g. CNT-842419289
Method
DELETE
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml