All Products
Search
Document Center

Security Center:UploadedHoneyPotFile

Last Updated:Feb 20, 2024

Uploads a honeypot file.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FileKeystringYes

The file key that you use to upload the file.

Note The key is in the format of HONEYPOT_FILE/{Timestamp}_{Custom file name}.
HONEYPOT_FILE/1601097845544644_********
FileNamestringYes

The name of the file that you want to upload.

trojan.zip
FileTypestringYes

The file type.

application/zip
NodeIdstringNo

The ID of the management node to which the honeypot belongs.

Note You can call the ListHoneypotNode operation to obtain the IDs of management nodes. operation to query the management node ID.
cc427e14-f257-4670-9d2b-d83bbbe*****
TemplateExtrastringYes

The prompt template that corresponds to the file.

{\"help\":\".zip\",\"label\":\"file\",\"type\":\"file\",\"key\":\"ftpfiles.zip\"}
HoneypotImageNamestringYes

The name of the honeypot image.

ruoyi
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The response code. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.

200
Messagestring

The returned message.

successful
RequestIdstring

The request ID.

427F89F8-6DFE-57CC-9593-3487CA93****
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "427F89F8-6DFE-57CC-9593-3487CA93****",
  "HttpStatusCode": 200
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-17The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 500