Brocade FOS REST API call fails when it includes unit-name
Applies to
- Brocade FC switch
- Fabric OS (FOS) v9.2.x
- REST API
Issue
Generating a certificate signing request with REST API call to the brocade-security/security-certificate-generate endpoint fails when it includes the unit-name parameter:
$ cat csr.xml<security-certificate-generate> <certificate-entity>csr</certificate-entity> <certificate-type> https</certificate-type> <algorithm-type>ecdsa</algorithm-type> <key-size>P384</key-size> <hash-type>sha512</hash-type> <years>1</years> <country-name>DE</country-name> <state-name>Baz</state-name> <locality-name>Bar</locality-name> <organization-name>Foo</organization-name> <email-address>mail@example.com</email-address> <domain-name>example.com</domain-name> <unit-name>Test</unit-name></security-certificate-generate>$ curl --data "@csr.xml" --header "Content-Type: application/yang-data+xml" \ --header "Authorization:Custom_Basic TOKEN" \ --request POST https://example.com/rest/running/bro...icate-generate<?xml version="1.0" ?> <errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf"> <error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-app-tag>Error</error-app-tag> <error-message>Invalid resource attribute in the request</error-message> <error-info> <error-code>16717060</error-code> <error-module>cal</error-module> </error-info> </error> </errors>