1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. getHoneyPots
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.threatdetection.getHoneyPots

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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);
    
    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)
    
    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
    	})
    }
    
    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)),
        };
    });
    
    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());
        }
    }
    
    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}
    

    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>
    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]
    func GetHoneyPots(ctx *Context, args *GetHoneyPotsArgs, opts ...InvokeOption) (*GetHoneyPotsResult, error)
    func GetHoneyPotsOutput(ctx *Context, args *GetHoneyPotsOutputArgs, opts ...InvokeOption) GetHoneyPotsResultOutput

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

    The following arguments are supported:

    HoneypotId string
    Honeypot ID.
    HoneypotName string
    Honeypot custom name.
    Ids List<string>
    A list of Honey Pot IDs.
    NameRegex string
    A regex string to filter results by honey pot name.
    NodeId string
    The ID of the honeypot management node.
    NodeName string
    The name of the honeypot management node.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    HoneypotId string
    Honeypot ID.
    HoneypotName string
    Honeypot custom name.
    Ids []string
    A list of Honey Pot IDs.
    NameRegex string
    A regex string to filter results by honey pot name.
    NodeId string
    The ID of the honeypot management node.
    NodeName string
    The name of the honeypot management node.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    honeypotId String
    Honeypot ID.
    honeypotName String
    Honeypot custom name.
    ids List<String>
    A list of Honey Pot IDs.
    nameRegex String
    A regex string to filter results by honey pot name.
    nodeId String
    The ID of the honeypot management node.
    nodeName String
    The name of the honeypot management node.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    honeypotId string
    Honeypot ID.
    honeypotName string
    Honeypot custom name.
    ids string[]
    A list of Honey Pot IDs.
    nameRegex string
    A regex string to filter results by honey pot name.
    nodeId string
    The ID of the honeypot management node.
    nodeName string
    The name of the honeypot management node.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    honeypot_id str
    Honeypot ID.
    honeypot_name str
    Honeypot custom name.
    ids Sequence[str]
    A list of Honey Pot IDs.
    name_regex str
    A regex string to filter results by honey pot name.
    node_id str
    The ID of the honeypot management node.
    node_name str
    The name of the honeypot management node.
    output_file str
    File name where to save data source results (after running pulumi preview).
    honeypotId String
    Honeypot ID.
    honeypotName String
    Honeypot custom name.
    ids List<String>
    A list of Honey Pot IDs.
    nameRegex String
    A regex string to filter results by honey pot name.
    nodeId String
    The ID of the honeypot management node.
    nodeName 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 string
    Honeypot ID.
    HoneypotImageId string
    The image ID of the honeypot.
    HoneypotImageName string
    Honeypot mirror name.
    HoneypotName string
    Honeypot custom name.
    Id string
    Honeypot ID. The value is the same as honeypot_id.
    NodeId string
    The ID of the honeypot management node.
    PresetId string
    The custom parameter ID of honeypot.
    States List<string>
    Honeypot status.
    Status string
    The status of the resource
    HoneypotId string
    Honeypot ID.
    HoneypotImageId string
    The image ID of the honeypot.
    HoneypotImageName string
    Honeypot mirror name.
    HoneypotName string
    Honeypot custom name.
    Id string
    Honeypot ID. The value is the same as honeypot_id.
    NodeId string
    The ID of the honeypot management node.
    PresetId string
    The custom parameter ID of honeypot.
    States []string
    Honeypot status.
    Status string
    The status of the resource
    honeypotId String
    Honeypot ID.
    honeypotImageId String
    The image ID of the honeypot.
    honeypotImageName String
    Honeypot mirror name.
    honeypotName String
    Honeypot custom name.
    id String
    Honeypot ID. The value is the same as honeypot_id.
    nodeId String
    The ID of the honeypot management node.
    presetId String
    The custom parameter ID of honeypot.
    states List<String>
    Honeypot status.
    status String
    The status of the resource
    honeypotId string
    Honeypot ID.
    honeypotImageId string
    The image ID of the honeypot.
    honeypotImageName string
    Honeypot mirror name.
    honeypotName string
    Honeypot custom name.
    id string
    Honeypot ID. The value is the same as honeypot_id.
    nodeId string
    The ID of the honeypot management node.
    presetId string
    The custom parameter ID of honeypot.
    states string[]
    Honeypot status.
    status string
    The status of the resource
    honeypot_id str
    Honeypot ID.
    honeypot_image_id str
    The image ID of the honeypot.
    honeypot_image_name str
    Honeypot mirror name.
    honeypot_name str
    Honeypot custom name.
    id str
    Honeypot ID. The value is the same as honeypot_id.
    node_id str
    The ID of the honeypot management node.
    preset_id str
    The custom parameter ID of honeypot.
    states Sequence[str]
    Honeypot status.
    status str
    The status of the resource
    honeypotId String
    Honeypot ID.
    honeypotImageId String
    The image ID of the honeypot.
    honeypotImageName String
    Honeypot mirror name.
    honeypotName String
    Honeypot custom name.
    id String
    Honeypot ID. The value is the same as honeypot_id.
    nodeId String
    The ID of the honeypot management node.
    presetId String
    The custom parameter ID of honeypot.
    states List<String>
    Honeypot status.
    status 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi