跳转到主内容

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} 

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,

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.