Fix sample path for aggregate, certificate, console
This fix all sample file path for -os-aggregates -os-certificates -os-consoles Part of bp:api-ref-in-rst Change-Id: I949f3625b7bad4f316ee4b5723fba8e95a205afd
This commit is contained in:
parent
2325ee56f3
commit
90d64f229c
@ -31,7 +31,7 @@ Request
|
||||
|
||||
**Example Create Aggregate: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-create-req.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-post-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -39,7 +39,7 @@ Response
|
||||
|
||||
**Example Create Aggregate: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-create-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-post-resp.json
|
||||
:language: javascript
|
||||
|
||||
List Aggregates
|
||||
@ -61,17 +61,12 @@ Request
|
||||
|
||||
- tenant_id: tenant_id
|
||||
|
||||
**Example List Aggregates: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-create-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Example List Aggregates: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregates-list-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregates-list-get-resp.json
|
||||
:language: javascript
|
||||
|
||||
Show Aggregate Details
|
||||
@ -94,17 +89,12 @@ Request
|
||||
- tenant_id: tenant_id
|
||||
- aggregate_id: aggregate_id
|
||||
|
||||
**Example Show Aggregate Details: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-create-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Example Show Aggregate Details: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-show-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregates-get-resp.json
|
||||
:language: javascript
|
||||
|
||||
Delete Aggregate
|
||||
@ -152,7 +142,7 @@ Request
|
||||
|
||||
**Example Update Aggregate: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-update-req.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-update-post-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -160,7 +150,7 @@ Response
|
||||
|
||||
**Example Update Aggregate: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-update-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-update-post-resp.json
|
||||
:language: javascript
|
||||
|
||||
Add Host
|
||||
@ -187,7 +177,7 @@ Request
|
||||
|
||||
**Example Add Host: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-add-host-req.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-add-host-post-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -195,42 +185,7 @@ Response
|
||||
|
||||
**Example Add Host: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-add-host-resp.json
|
||||
:language: javascript
|
||||
|
||||
Create Or Update Aggregate Metadata
|
||||
===================================
|
||||
|
||||
.. rest_method:: POST /v2.1/{tenant_id}/os-aggregates/{aggregate_id}/action
|
||||
|
||||
Creates or replaces metadata for an aggregate.
|
||||
|
||||
Specify the ``set_metadata`` action in the request body.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- tenant_id: tenant_id
|
||||
- aggregate_id: aggregate_id
|
||||
|
||||
**Example Create Or Update Aggregate Metadata: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-metadata-create-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Example Create Or Update Aggregate Metadata: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-metadata-create-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregates-add-host-post-resp.json
|
||||
:language: javascript
|
||||
|
||||
Remove Host
|
||||
@ -257,7 +212,7 @@ Request
|
||||
|
||||
**Example Remove Host: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-remove-host-req.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-remove-host-post-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -265,6 +220,41 @@ Response
|
||||
|
||||
**Example Remove Host: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-remove-host-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregates-remove-host-post-resp.json
|
||||
:language: javascript
|
||||
|
||||
Create Or Update Aggregate Metadata
|
||||
===================================
|
||||
|
||||
.. rest_method:: POST /v2.1/{tenant_id}/os-aggregates/{aggregate_id}/action
|
||||
|
||||
Creates or replaces metadata for an aggregate.
|
||||
|
||||
Specify the ``set_metadata`` action in the request body.
|
||||
|
||||
Normal response codes: 200
|
||||
|
||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- tenant_id: tenant_id
|
||||
- aggregate_id: aggregate_id
|
||||
|
||||
**Example Create Or Update Aggregate Metadata: JSON request**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregate-metadata-post-req.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Example Create Or Update Aggregate Metadata: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-aggregates/aggregates-metadata-post-resp.json
|
||||
:language: javascript
|
||||
|
||||
|
@ -58,6 +58,6 @@ Response
|
||||
|
||||
**Example Show Certificate Details: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-certificates/certificate-show-root-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-certificates/certificate-get-root-resp.json
|
||||
:language: javascript
|
||||
|
||||
|
@ -54,7 +54,7 @@ Response
|
||||
|
||||
**Example List consoles: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-consoles/consoles-list-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-consoles/consoles-list-get-resp.json
|
||||
:language: javascript
|
||||
|
||||
Show Console Details
|
||||
@ -83,7 +83,7 @@ Response
|
||||
|
||||
**Example List consoles: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-consoles/consoles-list-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-consoles/consoles-get-resp.json
|
||||
:language: javascript
|
||||
|
||||
Delete Console
|
||||
@ -137,6 +137,6 @@ Response
|
||||
|
||||
**Example List consoles: JSON response**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-consoles/console-auth-show-resp.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-console-auth-tokens/get-console-connect-info-get-resp.json
|
||||
:language: javascript
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user