alicloud logo
Alibaba Cloud v3.30.0, Feb 1 23

alicloud.threatdetection.getHoneypotProbes

This data source provides Threat Detection Honeypot Probe available to the user.What is Honeypot Probe

NOTE: Available in 1.195.0+

Example Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-testAccThreatDetectionHoneypotProbe";
    var defaultHoneypotProbe = new AliCloud.ThreatDetection.HoneypotProbe("defaultHoneypotProbe", new()
    {
        Uuid = "e52c7872-29d1-4aa1-9908-0299abd53606",
        ProbeType = "host_probe",
        ControlNodeId = "e1397077-4941-4b14-b533-ca2bdebd00a3",
        Ping = true,
        HoneypotBindLists = new[]
        {
            new AliCloud.ThreatDetection.Inputs.HoneypotProbeHoneypotBindListArgs
            {
                BindPortLists = new[]
                {
                    new AliCloud.ThreatDetection.Inputs.HoneypotProbeHoneypotBindListBindPortListArgs
                    {
                        StartPort = 80,
                        EndPort = 80,
                    },
                },
                HoneypotId = "4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05",
            },
        },
        DisplayName = name,
        Arp = true,
    });

    var defaultHoneypotProbes = AliCloud.ThreatDetection.GetHoneypotProbes.Invoke(new()
    {
        Ids = new[]
        {
            defaultHoneypotProbe.Id,
        },
        DisplayName = name,
        ProbeType = "host_probe",
        EnableDetails = true,
    });

    return new Dictionary<string, object?>
    {
        ["alicloudThreatDetectionHoneypotProbeExampleId"] = defaultHoneypotProbes.Apply(getHoneypotProbesResult => getHoneypotProbesResult.Probes[0]?.Id),
    };
});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccThreatDetectionHoneypotProbe"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultHoneypotProbe, err := threatdetection.NewHoneypotProbe(ctx, "defaultHoneypotProbe", &threatdetection.HoneypotProbeArgs{
			Uuid:          pulumi.String("e52c7872-29d1-4aa1-9908-0299abd53606"),
			ProbeType:     pulumi.String("host_probe"),
			ControlNodeId: pulumi.String("e1397077-4941-4b14-b533-ca2bdebd00a3"),
			Ping:          pulumi.Bool(true),
			HoneypotBindLists: threatdetection.HoneypotProbeHoneypotBindListArray{
				&threatdetection.HoneypotProbeHoneypotBindListArgs{
					BindPortLists: threatdetection.HoneypotProbeHoneypotBindListBindPortListArray{
						&threatdetection.HoneypotProbeHoneypotBindListBindPortListArgs{
							StartPort: pulumi.Int(80),
							EndPort:   pulumi.Int(80),
						},
					},
					HoneypotId: pulumi.String("4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05"),
				},
			},
			DisplayName: pulumi.String(name),
			Arp:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		defaultHoneypotProbes := threatdetection.GetHoneypotProbesOutput(ctx, threatdetection.GetHoneypotProbesOutputArgs{
			Ids: pulumi.StringArray{
				defaultHoneypotProbe.ID(),
			},
			DisplayName:   pulumi.String(name),
			ProbeType:     pulumi.String("host_probe"),
			EnableDetails: pulumi.Bool(true),
		}, nil)
		ctx.Export("alicloudThreatDetectionHoneypotProbeExampleId", defaultHoneypotProbes.ApplyT(func(defaultHoneypotProbes threatdetection.GetHoneypotProbesResult) (*string, error) {
			return &defaultHoneypotProbes.Probes[0].Id, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.HoneypotProbe;
import com.pulumi.alicloud.threatdetection.HoneypotProbeArgs;
import com.pulumi.alicloud.threatdetection.inputs.HoneypotProbeHoneypotBindListArgs;
import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotProbesArgs;
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 config = ctx.config();
        final var name = config.get("name").orElse("tf-testAccThreatDetectionHoneypotProbe");
        var defaultHoneypotProbe = new HoneypotProbe("defaultHoneypotProbe", HoneypotProbeArgs.builder()        
            .uuid("e52c7872-29d1-4aa1-9908-0299abd53606")
            .probeType("host_probe")
            .controlNodeId("e1397077-4941-4b14-b533-ca2bdebd00a3")
            .ping(true)
            .honeypotBindLists(HoneypotProbeHoneypotBindListArgs.builder()
                .bindPortLists(HoneypotProbeHoneypotBindListBindPortListArgs.builder()
                    .startPort(80)
                    .endPort(80)
                    .build())
                .honeypotId("4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05")
                .build())
            .displayName(name)
            .arp(true)
            .build());

        final var defaultHoneypotProbes = ThreatdetectionFunctions.getHoneypotProbes(GetHoneypotProbesArgs.builder()
            .ids(defaultHoneypotProbe.id())
            .displayName(name)
            .probeType("host_probe")
            .enableDetails(true)
            .build());

        ctx.export("alicloudThreatDetectionHoneypotProbeExampleId", defaultHoneypotProbes.applyValue(getHoneypotProbesResult -> getHoneypotProbesResult).applyValue(defaultHoneypotProbes -> defaultHoneypotProbes.applyValue(getHoneypotProbesResult -> getHoneypotProbesResult.probes()[0].id())));
    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testAccThreatDetectionHoneypotProbe"
default_honeypot_probe = alicloud.threatdetection.HoneypotProbe("defaultHoneypotProbe",
    uuid="e52c7872-29d1-4aa1-9908-0299abd53606",
    probe_type="host_probe",
    control_node_id="e1397077-4941-4b14-b533-ca2bdebd00a3",
    ping=True,
    honeypot_bind_lists=[alicloud.threatdetection.HoneypotProbeHoneypotBindListArgs(
        bind_port_lists=[alicloud.threatdetection.HoneypotProbeHoneypotBindListBindPortListArgs(
            start_port=80,
            end_port=80,
        )],
        honeypot_id="4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05",
    )],
    display_name=name,
    arp=True)
default_honeypot_probes = alicloud.threatdetection.get_honeypot_probes_output(ids=[default_honeypot_probe.id],
    display_name=name,
    probe_type="host_probe",
    enable_details=True)
pulumi.export("alicloudThreatDetectionHoneypotProbeExampleId", default_honeypot_probes.probes[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccThreatDetectionHoneypotProbe";
const defaultHoneypotProbe = new alicloud.threatdetection.HoneypotProbe("defaultHoneypotProbe", {
    uuid: "e52c7872-29d1-4aa1-9908-0299abd53606",
    probeType: "host_probe",
    controlNodeId: "e1397077-4941-4b14-b533-ca2bdebd00a3",
    ping: true,
    honeypotBindLists: [{
        bindPortLists: [{
            startPort: 80,
            endPort: 80,
        }],
        honeypotId: "4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05",
    }],
    displayName: name,
    arp: true,
});
const defaultHoneypotProbes = alicloud.threatdetection.getHoneypotProbesOutput({
    ids: [defaultHoneypotProbe.id],
    displayName: name,
    probeType: "host_probe",
    enableDetails: true,
});
export const alicloudThreatDetectionHoneypotProbeExampleId = defaultHoneypotProbes.apply(defaultHoneypotProbes => defaultHoneypotProbes.probes?.[0]?.id);
configuration:
  name:
    type: string
    default: tf-testAccThreatDetectionHoneypotProbe
resources:
  defaultHoneypotProbe:
    type: alicloud:threatdetection:HoneypotProbe
    properties:
      uuid: e52c7872-29d1-4aa1-9908-0299abd53606
      probeType: host_probe
      controlNodeId: e1397077-4941-4b14-b533-ca2bdebd00a3
      ping: true
      honeypotBindLists:
        - bindPortLists:
            - startPort: 80
              endPort: 80
          honeypotId: 4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05
      displayName: ${name}
      arp: true
variables:
  defaultHoneypotProbes:
    fn::invoke:
      Function: alicloud:threatdetection:getHoneypotProbes
      Arguments:
        ids:
          - ${defaultHoneypotProbe.id}
        displayName: ${name}
        probeType: host_probe
        enableDetails: true
outputs:
  alicloudThreatDetectionHoneypotProbeExampleId: ${defaultHoneypotProbes.probes[0].id}

Using getHoneypotProbes

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 getHoneypotProbes(args: GetHoneypotProbesArgs, opts?: InvokeOptions): Promise<GetHoneypotProbesResult>
function getHoneypotProbesOutput(args: GetHoneypotProbesOutputArgs, opts?: InvokeOptions): Output<GetHoneypotProbesResult>
def get_honeypot_probes(display_name: Optional[str] = None,
                        enable_details: Optional[bool] = None,
                        ids: Optional[Sequence[str]] = None,
                        name_regex: Optional[str] = None,
                        output_file: Optional[str] = None,
                        probe_status: Optional[str] = None,
                        probe_type: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetHoneypotProbesResult
def get_honeypot_probes_output(display_name: Optional[pulumi.Input[str]] = None,
                        enable_details: Optional[pulumi.Input[bool]] = None,
                        ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        name_regex: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        probe_status: Optional[pulumi.Input[str]] = None,
                        probe_type: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetHoneypotProbesResult]
func GetHoneypotProbes(ctx *Context, args *GetHoneypotProbesArgs, opts ...InvokeOption) (*GetHoneypotProbesResult, error)
func GetHoneypotProbesOutput(ctx *Context, args *GetHoneypotProbesOutputArgs, opts ...InvokeOption) GetHoneypotProbesResultOutput

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

public static class GetHoneypotProbes 
{
    public static Task<GetHoneypotProbesResult> InvokeAsync(GetHoneypotProbesArgs args, InvokeOptions? opts = null)
    public static Output<GetHoneypotProbesResult> Invoke(GetHoneypotProbesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHoneypotProbesResult> getHoneypotProbes(GetHoneypotProbesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:threatdetection/getHoneypotProbes:getHoneypotProbes
  arguments:
    # arguments dictionary

The following arguments are supported:

DisplayName string

Probe name

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids List<string>

A list of Honeypot Probe IDs.

NameRegex string

A regex string to filter results by display name.

OutputFile string
ProbeStatus string
ProbeType string

Probe type

DisplayName string

Probe name

EnableDetails bool

Default to false. Set it to true can output more details about resource attributes.

Ids []string

A list of Honeypot Probe IDs.

NameRegex string

A regex string to filter results by display name.

OutputFile string
ProbeStatus string
ProbeType string

Probe type

displayName String

Probe name

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Honeypot Probe IDs.

nameRegex String

A regex string to filter results by display name.

outputFile String
probeStatus String
probeType String

Probe type

displayName string

Probe name

enableDetails boolean

Default to false. Set it to true can output more details about resource attributes.

ids string[]

A list of Honeypot Probe IDs.

nameRegex string

A regex string to filter results by display name.

outputFile string
probeStatus string
probeType string

Probe type

display_name str

Probe name

enable_details bool

Default to false. Set it to true can output more details about resource attributes.

ids Sequence[str]

A list of Honeypot Probe IDs.

name_regex str

A regex string to filter results by display name.

output_file str
probe_status str
probe_type str

Probe type

displayName String

Probe name

enableDetails Boolean

Default to false. Set it to true can output more details about resource attributes.

ids List<String>

A list of Honeypot Probe IDs.

nameRegex String

A regex string to filter results by display name.

outputFile String
probeStatus String
probeType String

Probe type

getHoneypotProbes 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 Probe IDs.

Probes List<Pulumi.AliCloud.ThreatDetection.Outputs.GetHoneypotProbesProbe>

A list of Honeypot Probe Entries. Each element contains the following attributes:

DisplayName string

Probe name.

EnableDetails bool
NameRegex string
OutputFile string
ProbeStatus string
ProbeType string

Probe type, support host_probe and vpc_black_hole_probe.

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of Honeypot Probe IDs.

Probes []GetHoneypotProbesProbe

A list of Honeypot Probe Entries. Each element contains the following attributes:

DisplayName string

Probe name.

EnableDetails bool
NameRegex string
OutputFile string
ProbeStatus string
ProbeType string

Probe type, support host_probe and vpc_black_hole_probe.

id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of Honeypot Probe IDs.

probes List<GetHoneypotProbesProbe>

A list of Honeypot Probe Entries. Each element contains the following attributes:

displayName String

Probe name.

enableDetails Boolean
nameRegex String
outputFile String
probeStatus String
probeType String

Probe type, support host_probe and vpc_black_hole_probe.

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of Honeypot Probe IDs.

probes GetHoneypotProbesProbe[]

A list of Honeypot Probe Entries. Each element contains the following attributes:

displayName string

Probe name.

enableDetails boolean
nameRegex string
outputFile string
probeStatus string
probeType string

Probe type, support host_probe and vpc_black_hole_probe.

id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of Honeypot Probe IDs.

probes Sequence[GetHoneypotProbesProbe]

A list of Honeypot Probe Entries. Each element contains the following attributes:

display_name str

Probe name.

enable_details bool
name_regex str
output_file str
probe_status str
probe_type str

Probe type, support host_probe and vpc_black_hole_probe.

id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of Honeypot Probe IDs.

probes List<Property Map>

A list of Honeypot Probe Entries. Each element contains the following attributes:

displayName String

Probe name.

enableDetails Boolean
nameRegex String
outputFile String
probeStatus String
probeType String

Probe type, support host_probe and vpc_black_hole_probe.

Supporting Types

GetHoneypotProbesProbe

Arp bool

ARP spoofing detection.-true: Enable-false: Disabled. Available when enable_details is on.

ControlNodeId string

The ID of the management node.

DisplayName string

Probe name

HoneypotBindLists List<Pulumi.AliCloud.ThreatDetection.Inputs.GetHoneypotProbesProbeHoneypotBindList>
HoneypotProbeId string

The first ID of the resource

Id string

The ID of the honeypot probe. Its value is the same as honeypot_probe_id.

Ping bool

Ping scan detection. Value:true: Enable false: Disabled. Available when enable_details is on.

ProbeType string

Probe type

ServiceIpLists List<string>

Listen to the IP address list. Available when enable_details is on.

Status string

The status of the resource.

Uuid string

Machine uuid. Has a value when the type is host_probe.

VpcId string

The ID of the VPC. Has a value when the type is vpc_black_hole_probe.

Arp bool

ARP spoofing detection.-true: Enable-false: Disabled. Available when enable_details is on.

ControlNodeId string

The ID of the management node.

DisplayName string

Probe name

HoneypotBindLists []GetHoneypotProbesProbeHoneypotBindList
HoneypotProbeId string

The first ID of the resource

Id string

The ID of the honeypot probe. Its value is the same as honeypot_probe_id.

Ping bool

Ping scan detection. Value:true: Enable false: Disabled. Available when enable_details is on.

ProbeType string

Probe type

ServiceIpLists []string

Listen to the IP address list. Available when enable_details is on.

Status string

The status of the resource.

Uuid string

Machine uuid. Has a value when the type is host_probe.

VpcId string

The ID of the VPC. Has a value when the type is vpc_black_hole_probe.

arp Boolean

ARP spoofing detection.-true: Enable-false: Disabled. Available when enable_details is on.

controlNodeId String

The ID of the management node.

displayName String

Probe name

honeypotBindLists List<GetHoneypotProbesProbeHoneypotBindList>
honeypotProbeId String

The first ID of the resource

id String

The ID of the honeypot probe. Its value is the same as honeypot_probe_id.

ping Boolean

Ping scan detection. Value:true: Enable false: Disabled. Available when enable_details is on.

probeType String

Probe type

serviceIpLists List<String>

Listen to the IP address list. Available when enable_details is on.

status String

The status of the resource.

uuid String

Machine uuid. Has a value when the type is host_probe.

vpcId String

The ID of the VPC. Has a value when the type is vpc_black_hole_probe.

arp boolean

ARP spoofing detection.-true: Enable-false: Disabled. Available when enable_details is on.

controlNodeId string

The ID of the management node.

displayName string

Probe name

honeypotBindLists GetHoneypotProbesProbeHoneypotBindList[]
honeypotProbeId string

The first ID of the resource

id string

The ID of the honeypot probe. Its value is the same as honeypot_probe_id.

ping boolean

Ping scan detection. Value:true: Enable false: Disabled. Available when enable_details is on.

probeType string

Probe type

serviceIpLists string[]

Listen to the IP address list. Available when enable_details is on.

status string

The status of the resource.

uuid string

Machine uuid. Has a value when the type is host_probe.

vpcId string

The ID of the VPC. Has a value when the type is vpc_black_hole_probe.

arp bool

ARP spoofing detection.-true: Enable-false: Disabled. Available when enable_details is on.

control_node_id str

The ID of the management node.

display_name str

Probe name

honeypot_bind_lists Sequence[GetHoneypotProbesProbeHoneypotBindList]
honeypot_probe_id str

The first ID of the resource

id str

The ID of the honeypot probe. Its value is the same as honeypot_probe_id.

ping bool

Ping scan detection. Value:true: Enable false: Disabled. Available when enable_details is on.

probe_type str

Probe type

service_ip_lists Sequence[str]

Listen to the IP address list. Available when enable_details is on.

status str

The status of the resource.

uuid str

Machine uuid. Has a value when the type is host_probe.

vpc_id str

The ID of the VPC. Has a value when the type is vpc_black_hole_probe.

arp Boolean

ARP spoofing detection.-true: Enable-false: Disabled. Available when enable_details is on.

controlNodeId String

The ID of the management node.

displayName String

Probe name

honeypotBindLists List<Property Map>
honeypotProbeId String

The first ID of the resource

id String

The ID of the honeypot probe. Its value is the same as honeypot_probe_id.

ping Boolean

Ping scan detection. Value:true: Enable false: Disabled. Available when enable_details is on.

probeType String

Probe type

serviceIpLists List<String>

Listen to the IP address list. Available when enable_details is on.

status String

The status of the resource.

uuid String

Machine uuid. Has a value when the type is host_probe.

vpcId String

The ID of the VPC. Has a value when the type is vpc_black_hole_probe.

GetHoneypotProbesProbeHoneypotBindList

BindPortLists []GetHoneypotProbesProbeHoneypotBindListBindPortList

List of listening ports. Available when enable_details is on.

HoneypotId string
bindPortLists List<GetHoneypotProbesProbeHoneypotBindListBindPortList>

List of listening ports. Available when enable_details is on.

honeypotId String
bindPortLists GetHoneypotProbesProbeHoneypotBindListBindPortList[]

List of listening ports. Available when enable_details is on.

honeypotId string
bind_port_lists Sequence[GetHoneypotProbesProbeHoneypotBindListBindPortList]

List of listening ports. Available when enable_details is on.

honeypot_id str
bindPortLists List<Property Map>

List of listening ports. Available when enable_details is on.

honeypotId String

GetHoneypotProbesProbeHoneypotBindListBindPortList

BindPort bool

Whether to bind the port.

EndPort int

End port.

Fixed bool

Whether the port is fixed.

StartPort int

Start port.

TargetPort int

Destination port.

BindPort bool

Whether to bind the port.

EndPort int

End port.

Fixed bool

Whether the port is fixed.

StartPort int

Start port.

TargetPort int

Destination port.

bindPort Boolean

Whether to bind the port.

endPort Integer

End port.

fixed Boolean

Whether the port is fixed.

startPort Integer

Start port.

targetPort Integer

Destination port.

bindPort boolean

Whether to bind the port.

endPort number

End port.

fixed boolean

Whether the port is fixed.

startPort number

Start port.

targetPort number

Destination port.

bind_port bool

Whether to bind the port.

end_port int

End port.

fixed bool

Whether the port is fixed.

start_port int

Start port.

target_port int

Destination port.

bindPort Boolean

Whether to bind the port.

endPort Number

End port.

fixed Boolean

Whether the port is fixed.

startPort Number

Start port.

targetPort Number

Destination port.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.