1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. threatdetection
  5. getHoneypotPresets
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.threatdetection.getHoneypotPresets

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 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);
    
    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)
    
    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
    })
    }
    
    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)),
        };
    });
    
    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());
        }
    }
    
    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}
    

    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>
    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]
    func GetHoneypotPresets(ctx *Context, args *GetHoneypotPresetsArgs, opts ...InvokeOption) (*GetHoneypotPresetsResult, error)
    func GetHoneypotPresetsOutput(ctx *Context, args *GetHoneypotPresetsOutputArgs, opts ...InvokeOption) GetHoneypotPresetsResultOutput

    > 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)
    }
    public static CompletableFuture<GetHoneypotPresetsResult> getHoneypotPresets(GetHoneypotPresetsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:threatdetection/getHoneypotPresets:getHoneypotPresets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CurrentPage int
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    HoneypotImageName string
    Honeypot mirror name
    Ids List<string>
    A list of Honeypot Preset IDs.
    Lang string
    NodeId string
    Unique id of management node
    NodeName string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    PresetName string
    Honeypot template custom name
    CurrentPage int
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    HoneypotImageName string
    Honeypot mirror name
    Ids []string
    A list of Honeypot Preset IDs.
    Lang string
    NodeId string
    Unique id of management node
    NodeName string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    PresetName string
    Honeypot template custom name
    currentPage Integer
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    honeypotImageName String
    Honeypot mirror name
    ids List<String>
    A list of Honeypot Preset IDs.
    lang String
    nodeId String
    Unique id of management node
    nodeName String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    presetName String
    Honeypot template custom name
    currentPage number
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    honeypotImageName string
    Honeypot mirror name
    ids string[]
    A list of Honeypot Preset IDs.
    lang string
    nodeId string
    Unique id of management node
    nodeName string
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    presetName string
    Honeypot template custom name
    current_page int
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    honeypot_image_name str
    Honeypot mirror name
    ids Sequence[str]
    A list of Honeypot Preset IDs.
    lang str
    node_id str
    Unique id of management node
    node_name str
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    preset_name str
    Honeypot template custom name
    currentPage Number
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    honeypotImageName String
    Honeypot mirror name
    ids List<String>
    A list of Honeypot Preset IDs.
    lang String
    nodeId String
    Unique id of management node
    nodeName String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    presetName 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 string
    Honeypot mirror name
    HoneypotPresetId string
    Unique ID of honeypot Template.
    Id string
    The id of the Honeypot template.
    Metas List<Pulumi.AliCloud.ThreatDetection.Inputs.GetHoneypotPresetsPresetMeta>
    Honeypot template custom parameters.
    NodeId string
    Unique id of management node
    PresetName string
    Honeypot template custom name
    HoneypotImageName string
    Honeypot mirror name
    HoneypotPresetId string
    Unique ID of honeypot Template.
    Id string
    The id of the Honeypot template.
    Metas []GetHoneypotPresetsPresetMeta
    Honeypot template custom parameters.
    NodeId string
    Unique id of management node
    PresetName string
    Honeypot template custom name
    honeypotImageName String
    Honeypot mirror name
    honeypotPresetId String
    Unique ID of honeypot Template.
    id String
    The id of the Honeypot template.
    metas List<GetHoneypotPresetsPresetMeta>
    Honeypot template custom parameters.
    nodeId String
    Unique id of management node
    presetName String
    Honeypot template custom name
    honeypotImageName string
    Honeypot mirror name
    honeypotPresetId string
    Unique ID of honeypot Template.
    id string
    The id of the Honeypot template.
    metas GetHoneypotPresetsPresetMeta[]
    Honeypot template custom parameters.
    nodeId string
    Unique id of management node
    presetName string
    Honeypot template custom name
    honeypot_image_name str
    Honeypot mirror name
    honeypot_preset_id str
    Unique ID of honeypot Template.
    id str
    The id of the Honeypot template.
    metas Sequence[GetHoneypotPresetsPresetMeta]
    Honeypot template custom parameters.
    node_id str
    Unique id of management node
    preset_name str
    Honeypot template custom name
    honeypotImageName String
    Honeypot mirror name
    honeypotPresetId String
    Unique ID of honeypot Template.
    id String
    The id of the Honeypot template.
    metas List<Property Map>
    Honeypot template custom parameters.
    nodeId String
    Unique id of management node
    presetName String
    Honeypot template custom name

    GetHoneypotPresetsPresetMeta

    Burp string
    Burp counter.
    PortraitOption bool
    Social traceability.
    TrojanGit string
    Git countered.
    Burp string
    Burp counter.
    PortraitOption bool
    Social traceability.
    TrojanGit string
    Git countered.
    burp String
    Burp counter.
    portraitOption Boolean
    Social traceability.
    trojanGit String
    Git countered.
    burp string
    Burp counter.
    portraitOption boolean
    Social traceability.
    trojanGit string
    Git countered.
    burp str
    Burp counter.
    portrait_option bool
    Social traceability.
    trojan_git str
    Git countered.
    burp String
    Burp counter.
    portraitOption Boolean
    Social traceability.
    trojanGit 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.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi