ONTAP Rest API Discussions

Setting server_enabled to true after installing SSL certificate from REST API (ONTAP 15)

aaa1
138 Views

I am automating SSL renewal procedure.

 

I have managed to install the certificate, but after installation I would like to enable it (usually done in CLI in the security ssl cmddir by parsing the -server-enabled true argument) to take over from the certificate currently enabled.

 

These are the endpoints present in the /api/docs:

GET ​/security​/certificates

POST ​/security​/certificates

GET ​/security​/certificates​/{uuid}

DELETE ​/security​/certificates​/{uuid}

 

Can someone help navigating me further to accomplish this? I have without success tried in two different ways to update by trying the PATCH method, although not present in documentation, as well as looking through the docs of svm endpoints.

3 REPLIES 3

AmitKerkar
61 Views

does this work

/security/certificates/{uuid}/enable ?

Thanks for the response. 

 

With POST, PATCH  or? I do not have this endpoint in the documentation. Can I ask you where you found this?

aaa1
57 Views

I tried with multiple HTTP methods and get error "Unexpected argument: "enable"

Public