跳转到主内容

Brocade FOS REST API 调用包含 unit-name 时失败

Views:
Visibility:
Public
Votes:
0
Category:
fabric-interconnect-and-management-switches
Specialty:
brocade
Last Updated:

适用场景

  • Brocade FC 交换机
  • Fabric OS (FOS) v9.2.x

问题描述

使用 REST API 调用生成证书签名请求brocade-security/security-certificate-generate当端点包含unit-name范围:

$ 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" \
<?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>

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.