Request Example
http://192.168.1.1:9080/api/server/public_key.ds
Response Documents Structure
•XML response. •JSON response. XML Response Structure
<drweb-avdesk-api api_version="4.1.3" timestamp="1395909195" server="192.168.1.1" srv_version="10.01.0.201707130" status="true">
<keys>
<key id="b0b84fcf-d11d-b211-8294-9804ba761cde">
<value>871036B...45DAD9</value>
<file>; Dr.Web (R) Public key file ; Do not edit! b0b84fcf-d11d-b211-...45DAD9 ; ***EOF*** </file>
</key>
</keys>
</drweb-avdesk-api>
|
Description of XML Response Parameters
•The <keys /> element contains information on all public encryption keys of the Server. ▫The <key /> element contains information on a specific public encryption key. The <key /> element attributes:
Attribute
|
Description
|
id
|
Identifier of a public encryption key
|
▫The <value /> element value is the public encryption key itself. ▫The <file /> element value contains the full content of the public encryption key file. JSON Response Structure
{ "head": {
"status": true,
"timestamp": 1395908750,
"api": {
"version": 40103
},
"server": {
"name": "192.168.1.1",
"version": 1000201707130,
"uuid": "1023dcd7-d11d-b211-896d-8804c0842edb"
}
},
"data": {
"keys": [
{
"uuid": "b0b84fcf-d11d-b211-8294-9804ba761cde",
"value": "871036BC06104...FE45DAD9",
"file": "; Dr.Web (R) Public key file\n; Do not edit!\nb0b84fcf-d11d-b211-8294-9804ba761cde\n87103...45DAD9\n; ***EOF***\n",
"active": true
}
]
}
}
|
Description of JSON Response Parameters
The keys array contains information on all public encryption keys of the Server.
The keys block elements:
Field name
|
Description
|
uuid
|
Identifier of a public encryption key
|
value
|
the public encryption key itself
|
file
|
full content of the public encryption key file
|
active
|
If its value is set to true, then encryption key is currently active, and if set to false, then it is not active
|
|