CLI and REST API outpus show different integers
Applies to
ONTAP 9.6
Answer
In release Ontap 9.6, REST API is introduced with "cli passthrough", also known as cli-based REST APIs.
REST API's return result in a json payload. Default for "all" integers, including hex unsigned integers is to put the value as "decimal" integer in the returned REST API response.
If a given table record's property value is in hex, in case here with initiator fcid, then by default the REST API response for the fcid will be in "decimal"
cli passthrough endpoint is "generic" and does NOT encode hexuint value of table record property value, so default is always decimal integer value.
However, the "normal" REST API "does" convert the hexuint to the "string" hence what the endpoint returns in response "is" hex encoded integer for the fcid.
Additional Information
additionalInformation_text