osc network floating-ip set
Updates a floating IP and its association with an internal port.
The association process is the same as the process for the create floating IP operation.
To disassociate a floating IP from a port, set the port_id
attribute to null or omit it from the request body.
This example updates a floating IP:
Depending on the request body that you submit, this request associates a port with or disassociates a port from a floating IP.
Normal response codes: 200
Error response codes: 400, 401, 404, 409, 412
Usage: osc network floating-ip set [OPTIONS] <ID>
Arguments:
<ID>
— id parameter for /v2.0/floatingips/{id} API
Options:
--description <DESCRIPTION>
— A human-readable description for the resource. Default is an empty string--fixed-ip-address <FIXED_IP_ADDRESS>
— The fixed IP address that is associated with the floating IP. If an internal port has multiple associated IP addresses, the service chooses the first IP address unless you explicitly define a fixed IP address in thefixed_ip_address
parameter--port-id <PORT_ID>
— The ID of a port associated with the floating IP. To associate the floating IP with a fixed IP, you must specify the ID of the internal port. To disassociate the floating IP,null
should be specified--qos-policy-id <QOS_POLICY_ID>