REST API  15
REST API for Luna Network HSMs
All Files Pages
PATCH /acl

PATCH /acl

Sets desired entries in the Rest API Access Control List.

This can only be done on changeable users and roles. Currently the non-changeable users and roles are admin, operator and monitor.

Parameters

The request takes in a file.

See File I/O

See GET /acl The output has the necessary format for this resource.

Responses

204

Success

400

Unexpected error

Example Request

  with open("acl.csv", 'rb') as payload:
    r = requests.patch("/acl",
                       stream=True,
                       cookies=cookies,
                       data=payload,
                       header=headers,
                       verify=False,
                       allow_redirects=False)

Example Result

{
}

Notes

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.