get Honeypot Probes
This data source provides Threat Detection Honeypot Probe available to the user.What is Honeypot Probe
NOTE: Available in 1.195.0+
Example Usage
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("default", {
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 _default = alicloud.threatdetection.getHoneypotProbesOutput({
ids: [defaultHoneypotProbe.id],
displayName: name,
probeType: "host_probe",
enableDetails: true,
});
export const alicloudThreatDetectionHoneypotProbeExampleId = _default.apply(_default => _default.probes?.[0]?.id);
Content copied to clipboard
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("default",
uuid="e52c7872-29d1-4aa1-9908-0299abd53606",
probe_type="host_probe",
control_node_id="e1397077-4941-4b14-b533-ca2bdebd00a3",
ping=True,
honeypot_bind_lists=[{
"bind_port_lists": [{
"start_port": 80,
"end_port": 80,
}],
"honeypot_id": "4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05",
}],
display_name=name,
arp=True)
default = 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.probes[0].id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
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("default", 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 @default = AliCloud.ThreatDetection.GetHoneypotProbes.Invoke(new()
{
Ids = new[]
{
defaultHoneypotProbe.Id,
},
DisplayName = name,
ProbeType = "host_probe",
EnableDetails = true,
});
return new Dictionary<string, object?>
{
["alicloudThreatDetectionHoneypotProbeExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotProbesResult => getHoneypotProbesResult.Probes[0]?.Id)),
};
});
Content copied to clipboard
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, "default", &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
}
_default := 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", _default.ApplyT(func(_default threatdetection.GetHoneypotProbesResult) (*string, error) {
return &default.Probes[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
Content copied to clipboard
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 default = ThreatdetectionFunctions.getHoneypotProbes(GetHoneypotProbesArgs.builder()
.ids(defaultHoneypotProbe.id())
.displayName(name)
.probeType("host_probe")
.enableDetails(true)
.build());
ctx.export("alicloudThreatDetectionHoneypotProbeExampleId", default_.applyValue(_default_ -> _default_.probes()[0].id()));
}
}
Content copied to clipboard
configuration:
name:
type: string
default: tf-testAccThreatDetectionHoneypotProbe
resources:
defaultHoneypotProbe:
type: alicloud:threatdetection:HoneypotProbe
name: default
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:
default:
fn::invoke:
function: alicloud:threatdetection:getHoneypotProbes
arguments:
ids:
- ${defaultHoneypotProbe.id}
displayName: ${name}
probeType: host_probe
enableDetails: true
outputs:
alicloudThreatDetectionHoneypotProbeExampleId: ${default.probes[0].id}
Content copied to clipboard
Return
A collection of values returned by getHoneypotProbes.
Parameters
argument
A collection of arguments for invoking getHoneypotProbes.
suspend fun getHoneypotProbes(displayName: String? = null, enableDetails: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, probeStatus: String? = null, probeType: String? = null): GetHoneypotProbesResult
Return
A collection of values returned by getHoneypotProbes.
Parameters
display Name
Probe name
enable Details
Default to false
. Set it to true
can output more details about resource attributes.
ids
A list of Honeypot Probe IDs.
name Regex
A regex string to filter results by display name.
output File
File name where to save data source results (after running pulumi preview
).
probe Status
probe Type
Probe type
See also
suspend fun getHoneypotProbes(argument: suspend GetHoneypotProbesPlainArgsBuilder.() -> Unit): GetHoneypotProbesResult
Return
A collection of values returned by getHoneypotProbes.
Parameters
argument
Builder for com.pulumi.alicloud.threatdetection.kotlin.inputs.GetHoneypotProbesPlainArgs.