Child pages
  • Assign IP Address to User
Skip to end of metadata
Go to start of metadata

To assign an IP Address or several IP addresses to a particular user, so that they could create a VS based on it, use the following request:

POST /users/:user_id/assign_ip_addresses.xml
POST /users/:user_id/assign_ip_addresses.json

XML Request example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/users/:user_id/assign_ip_addresses.xml -d '<ip_addresses type="array"><id>79</id><id>80</id></ip_addresses>'

JSON Request example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/users/:user_id/assign_ip_addresses.json -d '{"ip_address":["79", "80"]}'

Where:

ip_addresses - send the IDs of required IP addresses

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels