Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:threatdetection/getHoneyPots:getHoneyPots
arguments:
# arguments dictionary
The following arguments are supported:
- Honeypot
Id string - Honeypot ID.
- Honeypot
Name string - Honeypot custom name.
- Ids List<string>
- A list of Honey Pot IDs.
- Name
Regex string - A regex string to filter results by honey pot name.
- Node
Id string - The ID of the honeypot management node.
- Node
Name string - The name of the honeypot management node.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Honeypot
Id string - Honeypot ID.
- Honeypot
Name string - Honeypot custom name.
- Ids []string
- A list of Honey Pot IDs.
- Name
Regex string - A regex string to filter results by honey pot name.
- Node
Id string - The ID of the honeypot management node.
- Node
Name string - The name of the honeypot management node.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- honeypot
Id String - Honeypot ID.
- honeypot
Name String - Honeypot custom name.
- ids List<String>
- A list of Honey Pot IDs.
- name
Regex String - A regex string to filter results by honey pot name.
- node
Id String - The ID of the honeypot management node.
- node
Name String - The name of the honeypot management node.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- honeypot
Id string - Honeypot ID.
- honeypot
Name string - Honeypot custom name.
- ids string[]
- A list of Honey Pot IDs.
- name
Regex string - A regex string to filter results by honey pot name.
- node
Id string - The ID of the honeypot management node.
- node
Name string - The name of the honeypot management node.
- output
File 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
).
- honeypot
Id String - Honeypot ID.
- honeypot
Name String - Honeypot custom name.
- ids List<String>
- A list of Honey Pot IDs.
- name
Regex String - A regex string to filter results by honey pot name.
- node
Id String - The ID of the honeypot management node.
- node
Name String - 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 string - Honeypot ID.
- Honeypot
Image stringId - The image ID of the honeypot.
- Honeypot
Image stringName - Honeypot mirror name.
- Honeypot
Name string - Honeypot custom name.
- Id string
- Honeypot ID. The value is the same as
honeypot_id
. - Node
Id string - The ID of the honeypot management node.
- Preset
Id string - The custom parameter ID of honeypot.
- States List<string>
- Honeypot status.
- Status string
- The status of the resource
- Honeypot
Id string - Honeypot ID.
- Honeypot
Image stringId - The image ID of the honeypot.
- Honeypot
Image stringName - Honeypot mirror name.
- Honeypot
Name string - Honeypot custom name.
- Id string
- Honeypot ID. The value is the same as
honeypot_id
. - Node
Id string - The ID of the honeypot management node.
- Preset
Id string - The custom parameter ID of honeypot.
- States []string
- Honeypot status.
- Status string
- The status of the resource
- honeypot
Id String - Honeypot ID.
- honeypot
Image StringId - The image ID of the honeypot.
- honeypot
Image StringName - Honeypot mirror name.
- honeypot
Name String - Honeypot custom name.
- id String
- Honeypot ID. The value is the same as
honeypot_id
. - node
Id String - The ID of the honeypot management node.
- preset
Id String - The custom parameter ID of honeypot.
- states List<String>
- Honeypot status.
- status String
- The status of the resource
- honeypot
Id string - Honeypot ID.
- honeypot
Image stringId - The image ID of the honeypot.
- honeypot
Image stringName - Honeypot mirror name.
- honeypot
Name string - Honeypot custom name.
- id string
- Honeypot ID. The value is the same as
honeypot_id
. - node
Id string - The ID of the honeypot management node.
- preset
Id 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_ strid - The image ID of the honeypot.
- honeypot_
image_ strname - 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
- honeypot
Id String - Honeypot ID.
- honeypot
Image StringId - The image ID of the honeypot.
- honeypot
Image StringName - Honeypot mirror name.
- honeypot
Name String - Honeypot custom name.
- id String
- Honeypot ID. The value is the same as
honeypot_id
. - node
Id String - The ID of the honeypot management node.
- preset
Id 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.