Commit 1830ec59 by Gunnar Billung-Meyer

allow POST/DELETE for PCIeFunctions and Ports (both intended only for CoposedNode Ports)

parent 11bef42d
......@@ -13,6 +13,18 @@
"ComputerSystem": [
"PATCH"
],
"PCIeFunction": [
"DELETE"
],
"PCIeFunctionCollection": [
"POST"
],
"Port": [
"DELETE"
],
"PortCollection": [
"POST"
],
"VLanNetworkInterface": [
"PATCH",
"DELETE"
......
......@@ -235,11 +235,14 @@ HTTP/1.1 405 Method Not Allowed
<br />
</div>
<h3 id="delete">DELETE</h3>
This operation is not supported on this resource and will result in the following response:
<br />
<h4 id="request">Request</h4>
<div class="code">
DELETE /redfish/v1/PCIeDevices/PCIeDevice1/PCIeFunction1
<br />
</div>
<h4 id="response">Response</h4>
<div class="code">
HTTP/1.1 405 Method Not Allowed
HTTP/1.1 204 No Content
<br />
</div>
</div>
......
......@@ -75,7 +75,7 @@ table { border-collapse: collapse; }
<tr><td>@odata.id</td><td>string</td><td></td><td></td><td>read-only</td><td>The unique identifier for a resource.<br />Format: uri</td></tr>
<tr><td>@odata.type</td><td>string</td><td></td><td></td><td>read-only</td><td>The type of a resource.</td></tr>
<tr><td>Description</td><td>string</td><td>Yes</td><td></td><td>read-only</td><td>Provides a description of this resource and is used for commonality in the schema definitions.</td></tr>
<tr><td>Members [ {</td><td>array[reference(<a href="pciefunction.html#pciefunction">PCIeFunction</a>)]</td><td></td><td></td><td>read-only</td><td>Contains the members of this collection.</td></tr>
<tr><td>Members [ {</td><td>array[reference(<a href="pciefunction.html#pciefunction">PCIeFunction</a>)]</td><td></td><td></td><td>read-write</td><td>Contains the members of this collection.</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;@odata.id</td><td>string</td><td></td><td></td><td>read-only</td><td>The unique identifier for a resource.<br />Format: uri</td></tr>
<tr><td>} ]</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>Members@odata.count</td><td>number</td><td></td><td></td><td>read-only</td><td>The number of items in a collection.</td></tr>
......@@ -119,11 +119,22 @@ Content-Type: application/json
<br />
</div>
<h3 id="post">POST</h3>
This operation is not supported on this resource and will result in the following response:
<h4 id="request">Request</h4>
<div class="code">
POST /redfish/v1/ComposedNodes/ComposedNode1/ProvidedPorts/Port1/PCIeFunctions
<br />
Content-Type: application/json
<br />
{
<br />
}
<br />
</div>
<h4 id="response">Response</h4>
<div class="code">
HTTP/1.1 405 Method Not Allowed
HTTP/1.1 201 Created
<br />
Location: http://{IP}:{PORT}/redfish/v1/PCIeDevices/PCIeDevice1/PCIeFunction1
<br />
</div>
<h3 id="patch">PATCH</h3>
......
......@@ -234,11 +234,14 @@ HTTP/1.1 405 Method Not Allowed
<br />
</div>
<h3 id="delete">DELETE</h3>
This operation is not supported on this resource and will result in the following response:
<br />
<h4 id="request">Request</h4>
<div class="code">
DELETE /redfish/v1/ComposedNodes/ComposedNode1/ProvidedPorts/Port1
<br />
</div>
<h4 id="response">Response</h4>
<div class="code">
HTTP/1.1 405 Method Not Allowed
HTTP/1.1 204 No Content
<br />
</div>
</div>
......
......@@ -76,7 +76,7 @@ A Collection of Port resource instances.
<tr><td>@odata.id</td><td>string</td><td></td><td></td><td>read-only</td><td>The unique identifier for a resource.<br />Format: uri</td></tr>
<tr><td>@odata.type</td><td>string</td><td></td><td></td><td>read-only</td><td>The type of a resource.</td></tr>
<tr><td>Description</td><td>string</td><td>Yes</td><td></td><td>read-only</td><td>Provides a description of this resource and is used for commonality in the schema definitions.</td></tr>
<tr><td>Members [ {</td><td>array[reference(<a href="port.html#port">Port</a>)]</td><td></td><td></td><td>read-only</td><td>Contains the members of this collection.</td></tr>
<tr><td>Members [ {</td><td>array[reference(<a href="port.html#port">Port</a>)]</td><td></td><td></td><td>read-write</td><td>Contains the members of this collection.</td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;@odata.id</td><td>string</td><td></td><td></td><td>read-only</td><td>The unique identifier for a resource.<br />Format: uri</td></tr>
<tr><td>} ]</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr><td>Members@odata.count</td><td>number</td><td></td><td></td><td>read-only</td><td>The number of items in a collection.</td></tr>
......@@ -120,11 +120,22 @@ Content-Type: application/json
<br />
</div>
<h3 id="post">POST</h3>
This operation is not supported on this resource and will result in the following response:
<h4 id="request">Request</h4>
<div class="code">
POST /redfish/v1/ComposedNodes/ComposedNode1/ProvidedPorts
<br />
Content-Type: application/json
<br />
{
<br />
}
<br />
</div>
<h4 id="response">Response</h4>
<div class="code">
HTTP/1.1 405 Method Not Allowed
HTTP/1.1 201 Created
<br />
Location: http://{IP}:{PORT}/redfish/v1/ComposedNodes/ComposedNode1/ProvidedPorts/Port1
<br />
</div>
<h3 id="patch">PATCH</h3>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment