1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. getHoneypotImages
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.threatdetection.getHoneypotImages

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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);
    
    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)
    
    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
    	})
    }
    
    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)),
        };
    });
    
    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());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:threatdetection:getHoneypotImages
          Arguments:
            ids:
              - sha256:02882320c9a55303410127c5dc4ae2dc470150f9d7f2483102d994f5e5f4d9df
            nameRegex: ^meta
    outputs:
      alicloudThreatDetectionHoneypotImageExampleId: ${default.images[0].id}
    

    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>
    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]
    func GetHoneypotImages(ctx *Context, args *GetHoneypotImagesArgs, opts ...InvokeOption) (*GetHoneypotImagesResult, error)
    func GetHoneypotImagesOutput(ctx *Context, args *GetHoneypotImagesOutputArgs, opts ...InvokeOption) GetHoneypotImagesResultOutput

    > 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)
    }
    public static CompletableFuture<GetHoneypotImagesResult> getHoneypotImages(GetHoneypotImagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:threatdetection/getHoneypotImages:getHoneypotImages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Honeypot Image IDs.
    NameRegex string
    A regex string to filter results by Honeypot mirror nam.
    NodeId string
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Ids []string
    A list of Honeypot Image IDs.
    NameRegex string
    A regex string to filter results by Honeypot mirror nam.
    NodeId 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 String
    A regex string to filter results by Honeypot mirror nam.
    nodeId String
    outputFile String
    File name where to save data source results (after running pulumi preview).
    ids string[]
    A list of Honeypot Image IDs.
    nameRegex string
    A regex string to filter results by Honeypot mirror nam.
    nodeId 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 str
    A regex string to filter results by Honeypot mirror nam.
    node_id 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 String
    A regex string to filter results by Honeypot mirror nam.
    nodeId 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 string
    The name of the honeypot image display.
    HoneypotImageId string
    The image ID of the honeypot.
    HoneypotImageName string
    Honeypot mirror name.
    HoneypotImageType string
    Honeypot mirror type.
    HoneypotImageVersion string
    Honeypot Mirror version.
    Id string
    The image ID of the honeypot.The value is the same as honeypot_image_id.
    Multiports 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 string
    Honeypot-supported protocols.
    ServicePort string
    Honeypot service port.
    Template string
    Honeypot configuration parameter template.
    HoneypotImageDisplayName string
    The name of the honeypot image display.
    HoneypotImageId string
    The image ID of the honeypot.
    HoneypotImageName string
    Honeypot mirror name.
    HoneypotImageType string
    Honeypot mirror type.
    HoneypotImageVersion string
    Honeypot Mirror version.
    Id string
    The image ID of the honeypot.The value is the same as honeypot_image_id.
    Multiports 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 string
    Honeypot-supported protocols.
    ServicePort string
    Honeypot service port.
    Template string
    Honeypot configuration parameter template.
    honeypotImageDisplayName String
    The name of the honeypot image display.
    honeypotImageId String
    The image ID of the honeypot.
    honeypotImageName String
    Honeypot mirror name.
    honeypotImageType String
    Honeypot mirror type.
    honeypotImageVersion String
    Honeypot Mirror version.
    id String
    The image ID of the honeypot.The value is the same as honeypot_image_id.
    multiports 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 String
    Honeypot-supported protocols.
    servicePort String
    Honeypot service port.
    template String
    Honeypot configuration parameter template.
    honeypotImageDisplayName string
    The name of the honeypot image display.
    honeypotImageId string
    The image ID of the honeypot.
    honeypotImageName string
    Honeypot mirror name.
    honeypotImageType string
    Honeypot mirror type.
    honeypotImageVersion string
    Honeypot Mirror version.
    id string
    The image ID of the honeypot.The value is the same as honeypot_image_id.
    multiports 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 string
    Honeypot-supported protocols.
    servicePort string
    Honeypot service port.
    template string
    Honeypot configuration parameter template.
    honeypot_image_display_name str
    The name of the honeypot image display.
    honeypot_image_id str
    The image ID of the honeypot.
    honeypot_image_name str
    Honeypot mirror name.
    honeypot_image_type str
    Honeypot mirror type.
    honeypot_image_version str
    Honeypot Mirror version.
    id str
    The image ID of the honeypot.The value is the same as honeypot_image_id.
    multiports 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 str
    Honeypot-supported protocols.
    service_port str
    Honeypot service port.
    template str
    Honeypot configuration parameter template.
    honeypotImageDisplayName String
    The name of the honeypot image display.
    honeypotImageId String
    The image ID of the honeypot.
    honeypotImageName String
    Honeypot mirror name.
    honeypotImageType String
    Honeypot mirror type.
    honeypotImageVersion String
    Honeypot Mirror version.
    id String
    The image ID of the honeypot.The value is the same as honeypot_image_id.
    multiports 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 String
    Honeypot-supported protocols.
    servicePort String
    Honeypot service port.
    template 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi