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

alicloud.threatdetection.getHoneyPots

Explore with Pulumi AI

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

This data source provides Threat Detection Honey Pot available to the user.What is Honey Pot

NOTE: Available since v1.195.0.

Example Usage

Basic Usage

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

const _default = alicloud.threatdetection.getHoneyPots({
    ids: ["xxxx"],
    honeypotName: "tf-example",
    nodeId: "a44e1ab3-6945-444c-889d-5bacee7056e8",
});
export const alicloudThreatDetectionHoneyPotExampleId = _default.then(_default => _default.pots?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.threatdetection.get_honey_pots(ids=["xxxx"],
    honeypot_name="tf-example",
    node_id="a44e1ab3-6945-444c-889d-5bacee7056e8")
pulumi.export("alicloudThreatDetectionHoneyPotExampleId", default.pots[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.GetHoneyPots(ctx, &threatdetection.GetHoneyPotsArgs{
			Ids: []string{
				"xxxx",
			},
			HoneypotName: pulumi.StringRef("tf-example"),
			NodeId:       pulumi.StringRef("a44e1ab3-6945-444c-889d-5bacee7056e8"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudThreatDetectionHoneyPotExampleId", _default.Pots[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.GetHoneyPots.Invoke(new()
    {
        Ids = new[]
        {
            "xxxx",
        },
        HoneypotName = "tf-example",
        NodeId = "a44e1ab3-6945-444c-889d-5bacee7056e8",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudThreatDetectionHoneyPotExampleId"] = @default.Apply(@default => @default.Apply(getHoneyPotsResult => getHoneyPotsResult.Pots[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.GetHoneyPotsArgs;
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.getHoneyPots(GetHoneyPotsArgs.builder()
            .ids("xxxx")
            .honeypotName("tf-example")
            .nodeId("a44e1ab3-6945-444c-889d-5bacee7056e8")
            .build());

        ctx.export("alicloudThreatDetectionHoneyPotExampleId", default_.pots()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:threatdetection:getHoneyPots
      arguments:
        ids:
          - xxxx
        honeypotName: tf-example
        nodeId: a44e1ab3-6945-444c-889d-5bacee7056e8
outputs:
  alicloudThreatDetectionHoneyPotExampleId: ${default.pots[0].id}
Copy

Using getHoneyPots

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 getHoneyPots(args: GetHoneyPotsArgs, opts?: InvokeOptions): Promise<GetHoneyPotsResult>
function getHoneyPotsOutput(args: GetHoneyPotsOutputArgs, opts?: InvokeOptions): Output<GetHoneyPotsResult>
Copy
def get_honey_pots(honeypot_id: Optional[str] = None,
                   honeypot_name: Optional[str] = None,
                   ids: Optional[Sequence[str]] = None,
                   name_regex: Optional[str] = None,
                   node_id: Optional[str] = None,
                   node_name: Optional[str] = None,
                   output_file: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetHoneyPotsResult
def get_honey_pots_output(honeypot_id: Optional[pulumi.Input[str]] = None,
                   honeypot_name: Optional[pulumi.Input[str]] = None,
                   ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   name_regex: 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,
                   opts: Optional[InvokeOptions] = None) -> Output[GetHoneyPotsResult]
Copy
func GetHoneyPots(ctx *Context, args *GetHoneyPotsArgs, opts ...InvokeOption) (*GetHoneyPotsResult, error)
func GetHoneyPotsOutput(ctx *Context, args *GetHoneyPotsOutputArgs, opts ...InvokeOption) GetHoneyPotsResultOutput
Copy

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

public static class GetHoneyPots 
{
    public static Task<GetHoneyPotsResult> InvokeAsync(GetHoneyPotsArgs args, InvokeOptions? opts = null)
    public static Output<GetHoneyPotsResult> Invoke(GetHoneyPotsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetHoneyPotsResult> getHoneyPots(GetHoneyPotsArgs args, InvokeOptions options)
public static Output<GetHoneyPotsResult> getHoneyPots(GetHoneyPotsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:threatdetection/getHoneyPots:getHoneyPots
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

HoneypotId Changes to this property will trigger replacement. string
Honeypot ID.
HoneypotName Changes to this property will trigger replacement. string
Honeypot custom name.
Ids List<string>
A list of Honey Pot IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by honey pot name.
NodeId Changes to this property will trigger replacement. string
The ID of the honeypot management node.
NodeName Changes to this property will trigger replacement. string
The name of the honeypot management node.
OutputFile string
File name where to save data source results (after running pulumi preview).
HoneypotId Changes to this property will trigger replacement. string
Honeypot ID.
HoneypotName Changes to this property will trigger replacement. string
Honeypot custom name.
Ids []string
A list of Honey Pot IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by honey pot name.
NodeId Changes to this property will trigger replacement. string
The ID of the honeypot management node.
NodeName Changes to this property will trigger replacement. string
The name of the honeypot management node.
OutputFile string
File name where to save data source results (after running pulumi preview).
honeypotId Changes to this property will trigger replacement. String
Honeypot ID.
honeypotName Changes to this property will trigger replacement. String
Honeypot custom name.
ids List<String>
A list of Honey Pot IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by honey pot name.
nodeId Changes to this property will trigger replacement. String
The ID of the honeypot management node.
nodeName Changes to this property will trigger replacement. String
The name of the honeypot management node.
outputFile String
File name where to save data source results (after running pulumi preview).
honeypotId Changes to this property will trigger replacement. string
Honeypot ID.
honeypotName Changes to this property will trigger replacement. string
Honeypot custom name.
ids string[]
A list of Honey Pot IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by honey pot name.
nodeId Changes to this property will trigger replacement. string
The ID of the honeypot management node.
nodeName Changes to this property will trigger replacement. string
The name of the honeypot management node.
outputFile string
File name where to save data source results (after running pulumi preview).
honeypot_id Changes to this property will trigger replacement. str
Honeypot ID.
honeypot_name Changes to this property will trigger replacement. str
Honeypot custom name.
ids Sequence[str]
A list of Honey Pot IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by honey pot name.
node_id Changes to this property will trigger replacement. str
The ID of the honeypot management node.
node_name Changes to this property will trigger replacement. str
The name of the honeypot management node.
output_file str
File name where to save data source results (after running pulumi preview).
honeypotId Changes to this property will trigger replacement. String
Honeypot ID.
honeypotName Changes to this property will trigger replacement. String
Honeypot custom name.
ids List<String>
A list of Honey Pot IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by honey pot name.
nodeId Changes to this property will trigger replacement. String
The ID of the honeypot management node.
nodeName Changes to this property will trigger replacement. String
The name of the honeypot management node.
outputFile String
File name where to save data source results (after running pulumi preview).

getHoneyPots Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of Honey Pot IDs.
Pots List<Pulumi.AliCloud.ThreatDetection.Outputs.GetHoneyPotsPot>
A list of Honey Pot Entries. Each element contains the following attributes:
HoneypotId string
Honeypot ID.
HoneypotName string
Honeypot custom name.
NameRegex string
NodeId string
The ID of the honeypot management node.
NodeName string
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Honey Pot IDs.
Pots []GetHoneyPotsPot
A list of Honey Pot Entries. Each element contains the following attributes:
HoneypotId string
Honeypot ID.
HoneypotName string
Honeypot custom name.
NameRegex string
NodeId string
The ID of the honeypot management node.
NodeName string
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Honey Pot IDs.
pots List<GetHoneyPotsPot>
A list of Honey Pot Entries. Each element contains the following attributes:
honeypotId String
Honeypot ID.
honeypotName String
Honeypot custom name.
nameRegex String
nodeId String
The ID of the honeypot management node.
nodeName String
outputFile String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Honey Pot IDs.
pots GetHoneyPotsPot[]
A list of Honey Pot Entries. Each element contains the following attributes:
honeypotId string
Honeypot ID.
honeypotName string
Honeypot custom name.
nameRegex string
nodeId string
The ID of the honeypot management node.
nodeName string
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Honey Pot IDs.
pots Sequence[GetHoneyPotsPot]
A list of Honey Pot Entries. Each element contains the following attributes:
honeypot_id str
Honeypot ID.
honeypot_name str
Honeypot custom name.
name_regex str
node_id str
The ID of the honeypot management node.
node_name str
output_file str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Honey Pot IDs.
pots List<Property Map>
A list of Honey Pot Entries. Each element contains the following attributes:
honeypotId String
Honeypot ID.
honeypotName String
Honeypot custom name.
nameRegex String
nodeId String
The ID of the honeypot management node.
nodeName String
outputFile String

Supporting Types

GetHoneyPotsPot

HoneypotId This property is required. string
Honeypot ID.
HoneypotImageId This property is required. string
The image ID of the honeypot.
HoneypotImageName This property is required. string
Honeypot mirror name.
HoneypotName This property is required. string
Honeypot custom name.
Id This property is required. string
Honeypot ID. The value is the same as honeypot_id.
NodeId This property is required. string
The ID of the honeypot management node.
PresetId This property is required. string
The custom parameter ID of honeypot.
States This property is required. List<string>
Honeypot status.
Status This property is required. string
The status of the resource
HoneypotId This property is required. string
Honeypot ID.
HoneypotImageId This property is required. string
The image ID of the honeypot.
HoneypotImageName This property is required. string
Honeypot mirror name.
HoneypotName This property is required. string
Honeypot custom name.
Id This property is required. string
Honeypot ID. The value is the same as honeypot_id.
NodeId This property is required. string
The ID of the honeypot management node.
PresetId This property is required. string
The custom parameter ID of honeypot.
States This property is required. []string
Honeypot status.
Status This property is required. string
The status of the resource
honeypotId This property is required. String
Honeypot ID.
honeypotImageId This property is required. String
The image ID of the honeypot.
honeypotImageName This property is required. String
Honeypot mirror name.
honeypotName This property is required. String
Honeypot custom name.
id This property is required. String
Honeypot ID. The value is the same as honeypot_id.
nodeId This property is required. String
The ID of the honeypot management node.
presetId This property is required. String
The custom parameter ID of honeypot.
states This property is required. List<String>
Honeypot status.
status This property is required. String
The status of the resource
honeypotId This property is required. string
Honeypot ID.
honeypotImageId This property is required. string
The image ID of the honeypot.
honeypotImageName This property is required. string
Honeypot mirror name.
honeypotName This property is required. string
Honeypot custom name.
id This property is required. string
Honeypot ID. The value is the same as honeypot_id.
nodeId This property is required. string
The ID of the honeypot management node.
presetId This property is required. string
The custom parameter ID of honeypot.
states This property is required. string[]
Honeypot status.
status This property is required. string
The status of the resource
honeypot_id This property is required. str
Honeypot ID.
honeypot_image_id This property is required. str
The image ID of the honeypot.
honeypot_image_name This property is required. str
Honeypot mirror name.
honeypot_name This property is required. str
Honeypot custom name.
id This property is required. str
Honeypot ID. The value is the same as honeypot_id.
node_id This property is required. str
The ID of the honeypot management node.
preset_id This property is required. str
The custom parameter ID of honeypot.
states This property is required. Sequence[str]
Honeypot status.
status This property is required. str
The status of the resource
honeypotId This property is required. String
Honeypot ID.
honeypotImageId This property is required. String
The image ID of the honeypot.
honeypotImageName This property is required. String
Honeypot mirror name.
honeypotName This property is required. String
Honeypot custom name.
id This property is required. String
Honeypot ID. The value is the same as honeypot_id.
nodeId This property is required. String
The ID of the honeypot management node.
presetId This property is required. String
The custom parameter ID of honeypot.
states This property is required. List<String>
Honeypot status.
status This property is required. String
The status of the resource

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