Device
Create
Request
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
{
"m2m:cnt": {
"rn": "your-device-name"
}
}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
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="your-device-name">
</m2m:cnt>Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.
Response
Retrieve All Devices ID of a Particular Application
Request
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
Retrieve a Particular Device
Request
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
Update Label of Device
Request
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
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
Response
Delete a Particular Device
Request
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
Last updated