Fix software config api-ref doc
This patch adds the missing list operation on software configs. It also reorders the operations on configs/deployments so that finding API docs will be a little bit easier. Change-Id: I26e4b34000b71c61f9d9de327c7754ff9031d6b4
This commit is contained in:
parent
b481a126c2
commit
1243dc3797
|
@ -1247,12 +1247,24 @@ software_config:
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: object
|
type: object
|
||||||
|
software_configs:
|
||||||
|
description: |
|
||||||
|
A list of ``software_config`` objects.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: array
|
||||||
software_deployment:
|
software_deployment:
|
||||||
description: |
|
description: |
|
||||||
The ``software_deployment`` object.
|
The ``software_deployment`` object.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: object
|
type: object
|
||||||
|
software_deployments:
|
||||||
|
description: |
|
||||||
|
A list of ``software_deployment`` objects.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: array
|
||||||
stack:
|
stack:
|
||||||
description: |
|
description: |
|
||||||
The ``stack`` object.
|
The ``stack`` object.
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"software_configs": [{
|
||||||
|
"group": "script",
|
||||||
|
"name": "a-config-we5zpvyu7b5o",
|
||||||
|
"creation_time": "2015-01-31T15:12:36Z",
|
||||||
|
"id": "ddee7aca-aa32-4335-8265-d436b20db4f1",
|
||||||
|
}]
|
||||||
|
}
|
|
@ -4,27 +4,114 @@
|
||||||
Software configuration
|
Software configuration
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
Create configuration
|
||||||
|
====================
|
||||||
|
|
||||||
|
.. rest_method:: POST /v1/{tenant_id}/software_configs
|
||||||
|
|
||||||
|
Creates a software configuration.
|
||||||
List deployments
|
|
||||||
================
|
|
||||||
|
|
||||||
.. rest_method:: GET /v1/{tenant_id}/software_deployments
|
|
||||||
|
|
||||||
Lists all available software deployments.
|
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
Error response codes:404,500,401,400,
|
|
||||||
|
Error response codes:404,401,400,
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- inputs: inputs
|
||||||
|
- group: group
|
||||||
|
- name: name
|
||||||
|
- outputs: outputs
|
||||||
|
- config: config
|
||||||
|
- options: options
|
||||||
|
- tenant_id: tenant_id
|
||||||
|
|
||||||
|
Request Example
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. literalinclude:: samples/config-create-request.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
Response Parameters
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- id: config_id_2
|
||||||
|
- inputs: inputs
|
||||||
|
- group: group
|
||||||
|
- name: name
|
||||||
|
- outputs: outputs
|
||||||
|
- creation_time: creation_time
|
||||||
|
- config: config
|
||||||
|
- options: options
|
||||||
|
- software_config: software_config
|
||||||
|
|
||||||
|
Response Example
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. literalinclude:: samples/config-create-response.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
Request
|
List configs
|
||||||
-------
|
============
|
||||||
|
|
||||||
|
.. rest_method:: GET /v1/{tenant_id}/software_configs
|
||||||
|
|
||||||
|
Lists all available software configurations.
|
||||||
|
|
||||||
|
Normal response codes: 200
|
||||||
|
|
||||||
|
Error response codes: 404,500,401,400
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
|
------------------
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- tenant_id: tenant_id
|
- tenant_id: tenant_id
|
||||||
|
- limit: limit
|
||||||
|
- marker: marker
|
||||||
|
|
||||||
|
Response Parameters
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- group: group
|
||||||
|
- name: name
|
||||||
|
- creation_time: creation_time
|
||||||
|
- id: config_id_2
|
||||||
|
- software_configs: software_configs
|
||||||
|
|
||||||
|
Response Example
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. literalinclude:: samples/configs-list-response.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
Show configuration details
|
||||||
|
==========================
|
||||||
|
|
||||||
|
.. rest_method:: GET /v1/{tenant_id}/software_configs/{config_id}
|
||||||
|
|
||||||
|
Shows details for a software configuration.
|
||||||
|
|
||||||
|
Normal response codes: 200
|
||||||
|
|
||||||
|
Error response codes: 404,401,400
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- tenant_id: tenant_id
|
||||||
|
- config_id: config_id
|
||||||
|
|
||||||
|
|
||||||
Response Parameters
|
Response Parameters
|
||||||
|
@ -32,30 +119,40 @@ Response Parameters
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- status: status
|
- id: config_id_2
|
||||||
- server_id: server_id
|
- inputs: inputs
|
||||||
- config_id: config_id
|
- group: group
|
||||||
- output_values: output_values
|
- name: name
|
||||||
|
- outputs: outputs
|
||||||
- creation_time: creation_time
|
- creation_time: creation_time
|
||||||
- updated_at: updated_at
|
- config: config
|
||||||
- input_values: input_values
|
- options: options
|
||||||
- action: action
|
- software_config: software_config
|
||||||
- status_reason: status_reason
|
|
||||||
- id: id
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
.. literalinclude:: samples/deployments-list-response.json
|
.. literalinclude:: samples/config-show-response.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
Delete config
|
||||||
|
=============
|
||||||
|
|
||||||
|
.. rest_method:: DELETE /v1/{tenant_id}/software_configs/{config_id}
|
||||||
|
|
||||||
|
Deletes a software configuration.
|
||||||
|
|
||||||
|
Normal response codes: 204
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- tenant_id: tenant_id
|
||||||
|
- config_id: config_id
|
||||||
|
|
||||||
|
|
||||||
Create deployment
|
Create deployment
|
||||||
|
@ -67,11 +164,11 @@ Creates a software deployment.
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
Error response codes:
|
Error response codes:
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
Request
|
------------------
|
||||||
-------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
@ -89,8 +186,6 @@ Request Example
|
||||||
.. literalinclude:: samples/deployment-create-request.json
|
.. literalinclude:: samples/deployment-create-request.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Response Parameters
|
Response Parameters
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -116,103 +211,47 @@ Response Example
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
List deployments
|
||||||
|
================
|
||||||
|
|
||||||
|
.. rest_method:: GET /v1/{tenant_id}/software_deployments
|
||||||
|
|
||||||
Show server configuration metadata
|
Lists all available software deployments.
|
||||||
==================================
|
|
||||||
|
|
||||||
.. rest_method:: GET /v1/{tenant_id}/software_deployments/metadata/{server_id}
|
|
||||||
|
|
||||||
Shows the deployment configuration metadata for a server.
|
|
||||||
|
|
||||||
Use the ``group`` property to specify the configuration hook to
|
|
||||||
which the pass the metadata item.
|
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
Error response codes:
|
|
||||||
|
|
||||||
|
Error response codes: 404,500,401,400
|
||||||
|
|
||||||
Request
|
Request Parameters
|
||||||
-------
|
------------------
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- server_id: server_id
|
|
||||||
- tenant_id: tenant_id
|
- tenant_id: tenant_id
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Response Example
|
|
||||||
----------------
|
|
||||||
|
|
||||||
.. literalinclude:: samples/deployment-metadata-response.json
|
|
||||||
:language: javascript
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Create configuration
|
|
||||||
====================
|
|
||||||
|
|
||||||
.. rest_method:: POST /v1/{tenant_id}/software_configs
|
|
||||||
|
|
||||||
Creates a software configuration.
|
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
|
||||||
Error response codes:404,401,400,
|
|
||||||
|
|
||||||
|
|
||||||
Request
|
|
||||||
-------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
|
||||||
|
|
||||||
- inputs: inputs
|
|
||||||
- group: group
|
|
||||||
- name: name
|
|
||||||
- outputs: outputs
|
|
||||||
- config: config
|
|
||||||
- options: options
|
|
||||||
- tenant_id: tenant_id
|
|
||||||
|
|
||||||
Request Example
|
|
||||||
---------------
|
|
||||||
|
|
||||||
.. literalinclude:: samples/config-create-request.json
|
|
||||||
:language: javascript
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Response Parameters
|
Response Parameters
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- inputs: inputs
|
- status: status
|
||||||
- group: group
|
- server_id: server_id
|
||||||
- name: name
|
- config_id: config_id
|
||||||
- outputs: outputs
|
- output_values: output_values
|
||||||
- creation_time: creation_time
|
- creation_time: creation_time
|
||||||
- config: config
|
- updated_at: updated_at
|
||||||
- options: options
|
- input_values: input_values
|
||||||
- software_config: software_config
|
- action: action
|
||||||
|
- status_reason: status_reason
|
||||||
|
- id: id_2
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
.. literalinclude:: samples/config-create-response.json
|
.. literalinclude:: samples/deployments-list-response.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Show deployment details
|
Show deployment details
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
@ -222,11 +261,11 @@ Shows details for a software deployment.
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
Error response codes:
|
Error response codes:
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
Request
|
------------------
|
||||||
-------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
@ -248,10 +287,9 @@ Response Parameters
|
||||||
- input_values: input_values
|
- input_values: input_values
|
||||||
- action: action
|
- action: action
|
||||||
- status_reason: status_reason
|
- status_reason: status_reason
|
||||||
- id: id
|
- id: id_2
|
||||||
- software_deployment: software_deployment
|
- software_deployment: software_deployment
|
||||||
|
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@ -259,8 +297,6 @@ Response Example
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Update deployment
|
Update deployment
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
@ -270,11 +306,11 @@ Updates a software deployment.
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
Error response codes:
|
Error response codes:
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
Request
|
------------------
|
||||||
-------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
@ -292,8 +328,6 @@ Request Example
|
||||||
.. literalinclude:: samples/deployment-update-request.json
|
.. literalinclude:: samples/deployment-update-request.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Response Parameters
|
Response Parameters
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -311,7 +345,6 @@ Response Parameters
|
||||||
- id: id
|
- id: id
|
||||||
- software_deployment: software_deployment
|
- software_deployment: software_deployment
|
||||||
|
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@ -319,8 +352,6 @@ Response Example
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Delete deployment
|
Delete deployment
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
@ -328,11 +359,10 @@ Delete deployment
|
||||||
|
|
||||||
Deletes a software deployment.
|
Deletes a software deployment.
|
||||||
|
|
||||||
Error response codes:204,
|
Normal response codes: 204
|
||||||
|
|
||||||
|
Request Parameters
|
||||||
Request
|
------------------
|
||||||
-------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
@ -340,77 +370,32 @@ Request
|
||||||
- deployment_id: deployment_id
|
- deployment_id: deployment_id
|
||||||
|
|
||||||
|
|
||||||
|
Show server configuration metadata
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. rest_method:: GET /v1/{tenant_id}/software_deployments/metadata/{server_id}
|
||||||
|
|
||||||
|
Shows the deployment configuration metadata for a server.
|
||||||
|
|
||||||
|
Use the ``group`` property to specify the configuration hook to
|
||||||
Show configuration details
|
which the pass the metadata item.
|
||||||
==========================
|
|
||||||
|
|
||||||
.. rest_method:: GET /v1/{tenant_id}/software_configs/{config_id}
|
|
||||||
|
|
||||||
Shows details for a software configuration.
|
|
||||||
|
|
||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
Error response codes:404,401,400,
|
|
||||||
|
|
||||||
|
Error response codes:
|
||||||
|
|
||||||
Request
|
Request Parameters
|
||||||
-------
|
------------------
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- server_id: server_id
|
||||||
- tenant_id: tenant_id
|
- tenant_id: tenant_id
|
||||||
- config_id: config_id
|
|
||||||
|
|
||||||
|
|
||||||
Response Parameters
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
|
||||||
|
|
||||||
- inputs: inputs
|
|
||||||
- group: group
|
|
||||||
- name: name
|
|
||||||
- outputs: outputs
|
|
||||||
- creation_time: creation_time
|
|
||||||
- config: config
|
|
||||||
- options: options
|
|
||||||
- software_config: software_config
|
|
||||||
|
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
.. literalinclude:: samples/config-show-response.json
|
.. literalinclude:: samples/deployment-metadata-response.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Delete config
|
|
||||||
=============
|
|
||||||
|
|
||||||
.. rest_method:: DELETE /v1/{tenant_id}/software_configs/{config_id}
|
|
||||||
|
|
||||||
Deletes a software configuration.
|
|
||||||
|
|
||||||
Error response codes:204,
|
|
||||||
|
|
||||||
|
|
||||||
Request
|
|
||||||
-------
|
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
|
||||||
|
|
||||||
- tenant_id: tenant_id
|
|
||||||
- config_id: config_id
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue