get Honey Pots
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
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());
}
}
Content copied to clipboard
Return
A collection of values returned by getHoneyPots.
Parameters
argument
A collection of arguments for invoking getHoneyPots.
suspend fun getHoneyPots(honeypotId: String? = null, honeypotName: String? = null, ids: List<String>? = null, nameRegex: String? = null, nodeId: String? = null, nodeName: String? = null, outputFile: String? = null): GetHoneyPotsResult
Return
A collection of values returned by getHoneyPots.
See also
Parameters
honeypot Id
Honeypot ID.
honeypot Name
Honeypot custom name.
ids
A list of Honey Pot IDs.
name Regex
A regex string to filter results by honey pot name.
node Id
The ID of the honeypot management node.
node Name
The name of the honeypot management node.
output File
File name where to save data source results (after running pulumi preview
).
suspend fun getHoneyPots(argument: suspend GetHoneyPotsPlainArgsBuilder.() -> Unit): GetHoneyPotsResult
Return
A collection of values returned by getHoneyPots.
See also
Parameters
argument
Builder for com.pulumi.alicloud.threatdetection.kotlin.inputs.GetHoneyPotsPlainArgs.