Add filter flag for heat resource-type-list
Add filter flag (name, version)
Ref.
list_resource_types
28b9faac98/heat/engine/service.py (L1168)
Change-Id: Idcf53b39aa30f49887d8faf743cb7b67b72842ee
Closes-Bug: #1493657
This commit is contained in:
committed by
Diane Fleming
parent
88623138e4
commit
a0c125e3c2
@@ -320,9 +320,8 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Filters the stack list by a stack ID.
|
Filters the stack list by a stack ID. Use this filter
|
||||||
Use this filter multiple times to filter
|
multiple times to filter by multiple IDs.
|
||||||
by multiple IDs.
|
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>
|
</param>
|
||||||
@@ -330,9 +329,8 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Filters the stack list by a status.
|
Filters the stack list by a status. Use this filter
|
||||||
Use this filter multiple times to filter
|
multiple times to filter by multiple statuses.
|
||||||
by multiple statuses.
|
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>
|
</param>
|
||||||
@@ -340,8 +338,8 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Filters the stack list by a name.
|
Filters the stack list by a name. Use this filter multiple
|
||||||
Use this filter multiple times to filter by multiple names.
|
times to filter by multiple names.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>
|
</param>
|
||||||
@@ -387,17 +385,17 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Specifies whether to include deleted stacks in the list.
|
Set to <code>True</code> to include deleted stacks in the list.
|
||||||
Default is <code>False</code>, which excludes deleted stacks
|
Default is <code>False</code>, which excludes deleted stacks
|
||||||
from the list.
|
from the list.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>
|
</param>
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02" name="show_nested" style="query" required="false">
|
<param xmlns="http://wadl.dev.java.net/2009/02" name="show_nested" style="query" required="false">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Specifies whether to include nested stacks in the list.
|
Set to <code>True</code> to include nested stacks in the list.
|
||||||
Default is <code>False</code>, which excludes nested stacks
|
Default is <code>False</code>, which excludes nested stacks
|
||||||
from the list.
|
from the list.
|
||||||
</para>
|
</para>
|
||||||
@@ -462,7 +460,7 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Specifies whether to include stacks from all tenants in
|
Set to <code>True</code> to include stacks from all tenants in
|
||||||
the stack list. Specify policy requirements in the
|
the stack list. Specify policy requirements in the
|
||||||
Orchestration <code>policy.json</code> file. Default is
|
Orchestration <code>policy.json</code> file. Default is
|
||||||
<code>False</code>.
|
<code>False</code>.
|
||||||
@@ -473,7 +471,7 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Specifies whether to include a count key in the response.
|
Set to <code>True</code> to include a count key in the response.
|
||||||
The count key value is the number of stacks that match
|
The count key value is the number of stacks that match
|
||||||
the query criteria. Default is <code>False</code>.
|
the query criteria. Default is <code>False</code>.
|
||||||
</para>
|
</para>
|
||||||
@@ -493,7 +491,8 @@
|
|||||||
&intServerErr;
|
&intServerErr;
|
||||||
</method>
|
</method>
|
||||||
<method name="POST" id="stack_create">
|
<method name="POST" id="stack_create">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xml:lang="EN" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
title="Create stack">
|
title="Create stack">
|
||||||
<para role="shortdesc">
|
<para role="shortdesc">
|
||||||
Creates a stack.
|
Creates a stack.
|
||||||
@@ -630,7 +629,7 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
A reference to the stack's parent. If no parent,
|
A reference to the parent of the stack. If no parent,
|
||||||
reference is <code>self</code>.
|
reference is <code>self</code>.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
@@ -774,8 +773,8 @@
|
|||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Time of last stack update in the following format: <code
|
Time of last stack update in the following format:
|
||||||
>YYYY-MM-DDThh:mm:ssTZD</code>, where <code>TZD</code> is
|
<code>YYYY-MM-DDThh:mm:ssTZD</code>, where <code>TZD</code> is
|
||||||
the time zone designator.
|
the time zone designator.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
@@ -1015,12 +1014,13 @@
|
|||||||
Finds the canonical URL for a stack.
|
Finds the canonical URL for a stack.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Also works with verbs other than &GET;, so you can perform &PUT;
|
Also works with verbs other than &GET;, so that you can perform
|
||||||
and &DELETE; operations on a current stack. Set your client to
|
&PUT; and &DELETE; operations on a current stack. Set your client
|
||||||
follow redirects. Note that when redirecting, the request method
|
to follow redirects. When redirecting, the request method should
|
||||||
should not change, as defined in RFC2626. However, in many clients
|
not change as defined in RFC2626. However, in many clients the
|
||||||
the default behavior is to change the method to &GET; when you
|
default behavior is to change the method to &GET; when you receive
|
||||||
receive a 302 because this behavior is ubiquitous in web browsers.
|
a <code>302</code> response code because this behavior is
|
||||||
|
ubiquitous in web browsers.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
<response status="302">
|
<response status="302">
|
||||||
@@ -1066,7 +1066,9 @@
|
|||||||
<response status="200">
|
<response status="200">
|
||||||
<representation mediaType="application/json">
|
<representation mediaType="application/json">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN">
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN">
|
||||||
<para xmlns="http://docbook.org/ns/docbook">Returns the template for a stack.</para>
|
<para xmlns="http://docbook.org/ns/docbook">
|
||||||
|
Returns the template for a stack.
|
||||||
|
</para>
|
||||||
<xsdxt:code href="samples/template_show_resp.json"/>
|
<xsdxt:code href="samples/template_show_resp.json"/>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</representation>
|
</representation>
|
||||||
@@ -1094,7 +1096,8 @@
|
|||||||
&environmentParameterOptional;
|
&environmentParameterOptional;
|
||||||
&filesParameter;
|
&filesParameter;
|
||||||
&tagsParameter;
|
&tagsParameter;
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02" name="parameters" style="plain" required="false">
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
name="parameters" style="plain" required="false">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
@@ -1109,14 +1112,14 @@
|
|||||||
of this parameter. In the example, <code>a</code> and
|
of this parameter. In the example, <code>a</code> and
|
||||||
<code>b</code> are the names of two parameters defined in
|
<code>b</code> are the names of two parameters defined in
|
||||||
the template.
|
the template.
|
||||||
<programlisting language="json">{ ...
|
</para>
|
||||||
|
<programlisting language="json">{ ...
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"a": "Value",
|
"a": "Value",
|
||||||
"b": "3"
|
"b": "3"
|
||||||
}
|
}
|
||||||
... }
|
... }
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
|
||||||
<para>
|
<para>
|
||||||
While the service accepts JSON numbers for parameters with
|
While the service accepts JSON numbers for parameters with
|
||||||
the type <code>number</code> and JSON objects for parameters
|
the type <code>number</code> and JSON objects for parameters
|
||||||
@@ -1153,48 +1156,49 @@
|
|||||||
&intServerErr;
|
&intServerErr;
|
||||||
</method>
|
</method>
|
||||||
<method name="PUT" id="stack_update_preview">
|
<method name="PUT" id="stack_update_preview">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook" xml:lang="EN"
|
||||||
title="Preview stack update">
|
title="Preview stack update">
|
||||||
<para role="shortdesc">
|
<para role="shortdesc">
|
||||||
Previews an update for a stack.
|
Previews an update for a stack.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
<request>
|
<request>
|
||||||
<representation mediaType="application/json">
|
<representation mediaType="application/json">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<xsdxt:code href="samples/stack_update.json"/>
|
<xsdxt:code href="samples/stack_update.json"/>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
&templateUrlParameter;
|
&templateUrlParameter;
|
||||||
&templateParameter;
|
&templateParameter;
|
||||||
&environmentParameterOptional;
|
&environmentParameterOptional;
|
||||||
&filesParameter;
|
&filesParameter;
|
||||||
&tagsParameter;
|
&tagsParameter;
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02" name="parameters" style="plain" required="false">
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
name="parameters" style="plain" required="false">
|
||||||
xml:lang="EN">
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
<para>
|
xml:lang="EN">
|
||||||
This parameter supplies updated arguments for
|
<para>
|
||||||
parameters defined in the stack template.
|
Supplies updated arguments for parameters that are
|
||||||
</para>
|
defined in the stack template.
|
||||||
<para>
|
</para>
|
||||||
The value is a JSON object, where each key is the name of a
|
<para>
|
||||||
parameter defined in the template and the associated value
|
The value is a JSON object, where each key is the name of
|
||||||
is the argument to use for that parameter when instantiating
|
a parameter defined in the template and the associated
|
||||||
the template. The following code shows the general structure
|
value is the argument to use for that parameter when
|
||||||
of this parameter. In the example, <code>a</code> and
|
instantiating the template. The following code shows the
|
||||||
<code>b</code> are the names of two parameters defined in
|
general structure of this parameter. In the example,
|
||||||
the template.
|
<code>a</code> and <code>b</code> are the names of two
|
||||||
<programlisting language="json">{ ...
|
parameters defined in the template.
|
||||||
|
</para>
|
||||||
|
<programlisting language="json">{ ...
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"a": "Value",
|
"a": "Value",
|
||||||
"b": "3"
|
"b": "3"
|
||||||
}
|
}
|
||||||
... }
|
... }
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
<para>
|
||||||
<para>
|
|
||||||
While the service accepts JSON numbers for parameters with
|
While the service accepts JSON numbers for parameters with
|
||||||
the type <code>number</code> and JSON objects for parameters
|
the type <code>number</code> and JSON objects for parameters
|
||||||
with the type <code>json</code>, all parameter values are
|
with the type <code>json</code>, all parameter values are
|
||||||
@@ -1479,20 +1483,45 @@
|
|||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
<request>
|
<request>
|
||||||
<representation mediaType="application/json">
|
<representation mediaType="application/json">
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
name="name" style="query" required="false">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
|
xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
Filters the response by a resource type name. You can set
|
||||||
|
this value to a regular expression. Use this filter
|
||||||
|
multiple times to filter by multiple names.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
</param>
|
||||||
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
|
name="version" style="query" required="false">
|
||||||
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
|
xml:lang="EN">
|
||||||
|
<para>
|
||||||
|
Filters the response by resource types by heat version.
|
||||||
|
For example, <code>2015.1</code> or <code>5.0.0</code>.
|
||||||
|
Use this filter multiple times to filter by multiple
|
||||||
|
versions.
|
||||||
|
</para>
|
||||||
|
</wadl:doc>
|
||||||
|
</param>
|
||||||
<param xmlns="http://wadl.dev.java.net/2009/02"
|
<param xmlns="http://wadl.dev.java.net/2009/02"
|
||||||
name="support_status" style="query" required="false">
|
name="support_status" style="query" required="false">
|
||||||
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
<wadl:doc xmlns="http://docbook.org/ns/docbook"
|
||||||
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
xmlns:wadl="http://wadl.dev.java.net/2009/02"
|
||||||
xml:lang="EN">
|
xml:lang="EN">
|
||||||
<para>
|
<para>
|
||||||
Filters the resource types by a support status. Valid
|
Filters the response by resource types by a support
|
||||||
support status values are <code>UNKNOWN</code>,
|
status. Valid support status values are
|
||||||
<code>SUPPORTED</code>, <code>DEPRECATED</code>,
|
<code>UNKNOWN</code>, <code>SUPPORTED</code>,
|
||||||
<code>UNSUPPORTED</code>, and <code>HIDDEN</code>. Use this
|
<code>DEPRECATED</code>, <code>UNSUPPORTED</code>, and
|
||||||
filter multiple times to filter by multiple support
|
<code>HIDDEN</code>. Use this filter multiple times to
|
||||||
statuses.
|
filter by multiple support statuses.
|
||||||
</para>
|
</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</param>
|
</param>
|
||||||
</representation>
|
</representation>
|
||||||
</request>
|
</request>
|
||||||
|
|||||||
Reference in New Issue
Block a user