Skip to main content
Jump to: navigation, search

OM2M/Scls

Scls resource

The scls resource shall contain a collection of scl resources.


Name Type Multiplicity Create Update Response
accessRightID AnyURI 0..1 N/A O O
creationTime DateTime 1 N/A NP M
lastModifiedTime DateTime 1 N/A NP M
sclCollection NamedReferenceCollection 1 N/A NP M
subscriptionsReference AnyURI 1 N/A NP M
mgmtObjsReference AnyURI 0..1 N/A NP O

Scls 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">
  <include schemaLocation="common.xsd" />
  <element name="scls" type="tns:Scls" />
  <complexType name="Scls">
    <all>
      <element ref="tns:accessRightID" minOccurs="0" />
      <element ref="tns:creationTime" minOccurs="0" />
      <element ref="tns:lastModifiedTime" minOccurs="0" />
      <!-- subresources -->
      <element ref="tns:sclCollection" minOccurs="0" />
      <element ref="tns:subscriptionsReference" minOccurs="0" />
      <element ref="tns:mgmtObjsReference" minOccurs="0" />
    </all>
  </complexType>
  <element name="sclCollection" type="tns:NamedReferenceCollection" />
</schema>

Create Scls

This resource shall not be created via the API, it is created as a part of the parent resource.

Retrieve Scls

Example Request

GET /scl-id/scls
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:scls xmlns:om2m="http://uri.etsi.org/m2m" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
    <om2m:accessRightID>nscl/accessRights/AR_ADMIN</om2m:accessRightID>
    <om2m:creationTime>2014-05-04T14:18:00.617+02:00</om2m:creationTime>
    <om2m:lastModifiedTime>2014-05-04T14:18:23.532+02:00</om2m:lastModifiedTime>
    <om2m:sclCollection>
        <om2m:namedReference id="gscl">nscl/scls/gscl</om2m:namedReference>
    </om2m:sclCollection>
    <om2m:subscriptionsReference>nscl/scls/subscriptions</om2m:subscriptionsReference>
    <om2m:mgmtObjsReference>nscl/scls/mgmtObjs</om2m:mgmtObjsReference>
</om2m:scls>

Update Scls

Delete Scls

This resource shall not be deleted via the API. It is deleted when the parent resource is deleted.

Back to the top