1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. getHoneypotPresets
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.threatdetection.getHoneypotPresets

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides Threat Detection Honeypot Preset available to the user.

NOTE: Available in 1.195.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.threatdetection.getHoneypotPresets({
    ids: [defaultAlicloudThreatDetectionHoneypotPreset.id],
    honeypotImageName: "shiro",
    nodeId: "example_value",
    presetName: "apiapec_test",
});
export const alicloudThreatDetectionHoneypotPresetExampleId = _default.then(_default => _default.presets?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.threatdetection.get_honeypot_presets(ids=[default_alicloud_threat_detection_honeypot_preset["id"]],
    honeypot_image_name="shiro",
    node_id="example_value",
    preset_name="apiapec_test")
pulumi.export("alicloudThreatDetectionHoneypotPresetExampleId", default.presets[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := threatdetection.GetHoneypotPresets(ctx, &threatdetection.GetHoneypotPresetsArgs{
Ids: interface{}{
defaultAlicloudThreatDetectionHoneypotPreset.Id,
},
HoneypotImageName: pulumi.StringRef("shiro"),
NodeId: pulumi.StringRef("example_value"),
PresetName: pulumi.StringRef("apiapec_test"),
}, nil);
if err != nil {
return err
}
ctx.Export("alicloudThreatDetectionHoneypotPresetExampleId", _default.Presets[0].Id)
return nil
})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.ThreatDetection.GetHoneypotPresets.Invoke(new()
    {
        Ids = new[]
        {
            defaultAlicloudThreatDetectionHoneypotPreset.Id,
        },
        HoneypotImageName = "shiro",
        NodeId = "example_value",
        PresetName = "apiapec_test",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudThreatDetectionHoneypotPresetExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotPresetsResult => getHoneypotPresetsResult.Presets[0]?.Id)),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotPresetsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var default = ThreatdetectionFunctions.getHoneypotPresets(GetHoneypotPresetsArgs.builder()
            .ids(defaultAlicloudThreatDetectionHoneypotPreset.id())
            .honeypotImageName("shiro")
            .nodeId("example_value")
            .presetName("apiapec_test")
            .build());

        ctx.export("alicloudThreatDetectionHoneypotPresetExampleId", default_.presets()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:threatdetection:getHoneypotPresets
      arguments:
        ids:
          - ${defaultAlicloudThreatDetectionHoneypotPreset.id}
        honeypotImageName: shiro
        nodeId: example_value
        presetName: apiapec_test
outputs:
  alicloudThreatDetectionHoneypotPresetExampleId: ${default.presets[0].id}
Copy

Using getHoneypotPresets

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getHoneypotPresets(args: GetHoneypotPresetsArgs, opts?: InvokeOptions): Promise<GetHoneypotPresetsResult>
function getHoneypotPresetsOutput(args: GetHoneypotPresetsOutputArgs, opts?: InvokeOptions): Output<GetHoneypotPresetsResult>
Copy
def get_honeypot_presets(current_page: Optional[int] = None,
                         enable_details: Optional[bool] = None,
                         honeypot_image_name: Optional[str] = None,
                         ids: Optional[Sequence[str]] = None,
                         lang: Optional[str] = None,
                         node_id: Optional[str] = None,
                         node_name: Optional[str] = None,
                         output_file: Optional[str] = None,
                         page_number: Optional[int] = None,
                         page_size: Optional[int] = None,
                         preset_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetHoneypotPresetsResult
def get_honeypot_presets_output(current_page: Optional[pulumi.Input[int]] = None,
                         enable_details: Optional[pulumi.Input[bool]] = None,
                         honeypot_image_name: Optional[pulumi.Input[str]] = None,
                         ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         lang: Optional[pulumi.Input[str]] = None,
                         node_id: Optional[pulumi.Input[str]] = None,
                         node_name: Optional[pulumi.Input[str]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         page_number: Optional[pulumi.Input[int]] = None,
                         page_size: Optional[pulumi.Input[int]] = None,
                         preset_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetHoneypotPresetsResult]
Copy
func GetHoneypotPresets(ctx *Context, args *GetHoneypotPresetsArgs, opts ...InvokeOption) (*GetHoneypotPresetsResult, error)
func GetHoneypotPresetsOutput(ctx *Context, args *GetHoneypotPresetsOutputArgs, opts ...InvokeOption) GetHoneypotPresetsResultOutput
Copy

> Note: This function is named GetHoneypotPresets in the Go SDK.

public static class GetHoneypotPresets 
{
    public static Task<GetHoneypotPresetsResult> InvokeAsync(GetHoneypotPresetsArgs args, InvokeOptions? opts = null)
    public static Output<GetHoneypotPresetsResult> Invoke(GetHoneypotPresetsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetHoneypotPresetsResult> getHoneypotPresets(GetHoneypotPresetsArgs args, InvokeOptions options)
public static Output<GetHoneypotPresetsResult> getHoneypotPresets(GetHoneypotPresetsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CurrentPage Changes to this property will trigger replacement. int
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
HoneypotImageName Changes to this property will trigger replacement. string
Honeypot mirror name
Ids List<string>
A list of Honeypot Preset IDs.
Lang Changes to this property will trigger replacement. string
NodeId Changes to this property will trigger replacement. string
Unique id of management node
NodeName Changes to this property will trigger replacement. string
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
PresetName Changes to this property will trigger replacement. string
Honeypot template custom name
CurrentPage Changes to this property will trigger replacement. int
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
HoneypotImageName Changes to this property will trigger replacement. string
Honeypot mirror name
Ids []string
A list of Honeypot Preset IDs.
Lang Changes to this property will trigger replacement. string
NodeId Changes to this property will trigger replacement. string
Unique id of management node
NodeName Changes to this property will trigger replacement. string
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
PresetName Changes to this property will trigger replacement. string
Honeypot template custom name
currentPage Changes to this property will trigger replacement. Integer
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
honeypotImageName Changes to this property will trigger replacement. String
Honeypot mirror name
ids List<String>
A list of Honeypot Preset IDs.
lang Changes to this property will trigger replacement. String
nodeId Changes to this property will trigger replacement. String
Unique id of management node
nodeName Changes to this property will trigger replacement. String
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Integer
pageSize Integer
presetName Changes to this property will trigger replacement. String
Honeypot template custom name
currentPage Changes to this property will trigger replacement. number
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
honeypotImageName Changes to this property will trigger replacement. string
Honeypot mirror name
ids string[]
A list of Honeypot Preset IDs.
lang Changes to this property will trigger replacement. string
nodeId Changes to this property will trigger replacement. string
Unique id of management node
nodeName Changes to this property will trigger replacement. string
outputFile string
File name where to save data source results (after running pulumi preview).
pageNumber number
pageSize number
presetName Changes to this property will trigger replacement. string
Honeypot template custom name
current_page Changes to this property will trigger replacement. int
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
honeypot_image_name Changes to this property will trigger replacement. str
Honeypot mirror name
ids Sequence[str]
A list of Honeypot Preset IDs.
lang Changes to this property will trigger replacement. str
node_id Changes to this property will trigger replacement. str
Unique id of management node
node_name Changes to this property will trigger replacement. str
output_file str
File name where to save data source results (after running pulumi preview).
page_number int
page_size int
preset_name Changes to this property will trigger replacement. str
Honeypot template custom name
currentPage Changes to this property will trigger replacement. Number
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
honeypotImageName Changes to this property will trigger replacement. String
Honeypot mirror name
ids List<String>
A list of Honeypot Preset IDs.
lang Changes to this property will trigger replacement. String
nodeId Changes to this property will trigger replacement. String
Unique id of management node
nodeName Changes to this property will trigger replacement. String
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Number
pageSize Number
presetName Changes to this property will trigger replacement. String
Honeypot template custom name

getHoneypotPresets Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of Honeypot Preset IDs.
Presets List<Pulumi.AliCloud.ThreatDetection.Outputs.GetHoneypotPresetsPreset>
A list of Honeypot Preset Entries. Each element contains the following attributes:
CurrentPage int
EnableDetails bool
HoneypotImageName string
Honeypot mirror name.
Lang string
NodeId string
Unique id of management node.
NodeName string
OutputFile string
PageNumber int
PageSize int
PresetName string
Honeypot template custom name.
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Honeypot Preset IDs.
Presets []GetHoneypotPresetsPreset
A list of Honeypot Preset Entries. Each element contains the following attributes:
CurrentPage int
EnableDetails bool
HoneypotImageName string
Honeypot mirror name.
Lang string
NodeId string
Unique id of management node.
NodeName string
OutputFile string
PageNumber int
PageSize int
PresetName string
Honeypot template custom name.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Honeypot Preset IDs.
presets List<GetHoneypotPresetsPreset>
A list of Honeypot Preset Entries. Each element contains the following attributes:
currentPage Integer
enableDetails Boolean
honeypotImageName String
Honeypot mirror name.
lang String
nodeId String
Unique id of management node.
nodeName String
outputFile String
pageNumber Integer
pageSize Integer
presetName String
Honeypot template custom name.
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Honeypot Preset IDs.
presets GetHoneypotPresetsPreset[]
A list of Honeypot Preset Entries. Each element contains the following attributes:
currentPage number
enableDetails boolean
honeypotImageName string
Honeypot mirror name.
lang string
nodeId string
Unique id of management node.
nodeName string
outputFile string
pageNumber number
pageSize number
presetName string
Honeypot template custom name.
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Honeypot Preset IDs.
presets Sequence[GetHoneypotPresetsPreset]
A list of Honeypot Preset Entries. Each element contains the following attributes:
current_page int
enable_details bool
honeypot_image_name str
Honeypot mirror name.
lang str
node_id str
Unique id of management node.
node_name str
output_file str
page_number int
page_size int
preset_name str
Honeypot template custom name.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Honeypot Preset IDs.
presets List<Property Map>
A list of Honeypot Preset Entries. Each element contains the following attributes:
currentPage Number
enableDetails Boolean
honeypotImageName String
Honeypot mirror name.
lang String
nodeId String
Unique id of management node.
nodeName String
outputFile String
pageNumber Number
pageSize Number
presetName String
Honeypot template custom name.

Supporting Types

GetHoneypotPresetsPreset

HoneypotImageName This property is required. string
Honeypot mirror name
HoneypotPresetId This property is required. string
Unique ID of honeypot Template.
Id This property is required. string
The id of the Honeypot template.
Metas This property is required. List<Pulumi.AliCloud.ThreatDetection.Inputs.GetHoneypotPresetsPresetMeta>
Honeypot template custom parameters.
NodeId This property is required. string
Unique id of management node
PresetName This property is required. string
Honeypot template custom name
HoneypotImageName This property is required. string
Honeypot mirror name
HoneypotPresetId This property is required. string
Unique ID of honeypot Template.
Id This property is required. string
The id of the Honeypot template.
Metas This property is required. []GetHoneypotPresetsPresetMeta
Honeypot template custom parameters.
NodeId This property is required. string
Unique id of management node
PresetName This property is required. string
Honeypot template custom name
honeypotImageName This property is required. String
Honeypot mirror name
honeypotPresetId This property is required. String
Unique ID of honeypot Template.
id This property is required. String
The id of the Honeypot template.
metas This property is required. List<GetHoneypotPresetsPresetMeta>
Honeypot template custom parameters.
nodeId This property is required. String
Unique id of management node
presetName This property is required. String
Honeypot template custom name
honeypotImageName This property is required. string
Honeypot mirror name
honeypotPresetId This property is required. string
Unique ID of honeypot Template.
id This property is required. string
The id of the Honeypot template.
metas This property is required. GetHoneypotPresetsPresetMeta[]
Honeypot template custom parameters.
nodeId This property is required. string
Unique id of management node
presetName This property is required. string
Honeypot template custom name
honeypot_image_name This property is required. str
Honeypot mirror name
honeypot_preset_id This property is required. str
Unique ID of honeypot Template.
id This property is required. str
The id of the Honeypot template.
metas This property is required. Sequence[GetHoneypotPresetsPresetMeta]
Honeypot template custom parameters.
node_id This property is required. str
Unique id of management node
preset_name This property is required. str
Honeypot template custom name
honeypotImageName This property is required. String
Honeypot mirror name
honeypotPresetId This property is required. String
Unique ID of honeypot Template.
id This property is required. String
The id of the Honeypot template.
metas This property is required. List<Property Map>
Honeypot template custom parameters.
nodeId This property is required. String
Unique id of management node
presetName This property is required. String
Honeypot template custom name

GetHoneypotPresetsPresetMeta

Burp This property is required. string
Burp counter.
PortraitOption This property is required. bool
Social traceability.
TrojanGit This property is required. string
Git countered.
Burp This property is required. string
Burp counter.
PortraitOption This property is required. bool
Social traceability.
TrojanGit This property is required. string
Git countered.
burp This property is required. String
Burp counter.
portraitOption This property is required. Boolean
Social traceability.
trojanGit This property is required. String
Git countered.
burp This property is required. string
Burp counter.
portraitOption This property is required. boolean
Social traceability.
trojanGit This property is required. string
Git countered.
burp This property is required. str
Burp counter.
portrait_option This property is required. bool
Social traceability.
trojan_git This property is required. str
Git countered.
burp This property is required. String
Burp counter.
portraitOption This property is required. Boolean
Social traceability.
trojanGit This property is required. String
Git countered.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi