deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject Rev2 CIMI ResourceMetadata capabilities
Date Wed, 19 Dec 2012 13:30:22 GMT

Revision 2 of initial resourceMetadata implementation - gets rid of 
edits/changes to volume_templates (no longer necessary here), 
fixes typeURI and (possibly) fixes the way values for capability are 
specified. 

Patches tracked at http://tracker.deltacloud.org/set/213
(I self.nacked set 212 which was rev1)

curl -H "Accept: application/xml" http://localhost:3001/cimi/resource_metadata


XML looks like:

<Collection xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/ResourceMetadataCollection">
  <id>http://localhost:3001/cimi/resource_metadata</id>
  <count>1</count>
  <ResourceMetadata>
    <id>http://localhost:3001/cimi/resource_metadata/machine</id>
    <name>Machine</name>
    <typeUri>http://schemas.dmtf.org/cimi/1/Machine</typeUri>
    <capability name="DefaultInitialState" uri="http://schemas.dmtf.org/cimi/1/capability/Machine/DefaultInitialState"
description="Indicates what the default initial state of a new Machine ">STARTED</capability>
    <capability name="InitialStates" uri="http://schemas.dmtf.org/cimi/1/capability/Machine/InitialStates"
description="Indicates the list of allowable initial states">STARTED,STOPPED</capability>
  </ResourceMetadata>
</Collection>


JSON looks like:

{

    "id": "http://localhost:3001/cimi/resource_metadata",
    "count": 1,
    "resourceMetadata": [
        {
            "id": "http://localhost:3001/cimi/resource_metadata/machine",
            "name": "Machine",
            "typeUri": "http://schemas.dmtf.org/cimi/1/Machine",
            "capabilities": [
                {
                    "name": "DefaultInitialState",
                    "uri": "http://schemas.dmtf.org/cimi/1/capability/Machine/DefaultInitialState",
                    "description": "Indicates what the default initial state of a new Machine
",
                    "value": "STARTED"
                },
                {
                    "name": "InitialStates",
                    "uri": "http://schemas.dmtf.org/cimi/1/capability/Machine/InitialStates",
                    "description": "Indicates the list of allowable initial states",
                    "value": "STARTED,STOPPED"
                }
            ]
        }
    ],
    "resourceURI": "http://schemas.dmtf.org/cimi/1/ResourceMetadataCollection"

}


marios

Mime
View raw message