跳转到主内容

CLI和REST API输出显示不同的整数

Views:
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

适用场景

ONTAP 9.6

问题解答

在ONTAP 9.6版中、REST API随"CLI直通"引入、也称为基于命令行界面的REST API。
 
REST API返回结果为json有效负载。对于"all"整数(包括十六进制无符号整数)、默认值是在返回的REST API响应中将值作为"decimal"整数放置。
 
如果给定表记录的属性值为十六进制、则此处的启动程序FCID为、则默认情况下、FCID的REST API响应将为"十进制"
 
CLI直通端点为"通用"端点、不对表记录属性值的十六进制值进行编码、因此默认值始终为十进制整数值。
 
但是、"NORMA" REST API "des"会将十六进制数转换为"string"、因此端点会返回FCID的响应"y"十六进制编码整数。

追加信息

其他信息文本
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.