通过 REST API 创建 LIF 时出错
适用于
- REST API
- ONTAP 9
问题
- 使用 REST API 创建 LIF 时出现错误,涉及
"vip = true":
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" }