SANtricity System Manager REST API call for iSCSI interface fails with 422 Error
- Views:
- 58
- Visibility:
- Public
- Votes:
- 0
- Category:
- e-series-santricity-storage-manager
- Specialty:
- esg
- Last Updated:
Applies to
- NetApp E-Series
- SANtricity System Manager
Issue
- Error observed issuing API call to disable iPv6 on all host side iSCSI ports:
- In SANtricity System Manager > Help > API Documentation > POST >
/storage-systems/{system-id}/iscsi/interfaces/{id}
- In SANtricity System Manager > Help > API Documentation > 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
}
- The output of GET>
/storage-systems/{system-id}/iscsi/interfaces/{id}shows that theinterfaceRefis valid:
curl -X GET "https://<array_name>/devmgr/v2/storage-systems/1/interfaces?interfaceType=iscsi&channelType=hostside" -H "accept: application/json"
"interfaceRef": "1101010000000000000000000000000000000000",
"ipv6Enabled": true,
