Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "OM2M/MembersContent"

(Create a resource in Group members)
 
(37 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
== MembersContent resource ==
 
== MembersContent resource ==
  
The membersContent resource does not represent a real resource, it is used to fan-out request to all [[OM2M/Group|group]] [[OM2M/Attributes#Members|members]] in batch mode. The returned response is a [[OM2M/Attributes#MembersContentResponses|membersContentResponses]] type, and it is a result of an aggregation of each member response.
+
The membersContent resource does not represent a real resource, it is used to fan-out request to all group members in batch mode. The returned response is a membersContentResponses type, and it is a result of an aggregation of each member response.
  
== MembersContent representation ==
+
== MembersContent XSD schema  ==
  
 
<source lang="xml">
 
<source lang="xml">
Line 34: Line 34:
  
 
== Create a resource in Group members ==
 
== Create a resource in Group members ==
 
 
'''Create a resource in group members'''
 
 
* Synopsis: POST {Well Known URI of the Service}
 
* Request Headers: Authorization, Accept.
 
* Request Body: resourceToCreate.
 
* Response Headers: Content-Type, Content-Length.
 
* Response Message Body: membersContentResponses.
 
* Response Status: 201, 402, 404, 501.
 
  
 
'''Example Request'''
 
'''Example Request'''
  
Create a [[OM2M/ContentInstance|contentInstance]] in [[OM2M/ContentInstances|contentInstances]] collection of POST_ALL [[OM2M/Group|group]] members.
 
 
<pre>
 
<pre>
 
POST /scl-id/groups/POST_ALL/membersContent
 
POST /scl-id/groups/POST_ALL/membersContent
Line 55: Line 44:
 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<om2m:contentInstance xmlns:om2m="http://uri.etsi.org/m2m" xmlns:ns2="http://www.w3.org/2005/05/xmlmime" om2m:id="CI_TEST">
 
<om2m:contentInstance xmlns:om2m="http://uri.etsi.org/m2m" xmlns:ns2="http://www.w3.org/2005/05/xmlmime" om2m:id="CI_TEST">
   <om2m:content ns2:contentType="application/xml">PG9iaj4KICA8c3RyIG5hbWU9InR5cGUiIHZhbD0idGVtcGVyYXR1cmUiLz4KICA8c3RyIG5hbWU9InNlbnNvcklkIiB2YWw9InRlbXBlcmF0dXJlXzEiLz4KICA8c3RyIG5hbWU9ImRhdGEiIHZhbD0iMjIiLz4KICA8c3RyIG5hbWU9InVuaXQiIHZhbD0iY2Vsc3VzIi8+CiAgPHN0ciBuYW1lPSJsb2NhdGlvbiIgdmFsPSJob21lIi8+Cjwvb2JqPgo=</om2m:content>
+
   <om2m:content ns2:contentType="application/xml">xxxxxxxxxxxxxxxxx</om2m:content>
 
</om2m:contentInstance>
 
</om2m:contentInstance>
 
</pre>
 
</pre>
Line 70: Line 59:
 
         <om2m:statusCode>STATUS_CREATED</om2m:statusCode>
 
         <om2m:statusCode>STATUS_CREATED</om2m:statusCode>
 
         <om2m:lastModifiedTime>2014-04-17T20:01:41.477+02:00</om2m:lastModifiedTime>
 
         <om2m:lastModifiedTime>2014-04-17T20:01:41.477+02:00</om2m:lastModifiedTime>
         <om2m:resultBody>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8b20ybTpjb250ZW50SW5zdGFuY2UgeG1sbnM6b20ybT0iaHR0cDovL3VyaS5ldHNpLm9yZy9tMm0iIHhtbG5zOnhtaW1lPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1LzA1L3htbG1pbWUiIG9tMm06aWQ9IkNJX1RFU1QiIGhyZWY9ImdzY2wvYXBwbGljYXRpb25zL0xBTVBfMC9jb250YWluZXJzL0RBVEEvY29udGVudEluc3RhbmNlcy9DSV9URVNUIj4KICAgIDxvbTJtOmNyZWF0aW9uVGltZT4yMDE0LTA0LTE3VDIwOjAxOjQxLjQ3MCswMjowMDwvb20ybTpjcmVhdGlvblRpbWU+CiAgICA8b20ybTpsYXN0TW9kaWZpZWRUaW1lPjIwMTQtMDQtMTdUMjA6MDE6NDEuNDcwKzAyOjAwPC9vbTJtOmxhc3RNb2RpZmllZFRpbWU+CiAgICA8b20ybTpkZWxheVRvbGVyYW5jZT4yMDE0LTA0LTE3VDIzOjIxOjQxLjQ3MCswMjowMDwvb20ybTpkZWxheVRvbGVyYW5jZT4KICAgIDxvbTJtOmNvbnRlbnRTaXplPjE5Nzwvb20ybTpjb250ZW50U2l6ZT4KICAgIDxvbTJtOmNvbnRlbnQgeG1pbWU6Y29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3htbCI+UEc5aWFqNEtJQ0E4YzNSeUlHNWhiV1U5SW5SNWNHVWlJSFpoYkQwaWRHVnRjR1Z5WVhSMWNtVWlMejRLSUNBOGMzUnlJRzVoYldVOUluTmxibk52Y2tsa0lpQjJZV3c5SW5SbGJYQmxjbUYwZFhKbFh6RWlMejRLSUNBOGMzUnlJRzVoYldVOUltUmhkR0VpSUhaaGJEMGlNaklpTHo0S0lDQThjM1J5SUc1aGJXVTlJblZ1YVhRaUlIWmhiRDBpWTJWc2MzVnpJaTgrQ2lBZ1BITjBjaUJ1WVcxbFBTSnNiMk5oZEdsdmJpSWdkbUZzUFNKb2IyMWxJaTgrQ2p3dmIySnFQZ289PC9vbTJtOmNvbnRlbnQ+Cjwvb20ybTpjb250ZW50SW5zdGFuY2U+Cg==</om2m:resultBody>
+
         <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
 
     </om2m:status>
 
     </om2m:status>
 
     <om2m:status id="scl-id/applications/APP_1/containers/DATA/contentInstances">
 
     <om2m:status id="scl-id/applications/APP_1/containers/DATA/contentInstances">
 
         <om2m:statusCode>STATUS_CREATED</om2m:statusCode>
 
         <om2m:statusCode>STATUS_CREATED</om2m:statusCode>
 
         <om2m:lastModifiedTime>2014-04-17T20:01:41.565+02:00</om2m:lastModifiedTime>
 
         <om2m:lastModifiedTime>2014-04-17T20:01:41.565+02:00</om2m:lastModifiedTime>
         <om2m:resultBody>PD94bWwgdmVyc2lvbj0iMS4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JOaGRHbHZiaUlnZG1Gc1BTSm9iMjFsSWk4K0Nqd3ZiMkpxUGdvPTwvb20ybTpjb250ZW50Pgo8L29tMm06Y29udGVudEluc3RhbmNlPgo=</om2m:resultBody>
+
         <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
 
     </om2m:status>
 
     </om2m:status>
 
</om2m:membersContentResponses>
 
</om2m:membersContentResponses>
 
</pre>
 
</pre>
  
== Retrieve resource from Group members ==
+
== Retrieve a resource from Group members ==
  
'''Retrieve information about a group members'''
+
'''Example Request'''
  
* Synopsis: GET {Well Known URI of the Service}
+
<pre>
* Request Headers: Authorization, Accept.
+
GET /scl-id/groups/GET_ALL/membersContent
* Request Body: N/A.
+
Host: om2m.laas.fr
* Response Headers: Content-Type, Content-Length.
+
Authorization: Basic xxxxxxxxxxxxxxxxxxx
* Response Message Body: resourceToRetrieve.
+
</pre>
* Response Status: 200, 402, 404, 501.
+
 
 +
'''Example Response'''
 +
 
 +
<pre>
 +
HTTP/1.1 200 OK
 +
Content-Type: text/xml
 +
 
 +
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 +
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
 +
    <om2m:status id="scl-id/applications/APP_0/containers/DATA/contentInstances/latest">
 +
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
 +
        <om2m:lastModifiedTime>2014-04-17T20:19:01.055+02:00</om2m:lastModifiedTime>
 +
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
 +
    </om2m:status>
 +
    <om2m:status id="scl-id/applications/APP_1/containers/DATA/contentInstances/latest">
 +
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
 +
        <om2m:lastModifiedTime>2014-04-17T20:19:01.064+02:00</om2m:lastModifiedTime>
 +
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
 +
    </om2m:status>
 +
</om2m:membersContentResponses>
 +
</pre>
 +
 
 +
== Update a resource of Group members ==
  
 
'''Example Request'''
 
'''Example Request'''
This example aims to retrieve the latest [[OM2M/ContentInstance|contentInstance]] of all [[OM2M/Groups|groups]] [[OM2M/Attributes#Members|members]].
 
  
 
<pre>
 
<pre>
GET /scl-id/groups/GET_ALL/membersContent
+
PUT /scl-id/groups/PUT_ALL
 +
Host: om2m.laas.fr
 +
Authorization: Basic xxxxxxxxxxxxxxxxxxx
 +
Body:
 +
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 +
<om2m:application xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
 +
    <om2m:accessRightID>scl-id/accessRights/AR_ADMIN_2</om2m:accessRightID>
 +
</om2m:application>
 +
</pre>
 +
 
 +
'''Example Response'''
 +
 
 +
<pre>
 +
HTTP/1.1 200 OK
 +
Content-Type: text/xml
 +
 
 +
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 +
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
 +
    <om2m:status id="scl-id/applications/APP_1">
 +
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
 +
        <om2m:lastModifiedTime>2014-04-17T20:44:24.483+02:00</om2m:lastModifiedTime>
 +
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
 +
    </om2m:status>
 +
    <om2m:status id="scl-id/applications/APP_2">
 +
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
 +
        <om2m:lastModifiedTime>2014-04-17T20:44:24.589+02:00</om2m:lastModifiedTime>
 +
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
 +
    </om2m:status>
 +
</om2m:membersContentResponses>
 +
</pre>
 +
 
 +
== Delete a resource in Group members ==
 +
 
 +
'''Example Request'''
 +
 
 +
This example aims to delete all [[OM2M/Application|application]] resources which URIs are members in DELETE_ALL [[OM2M/Group|group]].
 +
<pre>
 +
DELETE /scl-id/groups/DELETE_ALL/membersContent
 
Host: om2m.laas.fr
 
Host: om2m.laas.fr
 
Authorization: Basic xxxxxxxxxxxxxxxxxxx
 
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Line 108: Line 155:
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
 
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
     <om2m:status id="gscl/applications/LAMP_0/containers/DATA/contentInstances/latest">
+
     <om2m:status id="scl-id/applications/APP_1">
 
         <om2m:statusCode>STATUS_OK</om2m:statusCode>
 
         <om2m:statusCode>STATUS_OK</om2m:statusCode>
         <om2m:lastModifiedTime>2014-04-17T20:09:06.939+02:00</om2m:lastModifiedTime>
+
         <om2m:lastModifiedTime>2014-04-17T21:05:47.875+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8b20ybTpjb250ZW50SW5zdGFuY2UgeG1sbnM6b20ybT0iaHR0cDovL3VyaS5ldHNpLm9yZy9tMm0iIHhtbG5zOnhtaW1lPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1LzA1L3htbG1pbWUiIG9tMm06aWQ9IkNJX1RFU1QiIGhyZWY9ImdzY2wvYXBwbGljYXRpb25zL0xBTVBfMC9jb250YWluZXJzL0RBVEEvY29udGVudEluc3RhbmNlcy9DSV9URVNUIj4KICAgIDxvbTJtOmNyZWF0aW9uVGltZT4yMDE0LTA0LTE3VDIwOjAxOjQxLjQ3MCswMjowMDwvb20ybTpjcmVhdGlvblRpbWU+CiAgICA8b20ybTpsYXN0TW9kaWZpZWRUaW1lPjIwMTQtMDQtMTdUMjA6MDE6NDEuNDcwKzAyOjAwPC9vbTJtOmxhc3RNb2RpZmllZFRpbWU+CiAgICA8b20ybTpkZWxheVRvbGVyYW5jZT4yMDE0LTA0LTE3VDIzOjIxOjQxLjQ3MCswMjowMDwvb20ybTpkZWxheVRvbGVyYW5jZT4KICAgIDxvbTJtOmNvbnRlbnRTaXplPjE5Nzwvb20ybTpjb250ZW50U2l6ZT4KICAgIDxvbTJtOmNvbnRlbnQgeG1pbWU6Y29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3htbCI+UEc5aWFqNEtJQ0E4YzNSeUlHNWhiV1U5SW5SNWNHVWlJSFpoYkQwaWRHVnRjR1Z5WVhSMWNtVWlMejRLSUNBOGMzUnlJRzVoYldVOUluTmxibk52Y2tsa0lpQjJZV3c5SW5SbGJYQmxjbUYwZFhKbFh6RWlMejRLSUNBOGMzUnlJRzVoYldVOUltUmhkR0VpSUhaaGJEMGlNaklpTHo0S0lDQThjM1J5SUc1aGJXVTlJblZ1YVhRaUlIWmhiRDBpWTJWc2MzVnpJaTgrQ2lBZ1BITjBjaUJ1WVcxbFBTSnNiMk5oZEdsdmJpSWdkbUZzUFNKb2IyMWxJaTgrQ2p3dmIySnFQZ289PC9vbTJtOmNvbnRlbnQ+Cjwvb20ybTpjb250ZW50SW5zdGFuY2U+Cg==</om2m:resultBody>
+
 
     </om2m:status>
 
     </om2m:status>
     <om2m:status id="gscl/applications/LAMP_1/containers/DATA/contentInstances/latest">
+
     <om2m:status id="scl-id/applications/APP_2">
 
         <om2m:statusCode>STATUS_OK</om2m:statusCode>
 
         <om2m:statusCode>STATUS_OK</om2m:statusCode>
         <om2m:lastModifiedTime>2014-04-17T20:09:06.949+02:00</om2m:lastModifiedTime>
+
         <om2m:lastModifiedTime>2014-04-17T21:05:48.006+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg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UGdvPTwvb20ybTpjb250ZW50Pgo8L29tMm06Y29udGVudEluc3RhbmNlPgo=</om2m:resultBody>
+
 
     </om2m:status>
 
     </om2m:status>
 
</om2m:membersContentResponses>
 
</om2m:membersContentResponses>
 
</pre>
 
</pre>

Latest revision as of 05:08, 20 May 2014

MembersContent resource

The membersContent resource does not represent a real resource, it is used to fan-out request to all group members in batch mode. The returned response is a membersContentResponses type, and it is a result of an aggregation of each member response.

MembersContent XSD schema

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://uri.etsi.org/m2m" xmlns:tns="http://uri.etsi.org/m2m"
    xmlns:xmlmime="http://www.w3.org/2005/05/xmlmime">
    <include schemaLocation="common.xsd" />
    <import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="xmlmime.xsd" />
    <element name="membersContentResponses">
        <complexType>
            <sequence>
                <element name="status" minOccurs="0" maxOccurs="unbounded">
                    <complexType>
                            <all>
                                <element name="statusCode" type="string" />
                                <element name="eTag" type="string" minOccurs="0"/>
                                <element name="lastModifiedTime" type="dateTime" minOccurs="0"/>
                                <element name="resultBody" type="xmlmime:base64Binary" minOccurs="0"/>
                                <!-- element name="resultHeaders" type="string" ???? -->
                            </all>
                            <attribute name="id" type="anyURI" />
                    </complexType>
                </element>
            </sequence>
        </complexType>
    </element>
</schema>

Create a resource in Group members

Example Request

POST /scl-id/groups/POST_ALL/membersContent
Host: om2m.laas.fr
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<om2m:contentInstance xmlns:om2m="http://uri.etsi.org/m2m" xmlns:ns2="http://www.w3.org/2005/05/xmlmime" om2m:id="CI_TEST">
  <om2m:content ns2:contentType="application/xml">xxxxxxxxxxxxxxxxx</om2m:content>
</om2m:contentInstance>

Example Response

HTTP/1.1 201 Created
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
    <om2m:status id="scl-id/applications/APP_0/containers/DATA/contentInstances">
        <om2m:statusCode>STATUS_CREATED</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T20:01:41.477+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
    </om2m:status>
    <om2m:status id="scl-id/applications/APP_1/containers/DATA/contentInstances">
        <om2m:statusCode>STATUS_CREATED</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T20:01:41.565+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
    </om2m:status>
</om2m:membersContentResponses>

Retrieve a resource from Group members

Example Request

GET /scl-id/groups/GET_ALL/membersContent
Host: om2m.laas.fr
Authorization: Basic xxxxxxxxxxxxxxxxxxx

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
    <om2m:status id="scl-id/applications/APP_0/containers/DATA/contentInstances/latest">
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T20:19:01.055+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
    </om2m:status>
    <om2m:status id="scl-id/applications/APP_1/containers/DATA/contentInstances/latest">
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T20:19:01.064+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
    </om2m:status>
</om2m:membersContentResponses>

Update a resource of Group members

Example Request

PUT /scl-id/groups/PUT_ALL
Host: om2m.laas.fr
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<om2m:application xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
    <om2m:accessRightID>scl-id/accessRights/AR_ADMIN_2</om2m:accessRightID>
</om2m:application>

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
    <om2m:status id="scl-id/applications/APP_1">
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T20:44:24.483+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
    </om2m:status>
    <om2m:status id="scl-id/applications/APP_2">
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T20:44:24.589+02:00</om2m:lastModifiedTime>
        <om2m:resultBody>xxxxxxxxxxxxxxxxx</om2m:resultBody>
    </om2m:status>
</om2m:membersContentResponses>

Delete a resource in Group members

Example Request

This example aims to delete all application resources which URIs are members in DELETE_ALL group.

DELETE /scl-id/groups/DELETE_ALL/membersContent
Host: om2m.laas.fr
Authorization: Basic xxxxxxxxxxxxxxxxxxx

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<om2m:membersContentResponses xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
    <om2m:status id="scl-id/applications/APP_1">
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T21:05:47.875+02:00</om2m:lastModifiedTime>
    </om2m:status>
    <om2m:status id="scl-id/applications/APP_2">
        <om2m:statusCode>STATUS_OK</om2m:statusCode>
        <om2m:lastModifiedTime>2014-04-17T21:05:48.006+02:00</om2m:lastModifiedTime>
    </om2m:status>
</om2m:membersContentResponses>

Back to the top