1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. threatdetection
  5. getWebLockConfigs
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.threatdetection.getWebLockConfigs

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    This data source provides Threat Detection Web Lock Config available to the user.What is Web Lock Config

    NOTE: Available since v1.195.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.threatdetection.getWebLockConfigs({
        ids: [alicloud_threat_detection_web_lock_config["default"].id],
    });
    export const alicloudThreatDetectionWebLockConfigExampleId = _default.then(_default => _default.configs?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.threatdetection.get_web_lock_configs(ids=[alicloud_threat_detection_web_lock_config["default"]["id"]])
    pulumi.export("alicloudThreatDetectionWebLockConfigExampleId", default.configs[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.GetWebLockConfigs(ctx, &threatdetection.GetWebLockConfigsArgs{
    Ids: interface{}{
    alicloud_threat_detection_web_lock_config.Default.Id,
    },
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("alicloudThreatDetectionWebLockConfigExampleId", _default.Configs[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.GetWebLockConfigs.Invoke(new()
        {
            Ids = new[]
            {
                alicloud_threat_detection_web_lock_config.Default.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudThreatDetectionWebLockConfigExampleId"] = @default.Apply(@default => @default.Apply(getWebLockConfigsResult => getWebLockConfigsResult.Configs[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.GetWebLockConfigsArgs;
    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.getWebLockConfigs(GetWebLockConfigsArgs.builder()
                .ids(alicloud_threat_detection_web_lock_config.default().id())
                .build());
    
            ctx.export("alicloudThreatDetectionWebLockConfigExampleId", default_.configs()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:threatdetection:getWebLockConfigs
          Arguments:
            ids:
              - ${alicloud_threat_detection_web_lock_config.default.id}
    outputs:
      alicloudThreatDetectionWebLockConfigExampleId: ${default.configs[0].id}
    

    Using getWebLockConfigs

    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 getWebLockConfigs(args: GetWebLockConfigsArgs, opts?: InvokeOptions): Promise<GetWebLockConfigsResult>
    function getWebLockConfigsOutput(args: GetWebLockConfigsOutputArgs, opts?: InvokeOptions): Output<GetWebLockConfigsResult>
    def get_web_lock_configs(ids: Optional[Sequence[str]] = None,
                             lang: Optional[str] = None,
                             output_file: Optional[str] = None,
                             page_number: Optional[int] = None,
                             page_size: Optional[int] = None,
                             remark: Optional[str] = None,
                             source_ip: Optional[str] = None,
                             status: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetWebLockConfigsResult
    def get_web_lock_configs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                             lang: Optional[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,
                             remark: Optional[pulumi.Input[str]] = None,
                             source_ip: Optional[pulumi.Input[str]] = None,
                             status: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetWebLockConfigsResult]
    func GetWebLockConfigs(ctx *Context, args *GetWebLockConfigsArgs, opts ...InvokeOption) (*GetWebLockConfigsResult, error)
    func GetWebLockConfigsOutput(ctx *Context, args *GetWebLockConfigsOutputArgs, opts ...InvokeOption) GetWebLockConfigsResultOutput

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

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

    The following arguments are supported:

    Ids List<string>
    A list of Web Lock Config IDs.
    Lang string
    The language of the content within the request and the response. Valid values: zh, en.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Remark string
    The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
    SourceIp string
    The source IP address of the request.
    Status string
    The protection status of the server that you want to query. Valid values: on, off.
    Ids []string
    A list of Web Lock Config IDs.
    Lang string
    The language of the content within the request and the response. Valid values: zh, en.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Remark string
    The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
    SourceIp string
    The source IP address of the request.
    Status string
    The protection status of the server that you want to query. Valid values: on, off.
    ids List<String>
    A list of Web Lock Config IDs.
    lang String
    The language of the content within the request and the response. Valid values: zh, en.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    remark String
    The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
    sourceIp String
    The source IP address of the request.
    status String
    The protection status of the server that you want to query. Valid values: on, off.
    ids string[]
    A list of Web Lock Config IDs.
    lang string
    The language of the content within the request and the response. Valid values: zh, en.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    remark string
    The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
    sourceIp string
    The source IP address of the request.
    status string
    The protection status of the server that you want to query. Valid values: on, off.
    ids Sequence[str]
    A list of Web Lock Config IDs.
    lang str
    The language of the content within the request and the response. Valid values: zh, en.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    remark str
    The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
    source_ip str
    The source IP address of the request.
    status str
    The protection status of the server that you want to query. Valid values: on, off.
    ids List<String>
    A list of Web Lock Config IDs.
    lang String
    The language of the content within the request and the response. Valid values: zh, en.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    remark String
    The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
    sourceIp String
    The source IP address of the request.
    status String
    The protection status of the server that you want to query. Valid values: on, off.

    getWebLockConfigs Result

    The following output properties are available:

    Configs List<Pulumi.AliCloud.ThreatDetection.Outputs.GetWebLockConfigsConfig>
    A list of Web Lock Config Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Web Lock Config IDs.
    Lang string
    OutputFile string
    PageNumber int
    PageSize int
    Remark string
    SourceIp string
    Status string
    Configs []GetWebLockConfigsConfig
    A list of Web Lock Config Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Web Lock Config IDs.
    Lang string
    OutputFile string
    PageNumber int
    PageSize int
    Remark string
    SourceIp string
    Status string
    configs List<GetWebLockConfigsConfig>
    A list of Web Lock Config Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Web Lock Config IDs.
    lang String
    outputFile String
    pageNumber Integer
    pageSize Integer
    remark String
    sourceIp String
    status String
    configs GetWebLockConfigsConfig[]
    A list of Web Lock Config Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Web Lock Config IDs.
    lang string
    outputFile string
    pageNumber number
    pageSize number
    remark string
    sourceIp string
    status string
    configs Sequence[GetWebLockConfigsConfig]
    A list of Web Lock Config Entries. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Web Lock Config IDs.
    lang str
    output_file str
    page_number int
    page_size int
    remark str
    source_ip str
    status str
    configs List<Property Map>
    A list of Web Lock Config Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Web Lock Config IDs.
    lang String
    outputFile String
    pageNumber Number
    pageSize Number
    remark String
    sourceIp String
    status String

    Supporting Types

    GetWebLockConfigsConfig

    DefenceMode string
    The prevention mode.
    Dir string
    The directory that has web tamper proofing enabled.
    ExclusiveDir string
    The directory that has web tamper proofing disabled.
    ExclusiveFile string
    The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    ExclusiveFileType string
    The type of the file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    Id string
    The ID of the resource.
    InclusiveFileType string
    The type of the file that has web tamper proofing enabled. Note: If the value of mode is whitelist, this parameter is returned.
    LocalBackupDir string
    The local path to the backup files of the protected directory.
    Mode string
    The protection mode of web tamper proofing.
    Uuid string
    The UUID of the server that has web tamper proofing enabled.
    DefenceMode string
    The prevention mode.
    Dir string
    The directory that has web tamper proofing enabled.
    ExclusiveDir string
    The directory that has web tamper proofing disabled.
    ExclusiveFile string
    The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    ExclusiveFileType string
    The type of the file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    Id string
    The ID of the resource.
    InclusiveFileType string
    The type of the file that has web tamper proofing enabled. Note: If the value of mode is whitelist, this parameter is returned.
    LocalBackupDir string
    The local path to the backup files of the protected directory.
    Mode string
    The protection mode of web tamper proofing.
    Uuid string
    The UUID of the server that has web tamper proofing enabled.
    defenceMode String
    The prevention mode.
    dir String
    The directory that has web tamper proofing enabled.
    exclusiveDir String
    The directory that has web tamper proofing disabled.
    exclusiveFile String
    The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    exclusiveFileType String
    The type of the file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    id String
    The ID of the resource.
    inclusiveFileType String
    The type of the file that has web tamper proofing enabled. Note: If the value of mode is whitelist, this parameter is returned.
    localBackupDir String
    The local path to the backup files of the protected directory.
    mode String
    The protection mode of web tamper proofing.
    uuid String
    The UUID of the server that has web tamper proofing enabled.
    defenceMode string
    The prevention mode.
    dir string
    The directory that has web tamper proofing enabled.
    exclusiveDir string
    The directory that has web tamper proofing disabled.
    exclusiveFile string
    The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    exclusiveFileType string
    The type of the file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    id string
    The ID of the resource.
    inclusiveFileType string
    The type of the file that has web tamper proofing enabled. Note: If the value of mode is whitelist, this parameter is returned.
    localBackupDir string
    The local path to the backup files of the protected directory.
    mode string
    The protection mode of web tamper proofing.
    uuid string
    The UUID of the server that has web tamper proofing enabled.
    defence_mode str
    The prevention mode.
    dir str
    The directory that has web tamper proofing enabled.
    exclusive_dir str
    The directory that has web tamper proofing disabled.
    exclusive_file str
    The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    exclusive_file_type str
    The type of the file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    id str
    The ID of the resource.
    inclusive_file_type str
    The type of the file that has web tamper proofing enabled. Note: If the value of mode is whitelist, this parameter is returned.
    local_backup_dir str
    The local path to the backup files of the protected directory.
    mode str
    The protection mode of web tamper proofing.
    uuid str
    The UUID of the server that has web tamper proofing enabled.
    defenceMode String
    The prevention mode.
    dir String
    The directory that has web tamper proofing enabled.
    exclusiveDir String
    The directory that has web tamper proofing disabled.
    exclusiveFile String
    The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    exclusiveFileType String
    The type of the file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
    id String
    The ID of the resource.
    inclusiveFileType String
    The type of the file that has web tamper proofing enabled. Note: If the value of mode is whitelist, this parameter is returned.
    localBackupDir String
    The local path to the backup files of the protected directory.
    mode String
    The protection mode of web tamper proofing.
    uuid String
    The UUID of the server that has web tamper proofing enabled.

    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi