#REST

1 messages · Page 1 of 1 (latest)

restive sparrow
#

When using the CLI in ansible is it safe to say you use the param for GETs and Body for Puts, Patch etc. I am digging into it and I wasn't sure about the distinction. They seem to serve the same purpose on the surface.

opal halo
#

param is to filter for specific items in any request type or get certain fields in a GET. The body in POST/PATCH defines the new settings you want to set. For example renaming an aggregate uses both param and body:
na_ontap_rest_cli: command: storage/aggregate/rename verb: PATCH params: aggregate: "current_name" body: newname: "new_name"

Here param is used to filter the aggregate that should be renamed and body to define the new name.