Skip to main content
Jump to: navigation, search

OM2M/AccessRightAnnc

< OM2M
Revision as of 10:55, 17 April 2014 by Ybanouar.laas.fr (Talk | contribs) (Created page with "__TOC__ == AccessRightAnnc resource == The AccessRightAnnc resource represents an active announcement of a registered accessRight in an other SCL. Access...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AccessRightAnnc resource

The AccessRightAnnc resource represents an active announcement of a registered accessRight in an other SCL. AccessRightAnnc resource keeps a link to the original resource. It can reside in the following targets:


Attribute Name Type Multiplicity Create Update Response
link AnyURI 1 M NP M
accessRightID AnyURI 0..1 O O O
searchStrings searchStrings 1 M M M
expirationTime DateTime 1 O O M*
id NMTOKEN 1 O NP M*

AccessRightAnnc representation

<?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="accessRightAnnc" type="tns:AccessRightAnnc" />
  <complexType name="AccessRightAnnc">
    <all>
      <element ref="tns:link" />
      <element ref="tns:accessRightID" minOccurs="0" />
      <element ref="tns:searchStrings" minOccurs="0" />
      <element ref="tns:expirationTime" minOccurs="0" />
    </all>
    <attribute ref="tns:id"/>
  </complexType>
</schema>

Create AccessRightAnnc

This resource shall not be created via the API. It is created only as a result of a remote announcable resource announcement.

Retrieve AccessRightAnnc

Retrieve information about a accessRightAnnc resource

  • Synopsis: GET {Well Known URI of the Service}
  • Request Headers: Authorization, Accept.
  • Request Body: N/A.
  • Response Headers: Content-Type, Content-Length.
  • Response Message Body: AccessRightAnnc.
  • Response Status: 200, 402, 404, 501.

Example Request

GET /scl-id/scls/scl-id2/accessRights/AR_ADMINAnnc
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:accessRightAnnc xmlns:om2m="http://uri.etsi.org/m2m" om2m:id="AR_ADMINAnnc">
  <om2m:link>scl-id2/accessRights/GROUP_GET</om2m:link>
  <om2m:accessRightID>scl-id/accessRights/AR_ADMIN2</om2m:accessRightID>
  <om2m:searchStrings>
        <om2m:searchString>ResourceType/AccessRightAnnc</om2m:searchString>
        <om2m:searchString>ResourceID/AR_ADMINAnnc</om2m:searchString>
  </om2m:searchStrings>
  <om2m:expirationTime>2045-12-24T17:07:28.230+01:00</om2m:expirationTime>
</om2m:accessRightAnnc>

Update AccessRightAnnc

This resource shall not be updated via the API. It is updated only as a result of a remote announcable resource update.

Delete AccessRightAnnc

This resource shall not be deleted via the API. It is deleted only as a result of a remote announcable resource de-announcement.

Back to the top