Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The request body should not include name and svm #5

Open
1 task done
chuyich opened this issue Jan 26, 2024 · 4 comments
Open
1 task done

The request body should not include name and svm #5

chuyich opened this issue Jan 26, 2024 · 4 comments
Assignees

Comments

@chuyich
Copy link

chuyich commented Jan 26, 2024

Page URL

https://docs.netapp.com/us-en/ontap-restapi/ontap/patch-protocols-cifs-users-and-groups-privileges-.html

Page title

Update privileges for a local, or Active Directory user or group and SVM

Summary

Based on the test with postman, I found the Request Body for the privilege update should not include name and svm. Otherwise, the API responses:

{
  "error": {
    "message": "Field \"name\" is not supported in the body of a PATCH.",
    "code": "262203",
    "target": "name"
  }
}

Please check with BlueXP dev team and fix the document.

Public issues must not contain sensitive information

  • This issue contains no sensitive information.
@netapp-pcarriga
Copy link
Member

Thank you, @chuyich, for taking time to bring this to our attention.

@dmp-netapp
Copy link

@chuyich Thanks for your feedback. Two questions. 1.) Why do you mention checking with the BlueXP dev team? 2.) Can you please send an example of the JSON input you are using (with user and svm) to get the failure?

@chuyich
Copy link
Author

chuyich commented Jan 31, 2024

I'm the user of these APIs. I followed this page to work on the automation. The BlueXP development team should know if the API behavior is proper or not.

Here is an example.
API URL: {{cluster4}}/api/protocols/cifs/users-and-groups/privileges/<SVM ID>/test3 { "privileges":["SeSecurityPrivilege", "SeTcbPrivilege"], "name": "test3" }
I got
{ "error": { "message": "Field \"name\" is not supported in the body of a PATCH.", "code": "262203", "target": "name" } }

It seems only the part needs to be changed can be in the request body.

@dmp-netapp
Copy link

Tracking in AUTODOC-146.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants