api-ref: fix addFloatingIp action docs
As described in the bug, the addFloatingIp parameter in the request body is an object, not a string. And we didn't actually have an example request, so one is added here to further clarify the API. Change-Id: I366ba880cf13558291da286e6524327cafcccf1f Closes-Bug: #1636185
This commit is contained in:
parent
1e4178b6a0
commit
0f26e6872e
@ -806,10 +806,11 @@ addFixedIp:
|
|||||||
type: string
|
type: string
|
||||||
addFloatingIp:
|
addFloatingIp:
|
||||||
description: |
|
description: |
|
||||||
The action.
|
The action. Contains required floating IP ``address`` and optional
|
||||||
|
``fixed_address``.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: object
|
||||||
address:
|
address:
|
||||||
description: |
|
description: |
|
||||||
The floating IP address.
|
The floating IP address.
|
||||||
|
@ -67,10 +67,9 @@ Request
|
|||||||
- address: address
|
- address: address
|
||||||
- fixed_address: fixed_address
|
- fixed_address: fixed_address
|
||||||
|
|
||||||
.. 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/servers/server-action-addfloatingip.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
Response
|
Response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user