Merge "Merge scheduler-hints section of compute v2.1 API doc to servers section"
This commit is contained in:
commit
da8330c300
@ -794,16 +794,6 @@
|
|||||||
href="../wadls/compute-api/src/v2.1/wadl/os-quota-sets-v2.1.wadl"
|
href="../wadls/compute-api/src/v2.1/wadl/os-quota-sets-v2.1.wadl"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"/>
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"/>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="os-scheduler-hints-v2.1">
|
|
||||||
<title>Scheduler hints (os-scheduler-hints)</title>
|
|
||||||
<para>
|
|
||||||
Creates a server with scheduler hints that are passed directly to the
|
|
||||||
scheduler.
|
|
||||||
</para>
|
|
||||||
<wadl:resources
|
|
||||||
href="../wadls/compute-api/src/v2.1/wadl/os-scheduler-hints-v2.1.wadl"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"/>
|
|
||||||
</section>
|
|
||||||
<section xml:id="os-security-groups-v2.1">
|
<section xml:id="os-security-groups-v2.1">
|
||||||
<title>Security groups (os-security-groups)</title>
|
<title>Security groups (os-security-groups)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
"flavorRef": "http://openstack.example.com/flavors/1",
|
"flavorRef": "http://openstack.example.com/flavors/1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"My Server Name": "Apache1"
|
"My Server Name": "Apache1"
|
||||||
|
},
|
||||||
|
"os:scheduler_hints": {
|
||||||
|
"same_host": "48e6a9f6-30af-47e0-bc04-acaed113bb4e"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"server": {
|
|
||||||
"name": "new-server-test",
|
|
||||||
"imageRef": "http://glance.openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
|
||||||
"flavorRef": "http://openstack.example.com/openstack/flavors/1"
|
|
||||||
},
|
|
||||||
"os:scheduler_hints": {
|
|
||||||
"same_host": "48e6a9f6-30af-47e0-bc04-acaed113bb4e"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"server": {
|
|
||||||
"adminPass": "erQXgJ8NBDD4",
|
|
||||||
"id": "4c8b1df3-46f7-4555-98d8-cdb869aaf9ad",
|
|
||||||
"links": [
|
|
||||||
{
|
|
||||||
"href": "http://openstack.example.com/v2.1/servers/4c8b1df3-46f7-4555-98d8-cdb869aaf9ad",
|
|
||||||
"rel": "self"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "http://openstack.example.com/servers/4c8b1df3-46f7-4555-98d8-cdb869aaf9ad",
|
|
||||||
"rel": "bookmark"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -420,6 +420,18 @@
|
|||||||
Key pair name.
|
Key pair name.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
|
</param>
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02" name="os:scheduler_hints"
|
||||||
|
style="plain" required="false" type="xsd:dict">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
|
xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
The dictionary of data to send to the scheduler.
|
||||||
|
Alternatively, you can specify <code>OS-SCH-HNT:scheduler_hints</code>
|
||||||
|
as the string.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
</param>'>
|
</param>'>
|
||||||
<!ENTITY imageRefRequestParameter '
|
<!ENTITY imageRefRequestParameter '
|
||||||
<param name="imageRef" style="plain" required="false"
|
<param name="imageRef" style="plain" required="false"
|
||||||
|
@ -1,168 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- (C) 2015 OpenStack Foundation, All Rights Reserved -->
|
|
||||||
<!DOCTYPE application [
|
|
||||||
<!ENTITY % common SYSTEM "../common.ent">
|
|
||||||
%common;
|
|
||||||
<!ENTITY % common_project SYSTEM "../../../../common_project.ent">
|
|
||||||
%common_project;
|
|
||||||
]>
|
|
||||||
<application xmlns="http://wadl.dev.java.net/2009/02"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xmlns:xsd="http://docs.rackspacecloud.com/xsd/v1.0"
|
|
||||||
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
|
|
||||||
xmlns:csapi="http://docs.openstack.org/compute/api/v1.1"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xmlns:db="http://docbook.org/ns/docbook">
|
|
||||||
<resources base="https://servers.api.openstack.com"
|
|
||||||
xml:id="os-scheduler-hints-v2.1">
|
|
||||||
<resource id="v2.1" path="//v2.1">
|
|
||||||
<resource id="servers" path="servers">
|
|
||||||
<method href="#createServer"/>
|
|
||||||
</resource>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<method name="POST" id="createServer">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
|
|
||||||
title="Create server with scheduler hints">
|
|
||||||
<para role="shortdesc">
|
|
||||||
Creates a server with scheduler hints that are passed directly
|
|
||||||
to the scheduler.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
The <code>os:scheduler_hints</code> parameter can be set at
|
|
||||||
boot time. For details, see <link
|
|
||||||
xlink:href="http://docs.openstack.org/liberty/config-reference/content/section_compute-scheduler.html">Scheduling</link>.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
<request>
|
|
||||||
<representation mediaType="application/json">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xml:lang="EN">
|
|
||||||
<xsdxt:code
|
|
||||||
href="../api_samples/os-scheduler-hints/scheduler-hints-post-req.json"
|
|
||||||
/>
|
|
||||||
</wadl:doc> <!-- &serverCreateParameters; -->
|
|
||||||
<param name="security_group" style="query" required="true"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN">
|
|
||||||
<para>
|
|
||||||
The name of the security group. If blank, the
|
|
||||||
server is created in the "default" security group.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="user_data" style="query" required="false"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN">
|
|
||||||
<para>
|
|
||||||
Configuration information or scripts to use upon
|
|
||||||
launch. Must be Base64 encoded.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="availability_zone" style="query"
|
|
||||||
required="false" type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN">
|
|
||||||
<para>
|
|
||||||
The availability zone in which to launch the server.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="server" style="plain" required="true">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xml:lang="EN" title="server">
|
|
||||||
<para>Server.</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="imageRef" style="plain" required="true"
|
|
||||||
xmlns:csapi="http://docs.openstack.org/compute/api/v2"
|
|
||||||
xmlns="http://wadl.dev.java.net/2009/02"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xml:lang="EN" title="imageRef">
|
|
||||||
<para>The image reference for the desired image
|
|
||||||
for your server instance.</para>
|
|
||||||
<para>Specify as an ID or full
|
|
||||||
URL.</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="flavorRef" style="plain" required="true"
|
|
||||||
xmlns:csapi="http://docs.openstack.org/compute/api/v2"
|
|
||||||
xmlns="http://wadl.dev.java.net/2009/02"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xml:lang="EN" title="flavorRef">
|
|
||||||
<para>The flavor reference for the desired flavor
|
|
||||||
for your server instance.</para>
|
|
||||||
<para>Specify as an ID or full
|
|
||||||
URL.</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="name" style="plain" required="true"
|
|
||||||
xmlns:csapi="http://docs.openstack.org/compute/api/v2"
|
|
||||||
xmlns="http://wadl.dev.java.net/2009/02"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xml:lang="EN" title="name">
|
|
||||||
<para>
|
|
||||||
The name for your created server.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="metadata" style="plain" required="false"
|
|
||||||
xmlns:csapi="http://docs.openstack.org/compute/api/v2"
|
|
||||||
xmlns="http://wadl.dev.java.net/2009/02"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xml:lang="EN" title="metadata">
|
|
||||||
<para>
|
|
||||||
Metadata key and value pairs. The maximum size of
|
|
||||||
the metadata key and value is 255 bytes each.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="personality" style="plain" required="false"
|
|
||||||
xmlns="http://wadl.dev.java.net/2009/02"
|
|
||||||
type="xsd:string">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
|
||||||
xml:lang="EN" title="personality">
|
|
||||||
<para>
|
|
||||||
File path and contents (text only) to inject into
|
|
||||||
the server at launch. The maximum size of the file
|
|
||||||
path data is 255 bytes. The maximum limit refers
|
|
||||||
to the number of bytes in the decoded data and not
|
|
||||||
the number of characters in the encoded data.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
<param name="os:scheduler_hints" style="plain"
|
|
||||||
required="true" type="xsd:dict">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xml:lang="EN">
|
|
||||||
<para>
|
|
||||||
The dictionary of data to send to the scheduler.
|
|
||||||
Alternatively, you can specify <code>OS-SCH-HNT:scheduler_hints</code>
|
|
||||||
as the string.
|
|
||||||
</para>
|
|
||||||
</wadl:doc>
|
|
||||||
</param>
|
|
||||||
</representation>
|
|
||||||
</request>
|
|
||||||
<response status="200">
|
|
||||||
<representation mediaType="application/json">
|
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
|
||||||
xml:lang="EN">
|
|
||||||
<xsdxt:code
|
|
||||||
href="../api_samples/os-scheduler-hints/scheduler-hints-post-resp.json"
|
|
||||||
/>
|
|
||||||
</wadl:doc> <!-- &serverCreateParameters; -->
|
|
||||||
</representation>
|
|
||||||
</response>
|
|
||||||
</method>
|
|
||||||
</application>
|
|
Loading…
x
Reference in New Issue
Block a user