Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.threatdetection.getHoneypotProbes
Explore with Pulumi AI
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);
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)
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
})
}
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)),
};
});
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()));
}
}
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}
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:
- Display
Name string - Probe name
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Honeypot Probe IDs.
- Name
Regex string - A regex string to filter results by display name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Probe
Status string - Probe
Type string - Probe type
- Display
Name string - Probe name
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Honeypot Probe IDs.
- Name
Regex string - A regex string to filter results by display name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Probe
Status string - Probe
Type string - Probe type
- display
Name String - Probe name
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Honeypot Probe IDs.
- name
Regex String - A regex string to filter results by display name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - probe
Status String - probe
Type String - Probe type
- display
Name string - Probe name
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Honeypot Probe IDs.
- name
Regex string - A regex string to filter results by display name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - probe
Status string - probe
Type string - Probe type
- display_
name str - Probe name
- enable_
details bool - Default to
false
. Set it totrue
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 - File name where to save data source results (after running
pulumi preview
). - probe_
status str - probe_
type str - Probe type
- display
Name String - Probe name
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Honeypot Probe IDs.
- name
Regex String - A regex string to filter results by display name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - probe
Status String - probe
Type 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.
Ali Cloud. Threat Detection. Outputs. Get Honeypot Probes Probe> - A list of Honeypot Probe Entries. Each element contains the following attributes:
- Display
Name string - Probe name.
- Enable
Details bool - Name
Regex string - Output
File string - Probe
Status string - Probe
Type string - Probe type, support
host_probe
andvpc_black_hole_probe
.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Honeypot Probe IDs.
- Probes
[]Get
Honeypot Probes Probe - A list of Honeypot Probe Entries. Each element contains the following attributes:
- Display
Name string - Probe name.
- Enable
Details bool - Name
Regex string - Output
File string - Probe
Status string - Probe
Type string - Probe type, support
host_probe
andvpc_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<Get
Honeypot Probes Probe> - A list of Honeypot Probe Entries. Each element contains the following attributes:
- display
Name String - Probe name.
- enable
Details Boolean - name
Regex String - output
File String - probe
Status String - probe
Type String - Probe type, support
host_probe
andvpc_black_hole_probe
.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Honeypot Probe IDs.
- probes
Get
Honeypot Probes Probe[] - A list of Honeypot Probe Entries. Each element contains the following attributes:
- display
Name string - Probe name.
- enable
Details boolean - name
Regex string - output
File string - probe
Status string - probe
Type string - Probe type, support
host_probe
andvpc_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[Get
Honeypot Probes Probe] - 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
andvpc_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:
- display
Name String - Probe name.
- enable
Details Boolean - name
Regex String - output
File String - probe
Status String - probe
Type String - Probe type, support
host_probe
andvpc_black_hole_probe
.
Supporting Types
GetHoneypotProbesProbe
- Arp bool
- ARP spoofing detection.-true: Enable-false: Disabled. Available when
enable_details
is on. - Control
Node stringId - The ID of the management node.
- Display
Name string - Probe name
- Honeypot
Bind List<Pulumi.Lists Ali Cloud. Threat Detection. Inputs. Get Honeypot Probes Probe Honeypot Bind List> - Honeypot
Probe stringId - 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. - Probe
Type string - Probe type
- Service
Ip List<string>Lists - 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
. - Vpc
Id 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 stringId - The ID of the management node.
- Display
Name string - Probe name
- Honeypot
Bind []GetLists Honeypot Probes Probe Honeypot Bind List - Honeypot
Probe stringId - 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. - Probe
Type string - Probe type
- Service
Ip []stringLists - 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
. - Vpc
Id 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. - control
Node StringId - The ID of the management node.
- display
Name String - Probe name
- honeypot
Bind List<GetLists Honeypot Probes Probe Honeypot Bind List> - honeypot
Probe StringId - 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. - probe
Type String - Probe type
- service
Ip List<String>Lists - 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
. - vpc
Id 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. - control
Node stringId - The ID of the management node.
- display
Name string - Probe name
- honeypot
Bind GetLists Honeypot Probes Probe Honeypot Bind List[] - honeypot
Probe stringId - 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. - probe
Type string - Probe type
- service
Ip string[]Lists - 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
. - vpc
Id 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_ strid - The ID of the management node.
- display_
name str - Probe name
- honeypot_
bind_ Sequence[Getlists Honeypot Probes Probe Honeypot Bind List] - honeypot_
probe_ strid - 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_ Sequence[str]lists - 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. - control
Node StringId - The ID of the management node.
- display
Name String - Probe name
- honeypot
Bind List<Property Map>Lists - honeypot
Probe StringId - 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. - probe
Type String - Probe type
- service
Ip List<String>Lists - 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
. - vpc
Id String - The ID of the VPC. Has a value when the type is
vpc_black_hole_probe
.
GetHoneypotProbesProbeHoneypotBindList
- Bind
Port List<Pulumi.Lists Ali Cloud. Threat Detection. Inputs. Get Honeypot Probes Probe Honeypot Bind List Bind Port List> - List of listening ports. Available when
enable_details
is on. - Honeypot
Id string
- Bind
Port []GetLists Honeypot Probes Probe Honeypot Bind List Bind Port List - List of listening ports. Available when
enable_details
is on. - Honeypot
Id string
- bind
Port List<GetLists Honeypot Probes Probe Honeypot Bind List Bind Port List> - List of listening ports. Available when
enable_details
is on. - honeypot
Id String
- bind
Port GetLists Honeypot Probes Probe Honeypot Bind List Bind Port List[] - List of listening ports. Available when
enable_details
is on. - honeypot
Id string
- bind_
port_ Sequence[Getlists Honeypot Probes Probe Honeypot Bind List Bind Port List] - List of listening ports. Available when
enable_details
is on. - honeypot_
id str
- bind
Port List<Property Map>Lists - List of listening ports. Available when
enable_details
is on. - honeypot
Id String
GetHoneypotProbesProbeHoneypotBindListBindPortList
- 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.
- 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.
- bind
Port Boolean - Whether to bind the port.
- end
Port Integer - End port.
- fixed Boolean
- Whether the port is fixed.
- start
Port Integer - Start port.
- target
Port Integer - Destination port.
- bind
Port boolean - Whether to bind the port.
- end
Port number - End port.
- fixed boolean
- Whether the port is fixed.
- start
Port number - Start port.
- target
Port 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.
- bind
Port Boolean - Whether to bind the port.
- end
Port Number - End port.
- fixed Boolean
- Whether the port is fixed.
- start
Port Number - Start port.
- target
Port 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.