oneM2M Logo transparent 196x130

Standards for M2M and the Internet of Things

Container Create

Create a container of ADN-AE1

The creation of a container resource by a Light ADN-AE1:

HTTP Request with XML payload
    POST /home_gateway/light_ae1?rcn=0 HTTP/1.1
    Host: mn.provider.com:8080
    X-M2M-Origin: Clight_ae1
    Content-Type: application/vnd.onem2m-res+xml; ty=3
    X-M2M-RI: mncse-13345 
    
    <m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="light">
    </m2m:cnt>
HTTP Response
    HTTP/1.1 201 Created
    X-M2M-RSC: 2001
    X-M2M-RI: mncse-13345 
    Content-Location: /mn-cse/cnt-582759912
HTTP Request with JSON payload
    POST /home_gateway/light_ae1?rcn=0 HTTP/1.1
    Host: mn.provider.com:8080
    X-M2M-Origin: Clight_ae1
    Content-Type: application/vnd.onem2m-res+json; ty=3
    X-M2M-RI: mncse-13345 
    
    { "m2m:cnt": {
        "rn": "light"
      }
    }
HTTP Response
    HTTP/1.1 201 Created
    X-M2M-RSC: 2001
    X-M2M-RI: mncse-13345 
    Content-Location: /mn-cse/cnt-582759912

 

Create a container of ADN-AE2

The creation of a container resource by a Light ADN-AE2:

HTTP Request with XML payload
    POST /home_gateway/light_ae2?rcn=0 HTTP/1.1
    Host: mn.provider.com:8080
    X-M2M-Origin: Clight_ae2
    Content-Type: application/vnd.onem2m-res+xml; ty=3
    X-M2M-RI: mncse-62345 
    
    <m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="light">
    </m2m:cnt>
HTTP Response
    HTTP/1.1 201 Created
    X-M2M-RSC: 2001
    X-M2M-RI: mncse-62345 
    Content-Location: /mn-cse/cnt-582769893
HTTP Request with JSON payload
    POST /home_gateway/light_ae2?rcn=0 HTTP/1.1
    Host: mn.provider.com:8080
    X-M2M-Origin: Clight_ae2
    Content-Type: application/vnd.onem2m-res+json; ty=3
    X-M2M-RI: mncse-62345 
    
    { "m2m:cnt": {
        "rn": "light"
      }
    }
HTTP Response
    HTTP/1.1 201 Created
    X-M2M-RSC: 2001
    X-M2M-RI: mncse-62345 
    Content-Location: /mn-cse/cnt-582769893
Subscribe to oneM2M News Please enter your name and email address, then click on submit.
Alternatively, you can send an email from your preferred email application with a blank subject to
Listserv@list.etsi.org with subscribe oneM2M_News in the message body.

Subscribe to oneM2M News

Your Name(*)
Please let us know your name.

Your Email(*)
Please let us know your email address.