Error Creating LIF via REST API
Applies to
- REST API
- ONTAP 9
Issue
- Error while creating a LIF with
"vip = true"using the REST API:
curl -H "Content-type:application/json" -d @payload.json -X POST https://${USER}:${PASSWORD}@netapp_ip/api/network/ip/interfaces
payload.json = {"name": "test_vip","ip": {"address": "1.2.3.4"},"svm": {"name": "svm01"},"service_policy": "default-data-files","location": {"auto_revert": false,"failover": "default","broadcast_domain": {"name": "bgp"}},"vip": "true"}
"error": { "message": "VIP LIFs must use a home port of type \"vip\". Use the command \"network port show -type vip\" to review available VIP ports, or try the command again without the \"home-port\" argument.", "code": "1966782" }
