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

alicloud.threatdetection.getHoneypotNodes

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 Honeypot Node available to the user.What is Honeypot Node

    NOTE: Available in 1.195.0+

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.threatdetection.getHoneypotNodes({
        ids: [defaultAlicloudThreatDetectionHoneypotNode.id],
    });
    export const alicloudThreatDetectionHoneypotNodeExampleId = _default.then(_default => _default.nodes?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.threatdetection.get_honeypot_nodes(ids=[default_alicloud_threat_detection_honeypot_node["id"]])
    pulumi.export("alicloudThreatDetectionHoneypotNodeExampleId", default.nodes[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.GetHoneypotNodes(ctx, &threatdetection.GetHoneypotNodesArgs{
    Ids: interface{}{
    defaultAlicloudThreatDetectionHoneypotNode.Id,
    },
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("alicloudThreatDetectionHoneypotNodeExampleId", _default.Nodes[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.GetHoneypotNodes.Invoke(new()
        {
            Ids = new[]
            {
                defaultAlicloudThreatDetectionHoneypotNode.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudThreatDetectionHoneypotNodeExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotNodesResult => getHoneypotNodesResult.Nodes[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.GetHoneypotNodesArgs;
    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.getHoneypotNodes(GetHoneypotNodesArgs.builder()
                .ids(defaultAlicloudThreatDetectionHoneypotNode.id())
                .build());
    
            ctx.export("alicloudThreatDetectionHoneypotNodeExampleId", default_.nodes()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:threatdetection:getHoneypotNodes
          Arguments:
            ids:
              - ${defaultAlicloudThreatDetectionHoneypotNode.id}
    outputs:
      alicloudThreatDetectionHoneypotNodeExampleId: ${default.nodes[0].id}
    

    Using getHoneypotNodes

    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 getHoneypotNodes(args: GetHoneypotNodesArgs, opts?: InvokeOptions): Promise<GetHoneypotNodesResult>
    function getHoneypotNodesOutput(args: GetHoneypotNodesOutputArgs, opts?: InvokeOptions): Output<GetHoneypotNodesResult>
    def get_honeypot_nodes(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,
                           page_number: Optional[int] = None,
                           page_size: Optional[int] = None,
                           opts: Optional[InvokeOptions] = None) -> GetHoneypotNodesResult
    def get_honeypot_nodes_output(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,
                           page_number: Optional[pulumi.Input[int]] = None,
                           page_size: Optional[pulumi.Input[int]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetHoneypotNodesResult]
    func GetHoneypotNodes(ctx *Context, args *GetHoneypotNodesArgs, opts ...InvokeOption) (*GetHoneypotNodesResult, error)
    func GetHoneypotNodesOutput(ctx *Context, args *GetHoneypotNodesOutputArgs, opts ...InvokeOption) GetHoneypotNodesResultOutput

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

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

    The following arguments are supported:

    Ids List<string>
    A list of Honeypot Node IDs.
    NameRegex string
    A regex string to filter results by Honeypot Node name.
    NodeId string
    Honeypot management node id.
    NodeName string
    The name of the management node.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Ids []string
    A list of Honeypot Node IDs.
    NameRegex string
    A regex string to filter results by Honeypot Node name.
    NodeId string
    Honeypot management node id.
    NodeName string
    The name of the management node.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    ids List<String>
    A list of Honeypot Node IDs.
    nameRegex String
    A regex string to filter results by Honeypot Node name.
    nodeId String
    Honeypot management node id.
    nodeName String
    The name of the management node.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    ids string[]
    A list of Honeypot Node IDs.
    nameRegex string
    A regex string to filter results by Honeypot Node name.
    nodeId string
    Honeypot management node id.
    nodeName string
    The name of the management node.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    ids Sequence[str]
    A list of Honeypot Node IDs.
    name_regex str
    A regex string to filter results by Honeypot Node name.
    node_id str
    Honeypot management node id.
    node_name str
    The name of the management node.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    ids List<String>
    A list of Honeypot Node IDs.
    nameRegex String
    A regex string to filter results by Honeypot Node name.
    nodeId String
    Honeypot management node id.
    nodeName String
    The name of the management node.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number

    getHoneypotNodes 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 Node IDs.
    Names List<string>
    A list of Honeypot Node names.
    Nodes List<Pulumi.AliCloud.ThreatDetection.Outputs.GetHoneypotNodesNode>
    A list of Honeypot Node Entries. Each element contains the following attributes:
    NameRegex string
    NodeId string
    Honeypot management node id.
    NodeName string
    Management node name.
    OutputFile string
    PageNumber int
    PageSize int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Honeypot Node IDs.
    Names []string
    A list of Honeypot Node names.
    Nodes []GetHoneypotNodesNode
    A list of Honeypot Node Entries. Each element contains the following attributes:
    NameRegex string
    NodeId string
    Honeypot management node id.
    NodeName string
    Management node name.
    OutputFile string
    PageNumber int
    PageSize int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Honeypot Node IDs.
    names List<String>
    A list of Honeypot Node names.
    nodes List<GetHoneypotNodesNode>
    A list of Honeypot Node Entries. Each element contains the following attributes:
    nameRegex String
    nodeId String
    Honeypot management node id.
    nodeName String
    Management node name.
    outputFile String
    pageNumber Integer
    pageSize Integer
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Honeypot Node IDs.
    names string[]
    A list of Honeypot Node names.
    nodes GetHoneypotNodesNode[]
    A list of Honeypot Node Entries. Each element contains the following attributes:
    nameRegex string
    nodeId string
    Honeypot management node id.
    nodeName string
    Management node name.
    outputFile string
    pageNumber number
    pageSize number
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Honeypot Node IDs.
    names Sequence[str]
    A list of Honeypot Node names.
    nodes Sequence[GetHoneypotNodesNode]
    A list of Honeypot Node Entries. Each element contains the following attributes:
    name_regex str
    node_id str
    Honeypot management node id.
    node_name str
    Management node name.
    output_file str
    page_number int
    page_size int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Honeypot Node IDs.
    names List<String>
    A list of Honeypot Node names.
    nodes List<Property Map>
    A list of Honeypot Node Entries. Each element contains the following attributes:
    nameRegex String
    nodeId String
    Honeypot management node id.
    nodeName String
    Management node name.
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetHoneypotNodesNode

    AllowHoneypotAccessInternet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    AvailableProbeNum int
    Number of probes available.
    CreateTime string
    Id string
    The ID of the Honeypot management node.
    NodeId string
    Honeypot management node id.
    NodeName string
    The name of the management node.
    SecurityGroupProbeIpLists List<string>
    Release the collection of network segments.
    Status int
    AllowHoneypotAccessInternet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    AvailableProbeNum int
    Number of probes available.
    CreateTime string
    Id string
    The ID of the Honeypot management node.
    NodeId string
    Honeypot management node id.
    NodeName string
    The name of the management node.
    SecurityGroupProbeIpLists []string
    Release the collection of network segments.
    Status int
    allowHoneypotAccessInternet Boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    availableProbeNum Integer
    Number of probes available.
    createTime String
    id String
    The ID of the Honeypot management node.
    nodeId String
    Honeypot management node id.
    nodeName String
    The name of the management node.
    securityGroupProbeIpLists List<String>
    Release the collection of network segments.
    status Integer
    allowHoneypotAccessInternet boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    availableProbeNum number
    Number of probes available.
    createTime string
    id string
    The ID of the Honeypot management node.
    nodeId string
    Honeypot management node id.
    nodeName string
    The name of the management node.
    securityGroupProbeIpLists string[]
    Release the collection of network segments.
    status number
    allow_honeypot_access_internet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    available_probe_num int
    Number of probes available.
    create_time str
    id str
    The ID of the Honeypot management node.
    node_id str
    Honeypot management node id.
    node_name str
    The name of the management node.
    security_group_probe_ip_lists Sequence[str]
    Release the collection of network segments.
    status int
    allowHoneypotAccessInternet Boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    availableProbeNum Number
    Number of probes available.
    createTime String
    id String
    The ID of the Honeypot management node.
    nodeId String
    Honeypot management node id.
    nodeName String
    The name of the management node.
    securityGroupProbeIpLists List<String>
    Release the collection of network segments.
    status Number

    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