Merge "api-ref: Example verification for servers-actions.inc"
This commit is contained in:
@@ -11,6 +11,13 @@ image_location:
|
||||
required: true
|
||||
type: string
|
||||
max_version: 2.44
|
||||
server_location:
|
||||
description: |
|
||||
The location URL of the server, HTTP header
|
||||
"Location: <server location URL>" will be returned.
|
||||
in: header
|
||||
required: true
|
||||
type: string
|
||||
tag_location:
|
||||
description: |
|
||||
The location of the tag. It's individual tag URL which can be used for
|
||||
@@ -1045,10 +1052,10 @@ address:
|
||||
addresses:
|
||||
description: |
|
||||
The addresses for the server. Addresses information is hidden for any server
|
||||
in a state set in the ``osapi_hide_server_address_states`` configuration option.
|
||||
in a state set in the ``hide_server_address_states`` configuration option.
|
||||
By default, servers in ``building`` state hide their addresses information.
|
||||
See ``nova.conf`` `configuration options
|
||||
<http://docs.openstack.org/liberty/config-reference/content/list-of-compute-config-options.html>`_
|
||||
<https://docs.openstack.org/ocata/config-reference/compute/config-options.html>`_
|
||||
for more information.
|
||||
in: body
|
||||
required: true
|
||||
@@ -2779,6 +2786,13 @@ imageRef:
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
imageRef_rebuild:
|
||||
description: |
|
||||
The UUID of the image to rebuild for your server instance.
|
||||
It must be a valid UUID otherwise API will return 400.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
images:
|
||||
description: |
|
||||
An array of Image objects.
|
||||
@@ -3849,7 +3863,7 @@ path:
|
||||
description: |
|
||||
The path field in the personality object.
|
||||
in: body
|
||||
required: false
|
||||
required: true
|
||||
type: string
|
||||
pause:
|
||||
description: |
|
||||
@@ -3878,7 +3892,7 @@ personality:
|
||||
of allowed bytes in the decoded, rather than encoded, data.
|
||||
in: body
|
||||
required: false
|
||||
type: string
|
||||
type: array
|
||||
policies:
|
||||
description: |
|
||||
A list of exactly one policy name to associate with the server group. The
|
||||
@@ -4061,10 +4075,10 @@ reboot_type:
|
||||
type: string
|
||||
rebuild:
|
||||
description: |
|
||||
The action.
|
||||
The action to rebuild a server.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
type: object
|
||||
remote_console:
|
||||
description: |
|
||||
The remote console object.
|
||||
@@ -4126,10 +4140,10 @@ request_id_body:
|
||||
type: string
|
||||
rescue:
|
||||
description: |
|
||||
The action.
|
||||
The action to rescue a server.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
type: object
|
||||
rescue_image_ref:
|
||||
description: |
|
||||
The image reference to use to rescue your server instance. Specify the image reference
|
||||
@@ -4341,6 +4355,14 @@ server_description:
|
||||
A free form description of the server. Limited to 255 characters
|
||||
in length. Before microversion 2.19 this was set to the server
|
||||
name.
|
||||
server_description_resp:
|
||||
description: |
|
||||
The description of the server.
|
||||
Before microversion 2.19 this was set to the server name.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
min_version: 2.19
|
||||
server_group:
|
||||
description: |
|
||||
The server group obejct.
|
||||
@@ -4431,6 +4453,15 @@ server_launch_index:
|
||||
When servers are launched via multiple create, this is the
|
||||
sequence in which the servers were launched.
|
||||
min_version: 2.3
|
||||
server_links:
|
||||
description: |
|
||||
Links pertaining to the server. See `API Guide / Links and
|
||||
References
|
||||
<http://developer.openstack.org/api-guide/compute/links_and_references.html>`_
|
||||
for more info.
|
||||
in: body
|
||||
type: array
|
||||
required: true
|
||||
server_name:
|
||||
description: |
|
||||
The server name.
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
.. -*- rst -*-
|
||||
.. needs:parameter_verification
|
||||
.. needs:example_verification
|
||||
.. needs:body_verification
|
||||
|
||||
===========================================
|
||||
@@ -475,26 +473,60 @@ Request
|
||||
|
||||
- server_id: server_id_path
|
||||
- rebuild: rebuild
|
||||
- imageRef: imageRef
|
||||
- name: server_name_optional
|
||||
- imageRef: imageRef_rebuild
|
||||
- accessIPv4: accessIPv4_in
|
||||
- accessIPv6: accessIPv6_in
|
||||
- adminPass: adminPass_request
|
||||
- metadata: metadata
|
||||
- name: server_name_optional
|
||||
- OS-DCF:diskConfig: OS-DCF:diskConfig
|
||||
- personality: personality
|
||||
- personality.path: path
|
||||
- personality.contents: contents
|
||||
- preserve_ephemeral: preserve_ephemeral
|
||||
- description: server_description
|
||||
|
||||
**Example Rebuild Server (rebuild Action)**
|
||||
**Example Rebuild Server (rebuild Action) (v2.26)**
|
||||
|
||||
Preserving the ephemeral disk
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-rebuild-preserve-ephemeral.json
|
||||
.. literalinclude:: ../../doc/api_samples/servers/v2.26/server-action-rebuild.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Example Rebuild Server (rebuild Action)**
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-rebuild-resp.json
|
||||
- Location: server_location
|
||||
- server: server
|
||||
- accessIPv4: accessIPv4
|
||||
- accessIPv6: accessIPv6
|
||||
- addresses: addresses_obj
|
||||
- adminPass: adminPass_response
|
||||
- created: created
|
||||
- flavor: flavor
|
||||
- flavor.id: flavor_id_body
|
||||
- flavor.links: links
|
||||
- hostId: hostId
|
||||
- id: server_id
|
||||
- image: image
|
||||
- image.id: image_id_body
|
||||
- image.links: links
|
||||
- links: server_links
|
||||
- metadata: metadata_object
|
||||
- name: server_name
|
||||
- OS-DCF:diskConfig: disk_config
|
||||
- progress: progress
|
||||
- status: server_status
|
||||
- tenant_id: tenant_id_body
|
||||
- updated: updated
|
||||
- user_id: user_id
|
||||
- locked: locked
|
||||
- description: server_description_resp
|
||||
- tags: tags
|
||||
|
||||
**Example Rebuild Server (rebuild Action) (v2.26)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/servers/v2.26/server-action-rebuild-resp.json
|
||||
:language: javascript
|
||||
|
||||
Remove (Disassociate) Floating Ip (removeFloatingIp Action) (DEPRECATED)
|
||||
@@ -607,9 +639,9 @@ Request
|
||||
- adminPass: adminPass_rescue_request
|
||||
- rescue_image_ref: rescue_image_ref
|
||||
|
||||
**Example Rescue server**
|
||||
**Example Rescue server (rescue Action)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-rescue/server-rescue-req.json
|
||||
.. literalinclude:: ../../doc/api_samples/os-rescue/server-rescue-req-with-image-ref.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@@ -619,7 +651,7 @@ Response
|
||||
|
||||
- adminPass: adminPass_response
|
||||
|
||||
**Example Extended rescue server**
|
||||
**Example Rescue server (rescue Action)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/os-rescue/server-rescue.json
|
||||
:language: javascript
|
||||
|
||||
Reference in New Issue
Block a user