Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Rspecrequestboundexample

Rspecrequestboundexample

RSpec V2 Example

Example of an RSpec request for a particular node.

You may sometimes want a particular node because of its location or the hardware on that node. Here is an example of how to ask for a specific node.

RSpec V2 Example

<?xml version="1.0" encoding="UTF-8"?>
<rspec xmlns="http://www.protogeni.net/resources/rspec/2"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2
                           http://www.protogeni.net/resources/rspec/2/request.xsd"
       type="request">
  <node component_id="urn:publicid:IDN+emulab.net+node+pc175"
        component_manager_id="urn:publicid:IDN+emulab.net+authority+cm"
        client_id="pc175"
        exclusive="true">
    <sliver_type name="raw-pc" />
  </node>
</rspec>

RSpec V0.1 Example (Deprecated)

<?xml version="1.0" encoding="UTF-8"?>
<rspec xmlns="http://www.protogeni.net/resources/rspec/0.1"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.protogeni.net/resources/rspec/0.1
                           http://www.protogeni.net/resources/rspec/0.1/request.xsd"
       type="request">
  <node component_uuid="urn:publicid:IDN+emulab.net+node+pc175"
        component_manager_uuid="urn:publicid:IDN+emulab.net+authority+cm"
        virtual_id="pc175"
        virtualization_type="emulab-vnode"
        exclusive="1">
    <node_type type_name="pc" type_slots="1"/>
    <interface virtual_id="control"/>
  </node>
</rspec>