1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. getHoneypotImages
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.threatdetection.getHoneypotImages

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides Threat Detection Honeypot Image available to the user.What is Honeypot Image

NOTE: Available in 1.195.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.threatdetection.getHoneypotImages({
    ids: ["sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df"],
    nameRegex: "^meta",
});
export const alicloudThreatDetectionHoneypotImageExampleId = _default.then(_default => _default.images?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.threatdetection.get_honeypot_images(ids=["sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df"],
    name_regex="^meta")
pulumi.export("alicloudThreatDetectionHoneypotImageExampleId", default.images[0].id)
Copy
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.GetHoneypotImages(ctx, &threatdetection.GetHoneypotImagesArgs{
			Ids: []string{
				"sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df",
			},
			NameRegex: pulumi.StringRef("^meta"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudThreatDetectionHoneypotImageExampleId", _default.Images[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.ThreatDetection.GetHoneypotImages.Invoke(new()
    {
        Ids = new[]
        {
            "sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df",
        },
        NameRegex = "^meta",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudThreatDetectionHoneypotImageExampleId"] = @default.Apply(@default => @default.Apply(getHoneypotImagesResult => getHoneypotImagesResult.Images[0]?.Id)),
    };
});
Copy
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.GetHoneypotImagesArgs;
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.getHoneypotImages(GetHoneypotImagesArgs.builder()
            .ids("sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df")
            .nameRegex("^meta")
            .build());

        ctx.export("alicloudThreatDetectionHoneypotImageExampleId", default_.images()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:threatdetection:getHoneypotImages
      arguments:
        ids:
          - sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df
        nameRegex: ^meta
outputs:
  alicloudThreatDetectionHoneypotImageExampleId: ${default.images[0].id}
Copy

Using getHoneypotImages

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 getHoneypotImages(args: GetHoneypotImagesArgs, opts?: InvokeOptions): Promise<GetHoneypotImagesResult>
function getHoneypotImagesOutput(args: GetHoneypotImagesOutputArgs, opts?: InvokeOptions): Output<GetHoneypotImagesResult>
Copy
def get_honeypot_images(ids: Optional[Sequence[str]] = None,
                        name_regex: Optional[str] = None,
                        node_id: Optional[str] = None,
                        output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetHoneypotImagesResult
def get_honeypot_images_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        name_regex: Optional[pulumi.Input[str]] = None,
                        node_id: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetHoneypotImagesResult]
Copy
func GetHoneypotImages(ctx *Context, args *GetHoneypotImagesArgs, opts ...InvokeOption) (*GetHoneypotImagesResult, error)
func GetHoneypotImagesOutput(ctx *Context, args *GetHoneypotImagesOutputArgs, opts ...InvokeOption) GetHoneypotImagesResultOutput
Copy

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

public static class GetHoneypotImages 
{
    public static Task<GetHoneypotImagesResult> InvokeAsync(GetHoneypotImagesArgs args, InvokeOptions? opts = null)
    public static Output<GetHoneypotImagesResult> Invoke(GetHoneypotImagesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetHoneypotImagesResult> getHoneypotImages(GetHoneypotImagesArgs args, InvokeOptions options)
public static Output<GetHoneypotImagesResult> getHoneypotImages(GetHoneypotImagesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:threatdetection/getHoneypotImages:getHoneypotImages
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of Honeypot Image IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Honeypot mirror nam.
NodeId Changes to this property will trigger replacement. string
OutputFile string
File name where to save data source results (after running pulumi preview).
Ids []string
A list of Honeypot Image IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Honeypot mirror nam.
NodeId Changes to this property will trigger replacement. string
OutputFile string
File name where to save data source results (after running pulumi preview).
ids List<String>
A list of Honeypot Image IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Honeypot mirror nam.
nodeId Changes to this property will trigger replacement. String
outputFile String
File name where to save data source results (after running pulumi preview).
ids string[]
A list of Honeypot Image IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Honeypot mirror nam.
nodeId Changes to this property will trigger replacement. string
outputFile string
File name where to save data source results (after running pulumi preview).
ids Sequence[str]
A list of Honeypot Image IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Honeypot mirror nam.
node_id Changes to this property will trigger replacement. str
output_file str
File name where to save data source results (after running pulumi preview).
ids List<String>
A list of Honeypot Image IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Honeypot mirror nam.
nodeId Changes to this property will trigger replacement. String
outputFile String
File name where to save data source results (after running pulumi preview).

getHoneypotImages 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 Image IDs.
Images List<Pulumi.AliCloud.ThreatDetection.Outputs.GetHoneypotImagesImage>
A list of Honeypot Image Entries. Each element contains the following attributes:
Names List<string>
A list of name of Honeypot Images.
NameRegex string
NodeId string
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Honeypot Image IDs.
Images []GetHoneypotImagesImage
A list of Honeypot Image Entries. Each element contains the following attributes:
Names []string
A list of name of Honeypot Images.
NameRegex string
NodeId string
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Honeypot Image IDs.
images List<GetHoneypotImagesImage>
A list of Honeypot Image Entries. Each element contains the following attributes:
names List<String>
A list of name of Honeypot Images.
nameRegex String
nodeId String
outputFile String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Honeypot Image IDs.
images GetHoneypotImagesImage[]
A list of Honeypot Image Entries. Each element contains the following attributes:
names string[]
A list of name of Honeypot Images.
nameRegex string
nodeId string
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Honeypot Image IDs.
images Sequence[GetHoneypotImagesImage]
A list of Honeypot Image Entries. Each element contains the following attributes:
names Sequence[str]
A list of name of Honeypot Images.
name_regex str
node_id str
output_file str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Honeypot Image IDs.
images List<Property Map>
A list of Honeypot Image Entries. Each element contains the following attributes:
names List<String>
A list of name of Honeypot Images.
nameRegex String
nodeId String
outputFile String

Supporting Types

GetHoneypotImagesImage

HoneypotImageDisplayName This property is required. string
The name of the honeypot image display.
HoneypotImageId This property is required. string
The image ID of the honeypot.
HoneypotImageName This property is required. string
Honeypot mirror name.
HoneypotImageType This property is required. string
Honeypot mirror type.
HoneypotImageVersion This property is required. string
Honeypot Mirror version.
Id This property is required. string
The image ID of the honeypot.The value is the same as honeypot_image_id.
Multiports This property is required. string
Ports supported by honeypots. In JSON format. Contains the following fields:-log_type: log type-proto: Support Protocol-description: description-ports: supports Port collection-port_str: supports port strings-type: type
Proto This property is required. string
Honeypot-supported protocols.
ServicePort This property is required. string
Honeypot service port.
Template This property is required. string
Honeypot configuration parameter template.
HoneypotImageDisplayName This property is required. string
The name of the honeypot image display.
HoneypotImageId This property is required. string
The image ID of the honeypot.
HoneypotImageName This property is required. string
Honeypot mirror name.
HoneypotImageType This property is required. string
Honeypot mirror type.
HoneypotImageVersion This property is required. string
Honeypot Mirror version.
Id This property is required. string
The image ID of the honeypot.The value is the same as honeypot_image_id.
Multiports This property is required. string
Ports supported by honeypots. In JSON format. Contains the following fields:-log_type: log type-proto: Support Protocol-description: description-ports: supports Port collection-port_str: supports port strings-type: type
Proto This property is required. string
Honeypot-supported protocols.
ServicePort This property is required. string
Honeypot service port.
Template This property is required. string
Honeypot configuration parameter template.
honeypotImageDisplayName This property is required. String
The name of the honeypot image display.
honeypotImageId This property is required. String
The image ID of the honeypot.
honeypotImageName This property is required. String
Honeypot mirror name.
honeypotImageType This property is required. String
Honeypot mirror type.
honeypotImageVersion This property is required. String
Honeypot Mirror version.
id This property is required. String
The image ID of the honeypot.The value is the same as honeypot_image_id.
multiports This property is required. String
Ports supported by honeypots. In JSON format. Contains the following fields:-log_type: log type-proto: Support Protocol-description: description-ports: supports Port collection-port_str: supports port strings-type: type
proto This property is required. String
Honeypot-supported protocols.
servicePort This property is required. String
Honeypot service port.
template This property is required. String
Honeypot configuration parameter template.
honeypotImageDisplayName This property is required. string
The name of the honeypot image display.
honeypotImageId This property is required. string
The image ID of the honeypot.
honeypotImageName This property is required. string
Honeypot mirror name.
honeypotImageType This property is required. string
Honeypot mirror type.
honeypotImageVersion This property is required. string
Honeypot Mirror version.
id This property is required. string
The image ID of the honeypot.The value is the same as honeypot_image_id.
multiports This property is required. string
Ports supported by honeypots. In JSON format. Contains the following fields:-log_type: log type-proto: Support Protocol-description: description-ports: supports Port collection-port_str: supports port strings-type: type
proto This property is required. string
Honeypot-supported protocols.
servicePort This property is required. string
Honeypot service port.
template This property is required. string
Honeypot configuration parameter template.
honeypot_image_display_name This property is required. str
The name of the honeypot image display.
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_image_type This property is required. str
Honeypot mirror type.
honeypot_image_version This property is required. str
Honeypot Mirror version.
id This property is required. str
The image ID of the honeypot.The value is the same as honeypot_image_id.
multiports This property is required. str
Ports supported by honeypots. In JSON format. Contains the following fields:-log_type: log type-proto: Support Protocol-description: description-ports: supports Port collection-port_str: supports port strings-type: type
proto This property is required. str
Honeypot-supported protocols.
service_port This property is required. str
Honeypot service port.
template This property is required. str
Honeypot configuration parameter template.
honeypotImageDisplayName This property is required. String
The name of the honeypot image display.
honeypotImageId This property is required. String
The image ID of the honeypot.
honeypotImageName This property is required. String
Honeypot mirror name.
honeypotImageType This property is required. String
Honeypot mirror type.
honeypotImageVersion This property is required. String
Honeypot Mirror version.
id This property is required. String
The image ID of the honeypot.The value is the same as honeypot_image_id.
multiports This property is required. String
Ports supported by honeypots. In JSON format. Contains the following fields:-log_type: log type-proto: Support Protocol-description: description-ports: supports Port collection-port_str: supports port strings-type: type
proto This property is required. String
Honeypot-supported protocols.
servicePort This property is required. String
Honeypot service port.
template This property is required. String
Honeypot configuration parameter template.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi