Add API doc for clustering service

This patch adds API doc for the clustering service (senlin).

Closes-Bug: #1523736
Change-Id: I0a7b2b9f0058a720674f654e473643a10f52e393
This commit is contained in:
tengqm 2015-12-02 03:13:46 -05:00 committed by Diane Fleming
parent d777f6ee71
commit 120a0b2820
58 changed files with 3796 additions and 1 deletions

View File

@ -72,6 +72,17 @@
<pdfFilenameBase>api-ref-blockstorage-v1</pdfFilenameBase>
</configuration>
</execution>
<execution>
<id>os-api-ref-clustering-v1</id>
<goals>
<goal>generate-pdf</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<includes> bk-api-ref-clustering-v1.xml </includes>
<pdfFilenameBase>api-ref-clustering-v1</pdfFilenameBase>
</configuration>
</execution>
<execution>
<id>os-api-ref-compute-v2.1</id>
<goals>

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:linkend="http://www.w3.org/1999/linkend"
xmlns:xref="http://www.w3.org/1999/xref"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
version="5.0-extension RackBook-2.0"
xml:id="api.openstack.org-database">
<info>
<title>OpenStack Clustering Service API v1 Reference</title>
<titleabbrev>API Reference</titleabbrev>
<author>
<personname>
<firstname/>
<surname/>
</personname>
<affiliation>
<orgname>OpenStack Foundation</orgname>
</affiliation>
</author>
<copyright>
<year>2010-2015</year>
<holder>OpenStack Foundation</holder>
</copyright>
<productname>OpenStack Clustering Service</productname>
<pubdate/>
<legalnotice role="apache2">
<annotation>
<remark>Copyright details are filled in by the
template.</remark>
</annotation>
</legalnotice>
</info>
<xi:include href="../../api-ref/src/docbkx/ch_clustering-v1.xml"/>
</book>

View File

@ -69,7 +69,18 @@
<pdfFilename>bk-api-ref-blockstorage-v1</pdfFilename>
</configuration>
</execution>
<execution>
<execution>
<id>os-api-ref-clustering-v1</id>
<goals>
<goal>generate-html</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<includes> api-ref-clustering-v1.xml</includes>
<pdfFilename>bk-api-ref-clustering-v1</pdfFilename>
</configuration>
</execution>
<execution>
<id>os-api-ref-compute-v2.1</id>
<goals>
<goal>generate-html</goal>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:linkend="http://www.w3.org/1999/linkend"
xmlns:xref="http://www.w3.org/1999/xref"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
version="5.0-extension RackBook-2.0"
xml:id="api.openstack.org-clustering" status="CURRENT">
<info xreflabel="api-ref-clustering.html">
<title>OpenStack Clustering API v1</title>
<copyright>
<year>2015</year>
</copyright>
<legalnotice role="apache2">
<para/>
</legalnotice>
<annotation>
<xi:include href="itemizedlist-service-list.xml"/>
</annotation>
</info>
<xi:include href="ch_clustering-v1.xml"/>
</book>

View File

@ -0,0 +1,202 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:linkend="http://www.w3.org/1999/linkend"
xmlns:xref="http://www.w3.org/1999/xref"
xmlns:wadl="http://wadl.dev.java.net/2009/02"
version="5.0-extension RackBook-2.0" xml:id="clustering-v1">
<title>Clustering API v1 (CURRENT)</title>
<para>Clustering service for OpenStack.</para>
<section xml:id="senlin-versions">
<title>API versions</title>
<para>
Lists information for all Clustering API versions.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#versions">
<wadl:method href="#getVersions-senlin-v1"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="profile_types">
<title>Profile types</title>
<para>
Lists all profile types and shows details for a profile type.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#profile_types">
<wadl:method href="#listProfileTypes"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#profile_type">
<wadl:method href="#showProfileType"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="profiles">
<title>Profiles</title>
<para>
Lists all profiles and creates, shows information for, updates,
and deletes a profile.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#profiles">
<wadl:method href="#listProfiles"/>
<wadl:method href="#createProfile"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#profile_id">
<wadl:method href="#showProfile"/>
<wadl:method href="#updateProfile"/>
<wadl:method href="#deleteProfile"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="policy_types">
<title>Policy types</title>
<para>
Lists all policy types and shows details for a policy type.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#policy_types">
<wadl:method href="#listPolicyType"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#policy_type">
<wadl:method href="#showPolicyType"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="policies">
<title>Policies</title>
<para>
Lists all policies and creates, shows information for, updates,
and deletes a policy.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#policies">
<wadl:method href="#listPolicies"/>
<wadl:method href="#createPolicy"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#policy_id">
<wadl:method href="#showPolicy"/>
<wadl:method href="#updatePolicy"/>
<wadl:method href="#deletePolicy"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="clusters">
<title>Clusters</title>
<para>
Lists all clusters and creates, shows information for, updates,
deletes, and triggers an action on a cluster.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#clusters">
<wadl:method href="#listClusters"/>
<wadl:method href="#createCluster"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#cluster_id">
<wadl:method href="#showCluster"/>
<wadl:method href="#updateCluster"/>
<wadl:method href="#deleteCluster"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#cluster_actions">
<wadl:method href="#cluster_action"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="nodes">
<title>Nodes</title>
<para>
Lists all nodes, and creates, shows information for, updates,
deletes, and triggers an action on a node.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#nodes">
<wadl:method href="#listNodes"/>
<wadl:method href="#createNode"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#node_id">
<wadl:method href="#showNode"/>
<wadl:method href="#updateNode"/>
<wadl:method href="#deleteNode"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#node_actions">
<wadl:method href="#node_action"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="cluster_policies">
<title>Cluster policies</title>
<para>
Lists all cluster policies and shows information for a cluster
policy.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#cluster_policies">
<wadl:method href="#listClusterPolicies"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#cluster_policy_id">
<wadl:method href="#showClusterPolicy"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="webhooks">
<title>Webhooks</title>
<para>
Lists all webhooks and creates, shows information for, deletes,
and triggers an action on a webhook.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#webhooks">
<wadl:method href="#listWebhooks"/>
<wadl:method href="#createWebhook"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#webhook_res_id">
<wadl:method href="#showWebhook"/>
<wadl:method href="#deleteWebhook"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#webhook_trigger">
<wadl:method href="#triggerWebhook"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="actions">
<title>Actions</title>
<para>
Lists all actions and shows details for an action.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#actions">
<wadl:method href="#listActions"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#action_id">
<wadl:method href="#showAction"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="events">
<title>Events</title>
<para>
Lists all events and shows information for an event.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#events">
<wadl:method href="#listEvents"/>
</wadl:resource>
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#event_id">
<wadl:method href="#showEvent"/>
</wadl:resource>
</wadl:resources>
</section>
<section xml:id="build-info">
<title>Build info</title>
<para>
Shows build information for a Senlin deployment.
</para>
<wadl:resources xmlns:wadl="http://wadl.dev.java.net/2009/02">
<wadl:resource href="../wadls/clustering-api/src/v1/clustering-api.wadl#build_info">
<wadl:method href="#showBuild"/>
</wadl:resource>
</wadl:resources>
</section>
</chapter>

View File

@ -15,6 +15,11 @@
<link xlink:type="simple" xlink:href="api-ref-blockstorage-v1.html">Block Storage API v1 (DEPRECATED)</link>
</para>
</listitem>
<listitem>
<para>
<link xlink:type="simple" xlink:href="api-ref-clustering-v1.html">Clustering API v1 (CURRENT)</link>
</para>
</listitem>
<listitem>
<para>
<link xlink:type="simple" xlink:href="api-ref-compute-v2.1.html">Compute API (CURRENT)</link>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,294 @@
<!ENTITY resourceLocationParameter '
<param xmlns="http://wadl.dev.java.net/2009/02"
name="location" style="header" type="xsd:string" required="true">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The URL against which to check the status of the resource.
</para>
</wadl:doc>
</param>'>
<!ENTITY actionLocationParameter '
<param xmlns="http://wadl.dev.java.net/2009/02"
name="location" style="header" type="xsd:string" required="true">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The URL against which to check the status of the action spawned
from the request.
</para>
</wadl:doc>
</param>'>
<!ENTITY profile_typeTemplateParameter '
<param xmlns="http://wadl.dev.java.net/2009/02"
name="profile_type" style="template" type="xsd:string">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The name of the profile type.
</para>
</wadl:doc>
</param>'>
<!ENTITY policy_typeTemplateParameter '
<param name="policy_type" style="template" required="true"
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">
<para>
The name of the policy type.
</para>
</wadl:doc>
</param>'>
<!ENTITY profile_idTemplateParameter '
<param name="profile_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the profile.
</para>
</wadl:doc>
</param>'>
<!ENTITY policy_idTemplateParameter '
<param name="policy_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the policy.
</para>
</wadl:doc>
</param>'>
<!ENTITY cluster_idTemplateParameter '
<param name="cluster_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the cluster.
</para>
</wadl:doc>
</param>'>
<!ENTITY node_idTemplateParameter '
<param name="node_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the node.
</para>
</wadl:doc>
</param>'>
<!ENTITY action_idTemplateParameter '
<param name="action_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID string of the action.
</para>
</wadl:doc>
</param>'>
<!ENTITY webhook_idTemplateParameter '
<param name="webhook_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the webhook.
</para>
</wadl:doc>
</param>'>
<!ENTITY event_idTemplateParameter '
<param name="event_id" style="template" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the event.
</para>
</wadl:doc>
</param>'>
<!ENTITY clusterRequestParameters '
<param name="cluster" style="plain" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:dict">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
A map of cluster details.
</para>
</wadl:doc>
</param>
<param name="name" style="plain" required="true"
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">
<para>
The name of the cluster.
</para>
</wadl:doc>
</param>
<param name="parent" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the parent cluster if the cluster is
a nested cluster.
</para>
</wadl:doc>
</param>
<param name="profile_id" style="plain" required="true"
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">
<para>
The ID or name of the profile for the cluster.
</para>
</wadl:doc>
</param>
<param name="desired_capacity" style="plain" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The capacity, or initial size, of the cluster.
Default is 0.
</para>
</wadl:doc>
</param>
<param name="min_size" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The minimum size of the cluster. Default is 0.
</para>
</wadl:doc>
</param>
<param name="max_size" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The maximum size of the cluster. Default is
<code>-1</code>, which indicates that no upper
limit exists for the cluster size.
</para>
</wadl:doc>
</param>
<param name="timeout" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The timeout value, in minutes, for cluster
creation. Default is 60.
</para>
</wadl:doc>
</param>
<param name="metadata" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:dict">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
A set of key and value pairs to associate with
the cluster.
</para>
</wadl:doc>
</param>'>
<!ENTITY updateClusterRequestParameters '
<param name="cluster" style="plain" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:dict">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
A map of cluster details.
</para>
</wadl:doc>
</param>
<param name="name" style="plain" required="true"
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">
<para>
The name of the cluster.
</para>
</wadl:doc>
</param>
<param name="parent" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="csapi:uuid">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The UUID of the parent cluster if the cluster is
a nested cluster.
</para>
</wadl:doc>
</param>
<param name="profile_id" style="plain" required="true"
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">
<para>
The ID or name of the profile for the cluster.
</para>
</wadl:doc>
</param>
<param name="timeout" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The timeout value, in minutes, for cluster
creation. Default is 60.
</para>
</wadl:doc>
</param>
<param name="metadata" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:dict">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
A set of key and value pairs to associate with
the cluster.
</para>
</wadl:doc>
</param>'>
<!ENTITY createPolicyRequestParameters '
<param name="name" style="plain" required="true"
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">
<para>
The name for the policy.
</para>
</wadl:doc>
</param>
<param name="spec" style="plain" required="true"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:dict">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
A detailed specification based on the policy type.
</para>
</wadl:doc>
</param>
<param name="level" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
An integer value that represents the default enforcement level.
</para>
</wadl:doc>
</param>
<param name="cooldown" style="plain" required="false"
xmlns="http://wadl.dev.java.net/2009/02" type="xsd:int">
<wadl:doc xmlns="http://docbook.org/ns/docbook"
xmlns:wadl="http://wadl.dev.java.net/2009/02" xml:lang="EN">
<para>
The cooldown value, in seconds.
</para>
</wadl:doc>
</param>'>

View File

@ -0,0 +1,20 @@
{
"action": "CLUSTER_DELETE",
"cause": "RPC Request",
"context": {},
"deleted_time": null,
"depended_by": [],
"depends_on": [],
"end_time": 1423570000.0,
"id": "ffbb9175-d510-4bc1-b676-c6aba2a4ca81",
"inputs": {},
"interval": -1,
"name": "cluster_delete_fcc9b635",
"outputs": {},
"owner": null,
"start_time": 1423570000.0,
"status": "FAILED",
"status_reason": "Cluster action FAILED",
"target": "fcc9b635-52e3-490b-99f2-87b1640e4e89",
"timeout": 3600
}

View File

@ -0,0 +1,42 @@
{
"actions": [
{
"action": "NODE_CREATE",
"cause": "RPC Request",
"deleted_time": null,
"depended_by": [],
"depends_on": [],
"end_time": 1425550000.0,
"id": "2366d440-c73e-4961-9254-6d1c3af7c167",
"inputs": {},
"interval": -1,
"name": "node_create_0df0931b",
"outputs": {},
"owner": null,
"start_time": 1425550000.0,
"status": "SUCCEEDED",
"status_reason": "Action completed successfully.",
"target": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
"timeout": 3600
},
{
"action": "NODE_DELETE",
"cause": "RPC Request",
"deleted_time": null,
"depended_by": [],
"depends_on": [],
"end_time": 1425550000.0,
"id": "edce3528-864f-41fb-8759-f4707925cc09",
"inputs": {},
"interval": -1,
"name": "node_delete_f0de9b9c",
"outputs": {},
"owner": null,
"start_time": 1425550000.0,
"status": "SUCCEEDED",
"status_reason": "Action completed successfully.",
"target": "f0de9b9c-6d48-4a46-af21-2ca8607777fe",
"timeout": 3600
}
]
}

View File

@ -0,0 +1,10 @@
{
"build_info": {
"api": {
"revision": "1.0"
},
"engine": {
"revision": "2.0"
}
}
}

View File

@ -0,0 +1,7 @@
{
"add_nodes": {
"nodes": [
"node1"
]
}
}

View File

@ -0,0 +1,12 @@
{
"cluster": {
"desired_capacity": 0,
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "test_cluster",
"parent": null,
"profile_id": "mystack",
"timeout": null
}
}

View File

@ -0,0 +1,27 @@
{
"cluster": {
"action": "bbf4558b-9fa3-482a-93c2-a4aa5cc85317",
"created_time": null,
"data": {},
"deleted_time": null,
"desired_capacity": 4,
"domain": null,
"id": "45edadcb-c73b-4920-87e1-518b2f29f54b",
"init_time": "2015-02-10T14:16:10",
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "test_cluster",
"nodes": [],
"parent": null,
"policies": [],
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"status": "INIT",
"status_reason": "Initializing",
"timeout": 3600,
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,7 @@
{
"del_nodes": {
"nodes": [
"node1"
]
}
}

View File

@ -0,0 +1,26 @@
{
"cluster": {
"created_time": "2015-02-11T15:13:20",
"data": {},
"deleted_time": null,
"desired_capacity": 0,
"domain": null,
"id": "45edadcb-c73b-4920-87e1-518b2f29f54b",
"init_time": "2015-02-10T14:26:10",
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "test_cluster",
"nodes": [],
"parent": null,
"policies": [],
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"status": "ACTIVE",
"status_reason": "Creation succeeded",
"timeout": 3600,
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,32 @@
{
"clusters": [
{
"created_time": "2015-02-10T14:26:14",
"data": {},
"deleted_time": null,
"desired_capacity": 4,
"domain": null,
"id": "7d85f602-a948-4a30-afd4-e84f47471c15",
"init_time": "2015-02-10T14:26:11",
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "cluster1",
"nodes": [
"b07c57c8-7ab2-47bf-bdf8-e894c0c601b9",
"ecc23d3e-bb68-48f8-8260-c9cf6bcb6e61",
"da1e9c87-e584-4626-a120-022da5062dac"
],
"parent": null,
"policies": [],
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"status": "ACTIVE",
"status_reason": "Cluster scale-in succeeded",
"timeout": 3600,
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
]
}

View File

@ -0,0 +1,9 @@
{
"policy_attach": {
"cooldown": "60",
"enabled": true,
"level": "30",
"policy_id": "lb001",
"priority": "60"
}
}

View File

@ -0,0 +1,5 @@
{
"policy_detach": {
"policy_id": "lb001"
}
}

View File

@ -0,0 +1,14 @@
{
"cluster_policy": {
"cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
"cluster_name": "cluster4",
"cooldown": 0,
"enabled": true,
"id": "06be3a1f-b238-4a96-a737-ceec5714087e",
"level": 0,
"policy_id": "714fe676-a08f-4196-b7af-61d52eeded15",
"policy_name": "dp01",
"policy_type": "DeletionPolicy",
"priority": 50
}
}

View File

@ -0,0 +1,28 @@
{
"cluster_policies": [
{
"cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
"cluster_name": "cluster4",
"cooldown": 0,
"enabled": true,
"id": "06be3a1f-b238-4a96-a737-ceec5714087e",
"level": 0,
"policy_id": "714fe676-a08f-4196-b7af-61d52eeded15",
"policy_name": "dp01",
"policy_type": "DeletionPolicy",
"priority": 50
},
{
"cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
"cluster_name": "cluster4",
"cooldown": 0,
"enabled": true,
"id": "abddc45e-ac31-4f90-93cc-db55a7d8dd6d",
"level": 30,
"policy_id": "e026e09f-a3e9-4dad-a1b9-d7ba316026a1",
"policy_name": "sp1",
"policy_type": "ScalingPolicy",
"priority": 30
}
]
}

View File

@ -0,0 +1,6 @@
{
"policy_update": {
"enabled": false,
"policy_id": "lb001"
}
}

View File

@ -0,0 +1,10 @@
{
"resize": {
"adjustment_type": "CHANGE_IN_PERCENTAGE",
"max_size": 20,
"min_step": 1,
"min_size": 5,
"number": 20,
"strict": true
}
}

View File

@ -0,0 +1,5 @@
{
"scale_in": {
"count": "2"
}
}

View File

@ -0,0 +1,5 @@
{
"scale_out": {
"count": "1"
}
}

View File

@ -0,0 +1,9 @@
{
"cluster": {
"metadata": null,
"name": null,
"parent": null,
"profile_id": null,
"timeout": "30"
}
}

View File

@ -0,0 +1,26 @@
{
"cluster": {
"created_time": "2015-02-11T15:13:20",
"data": {},
"deleted_time": null,
"desired_capacity": 0,
"domain": null,
"id": "45edadcb-c73b-4920-87e1-518b2f29f54b",
"init_time": "2015-02-10T14:26:10",
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "test_cluster",
"nodes": [],
"parent": null,
"policies": [],
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"status": "INIT",
"status_reason": "Initializing",
"timeout": 3600,
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,17 @@
{
"event": {
"action": "create",
"cluster_id": null,
"deleted_time": null,
"id": "2d255b9c-8f36-41a2-a137-c0175ccc29c3",
"level": "20",
"obj_id": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
"obj_name": "node009",
"obj_type": "NODE",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"status": "CREATING",
"status_reason": "Initializing",
"timestamp": "2015-03-05T08:53:15.000000",
"user": "a21ded6060534d99840658a777c2af5a"
}
}

View File

@ -0,0 +1,19 @@
{
"events": [
{
"action": "create",
"cluster_id": null,
"deleted_time": null,
"id": "2d255b9c-8f36-41a2-a137-c0175ccc29c3",
"level": "20",
"obj_id": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
"obj_name": "node009",
"obj_type": "NODE",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"status": "CREATING",
"status_reason": "Initializing",
"timestamp": "2015-03-05T08:53:15.000000",
"user": "a21ded6060534d99840658a777c2af5a"
}
]
}

View File

@ -0,0 +1,9 @@
{
"node": {
"cluster_id": null,
"metadata": {},
"name": "node009",
"profile_id": "mystack",
"role": "master"
}
}

View File

@ -0,0 +1,24 @@
{
"node": {
"action": "2366d440-c73e-4961-9254-6d1c3af7c167",
"cluster_id": null,
"created_time": null,
"data": {},
"deleted_time": null,
"domain": null,
"id": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
"index": -1,
"init_time": "2015-03-05T08:53:15",
"metadata": {},
"name": "node009",
"physical_id": "",
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"role": "master",
"status": "INIT",
"status_reason": "Initializing",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,23 @@
{
"node": {
"cluster_id": null,
"created_time": "2015-02-10T12:03:16",
"data": {},
"deleted_time": null,
"domain": null,
"id": "d5779bb0-f0a0-49c9-88cc-6f078adb5a0b",
"index": -1,
"init_time": "2015-02-10T12:03:13",
"metadata": {},
"name": "node1",
"physical_id": "f41537fa-22ab-4bea-94c0-c874e19d0c80",
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"role": null,
"status": "ACTIVE",
"status_reason": "Creation succeeded",
"updated_time": "2015-03-04T04:58:27",
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,5 @@
{
"join": {
"cluster_id": "test_cluster"
}
}

View File

@ -0,0 +1,3 @@
{
"leave": {}
}

View File

@ -0,0 +1,26 @@
{
"nodes": [
{
"cluster_id": null,
"created_time": "2015-02-27T04:39:21",
"data": {},
"deleted_time": null,
"details": {},
"domain": null,
"id": "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
"index": -1,
"init_time": "2015-02-27T04:39:18",
"metadata": {},
"name": "node00a",
"physical_id": "cc028275-d078-4729-bf3e-154b7359814b",
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"role": null,
"status": "ACTIVE",
"status_reason": "Creation succeeded",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
]
}

View File

@ -0,0 +1,5 @@
{
"node": {
"name": "new_node_name"
}
}

View File

@ -0,0 +1,24 @@
{
"node": {
"action": "2366d440-c73e-4961-9254-6d1c3af7c167",
"cluster_id": null,
"created_time": null,
"data": {},
"deleted_time": null,
"domain": null,
"id": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
"index": -1,
"init_time": "2015-03-05T08:53:15",
"metadata": {},
"name": "node009",
"physical_id": "",
"profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"profile_name": "mystack",
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"role": "master",
"status": "ACTIVE",
"status_reason": "Update succeeded",
"updated_time": "2015-09-01T18:53:15",
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,19 @@
{
"policy": {
"cooldown": 0,
"level": 0,
"name": "sp001",
"spec": {
"properties": {
"adjustment": {
"min_step": 1,
"number": 1,
"type": "CHANGE_IN_CAPACITY"
},
"event": "CLUSTER_SCALE_IN"
},
"type": "senlin.policy.scaling",
"version": "1.0"
}
}
}

View File

@ -0,0 +1,29 @@
{
"policy": {
"cooldown": 0,
"created_time": "2015-03-02T07:40:31",
"data": {},
"deleted_time": null,
"domain": null,
"id": "02f62195-2198-4797-b0a9-877632208527",
"level": 0,
"name": "sp001",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"properties": {
"adjustment": {
"best_effort": true,
"min_step": 1,
"number": 1,
"type": "CHANGE_IN_CAPACITY"
},
"event": "CLUSTER_SCALE_IN"
},
"type": "senlin.policy.scaling",
"version": "1.0"
},
"type": "senlin.policy.scaling-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,29 @@
{
"policy": {
"cooldown": 0,
"created_time": "2015-03-02T07:40:31",
"data": {},
"deleted_time": null,
"domain": null,
"id": "02f62195-2198-4797-b0a9-877632208527",
"level": 0,
"name": "sp001",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"properties": {
"adjustment": {
"best_effort": true,
"min_step": 1,
"number": 1,
"type": "CHANGE_IN_CAPACITY"
},
"event": "CLUSTER_SCALE_IN"
},
"type": "senlin.policy.scaling",
"version": "1.0"
},
"type": "senlin.policy.scaling-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,29 @@
{
"policies": [
{
"cooldown": 0,
"created_time": "2015-02-15T08:33:13.000000",
"data": {},
"deleted_time": null,
"domain": null,
"id": "7192d8df-73be-4e98-ab99-1cf6d5066729",
"level": 0,
"name": "test_policy_1",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"description": "A test policy",
"properties": {
"criteria": "OLDEST_FIRST",
"destroy_after_deletion": true,
"grace_period": 60,
"reduce_desired_capacity": false
},
"type": "senlin.policy.deletion",
"version": "1.0"
},
"type": "senlin.policy.deletion-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
]
}

View File

@ -0,0 +1,42 @@
{
"policy_type": {
"name": "senlin.policy.deletion",
"schema": {
"criteria": {
"constraints": [
{
"constraint": [
"OLDEST_FIRST",
"OLDEST_PROFILE_FRIST",
"YOUNGEST_FIRST",
"RANDOM"
],
"type": "AllowedValues"
}
],
"default": "RANDOM",
"description": "Criteria used in selecting candidates for deletion",
"required": false,
"type": "String"
},
"destroy_after_deletion": {
"default": true,
"description": "Whether a node should be completely destroyed after deletion. Default to True",
"required": false,
"type": "Boolean"
},
"grace_period": {
"default": 0,
"description": "Number of seconds before real deletion happens.",
"required": false,
"type": "Integer"
},
"reduce_desired_capacity": {
"default": false,
"description": "Whether the desired capacity of the cluster should be reduced along the deletion. Default to False.",
"required": false,
"type": "Boolean"
}
}
}
}

View File

@ -0,0 +1,22 @@
{
"policy_types": [
{
"name": "ScalingPolicy"
},
{
"name": "PlacementPolicy"
},
{
"name": "DeletionPolicy"
},
{
"name": "LoadBalancingPolicy"
},
{
"name": "HealthPolicy"
},
{
"name": "UpdatePolicy"
}
]
}

View File

@ -0,0 +1,5 @@
{
"policy": {
"cooldown": "34"
}
}

View File

@ -0,0 +1,27 @@
{
"policy": {
"cooldown": 0,
"created_time": "2015-10-14T09:14:53",
"data": {},
"deleted_time": null,
"domain": null,
"id": "ac5415bd-f522-4160-8be0-f8853e4bc332",
"level": 0,
"name": "dp01",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"description": "A policy for node deletion.",
"properties": {
"criteria": "OLDEST_FIRST",
"destroy_after_deletion": true,
"grace_period": 60,
"reduce_desired_capacity": false
},
"type": "senlin.policy.deletion",
"version": "1.0"
},
"type": "senlin.policy.deletion-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,53 @@
{
"profile": {
"metadata": {},
"name": "test_prof1",
"permission": "xxx",
"spec": {
"properties": {
"disable_rollback": false,
"environment": {
"resource_registry": {
"os.heat.server": "OS::Heat::Server"
}
},
"files": {
"file:///usr/test_script.sh": "#!/bin/bash\n\necho \"this is a test script file\"\n"
},
"parameters": {},
"template": {
"heat_template_version": "2014-10-16",
"outputs": {
"result": {
"value": {
"get_attr": [
"random",
"value"
]
}
}
},
"parameters": {
"file": {
"default": {
"get_file": "file:///usr/test_script.sh"
},
"type": "string"
}
},
"resources": {
"random": {
"properties": {
"length": 64
},
"type": "OS::Heat::RandomString"
}
}
},
"timeout": 60
},
"type": "os.heat.stack",
"version": "1.0"
}
}
}

View File

@ -0,0 +1,61 @@
{
"profile": {
"created_time": "2015-03-01T14:28:25",
"deleted_time": null,
"domain": null,
"id": "7fa885cd-fa39-4531-a42d-780af95c84a4",
"metadata": {},
"name": "test_prof1",
"permission": "xxx",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"properties": {
"disable_rollback": false,
"environment": {
"resource_registry": {
"os.heat.server": "OS::Heat::Server"
}
},
"files": {
"file:///opt/stack/senlin/examples/profiles/test_script.sh": "#!/bin/bash\n\necho \"this is a test script file\"\n"
},
"parameters": {},
"template": {
"heat_template_version": "2014-10-16",
"outputs": {
"result": {
"value": {
"get_attr": [
"random",
"value"
]
}
}
},
"parameters": {
"file": {
"default": {
"get_file": "file:///opt/stack/senlin/examples/profiles/test_script.sh"
},
"type": "string"
}
},
"resources": {
"random": {
"properties": {
"length": 64
},
"type": "OS::Heat::RandomString"
}
}
},
"timeout": 60
},
"type": "os.heat.stack",
"version": "1.0"
},
"type": "os.heat.stack-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,59 @@
{
"profile": {
"created_time": "2015-03-01T14:28:25",
"deleted_time": null,
"domain": null,
"id": "7fa885cd-fa39-4531-a42d-780af95c84a4",
"metadata": {},
"name": "test_prof1",
"permission": "xxx",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"disable_rollback": false,
"environment": {
"resource_registry": {
"os.heat.server": "OS::Heat::Server"
}
},
"files": {
"file:///opt/stack/senlin/examples/profiles/test_script.sh": "#!/bin/bash\n\necho \"this is a test script file\"\n"
},
"parameters": {},
"template": {
"heat_template_version": "2014-10-16",
"outputs": {
"result": {
"value": {
"get_attr": [
"random",
"value"
]
}
}
},
"parameters": {
"file": {
"default": {
"get_file": "file:///opt/stack/senlin/examples/profiles/test_script.sh"
},
"type": "string"
}
},
"resources": {
"random": {
"properties": {
"length": 64
},
"type": "OS::Heat::RandomString"
}
},
"timeout": 60
},
"type": "os.heat.stack",
"version": "1.0"
},
"type": "os.heat.stack-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,65 @@
{
"profiles": [
{
"created_time": "2015-02-10T11:46:33.000000",
"deleted_time": null,
"domain": null,
"id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
"metadata": {},
"name": "mystack",
"permission": "",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"properties": {
"disable_rollback": false,
"environment": {
"resource_registry": {
"os.heat.server": "OS::Heat::Server"
}
},
"files": {
"file:///opt/stack/senlin/examples/profiles/test_script.sh": "#!/bin/bash\n\necho \"this is a test script file\"\n"
},
"name": "random_string_stack",
"parameters": {},
"rollback": false,
"template": {
"heat_template_version": "2014-10-16",
"outputs": {
"result": {
"value": {
"get_attr": [
"random",
"value"
]
}
}
},
"parameters": {
"file": {
"default": {
"get_file": "file:///opt/stack/senlin/examples/profiles/test_script.sh"
},
"type": "string"
}
},
"resources": {
"random": {
"properties": {
"length": 64
},
"type": "OS::Heat::RandomString"
}
}
},
"timeout": 60
},
"type": "os.heat.stack",
"version": "1.0"
},
"type": "os.heat.stack-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
]
}

View File

@ -0,0 +1,47 @@
{
"profile_type": {
"name": "os.heat.stack",
"schema": {
"context": {
"default": {},
"description": "A dictionary for specifying the customized context for stack operations",
"required": false,
"type": "Map"
},
"disable_rollback": {
"default": true,
"description": "A boolean specifying whether a stack operation can be rolled back.",
"required": false,
"type": "Boolean"
},
"environment": {
"default": {},
"description": "A map that specifies the environment used for stack operations.",
"required": false,
"type": "Map"
},
"files": {
"default": {},
"description": "Contents of files referenced by the template, if any.",
"required": false,
"type": "Map"
},
"parameters": {
"default": {},
"description": "Parameters to be passed to Heat for stack operations.",
"required": false,
"type": "Map"
},
"template": {
"description": "Heat stack template.",
"required": true,
"type": "Map"
},
"timeout": {
"description": "A integer that specifies the number of minutes that a stack operation times out.",
"required": false,
"type": "Integer"
}
}
}
}

View File

@ -0,0 +1,13 @@
{
"profile_types": [
{
"name": "os.heat.stack"
},
{
"name": "os.heat.resource"
},
{
"name": "os.nova.server"
}
]
}

View File

@ -0,0 +1,7 @@
{
"profile": {
"metadata": {},
"name": null,
"permission": "111100001111"
}
}

View File

@ -0,0 +1,59 @@
{
"profile": {
"created_time": "2015-03-01T14:28:25",
"deleted_time": null,
"domain": null,
"id": "7fa885cd-fa39-4531-a42d-780af95c84a4",
"metadata": {},
"name": "test_prof1",
"permission": "xxx",
"project": "42d9e9663331431f97b75e25136307ff",
"spec": {
"disable_rollback": false,
"environment": {
"resource_registry": {
"os.heat.server": "OS::Heat::Server"
}
},
"files": {
"file:///opt/stack/senlin/examples/profiles/test_script.sh": "#!/bin/bash\n\necho \"this is a test script file\"\n"
},
"parameters": {},
"template": {
"heat_template_version": "2014-10-16",
"outputs": {
"result": {
"value": {
"get_attr": [
"random",
"value"
]
}
}
},
"parameters": {
"file": {
"default": {
"get_file": "file:///opt/stack/senlin/examples/profiles/test_script.sh"
},
"type": "string"
}
},
"resources": {
"random": {
"properties": {
"length": 64
},
"type": "OS::Heat::RandomString"
}
},
"timeout": 60
},
"type": "os.heat.stack",
"version": "1.0"
},
"type": "os.heat.stack-1.0",
"updated_time": null,
"user": "5e5bf8027826429c96af157f68dc9072"
}
}

View File

@ -0,0 +1,14 @@
{
"versions": [
{
"status": "CURRENT",
"id": "v1.0",
"links": [
{
"href": "http://192.168.12.34:8778/v1/",
"rel": "self"
}
]
}
]
}

View File

@ -0,0 +1,16 @@
{
"webhook": {
"action": "CLUSTER_RESIZE",
"credential": {
"password": "secretekey",
"username": "john"
},
"name": "cluster_shrink_1",
"obj_id": "cf99d754-3cdc-47f4-8a29-cd14f02f5436",
"obj_type": "cluster",
"params": {
"adjustment_number": "20",
"adjustment_type": "CHANGE_IN_PERCENTAGE"
}
}
}

View File

@ -0,0 +1,19 @@
{
"webhook": {
"action": "CLUSTER_RESIZE",
"created_time": "2015-06-27T05:09:43",
"credential": "securely encrypted message here",
"deleted_time": null,
"domain": "Default",
"id": "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
"name": "cluster_shrink",
"obj_id": "ed0a26da-55a4-49aa-afe3-290906376a4a",
"obj_type": "cluster",
"params": {
"adjustment_number": 20,
"adjustment_type": "CHANGE_IN_PERCENTAGE"
},
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"user": "b4ad2d6e18cc2b9c48049f6dbe8a5b3c"
}
}

View File

@ -0,0 +1,19 @@
{
"webhook": {
"action": "CLUSTER_RESIZE",
"created_time": "2015-06-27T05:09",
"credential": "securely encrypted message here",
"deleted_time": null,
"domain": "Default",
"id": "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
"name": "cluster_shrink",
"obj_id": "ed0a26da-55a4-49aa-afe3-290906376a4a",
"obj_type": "cluster",
"params": {
"adjustment_number": 20,
"adjustment_type": "CHANGE_IN_PERCENTAGE"
},
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"user": "b4ad2d6e18cc2b9c48049f6dbe8a5b3c"
}
}

View File

@ -0,0 +1,21 @@
{
"webhooks": [
{
"action": "CLUSTER_RESIZE",
"created_time": "2015-06-27T05:09:43.000000",
"credential": "securely encrypted message here",
"deleted_time": null,
"domain": "Default",
"id": "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
"name": "cluster_shrink",
"obj_id": "ed0a26da-55a4-49aa-afe3-290906376a4a",
"obj_type": "cluster",
"params": {
"adjustment_number": 20,
"adjustment_type": "CHANGE_IN_PERCENTAGE"
},
"project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
"user": "b4ad2d6e18cc2b9c48049f6dbe8a5b3c"
}
]
}