Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search


< OM2M
Revision as of 05:05, 4 May 2014 by (Talk | contribs) (Subscriptions representation)

Subscriptions resource

The subscriptions resource is a collection of subscription resources, it is a child of a subscribe-able parent.

Attribute Name Type Multiplicity Create Update Response
subscriptionCollection NamedReferenceCollection 0..unbounded N/A NP M

Subscriptions XSD schema

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="" targetNamespace="" xmlns:tns="">
	<include schemaLocation="common.xsd" />	
	<element name="subscriptions" type="tns:Subscriptions" />
	<complexType name="Subscriptions">
			<!-- subresources -->
			<element ref="tns:subscriptionCollection" minOccurs="0" />
	<element name="subscriptionCollection" type="tns:NamedReferenceCollection" />

Create Subscriptions

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

Retrieve Subscriptions

Retrieve information about accessible resources

  • 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: Subscriptions.
  • Response Status: 200, 402, 404, 501.

Example Request

GET /scl-id/applications/subscriptions
Authorization: Basic xxxxxxxxxxxxxxxxxxx

Example Response

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

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<om2m:subscriptions xmlns:om2m="" xmlns:xmime="">
        <om2m:namedReference id="SUB_357975768">scl-id/applications/subscriptions/SUB_357975768</om2m:namedReference>

Update Subscriptions

The subscriptions resource does not have any updatable attribute.

Delete Subscriptions

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

Back to the top