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

alicloud.threatdetection.getVulWhitelists

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 Vul Whitelists of the current Alibaba Cloud user.

    NOTE: Available in v1.195.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.threatdetection.getVulWhitelists({
        ids: ["example_id"],
    });
    export const alicloudThreatDetectionVulWhitelistExampleId = _default.then(_default => _default.whitelists?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.threatdetection.get_vul_whitelists(ids=["example_id"])
    pulumi.export("alicloudThreatDetectionVulWhitelistExampleId", default.whitelists[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.GetVulWhitelists(ctx, &threatdetection.GetVulWhitelistsArgs{
    			Ids: []string{
    				"example_id",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("alicloudThreatDetectionVulWhitelistExampleId", _default.Whitelists[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.GetVulWhitelists.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudThreatDetectionVulWhitelistExampleId"] = @default.Apply(@default => @default.Apply(getVulWhitelistsResult => getVulWhitelistsResult.Whitelists[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.GetVulWhitelistsArgs;
    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.getVulWhitelists(GetVulWhitelistsArgs.builder()
                .ids("example_id")
                .build());
    
            ctx.export("alicloudThreatDetectionVulWhitelistExampleId", default_.whitelists()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:threatdetection:getVulWhitelists
          Arguments:
            ids:
              - example_id
    outputs:
      alicloudThreatDetectionVulWhitelistExampleId: ${default.whitelists[0].id}
    

    Using getVulWhitelists

    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 getVulWhitelists(args: GetVulWhitelistsArgs, opts?: InvokeOptions): Promise<GetVulWhitelistsResult>
    function getVulWhitelistsOutput(args: GetVulWhitelistsOutputArgs, opts?: InvokeOptions): Output<GetVulWhitelistsResult>
    def get_vul_whitelists(ids: Optional[Sequence[str]] = None,
                           output_file: Optional[str] = None,
                           page_number: Optional[int] = None,
                           page_size: Optional[int] = None,
                           opts: Optional[InvokeOptions] = None) -> GetVulWhitelistsResult
    def get_vul_whitelists_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           page_number: Optional[pulumi.Input[int]] = None,
                           page_size: Optional[pulumi.Input[int]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetVulWhitelistsResult]
    func GetVulWhitelists(ctx *Context, args *GetVulWhitelistsArgs, opts ...InvokeOption) (*GetVulWhitelistsResult, error)
    func GetVulWhitelistsOutput(ctx *Context, args *GetVulWhitelistsOutputArgs, opts ...InvokeOption) GetVulWhitelistsResultOutput

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

    public static class GetVulWhitelists 
    {
        public static Task<GetVulWhitelistsResult> InvokeAsync(GetVulWhitelistsArgs args, InvokeOptions? opts = null)
        public static Output<GetVulWhitelistsResult> Invoke(GetVulWhitelistsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVulWhitelistsResult> getVulWhitelists(GetVulWhitelistsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:threatdetection/getVulWhitelists:getVulWhitelists
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Threat Detection Vul Whitelist IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Ids []string
    A list of Threat Detection Vul Whitelist IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    ids List<String>
    A list of Threat Detection Vul Whitelist IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    ids string[]
    A list of Threat Detection Vul Whitelist IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    ids Sequence[str]
    A list of Threat Detection Vul Whitelist IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    ids List<String>
    A list of Threat Detection Vul Whitelist IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number

    getVulWhitelists Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Whitelists List<Pulumi.AliCloud.ThreatDetection.Outputs.GetVulWhitelistsWhitelist>
    A list of Vul Whitelist Entries. Each element contains the following attributes:
    OutputFile string
    PageNumber int
    PageSize int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Whitelists []GetVulWhitelistsWhitelist
    A list of Vul Whitelist Entries. Each element contains the following attributes:
    OutputFile string
    PageNumber int
    PageSize int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    whitelists List<GetVulWhitelistsWhitelist>
    A list of Vul Whitelist Entries. Each element contains the following attributes:
    outputFile String
    pageNumber Integer
    pageSize Integer
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    whitelists GetVulWhitelistsWhitelist[]
    A list of Vul Whitelist Entries. Each element contains the following attributes:
    outputFile string
    pageNumber number
    pageSize number
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    whitelists Sequence[GetVulWhitelistsWhitelist]
    A list of Vul Whitelist Entries. Each element contains the following attributes:
    output_file str
    page_number int
    page_size int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    whitelists List<Property Map>
    A list of Vul Whitelist Entries. Each element contains the following attributes:
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetVulWhitelistsWhitelist

    Id string
    The ID of the Vul Whitelist.
    Reason string
    Reason for adding whitelist.
    TargetInfo string
    Set the effective range of the whitelist.
    VulWhitelistId string
    The ID of the Vul Whitelist.
    Whitelist string
    Information about the vulnerability to be added to the whitelist.
    Id string
    The ID of the Vul Whitelist.
    Reason string
    Reason for adding whitelist.
    TargetInfo string
    Set the effective range of the whitelist.
    VulWhitelistId string
    The ID of the Vul Whitelist.
    Whitelist string
    Information about the vulnerability to be added to the whitelist.
    id String
    The ID of the Vul Whitelist.
    reason String
    Reason for adding whitelist.
    targetInfo String
    Set the effective range of the whitelist.
    vulWhitelistId String
    The ID of the Vul Whitelist.
    whitelist String
    Information about the vulnerability to be added to the whitelist.
    id string
    The ID of the Vul Whitelist.
    reason string
    Reason for adding whitelist.
    targetInfo string
    Set the effective range of the whitelist.
    vulWhitelistId string
    The ID of the Vul Whitelist.
    whitelist string
    Information about the vulnerability to be added to the whitelist.
    id str
    The ID of the Vul Whitelist.
    reason str
    Reason for adding whitelist.
    target_info str
    Set the effective range of the whitelist.
    vul_whitelist_id str
    The ID of the Vul Whitelist.
    whitelist str
    Information about the vulnerability to be added to the whitelist.
    id String
    The ID of the Vul Whitelist.
    reason String
    Reason for adding whitelist.
    targetInfo String
    Set the effective range of the whitelist.
    vulWhitelistId String
    The ID of the Vul Whitelist.
    whitelist String
    Information about the vulnerability to be added to the whitelist.

    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