[occi-wg] Atompub: Can we see an example of top level storage and network rendering ?

Sam Johnston samj at samj.net
Fri May 22 14:09:40 CDT 2009


2009/5/18 Richard Davies <richard.davies at elastichosts.com>

> I would also like to see the current AtomPub example extended with a few
> actual attributes
> on the nouns (e.g. cpu cores, memory size, storage size) and showing a few
> example actuators (e.g. server start/stop, etc) since I understand that
> they
> will also appear in the feed.
>

Ok so for attributes I have thus far been adding them directly to the atom
<entry> elements to keep things nice and flat and the <content> free for
other purposes (e.g. expanding on a simple OCCI description of a compute or
network resource with DMTF/OVF and SNIA standard descriptors respectively).
For example:

<entry>
>   <id>...</id>
>   <compute:cores>4</compute:cores>
>   <compute:memory>16Gb</compute:memory>
>   ...
> </entry>
>

If you're worried about burning 1's and 0's on namespaces then you can trim
them back:

<entry>
>   <id>...</id>
>   <c:cores>4</c:cores>
>   <c:memory>16Gb</c:memory>
>   ...
> </entry>
>

For the state transition links you need a few things:

   - The link itself (URL)
   - A machine-readable identifier for the link (e.g.
   http://purl.org/occi/state#start)
   - A human-friendly identifier for the link in requested/local language
   (e.g. "Take Snapshot")

How this looks in atom:

<link title="Start" rel="http://purl.org/occi/state#start" href="
> http://example.com/{uuid}/state/start" />
>

Note that anybody can create new transitions but those that may need to be
interoperable would end up in our registries.

Cheers,

Sam (sending offline)

Gary Mazz wrote:
> > Hi,
> >
> > Can we see a concrete example of top level storage and network rendering
> > with one layer of decomposition ? I'd like to know what it will look
> > like, especially with links applied.
> >
> > cheers
> >
> > -gary
> _______________________________________________
> occi-wg mailing list
> occi-wg at ogf.org
> http://www.ogf.org/mailman/listinfo/occi-wg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ogf.org/pipermail/occi-wg/attachments/20090522/d93fd2d5/attachment.html 


More information about the occi-wg mailing list