All Products
Search
Document Center

Security Center:CreateHoneypotPreset

Last Updated:May 22, 2025

Creates a honeypot template.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
HoneypotImageNamestringYes

The name of the honeypot image.

webmin
PresetNamestringYes

The custom name of the honeypot template.

WebMin-online
MetastringYes

The custom configurations of the honeypot template. The value is a JSON string that contains the following fields:

  • portrait_option: Social Source Tracing
  • burp: Burp-specific Defense
  • trojan_git: Git-specific Defense
{"burp":"close","trojan_git":"close","portrait_option":"true"}
NodeIdstringYes

The ID of the management node to which you want to deploy honeypots.

Note You can call the ListHoneypotNode operation to query the IDs of management nodes.
9373fe59-74d5-4505-bb24-c85352fb****
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 data returned.

Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
Codestring

The status code returned. 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 message returned.

successful
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

7C1C6E65-C8B9-54C9-9F92-2F5E51C4E16D
HttpStatusCodeinteger

The HTTP status code returned.

200
HoneypotPresetobject

The creation result.

HoneypotPresetIdstring

The ID of the honeypot template.

d6ece172-34d9-4942-99a4-b309cb55xxxx

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "Code": 200,
  "Message": "successful",
  "RequestId": "7C1C6E65-C8B9-54C9-9F92-2F5E51C4E16D",
  "HttpStatusCode": 200,
  "HoneypotPreset": {
    "HoneypotPresetId": "d6ece172-34d9-4942-99a4-b309cb55xxxx"
  }
}

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-03-01The Error code has changed. The request parameters of the API has changedView Change Details