Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.threatdetection.getHoneyPots
Explore with Pulumi AI
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)
public static Output<GetHoneyPotsResult> getHoneyPots(GetHoneyPotsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:threatdetection/getHoneyPots:getHoneyPots
arguments:
# arguments dictionary
The following arguments are supported:
- Honeypot
Id Changes to this property will trigger replacement.
- Honeypot ID.
- Honeypot
Name Changes to this property will trigger replacement.
- Honeypot custom name.
- Ids List<string>
- A list of Honey Pot IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by honey pot name.
- Node
Id Changes to this property will trigger replacement.
- The ID of the honeypot management node.
- Node
Name Changes to this property will trigger replacement.
- The name of the honeypot management node.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Honeypot
Id Changes to this property will trigger replacement.
- Honeypot ID.
- Honeypot
Name Changes to this property will trigger replacement.
- Honeypot custom name.
- Ids []string
- A list of Honey Pot IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by honey pot name.
- Node
Id Changes to this property will trigger replacement.
- The ID of the honeypot management node.
- Node
Name Changes to this property will trigger replacement.
- The name of the honeypot management node.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- honeypot
Id Changes to this property will trigger replacement.
- Honeypot ID.
- honeypot
Name Changes to this property will trigger replacement.
- Honeypot custom name.
- ids List<String>
- A list of Honey Pot IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by honey pot name.
- node
Id Changes to this property will trigger replacement.
- The ID of the honeypot management node.
- node
Name Changes to this property will trigger replacement.
- The name of the honeypot management node.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- honeypot
Id Changes to this property will trigger replacement.
- Honeypot ID.
- honeypot
Name Changes to this property will trigger replacement.
- Honeypot custom name.
- ids string[]
- A list of Honey Pot IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by honey pot name.
- node
Id Changes to this property will trigger replacement.
- The ID of the honeypot management node.
- node
Name Changes to this property will trigger replacement.
- The name of the honeypot management node.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- honeypot_
id Changes to this property will trigger replacement.
- Honeypot ID.
- honeypot_
name Changes to this property will trigger replacement.
- Honeypot custom name.
- ids Sequence[str]
- A list of Honey Pot IDs.
- name_
regex Changes to this property will trigger replacement.
- A regex string to filter results by honey pot name.
- node_
id Changes to this property will trigger replacement.
- The ID of the honeypot management node.
- node_
name Changes to this property will trigger replacement.
- The name of the honeypot management node.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- honeypot
Id Changes to this property will trigger replacement.
- Honeypot ID.
- honeypot
Name Changes to this property will trigger replacement.
- Honeypot custom name.
- ids List<String>
- A list of Honey Pot IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by honey pot name.
- node
Id Changes to this property will trigger replacement.
- The ID of the honeypot management node.
- node
Name Changes to this property will trigger replacement.
- The name of the honeypot management node.
- output
File 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.
Ali Cloud. Threat Detection. Outputs. Get Honey Pots Pot> - A list of Honey Pot Entries. Each element contains the following attributes:
- Honeypot
Id string - Honeypot ID.
- Honeypot
Name string - Honeypot custom name.
- Name
Regex string - Node
Id string - The ID of the honeypot management node.
- Node
Name string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Honey Pot IDs.
- Pots
[]Get
Honey Pots Pot - A list of Honey Pot Entries. Each element contains the following attributes:
- Honeypot
Id string - Honeypot ID.
- Honeypot
Name string - Honeypot custom name.
- Name
Regex string - Node
Id string - The ID of the honeypot management node.
- Node
Name string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Honey Pot IDs.
- pots
List<Get
Honey Pots Pot> - A list of Honey Pot Entries. Each element contains the following attributes:
- honeypot
Id String - Honeypot ID.
- honeypot
Name String - Honeypot custom name.
- name
Regex String - node
Id String - The ID of the honeypot management node.
- node
Name String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Honey Pot IDs.
- pots
Get
Honey Pots Pot[] - A list of Honey Pot Entries. Each element contains the following attributes:
- honeypot
Id string - Honeypot ID.
- honeypot
Name string - Honeypot custom name.
- name
Regex string - node
Id string - The ID of the honeypot management node.
- node
Name string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Honey Pot IDs.
- pots
Sequence[Get
Honey Pots Pot] - 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:
- honeypot
Id String - Honeypot ID.
- honeypot
Name String - Honeypot custom name.
- name
Regex String - node
Id String - The ID of the honeypot management node.
- node
Name String - output
File String
Supporting Types
GetHoneyPotsPot
- Honeypot
Id This property is required. string - Honeypot ID.
- Honeypot
Image Id This property is required. string - The image ID of the honeypot.
- Honeypot
Image Name This property is required. string - Honeypot mirror name.
- Honeypot
Name This property is required. string - Honeypot custom name.
- Id
This property is required. string - Honeypot ID. The value is the same as
honeypot_id
. - Node
Id This property is required. string - The ID of the honeypot management node.
- Preset
Id 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
- Honeypot
Id This property is required. string - Honeypot ID.
- Honeypot
Image Id This property is required. string - The image ID of the honeypot.
- Honeypot
Image Name This property is required. string - Honeypot mirror name.
- Honeypot
Name This property is required. string - Honeypot custom name.
- Id
This property is required. string - Honeypot ID. The value is the same as
honeypot_id
. - Node
Id This property is required. string - The ID of the honeypot management node.
- Preset
Id 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. String - Honeypot ID.
- honeypot
Image Id This property is required. String - The image ID of the honeypot.
- honeypot
Image Name This property is required. String - Honeypot mirror name.
- honeypot
Name This property is required. String - Honeypot custom name.
- id
This property is required. String - Honeypot ID. The value is the same as
honeypot_id
. - node
Id This property is required. String - The ID of the honeypot management node.
- preset
Id 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
- honeypot
Id This property is required. string - Honeypot ID.
- honeypot
Image Id This property is required. string - The image ID of the honeypot.
- honeypot
Image Name This property is required. string - Honeypot mirror name.
- honeypot
Name This property is required. string - Honeypot custom name.
- id
This property is required. string - Honeypot ID. The value is the same as
honeypot_id
. - node
Id This property is required. string - The ID of the honeypot management node.
- preset
Id 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
- honeypot
Id This property is required. String - Honeypot ID.
- honeypot
Image Id This property is required. String - The image ID of the honeypot.
- honeypot
Image Name This property is required. String - Honeypot mirror name.
- honeypot
Name This property is required. String - Honeypot custom name.
- id
This property is required. String - Honeypot ID. The value is the same as
honeypot_id
. - node
Id This property is required. String - The ID of the honeypot management node.
- preset
Id 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.