Re: [core] COMI: Basic Operations

"Turner, Randy" <Randy.Turner@landisgyr.com> Tue, 21 June 2016 17:51 UTC

Return-Path: <Randy.Turner@landisgyr.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 248E412DB8A for <core@ietfa.amsl.com>; Tue, 21 Jun 2016 10:51:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=landisgyr.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RpiDW4GrYGv4 for <core@ietfa.amsl.com>; Tue, 21 Jun 2016 10:51:20 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0744.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::744]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 077C712DB84 for <core@ietf.org>; Tue, 21 Jun 2016 10:51:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=LandisGyr.onmicrosoft.com; s=selector1-landisgyr-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Xpz9XTxORV+ujkOQ+wzvRWsvZBOaE5cvI7f5+PDjfOE=; b=k2p55vzqS4tkFKFLw38Y5q6Iiua4IGVXxKTpgC/kWscdg6K+EkSdjUKOD6AJm2XmR9ggJD4FQed0fZ9qtE2UNfXGo81uhCVJ6y6WktY75JmlB2JgMtdA/1KK6TrycLHn8afe1nyPNx+X0cj3T50cEquk0FjfXdiZbYvQwQDitLw=
Received: from DB5PR01MB1815.eurprd01.prod.exchangelabs.com (10.166.168.149) by DB5PR01MB1815.eurprd01.prod.exchangelabs.com (10.166.168.149) with Microsoft SMTP Server (TLS) id 15.1.523.12; Tue, 21 Jun 2016 17:50:48 +0000
Received: from DB5PR01MB1815.eurprd01.prod.exchangelabs.com ([10.166.168.149]) by DB5PR01MB1815.eurprd01.prod.exchangelabs.com ([10.166.168.149]) with mapi id 15.01.0523.015; Tue, 21 Jun 2016 17:50:48 +0000
From: "Turner, Randy" <Randy.Turner@landisgyr.com>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>, "core@ietf.org WG" <core@ietf.org>
Thread-Topic: [core] COMI: Basic Operations
Thread-Index: AQHRy5OqlRreTn8Vi0SJbRDNc8BMRp/0KT+AgAAKSzA=
Date: Tue, 21 Jun 2016 17:50:48 +0000
Message-ID: <DB5PR01MB1815C7D3FF8BC77A66AC5A58802B0@DB5PR01MB1815.eurprd01.prod.exchangelabs.com>
References: <5768F53B.6010109@gmx.net> <BLUPR06MB176396014689D95A8B5F58D3FE2B0@BLUPR06MB1763.namprd06.prod.outlook.com>
In-Reply-To: <BLUPR06MB176396014689D95A8B5F58D3FE2B0@BLUPR06MB1763.namprd06.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Randy.Turner@landisgyr.com;
x-originating-ip: [148.80.255.144]
x-ms-office365-filtering-correlation-id: d4504c67-d0b0-482b-5445-08d399fc9454
x-microsoft-exchange-diagnostics: 1; DB5PR01MB1815; 6:IBVsbDQ69W+fNHuAeUP1uSjaNYsnjU89NghNACrj5fwR6qi6OzqrsXLIvZs3pupcCGUqFpHTJe+1Ts70LE7NBNFB0m5D4i9rGAopvU0l0XLovmjiEhMfHp+ZmC/nEzevrUCsadzvtFnCZ8EZIG6vmtjnWVB47bZEtJ2o5keB1xDVLLOSFMOeUAzybCqid/8GhX9otZFHQDhidsyliRG9oiriwGrbg2/1Gg1uW10k+7zdnliQQ20Raq7DjyropEQMxItVK/mC3QMpiI0baoTV7dMmZq8hDQcv+T6G7UHOEcq/YnMmFnM4ll4Deu6ouhkYSyYtK1GNc8f7DK0TckHdnw==; 5:htnoYAyim2Gh6mlYLH/wFj1cKBgibgf7naYxTppgz1iU0a/veq9+Oflbymp7D0N6hto0F2DG8rN8tUE8F/VHlVaAp3UNYAo4FjaUNau5ujgcrOVizg1ShPgvnRPwfhW+ENh6Hm9c1ZblTWOH88PWkg==; 24:FgMvioWgHGgvW0g2S6/Bczc2k3rVqspe0bKq9rtefd4vZETE9j4fnNe3xtM/spn/mhQJ/P6RHirWvaSOZulwq25udGAuhFYw5kmra91NVN0=; 7:GVHwuiAFWNhqEcHzo7vl4qhc+r9SracFT+vG/ElJxYJ9vMDUfzl1kBy1IYnD5dWtpxr8QBexPNw9lqZwPMcFyTtqFHz3eucNEyDJZS1erbW67H54Hy7iyJB79+sSp2IdnPIcHVIFA7MfLuaGsoFxzQ17d0i3WQ////x+wo7PE6PROcDlQ8Tau6FUoGexmzAmSBEsqz+j4f5IsL+hNmxmL17BF69IBKecD+gOiH+PazGttQKq190R47HHhmuZJmQx
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR01MB1815;
x-microsoft-antispam-prvs: <DB5PR01MB1815B9D0DA4E5B0FDAB58D8A802B0@DB5PR01MB1815.eurprd01.prod.exchangelabs.com>
x-exchange-antispam-report-test: UriScan:(190756311086443)(158342451672863)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:DB5PR01MB1815; BCL:0; PCL:0; RULEID:; SRVR:DB5PR01MB1815;
x-forefront-prvs: 098076C36C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(189002)(199003)(377454003)(13464003)(97736004)(7906002)(122556002)(106356001)(16236675004)(68736007)(19617315012)(2906002)(19625215002)(81156014)(74316001)(81166006)(3660700001)(33656002)(3280700002)(551934003)(189998001)(7696003)(5003600100003)(7736002)(106116001)(92566002)(101416001)(7846002)(8676002)(5001770100001)(105586002)(10400500002)(19580405001)(19580395003)(50986999)(76176999)(107886002)(66066001)(9686002)(2900100001)(586003)(6116002)(77096005)(790700001)(3846002)(54356999)(5890100001)(15975445007)(2950100001)(86362001)(87936001)(102836003)(5002640100001)(11100500001)(19300405004)(8936002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR01MB1815; H:DB5PR01MB1815.eurprd01.prod.exchangelabs.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: landisgyr.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_DB5PR01MB1815C7D3FF8BC77A66AC5A58802B0DB5PR01MB1815eurp_"
MIME-Version: 1.0
X-OriginatorOrg: landisgyr.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2016 17:50:48.7623 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: ee2cd48b-958f-4be4-9852-b8f104c001b9
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR01MB1815
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/jC40M0FkxE0XJ4ZMOiDGhlxarxw>
Subject: Re: [core] COMI: Basic Operations
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Jun 2016 17:51:23 -0000

Are we allowed to ‘DELETE’ object instances ?

What about OBSERVE semantics ?

R.

From: core [mailto:core-bounces@ietf.org] On Behalf Of Michel Veillette
Sent: Tuesday, June 21, 2016 1:13 PM
To: Hannes Tschofenig; core@ietf.org WG
Subject: Re: [core] COMI: Basic Operations


Hi Hannes



Good timing.

On the agenda of our weekly call tomorrow, we have an item to review the proposed function set.

I have included in attachment the invite for this meeting in case you want to participate.

Following is a list of the CoAP methods, associated use cases, message content summary and examples.

For the up to date version of the drafts, see http://core-wg.github.io/yang-cbor/



•         The GET method

o   Use to retrieve the content of a datastore

o   Can be used to implement a backup/restore use case

o   The request contains the URI of the targeted datastore (/c/r = running configuration, /c = current data & running configuration)

o   The response contains an array of pairs of (delta SID, associated values)

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.1



•         The PUT method

o   Use to load content of a datastore

o   Can be used to implement the provisioning, commissioning and restore use cases

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and an array of pairs of (delta SID, associated value)

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.3



•         The FETCH method

o   Use to retrieve a subset of a datastore

o   Can be used to implement ad-hoc queries, recurrent data retrieval (e.g state and statistics)

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and a list of instance-identifier

o   The response contains an array of associated values (value, CBOR undefined or CBOR default)

o   Examples: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.2



•         The iPATCH method

o   Use to update a subset of a datastore

o   Can be used to update the configuration of a device using a atomic transaction

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and an array of pairs of (instance-identifier, associated value)

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.4

o   A candidate datasotre (/c/c) and the "commit" RPC can be used to implement a schedules and/or confirmed update on one or multiple devices.
http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.appendix.A



•         The POST method

o   Use to execute a RPC or an Action

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and an array with up to two entry, the RPC identification (SID) follow by the optional input

o   The request contains contain the optional output

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.5



Regards,

Michel



-----Original Message-----
From: core [mailto:core-bounces@ietf.org] On Behalf Of Hannes Tschofenig
Sent: Tuesday, June 21, 2016 4:05 AM
To: core@ietf.org<mailto:core@ietf.org> WG <core@ietf.org<mailto:core@ietf.org>>
Subject: [core] COMI: Basic Operations



Hi COMI friends,



since you have for sure progressed your work quite a bit since we last meet in BA I am wondering whether you have a few simple message exchange examples using COMI for me.



For example, think about a typical IoT device lifecycle where the device starts and registers its resources with a server in the cloud, it then periodically sends sensor readings (to that server), and gets requests from a server as well.



How would this look like in COMI?



Ciao

Hannes