Uploading a FusionDirector Root Certificate
Function
This interface is used to upload a FusionDirector root certificate.
Syntax
Operation type: POST
URL: https://device_ip/redfish/v1/NetManager/ImportFdCert
Request header:
X-Auth-Token: auth_value
Request message body:
{
"imgfile": imgfile,
"size": size
}
Request Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
imgfile |
Mandatory |
Name of the file to be uploaded through Form-Data. |
The file name must contain 1 to 255 characters, including uppercase and lowercase letters (a to z and A to Z), digits (0 to 9), and other characters (_.-). The allowed file type is .crt. Select a required file type if the key value is imgfile. |
size |
Optional |
Size of the file to be uploaded through Form-Data. |
The value is a number, in bytes. The value must be greater than 0 and the maximum value is 1 MB. |
Usage Guidelines
None
Example
Request:
POST https://10.10.10.10/redfish/v1/NetManager/ImportFdCert
Request header:
X-Auth-Token: auth_value
Request message body:
{
"imgfile": rootCertChain.crt,
"size": 10
}
{
"@odata.context": "/redfish/v1/$metadata#NetManager/QueryFdCert",
"@odata.id": "/redfish/v1/NetManager/QueryFdCert",
"@odata.type": "#MindXEdgeNetManager.v1_0_0.MindXEdgeNetManager",
"Id": "ImportFdCert",
"Name": "ImportFdCert",
"Issuer": "C=CN, ST=Guangdong, L=Shenzhen, O=Huawei, OU=Computing, CN=fusiondirectorCA",
"Subject": "C=CN, ST=Guangdong, L=Shenzhen, O=Huawei, OU=Computing, CN=fusiondirectorCA",
"Date": "2020-03-30 00:00:00--2030-12-31 00:00:00",
"SerialNum": "65B64122AC4DE0B1",
"Fingerprint": "XX:XX:XX:39:CD:A5:C4:8A:56:C4:1D:41:52:23:EC:97:CF:9E:88:78:F4:2D:4D:FB:9D:D1:1E:74:5F:XX:XX:XX"
}
Output Description
Field |
Type |
Description |
|---|---|---|
@odata.context |
Character string |
OData description of the current resource model. This is a fixed field of the northbound interface. |
@odata.id |
Character string |
Path to access the current resource node. This is a fixed field of the northbound interface. |
@odata.type |
Character string |
Current resource type. This is a fixed field of the northbound interface. |
Id |
Character string |
ID of the current resource. This is a fixed field of the northbound interface. |
Name |
Character string |
Name of the current resource. This is a fixed field of the northbound interface. |
Issuer |
Character string |
Issuer. |
Subject |
Character string |
Owner. |
Date |
Character string |
Certificate validity period. |
SerialNum |
Character string |
Serial number. |
Fingerprint |
Character string |
Certificate fingerprint information. |