SANtricity System Manager REST API 调用 iSCSI 接口失败,出现 422 错误
- Views:
- 22
- Visibility:
- Public
- Votes:
- 0
- Category:
- e-series-santricity-storage-manager
- Specialty:
- esg
- Last Updated:
适用于
- NetApp E 系列
- SANtricity System Manager
问题描述
- 观察到在所有主机端 iSCSI 端口上发出禁用 iPv6 的 API 调用时出错:
- 在 SANtricity System Manager > 帮助 > API 文档 > POST >
/storage-systems/{system-id}/iscsi/interfaces/{id}
- 在 SANtricity System Manager > 帮助 > API 文档 > POST >
curl -X POST "https://<array_name>/devmgr/v2/storage-systems/1/iscsi/interfaces/1101010000000000000000000000000000000000" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"ipv6Enabled\": \"false\"}"
422 Error:
{
"errorMessage": "The updated object named ''{0}'' could not be found.",
"developerMessage": null,
"localizedMessage": "The updated object named '1101010000000000000000000000000000000000' could not be found.",
"retcode": "updatedObjectNotFound",
"codeType": "devicemgrerror",
"invalidFieldsIfKnown": null
}
- GET>
/storage-systems/{system-id}/iscsi/interfaces/{id}的输出显示interfaceRef为有效:
curl -X GET "https://<array_name>/devmgr/v2/storage-systems/1/interfaces?interfaceType=iscsi&channelType=hostside" -H "accept: application/json"
"interfaceRef": "1101010000000000000000000000000000000000",
"ipv6Enabled": true,