Hi beautiful people, I'm trying to create a rest-role to limit a particular user to only operate on the /protocols/s3/buckets API, however, looks like there's something wacky going on in Ontap as it wont let me create the role because it wont recognize the endpoint:
Error: command failed: Specified URI path is invalid or not supported. Verify that the URI contains only valid characters.```
To me it looks like it's the `"3"` part of the endpoint that is causing an issue, almost like Ontap is tring to validate the URL with a regex that only allows non-numeric or non-special characters.
Infact, if I try to create the same role with an endpoint `/api/protocols/cifs`, or any other protocol that dont have a digit in the endpoint, all is well:
```cluster1::> security login rest-role create -role s3only -api "/api/protocols/cifs" -access read_create_modify -vserver svm1_cluster1
Warning: This operation will also affect the following commands:
"vserver cifs create"
"vserver cifs modify"
cluster1::> security login rest-role show -role s3only
Role Access
Vserver Name API Level
---------- ------------- ------------------- ------
svm1_cluster1
s3only /api/protocols/cifs read_create_modify
My reasoning on the wrong validation is supported by the fact that if i try to create a role with a non-existant endpoint (but without any digits in the endpoint), the error-message shown is very different:
Error: command failed: URI does not exist.
I'm testing this on Ontap version 9.14.1 atm.
Anyone else sumbled on this? Any feedback is greatly appreciated