api-ref: Method verification for servers-actions
Verify and update the response codes for the methods based on what is in the code. part of blueprint: api-ref-in-rst Change-Id: Ib60e82b320ac7db3c2b50005f420db0aa43de492
This commit is contained in:
parent
25ac5a2756
commit
1f4515d3c3
@ -1,5 +1,4 @@
|
|||||||
.. -*- rst -*-
|
.. -*- rst -*-
|
||||||
.. needs:method_verification
|
|
||||||
.. needs:parameter_verification
|
.. needs:parameter_verification
|
||||||
.. needs:example_verification
|
.. needs:example_verification
|
||||||
.. needs:body_verification
|
.. needs:body_verification
|
||||||
@ -26,16 +25,25 @@ into a server since Mitaka release.
|
|||||||
|
|
||||||
You can get an RDP, serial, SPICE, or VNC console for a server.
|
You can get an RDP, serial, SPICE, or VNC console for a server.
|
||||||
|
|
||||||
Add (Associate) Floating Ip (Addfloatingip Action)
|
Add (Associate) Floating Ip (addFloatingIp Action)
|
||||||
==================================================
|
==================================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
|
|
||||||
Adds a floating IP address to a server, which associates that address with the server.
|
Adds a floating IP address to a server, which associates
|
||||||
|
that address with the server.
|
||||||
|
|
||||||
A pool of floating IP addresses, configured by the cloud administrator, is available in OpenStack Compute. The project quota defines the maximum number of floating IP addresses that you can allocate to the project. After you `create (allocate) a floating IPaddress <http://developer.openstack.org/api-ref-compute-v2.1.html#createFloatingIP>`__ for a project, you can associate that address with the server. Specify the ``addFloatingIp`` action in the request body.
|
A pool of floating IP addresses, configured by the cloud administrator,
|
||||||
|
is available in OpenStack Compute. The project quota defines the maximum
|
||||||
|
number of floating IP addresses that you can allocate to the project.
|
||||||
|
After you `create (allocate) a floating IPaddress
|
||||||
|
<http://developer.openstack.org/api-ref-compute-v2.1.html#createFloatingIP>`__
|
||||||
|
for a project, you can associate that address with the server. Specify
|
||||||
|
the ``addFloatingIp`` action in the request body.
|
||||||
|
|
||||||
If an instance is connected to multiple networks, you can associate a floating IP address with a specific fixed IP address by using the optional ``fixed_address`` parameter.
|
If an instance is connected to multiple networks, you can associate a
|
||||||
|
floating IP address with a specific fixed IP address by using the
|
||||||
|
optional ``fixed_address`` parameter.
|
||||||
|
|
||||||
Preconditions
|
Preconditions
|
||||||
|
|
||||||
@ -45,8 +53,8 @@ You can only add a floating IP address to the server when its status is ``availa
|
|||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -60,7 +68,7 @@ Request
|
|||||||
- fixed_address: fixed_address
|
- fixed_address: fixed_address
|
||||||
|
|
||||||
.. TODO(gmann) Need to create the sample file for this action.
|
.. TODO(gmann) Need to create the sample file for this action.
|
||||||
**Example Add (Associate) Floating Ip (Addfloatingip Action): JSON request**
|
**Example Add (Associate) Floating Ip (addFloatingIp Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-floating-ips/floating-ips-create-resp.json
|
.. literalinclude:: ../../doc/api_samples/os-floating-ips/floating-ips-create-resp.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -68,7 +76,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Add Security Group To A Server (Addsecuritygroup Action)
|
Add Security Group To A Server (addSecurityGroup Action)
|
||||||
========================================================
|
========================================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -79,8 +87,8 @@ Specify the ``addSecurityGroup`` action in the request body.
|
|||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -92,7 +100,7 @@ Request
|
|||||||
- addSecurityGroup: addSecurityGroup
|
- addSecurityGroup: addSecurityGroup
|
||||||
- name: name
|
- name: name
|
||||||
|
|
||||||
**Example Add Security Group To A Server (Addsecuritygroup Action): JSON request**
|
**Example Add Security Group To A Server (addSecurityGroup Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-security-groups/security-group-add-post-req.json
|
.. literalinclude:: ../../doc/api_samples/os-security-groups/security-group-add-post-req.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -100,7 +108,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Change Administrative Password (Changepassword Action)
|
Change Administrative Password (changePassword Action)
|
||||||
======================================================
|
======================================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -109,12 +117,14 @@ Changes the administrative password for a server.
|
|||||||
|
|
||||||
Specify the ``changePassword`` action in the request body.
|
Specify the ``changePassword`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers can
|
||||||
|
change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409), notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -125,7 +135,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- changePassword: changePassword
|
- changePassword: changePassword
|
||||||
|
|
||||||
**Example Change Administrative Password (Changepassword Action): JSON request**
|
**Example Change Administrative Password (changePassword Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-admin-password/admin-password-change-password.json
|
.. literalinclude:: ../../doc/api_samples/os-admin-password/admin-password-change-password.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -133,7 +143,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Confirm Resized Server (Confirmresize Action)
|
Confirm Resized Server (confirmResize Action)
|
||||||
=============================================
|
=============================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -142,22 +152,31 @@ Confirms a pending resize action for a server.
|
|||||||
|
|
||||||
Specify the ``confirmResize`` action in the request body.
|
Specify the ``confirmResize`` action in the request body.
|
||||||
|
|
||||||
After you make this request, you typically must keep polling the server status to determine whether the request succeeded. A successfully confirming resize operation shows a status of ``ACTIVE`` or ``SHUTOFF`` and a migration_status of ``confirmed``. You can also see the resized server in the compute node that OpenStack Compute manages.
|
After you make this request, you typically must keep polling the server
|
||||||
|
status to determine whether the request succeeded. A successfully
|
||||||
|
confirming resize operation shows a status of ``ACTIVE`` or ``SHUTOFF``
|
||||||
|
and a migration_status of ``confirmed``. You can also see the resized
|
||||||
|
server in the compute node that OpenStack Compute manages.
|
||||||
|
|
||||||
Preconditions
|
Preconditions
|
||||||
|
|
||||||
You can only confirm the resized server where the status is ``VERIFY_RESIZED``, the vm_status is ``RESIZED``, and the migration_status is ``finished`` or ``confirming``.
|
You can only confirm the resized server where the status is
|
||||||
|
``VERIFY_RESIZED``, the vm_status is ``RESIZED``, and the
|
||||||
|
migration_status is ``finished`` or ``confirming``.
|
||||||
|
|
||||||
If the server is locked, you must have administrator privileges to confirm the server.
|
If the server is locked, you must have administrator privileges
|
||||||
|
to confirm the server.
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
|
|
||||||
If the server status remains ``RESIZED``, the request failed. Ensure you meet the preconditions and run the request again. If the request fails again, investigate the compute back end or ask your cloud provider.
|
If the server status remains ``RESIZED``, the request failed. Ensure you
|
||||||
|
meet the preconditions and run the request again. If the request fails
|
||||||
|
again, investigate the compute back end or ask your cloud provider.
|
||||||
|
|
||||||
Normal response codes: 204
|
Normal response codes: 204
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -168,7 +187,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- confirmResize: confirmResize
|
- confirmResize: confirmResize
|
||||||
|
|
||||||
**Example Confirm Resized Server (Confirmresize Action): JSON request**
|
**Example Confirm Resized Server (confirmResize Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-confirm-resize.json
|
.. literalinclude:: ../../doc/api_samples/servers/server-action-confirm-resize.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -176,7 +195,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Create Image (Createimage Action)
|
Create Image (createImage Action)
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -185,30 +204,43 @@ Creates an image from a server.
|
|||||||
|
|
||||||
Specify the ``createImage`` action in the request body.
|
Specify the ``createImage`` action in the request body.
|
||||||
|
|
||||||
After you make this request, you typically must keep polling the status of the created image to determine whether the request succeeded.
|
After you make this request, you typically must keep polling the status of
|
||||||
|
the created image to determine whether the request succeeded.
|
||||||
|
|
||||||
If the operation succeeds, the created image has a status of ``active`` and the server status returns to the original status. You can also see the new image in the image back end that OpenStack Image service manages.
|
If the operation succeeds, the created image has a status of ``active`` and
|
||||||
|
the server status returns to the original status. You can also see the new
|
||||||
|
image in the image back end that OpenStack Image service manages.
|
||||||
|
|
||||||
Preconditions
|
Preconditions
|
||||||
|
|
||||||
The server must exist.
|
The server must exist.
|
||||||
|
|
||||||
You can only create a new image from the server when its status is ``ACTIVE``, ``SHUTOFF``, ``PAUSED``, or ``SUSPENDED``.
|
You can only create a new image from the server when its status is ``ACTIVE``,
|
||||||
|
``SHUTOFF``, ``PAUSED``, or ``SUSPENDED``.
|
||||||
|
|
||||||
The connection to the Image service is valid.
|
The connection to the Image service is valid.
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
|
|
||||||
If the image status remains uploading or shows another error status, the request failed. Ensure you meet the preconditions and run the request again. If the request fails again, investigate the image back end.
|
If the image status remains uploading or shows another error status,
|
||||||
|
the request failed. Ensure you meet the preconditions and run the request
|
||||||
|
again. If the request fails again, investigate the image back end.
|
||||||
|
|
||||||
If the server status does not go back to an original server's status, the request failed. Ensure you meet the preconditions, or check if there is another operation that causes race conditions for the server, then run the request again. If the request fails again, investigate the compute back end or ask your cloud provider.
|
If the server status does not go back to an original server's status,
|
||||||
|
the request failed. Ensure you meet the preconditions, or check if
|
||||||
|
there is another operation that causes race conditions for the server,
|
||||||
|
then run the request again. If the request fails again, investigate the
|
||||||
|
compute back end or ask your cloud provider.
|
||||||
|
|
||||||
If the request fails due to an error on OpenStack Compute service, the image is purged from the image store that OpenStack Image service manages. Ensure you meet the preconditions and run the request again. If the request fails again, investigate OpenStack Compute service or ask your cloud provider.
|
If the request fails due to an error on OpenStack Compute service, the image
|
||||||
|
is purged from the image store that OpenStack Image service manages. Ensure
|
||||||
|
you meet the preconditions and run the request again. If the request fails
|
||||||
|
again, investigate OpenStack Compute service or ask your cloud provider.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -219,7 +251,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- createImage: createImage
|
- createImage: createImage
|
||||||
|
|
||||||
**Example Create Image (Createimage Action): JSON request**
|
**Example Create Image (createImage Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-create-image.json
|
.. literalinclude:: ../../doc/api_samples/servers/server-action-create-image.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -227,7 +259,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Lock Server (Lock Action)
|
Lock Server (lock Action)
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -236,12 +268,13 @@ Locks a server.
|
|||||||
|
|
||||||
Specify the ``lock`` action in the request body.
|
Specify the ``lock`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers
|
||||||
|
can change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -252,7 +285,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- lock: lock
|
- lock: lock
|
||||||
|
|
||||||
**Example Lock Server (Lock Action): JSON request**
|
**Example Lock Server (lock Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-lock-server/lock-server.json
|
.. literalinclude:: ../../doc/api_samples/os-lock-server/lock-server.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -260,7 +293,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Pause Server (Pause Action)
|
Pause Server (pause Action)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -269,12 +302,14 @@ Pauses a server. Changes its status to ``PAUSED``.
|
|||||||
|
|
||||||
Specify the ``pause`` action in the request body.
|
Specify the ``pause`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers
|
||||||
|
can change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409), notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -285,7 +320,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- pause: pause
|
- pause: pause
|
||||||
|
|
||||||
**Example Pause Server (Pause Action): JSON request**
|
**Example Pause Server (pause Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-pause-server/pause-server.json
|
.. literalinclude:: ../../doc/api_samples/os-pause-server/pause-server.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -293,7 +328,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Reboot Server (Reboot Action)
|
Reboot Server (reboot Action)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -304,8 +339,8 @@ Specify the ``reboot`` action in the request body.
|
|||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -316,7 +351,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- reboot: reboot
|
- reboot: reboot
|
||||||
|
|
||||||
**Example Reboot Server (Reboot Action): JSON request**
|
**Example Reboot Server (reboot Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-reboot.json
|
.. literalinclude:: ../../doc/api_samples/servers/server-action-reboot.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -324,7 +359,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Rebuild Server (Rebuild Action)
|
Rebuild Server (rebuild Action)
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -333,12 +368,13 @@ Rebuilds a server.
|
|||||||
|
|
||||||
Specify the ``rebuild`` action in the request body.
|
Specify the ``rebuild`` action in the request body.
|
||||||
|
|
||||||
To rebuild the server with preservation of the ephemeral partition, set the ``preserve_ephemeral`` parameter to ``true``.
|
To rebuild the server with preservation of the ephemeral partition,
|
||||||
|
set the ``preserve_ephemeral`` parameter to ``true``.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400),unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409), payloadTooLarge(413)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -355,7 +391,7 @@ Request
|
|||||||
- personality: personality
|
- personality: personality
|
||||||
- preserve_ephemeral: preserve_ephemeral
|
- preserve_ephemeral: preserve_ephemeral
|
||||||
|
|
||||||
**Example Rebuild Server (Rebuild Action): JSON request**
|
**Example Rebuild Server (rebuild Action): JSON request**
|
||||||
|
|
||||||
Preserving the ephemeral disk
|
Preserving the ephemeral disk
|
||||||
|
|
||||||
@ -365,26 +401,29 @@ Preserving the ephemeral disk
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
**Example Rebuild Server (Rebuild Action): JSON response**
|
**Example Rebuild Server (rebuild Action): JSON response**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-rebuild-resp.json
|
.. literalinclude:: ../../doc/api_samples/servers/server-action-rebuild-resp.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
Remove (Disassociate) Floating Ip (Removefloatingip Action)
|
Remove (Disassociate) Floating Ip (removeFloatingIp Action)
|
||||||
===========================================================
|
===========================================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
|
|
||||||
Removes, or disassociates, a floating IP address from a server.
|
Removes, or disassociates, a floating IP address from a server.
|
||||||
|
|
||||||
The IP address is returned to the pool of IP addresses that is available for all projects. When you remove a floating IP address and that IP address is still associated with a running instance, it is automatically disassociated from that instance.
|
The IP address is returned to the pool of IP addresses that is available
|
||||||
|
for all projects. When you remove a floating IP address and that IP address
|
||||||
|
is still associated with a running instance, it is automatically
|
||||||
|
disassociated from that instance.
|
||||||
|
|
||||||
Specify the ``removeFloatingIp`` action in the request body.
|
Specify the ``removeFloatingIp`` action in the request body.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -397,7 +436,7 @@ Request
|
|||||||
- address: address
|
- address: address
|
||||||
|
|
||||||
.. TODO(sdague) build example for this
|
.. TODO(sdague) build example for this
|
||||||
**Example Remove (Disassociate) Floating Ip (Removefloatingip Action): JSON request**
|
**Example Remove (Disassociate) Floating Ip (removeFloatingIp Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/servers-action/removeFloatingIp-req.json
|
.. literalinclude:: ../../doc/api_samples/servers-action/removeFloatingIp-req.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -405,7 +444,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Remove Security Group From A Server (Removesecuritygroup Action)
|
Remove Security Group From A Server (removeSecurityGroup Action)
|
||||||
================================================================
|
================================================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -416,8 +455,8 @@ Specify the ``removeSecurityGroup`` action in the request body.
|
|||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -429,7 +468,7 @@ Request
|
|||||||
- removeSecurityGroup: removeSecurityGroup
|
- removeSecurityGroup: removeSecurityGroup
|
||||||
- name: name
|
- name: name
|
||||||
|
|
||||||
**Example Remove Security Group From A Server (Removesecuritygroup Action): JSON request**
|
**Example Remove Security Group From A Server (removeSecurityGroup Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-security-groups/security-group-remove-post-req.json
|
.. literalinclude:: ../../doc/api_samples/os-security-groups/security-group-remove-post-req.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -437,7 +476,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Rescue Server (Rescue Action)
|
Rescue Server (rescue Action)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -446,16 +485,20 @@ Puts a server in rescue mode and changes its status to ``RESCUE``.
|
|||||||
|
|
||||||
Specify the ``rescue`` action in the request body.
|
Specify the ``rescue`` action in the request body.
|
||||||
|
|
||||||
If you specify the ``rescue_image_ref`` extended attribute, the image is used to rescue the instance. If you omit an image reference, the base image reference is used by default.
|
If you specify the ``rescue_image_ref`` extended attribute,
|
||||||
|
the image is used to rescue the instance. If you omit an image
|
||||||
|
reference, the base image reference is used by default.
|
||||||
|
|
||||||
Asynchronous Postconditions
|
Asynchronous Postconditions
|
||||||
|
|
||||||
After you successfully rescue a server and make a ``GET /v2.1/{tenant_id}/servers/{server_id}`` request, its status changes to ``RESCUE``.
|
After you successfully rescue a server and make a
|
||||||
|
``GET /v2.1/{tenant_id}/servers/{server_id}``
|
||||||
|
request, its status changes to ``RESCUE``.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409), notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -485,7 +528,7 @@ Response
|
|||||||
.. literalinclude:: ../../doc/api_samples/os-rescue/server-rescue.json
|
.. literalinclude:: ../../doc/api_samples/os-rescue/server-rescue.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
Resize Server (Resize Action)
|
Resize Server (resize Action)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -494,18 +537,23 @@ Resizes a server.
|
|||||||
|
|
||||||
Specify the ``resize`` action in the request body.
|
Specify the ``resize`` action in the request body.
|
||||||
|
|
||||||
A successfully resized server shows a ``VERIFY_RESIZE`` status, ``RESIZED`` VM status, and ``finished`` migration status. If you set the ``resize_confirm_window`` option of the Compute service to an integer value, the Compute service automatically confirms the resize operation after the set interval in seconds.
|
A successfully resized server shows a ``VERIFY_RESIZE`` status,
|
||||||
|
``RESIZED`` VM status, and ``finished`` migration status. If you set the
|
||||||
|
``resize_confirm_window`` option of the Compute service to an integer value,
|
||||||
|
the Compute service automatically confirms the resize operation after
|
||||||
|
the set interval in seconds.
|
||||||
|
|
||||||
Preconditions
|
Preconditions
|
||||||
|
|
||||||
You can only resize a server when its status is ``ACTIVE`` or ``SHUTOFF``.
|
You can only resize a server when its status is ``ACTIVE`` or ``SHUTOFF``.
|
||||||
|
|
||||||
If the server is locked, you must have administrator privileges to resize the server.
|
If the server is locked, you must have administrator privileges
|
||||||
|
to resize the server.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -524,7 +572,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Resume Suspended Server (Resume Action)
|
Resume Suspended Server (resume Action)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -533,12 +581,14 @@ Resumes a suspended server and changes its status to ``ACTIVE``.
|
|||||||
|
|
||||||
Specify the ``resume`` action in the request body.
|
Specify the ``resume`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers
|
||||||
|
can change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -557,7 +607,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Revert Resized Server (Revertresize Action)
|
Revert Resized Server (revertResize Action)
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -566,24 +616,32 @@ Cancels and reverts a pending resize action for a server.
|
|||||||
|
|
||||||
Specify the ``revertResize`` action in the request body.
|
Specify the ``revertResize`` action in the request body.
|
||||||
|
|
||||||
After you make this request, you typically must keep polling the server status to determine whether the request succeeded. A successfully reverting resize operation shows a status of ``ACTIVE`` or ``SHUTOFF`` and a migration_status of ``reverted``. You can also see the reverted server in the compute node that OpenStack Compute manages.
|
After you make this request, you typically must keep polling the server status
|
||||||
|
to determine whether the request succeeded. A successfully reverting resize
|
||||||
|
operation shows a status of ``ACTIVE`` or ``SHUTOFF`` and a migration_status
|
||||||
|
of ``reverted``. You can also see the reverted server in the compute node
|
||||||
|
that OpenStack Compute manages.
|
||||||
|
|
||||||
Preconditions
|
Preconditions
|
||||||
|
|
||||||
You can only confirm the resized server where the status is ``VERIFY_RESIZE`` and the vm_status is ``RESIZED``.
|
You can only confirm the resized server where the status is
|
||||||
|
``VERIFY_RESIZE`` and the vm_status is ``RESIZED``.
|
||||||
|
|
||||||
If the server is locked, you must have administrator privileges to revert the resizing.
|
If the server is locked, you must have administrator privileges to revert
|
||||||
|
the resizing.
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
|
|
||||||
If the server status remains ``RESIZED``, the request failed. Ensure you meet the preconditions and run the request again. If the request fails again, investigate the compute back end.
|
If the server status remains ``RESIZED``, the request failed. Ensure you meet
|
||||||
|
the preconditions and run the request again. If the request fails again,
|
||||||
|
investigate the compute back end.
|
||||||
|
|
||||||
The server is not reverted in the compute node that OpenStack Compute manages.
|
The server is not reverted in the compute node that OpenStack Compute manages.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
itemNotFound(404), conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -594,7 +652,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- revertResize: revertResize
|
- revertResize: revertResize
|
||||||
|
|
||||||
**Example Revert Resized Server (Revertresize Action): JSON request**
|
**Example Revert Resized Server (revertResize Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/servers/server-action-revert-resize.json
|
.. literalinclude:: ../../doc/api_samples/servers/server-action-revert-resize.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -602,7 +660,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Start Server (Os-Start Action)
|
Start Server (os-start Action)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -615,20 +673,25 @@ Preconditions
|
|||||||
|
|
||||||
The server status must be ``SHUTOFF``.
|
The server status must be ``SHUTOFF``.
|
||||||
|
|
||||||
If the server is locked, you must have administrator privileges to start the server.
|
If the server is locked, you must have administrator privileges
|
||||||
|
to start the server.
|
||||||
|
|
||||||
Asynchronous Postconditions
|
Asynchronous Postconditions
|
||||||
|
|
||||||
After you successfully start a server, its status changes to ``ACTIVE``. The server appears on the compute node that the Compute service manages.
|
After you successfully start a server, its status changes to ``ACTIVE``.
|
||||||
|
The server appears on the compute node that the Compute service manages.
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
|
|
||||||
If the server status does not change to ``ACTIVE``, the start operation failed. Ensure that you meet the preconditions and run the request again. If the request fails again, investigate whether another operation is running that causes a race condition.
|
If the server status does not change to ``ACTIVE``, the start operation failed.
|
||||||
|
Ensure that you meet the preconditions and run the request again.
|
||||||
|
If the request fails again, investigate whether another operation is running
|
||||||
|
that causes a race condition.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -647,7 +710,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Stop Server (Os-Stop Action)
|
Stop Server (os-stop Action)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -660,16 +723,19 @@ Preconditions
|
|||||||
|
|
||||||
The server status must be ``ACTIVE`` or ``ERROR``.
|
The server status must be ``ACTIVE`` or ``ERROR``.
|
||||||
|
|
||||||
If the server is locked, you must have administrator privileges to stop the server.
|
If the server is locked, you must have administrator privileges
|
||||||
|
to stop the server.
|
||||||
|
|
||||||
Asynchronous Postconditions
|
Asynchronous Postconditions
|
||||||
|
|
||||||
After you successfully stop a server, its status changes to ``SHUTOFF``. The server instance data appears only on the compute node that Compute service manages.
|
After you successfully stop a server, its status changes to ``SHUTOFF``.
|
||||||
|
The server instance data appears only on the compute node that
|
||||||
|
Compute service manages.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -688,7 +754,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Suspend Server (Suspend Action)
|
Suspend Server (suspend Action)
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -697,12 +763,14 @@ Suspends a server and changes its status to ``SUSPENDED``.
|
|||||||
|
|
||||||
Specify the ``suspend`` action in the request body.
|
Specify the ``suspend`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers
|
||||||
|
can change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -713,7 +781,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- suspend: suspend
|
- suspend: suspend
|
||||||
|
|
||||||
**Example Suspend Server (Suspend Action): JSON request**
|
**Example Suspend Server (suspend Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-suspend-server/server-suspend.json
|
.. literalinclude:: ../../doc/api_samples/os-suspend-server/server-suspend.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -721,7 +789,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Unlock Server (Unlock Action)
|
Unlock Server (unlock Action)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -730,12 +798,13 @@ Unlocks a locked server.
|
|||||||
|
|
||||||
Specify the ``unlock`` action in the request body.
|
Specify the ``unlock`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers
|
||||||
|
can change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -746,7 +815,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- unlock: unlock
|
- unlock: unlock
|
||||||
|
|
||||||
**Example Unlock Server (Unlock Action): JSON request**
|
**Example Unlock Server (unlock Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-lock-server/unlock-server.json
|
.. literalinclude:: ../../doc/api_samples/os-lock-server/unlock-server.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -754,7 +823,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Unpause Server (Unpause Action)
|
Unpause Server (unpause Action)
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -763,12 +832,14 @@ Unpauses a paused server and changes its status to ``ACTIVE``.
|
|||||||
|
|
||||||
Specify the ``unpause`` action in the request body.
|
Specify the ``unpause`` action in the request body.
|
||||||
|
|
||||||
Policy defaults enable only users with the administrative role or the owner of the server to perform this operation. Cloud providers can change these permissions through the ``policy.json`` file.
|
Policy defaults enable only users with the administrative role or
|
||||||
|
the owner of the server to perform this operation. Cloud providers
|
||||||
|
can change these permissions through the ``policy.json`` file.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409), notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -779,7 +850,7 @@ Request
|
|||||||
- server_id: server_id
|
- server_id: server_id
|
||||||
- unpause: unpause
|
- unpause: unpause
|
||||||
|
|
||||||
**Example Unpause Server (Unpause Action): JSON request**
|
**Example Unpause Server (unpause Action): JSON request**
|
||||||
|
|
||||||
.. literalinclude:: ../../doc/api_samples/os-pause-server/unpause-server.json
|
.. literalinclude:: ../../doc/api_samples/os-pause-server/unpause-server.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
@ -787,7 +858,7 @@ Request
|
|||||||
Response
|
Response
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Unrescue Server (Unrescue Action)
|
Unrescue Server (unrescue Action)
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
.. rest_method:: POST /v2.1/{tenant_id}/servers/{server_id}/action
|
||||||
@ -804,12 +875,14 @@ You can only unrescue a server when its status is ``RESCUE``.
|
|||||||
|
|
||||||
Asynchronous Postconditions
|
Asynchronous Postconditions
|
||||||
|
|
||||||
After you successfully unrescue a server and make a ``GET /v2.1/{tenant_id}/servers/{server_id}`` request, its status changes to ``ACTIVE``.
|
After you successfully unrescue a server and make a
|
||||||
|
``GET /v2.1/{tenant_id}/servers/{server_id}``
|
||||||
|
request, its status changes to ``ACTIVE``.
|
||||||
|
|
||||||
Normal response codes: 202
|
Normal response codes: 202
|
||||||
|
|
||||||
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404),
|
||||||
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
conflict(409), notImplemented(501)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
|
Loading…
Reference in New Issue
Block a user