#strange message with REST API

1 messages · Page 1 of 1 (latest)

atomic heron
#

Hey team!
I'm trying to use the private CLI function of the REST API to activate a new cert that I've installed.

This would usually be done at the CLI (i.e. through SSH) using the following ONTAP CLI command (requires confirmation):
security ssl modify -vserver devanny -ca devanny -serial 170C4FFD66806875

The best I can do with the REST API is this:
curl -X PATCH -u 'admin:Netapp!123' -k -v "https://172.16.0.20/api/private/cli/security/ssl?ca=devanny&serial=170C4FFD66806875&common-name=devanny"

But I get this response...
You must provide one or more values to apply your changes

Does anyone know what that message means? Is it to do with the confirmation that is required at the CLI?

FYI the audit log entry in mlog shows this:
Fri Jun 14 2024 11:52:56 +10:00 [kern_audit:info:2162] 8503e80000000794 :: ontap01:http :: 172.16.7.21:58454 :: ontap01:admin :: PATCH /api/private/cli/security/ssl?vserver=devanny&ca=devanny&serial=170C4FFD66806875 :: Error: You must provide one or more values to apply your changes.

Mat