Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.threatdetection.getHoneypotNodes
Explore with Pulumi AI
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.
- Name
Regex string - A regex string to filter results by Honeypot Node name.
- Node
Id string - Honeypot management node id.
- Node
Name string - The name of the management node.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- Ids []string
- A list of Honeypot Node IDs.
- Name
Regex string - A regex string to filter results by Honeypot Node name.
- Node
Id string - Honeypot management node id.
- Node
Name string - The name of the management node.
- Output
File string - 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.
- name
Regex String - A regex string to filter results by Honeypot Node name.
- node
Id String - Honeypot management node id.
- node
Name String - The name of the management node.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer
- ids string[]
- A list of Honeypot Node IDs.
- name
Regex string - A regex string to filter results by Honeypot Node name.
- node
Id string - Honeypot management node id.
- node
Name string - The name of the management node.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size 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.
- name
Regex String - A regex string to filter results by Honeypot Node name.
- node
Id String - Honeypot management node id.
- node
Name String - The name of the management node.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size 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.
Ali Cloud. Threat Detection. Outputs. Get Honeypot Nodes Node> - A list of Honeypot Node Entries. Each element contains the following attributes:
- Name
Regex string - Node
Id string - Honeypot management node id.
- Node
Name string - Management node name.
- Output
File string - Page
Number int - Page
Size 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
[]Get
Honeypot Nodes Node - A list of Honeypot Node Entries. Each element contains the following attributes:
- Name
Regex string - Node
Id string - Honeypot management node id.
- Node
Name string - Management node name.
- Output
File string - 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<Get
Honeypot Nodes Node> - A list of Honeypot Node Entries. Each element contains the following attributes:
- name
Regex String - node
Id String - Honeypot management node id.
- node
Name String - Management node name.
- output
File String - page
Number Integer - page
Size 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
Get
Honeypot Nodes Node[] - A list of Honeypot Node Entries. Each element contains the following attributes:
- name
Regex string - node
Id string - Honeypot management node id.
- node
Name string - Management node name.
- output
File string - page
Number number - page
Size 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[Get
Honeypot Nodes Node] - 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:
- name
Regex String - node
Id String - Honeypot management node id.
- node
Name String - Management node name.
- output
File String - page
Number Number - page
Size Number
Supporting Types
GetHoneypotNodesNode
- Allow
Honeypot boolAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- Available
Probe intNum - Number of probes available.
- Create
Time string - Id string
- The ID of the Honeypot management node.
- Node
Id string - Honeypot management node id.
- Node
Name string - The name of the management node.
- Security
Group List<string>Probe Ip Lists - Release the collection of network segments.
- Status int
- Allow
Honeypot boolAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- Available
Probe intNum - Number of probes available.
- Create
Time string - Id string
- The ID of the Honeypot management node.
- Node
Id string - Honeypot management node id.
- Node
Name string - The name of the management node.
- Security
Group []stringProbe Ip Lists - Release the collection of network segments.
- Status int
- allow
Honeypot BooleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available
Probe IntegerNum - Number of probes available.
- create
Time String - id String
- The ID of the Honeypot management node.
- node
Id String - Honeypot management node id.
- node
Name String - The name of the management node.
- security
Group List<String>Probe Ip Lists - Release the collection of network segments.
- status Integer
- allow
Honeypot booleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available
Probe numberNum - Number of probes available.
- create
Time string - id string
- The ID of the Honeypot management node.
- node
Id string - Honeypot management node id.
- node
Name string - The name of the management node.
- security
Group string[]Probe Ip Lists - Release the collection of network segments.
- status number
- allow_
honeypot_ boolaccess_ internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available_
probe_ intnum - 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_ Sequence[str]probe_ ip_ lists - Release the collection of network segments.
- status int
- allow
Honeypot BooleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available
Probe NumberNum - Number of probes available.
- create
Time String - id String
- The ID of the Honeypot management node.
- node
Id String - Honeypot management node id.
- node
Name String - The name of the management node.
- security
Group List<String>Probe Ip Lists - 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.