Revision 99667854 docs/compute-api-guide.rst

b/docs/compute-api-guide.rst
1623 1623
`Reboot <#reboot-server>`_                      ✔        ✔
1624 1624
`Get Console <#get-server-console>`_            ✔        **✘**
1625 1625
`Set Firewall <#set-server-firewall-profile>`_  ✔        **✘**
1626
`Reassign <#reassign-server>`_                  ✔        **✘**
1626 1627
`Change Admin Password <#os-compute-specific>`_ **✘**    ✔
1627 1628
`Rebuild <#os-compute-specific>`_               **✘**    ✔
1628 1629
`Resize <#os-compute-specific>`_                **✘**    ✔
......
1804 1805

  
1805 1806
.. note:: Response body should be empty
1806 1807

  
1808
Reassign Server
1809
...............
1810

  
1811
This operation assigns the VM to a different project.
1812

  
1813
Request body contents::
1814

  
1815
  reassign: { project: <project-id>}
1816

  
1817
*Example Action reassign: JSON**
1818

  
1819
.. code-block:: javascript
1820

  
1821
  {"reassign": {"project": "9969f2fd-86d8-45d6-9106-5e251f7dd92f"}}
1822

  
1823
.. note:: Response body should be empty
1824

  
1807 1825
OS/Compute Specific
1808 1826
...................
1809 1827

  
......
2756 2774
`Delete <#delete-network>`_                     ``/networks/<network-id>``        DELETE
2757 2775
`Connect <#connect-network-to-server>`_         ``/networks/<network-id>/action`` POST
2758 2776
`Disconnect <#disconnect-network-from-server>`_ ``/networks/<network-id>/action`` POST
2777
`Reassign <#reassign-network>`_                 ``/networks/<network-id>/action`` POST
2759 2778
=============================================== ================================= ======
2760 2779

  
2761 2780

  
......
3331 3350

  
3332 3351
.. note:: In case of a 202 code, the request body should be empty
3333 3352

  
3353
Reassign Network
3354
................
3355

  
3356
Assign a network to a different project.
3357

  
3358
.. rubric:: Request
3359

  
3360
================================= ======
3361
URI                               Method
3362
================================= ======
3363
``/networks/<network-id>/action`` POST
3364
================================= ======
3365

  
3366
* **network-id** is the identifier of the network
3367

  
3368
|
3369

  
3370
==============  =========================
3371
Request Header  Value
3372
==============  =========================
3373
X-Auth-Token    User authentication token
3374
Content-Type    Type or request body
3375
Content-Length  Length of request body
3376
==============  =========================
3377

  
3378
**Example Request Headers**::
3379

  
3380
  X-Auth-Token:   z31uRXUn1LZy45p1r7V==
3381
  Content-Type:   application/json
3382
  Content-Length: 31
3383

  
3384
.. note:: Request parameters should be empty
3385

  
3386
Response body content (reassign)::
3387

  
3388
  reassign {project: <project-id>}
3389

  
3390
*Example Action Reassign: JSON*
3391

  
3392
.. code-block:: javascript
3393

  
3394
  {"reassign" : {"project" : "9969f2fd-86d8-45d6-9106-5e251f7dd92f"}}
3395

  
3396
.. rubric:: Response
3397

  
3398
=========================== =====================
3399
Return Code                 Description
3400
=========================== =====================
3401
200 (OK)                    Request succeeded
3402
400 (Bad Request)           Malformed request
3403
401 (Unauthorized)          Missing or expired user token
3404
403 (Forbidden)             Not allowed to modify this network (e.g. public)
3405
404 (Not Found)             Network not found
3406
500 (Internal Server Error) The request cannot be completed because of an
3407
\                           internal error
3408
503 (Service Unavailable)   The service is not currently available
3409
=========================== =====================
3410

  
3411
.. note:: In case of a 200 code, the request body should be empty
3412

  
3334 3413
Index of Attributes
3335 3414
-------------------
3336 3415

  

Also available in: Unified diff