![]() |
REST API
15
REST API for Luna Network HSMs
|
Sets all entries in the Rest API Access Control List.
Any entries not present in the uploaded list will be removed from the ACL.
This can only be done on changeable users and roles. Currently the non-changeable users and roles are admin, operator and monitor.
The request takes in a file.
See GET /acl The output has the necessary format for this resource.
Success
Unexpected error
with open("acl.csv", 'rb') as payload:
r = requests.put("/acl",
stream=True,
cookies=cookies,
data=payload,
header=headers,
verify=False,
allow_redirects=False)
{
}
Creating a user in the ACL with this resource does not create the associated Linux user, meaning you can only add a user in this way if you've previously added it via a POST to /users or through Lush. If you have trouble logging into the Rest API with a user added in this way, run a POST to /users again to ensure the Linux user is created.