Configuring Information About a Weak Dictionary Interface
Function
This interface is used to import, export, and delete a weak dictionary.
Syntax
Operation type: POST
URL:https://device_ip/redfish/v1/EdgeSystem/PunyDict
Request header:
X-Auth-Token: auth_value
Request message body:
- Importing a file
{ "operation_type": "operation_type", "file_name":"file_name.conf", "Password":" password" }
- Exporting a file
{ "operation_type": "export" }
- Deleting a file
{ "operation_type": "delete", "Password":" password" }
Parameter Description
Parameter |
Description |
Value |
---|---|---|
device_ip |
Indicates the IP address for logging in to a device. |
An IPv4 or IPv6 address |
auth_value |
Authentication parameter contained in the request. |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
operation_type |
Operation type. |
The value is:
|
file_name |
Name of the weak dictionary file to be imported. |
This parameter is used only when operation_type is set to import. |
Password |
User password. |
Password of the Atlas IES user. |
Usage Guidelines
None
Example
Request:
POST:https://10.10.10.10/redfish/v1/EdgeSystem/PunyDict
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body:
- Importing a file
{ "operation_type": "import", "file_name":"import.conf", "Password":" password" }
- Exporting a file
{ "operation_type": "export" }
- Deleting a file
{ "operation_type": "delete", "Password":" password" }
Response:
- Importing a file
{ "status": 202, "message": "Import puny dict file success" }
- Exporting a file
None
- Deleting a file
{ "status": 202, "message": "Delete puny dict file success" }
Response code
- Importing a file: 202
- Exporting a file: none
- Deleting a file: 202
Output Description
None