NetAppDocs / ontap-restapi-9111

https://docs.netapp.com/us-en/ontap-restapi-9111/
0 stars 0 forks source link

Example in create role privilege: the type of "query" in the privileges is showing list but the type of "query" definition is string #9

Open chuyich opened 2 months ago

chuyich commented 2 months ago

Page URL

https://docs.netapp.com/us-en/ontap-restapi-9111/ontap/post-security-roles.html

Page title

Create a new cluster-scoped or SVM-scoped role

Summary

The example "query" type does not match the definition of the field. The example shows an array (a list). But actually by definition it should be a string. { "_links": { "self": { "href": "/api/resourcelink" } }, "comment": "string", "name": "admin", "owner": { "_links": { "self": { "href": "/api/resourcelink" } }, "name": "svm1", "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7" }, "privileges": [ { "_links": { "self": { "href": "/api/resourcelink" } }, "access": "readonly", "path": [ "/api/cluster/jobs", "/api/storage/volumes", "job schedule interval", "volume move" ], "query": [ "-days <1 -hours >12", "-vserver vs1|vs2|vs3 -destination-aggregate aggr1|aggr2" ] } ], "scope": "string" }

role_privilege https://docs.netapp.com/us-en/ontap-restapi-9111//ontap/post-security-roles.html#definitions

query string

Public issues must not contain sensitive information

netapp-pcarriga commented 1 month ago

Thank you @chuyich. We will investigate and provide an update here.