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

alicloud.threatdetection.getWebLockConfigs

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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: [defaultAlicloudThreatDetectionWebLockConfig.id],
});
export const alicloudThreatDetectionWebLockConfigExampleId = _default.then(_default => _default.configs?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.threatdetection.get_web_lock_configs(ids=[default_alicloud_threat_detection_web_lock_config["id"]])
pulumi.export("alicloudThreatDetectionWebLockConfigExampleId", default.configs[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.GetWebLockConfigs(ctx, &threatdetection.GetWebLockConfigsArgs{
Ids: interface{}{
defaultAlicloudThreatDetectionWebLockConfig.Id,
},
}, nil);
if err != nil {
return err
}
ctx.Export("alicloudThreatDetectionWebLockConfigExampleId", _default.Configs[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.GetWebLockConfigs.Invoke(new()
    {
        Ids = new[]
        {
            defaultAlicloudThreatDetectionWebLockConfig.Id,
        },
    });

    return new Dictionary<string, object?>
    {
        ["alicloudThreatDetectionWebLockConfigExampleId"] = @default.Apply(@default => @default.Apply(getWebLockConfigsResult => getWebLockConfigsResult.Configs[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.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(defaultAlicloudThreatDetectionWebLockConfig.id())
            .build());

        ctx.export("alicloudThreatDetectionWebLockConfigExampleId", default_.configs()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:threatdetection:getWebLockConfigs
      arguments:
        ids:
          - ${defaultAlicloudThreatDetectionWebLockConfig.id}
outputs:
  alicloudThreatDetectionWebLockConfigExampleId: ${default.configs[0].id}
Copy

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>
Copy
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]
Copy
func GetWebLockConfigs(ctx *Context, args *GetWebLockConfigsArgs, opts ...InvokeOption) (*GetWebLockConfigsResult, error)
func GetWebLockConfigsOutput(ctx *Context, args *GetWebLockConfigsOutputArgs, opts ...InvokeOption) GetWebLockConfigsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetWebLockConfigsResult> getWebLockConfigs(GetWebLockConfigsArgs args, InvokeOptions options)
public static Output<GetWebLockConfigsResult> getWebLockConfigs(GetWebLockConfigsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:threatdetection/getWebLockConfigs:getWebLockConfigs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of Web Lock Config IDs.
Lang Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
PageSize int
Remark Changes to this property will trigger replacement. string
The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
SourceIp Changes to this property will trigger replacement. string
The source IP address of the request.
Status Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
PageSize int
Remark Changes to this property will trigger replacement. string
The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
SourceIp Changes to this property will trigger replacement. string
The source IP address of the request.
Status Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Integer
pageSize Integer
remark Changes to this property will trigger replacement. String
The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
sourceIp Changes to this property will trigger replacement. String
The source IP address of the request.
status Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. number
pageSize number
remark Changes to this property will trigger replacement. string
The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
sourceIp Changes to this property will trigger replacement. string
The source IP address of the request.
status Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
page_size int
remark Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The source IP address of the request.
status Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Number
pageSize Number
remark Changes to this property will trigger replacement. String
The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.
sourceIp Changes to this property will trigger replacement. String
The source IP address of the request.
status Changes to this property will trigger replacement. 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 This property is required. string
The prevention mode.
Dir This property is required. string
The directory that has web tamper proofing enabled.
ExclusiveDir This property is required. string
The directory that has web tamper proofing disabled.
ExclusiveFile This property is required. string
The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
ExclusiveFileType This property is required. 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 This property is required. string
The ID of the resource.
InclusiveFileType This property is required. 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 This property is required. string
The local path to the backup files of the protected directory.
Mode This property is required. string
The protection mode of web tamper proofing.
Uuid This property is required. string
The UUID of the server that has web tamper proofing enabled.
DefenceMode This property is required. string
The prevention mode.
Dir This property is required. string
The directory that has web tamper proofing enabled.
ExclusiveDir This property is required. string
The directory that has web tamper proofing disabled.
ExclusiveFile This property is required. string
The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
ExclusiveFileType This property is required. 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 This property is required. string
The ID of the resource.
InclusiveFileType This property is required. 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 This property is required. string
The local path to the backup files of the protected directory.
Mode This property is required. string
The protection mode of web tamper proofing.
Uuid This property is required. string
The UUID of the server that has web tamper proofing enabled.
defenceMode This property is required. String
The prevention mode.
dir This property is required. String
The directory that has web tamper proofing enabled.
exclusiveDir This property is required. String
The directory that has web tamper proofing disabled.
exclusiveFile This property is required. String
The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
exclusiveFileType This property is required. 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 This property is required. String
The ID of the resource.
inclusiveFileType This property is required. 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 This property is required. String
The local path to the backup files of the protected directory.
mode This property is required. String
The protection mode of web tamper proofing.
uuid This property is required. String
The UUID of the server that has web tamper proofing enabled.
defenceMode This property is required. string
The prevention mode.
dir This property is required. string
The directory that has web tamper proofing enabled.
exclusiveDir This property is required. string
The directory that has web tamper proofing disabled.
exclusiveFile This property is required. string
The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
exclusiveFileType This property is required. 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 This property is required. string
The ID of the resource.
inclusiveFileType This property is required. 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 This property is required. string
The local path to the backup files of the protected directory.
mode This property is required. string
The protection mode of web tamper proofing.
uuid This property is required. string
The UUID of the server that has web tamper proofing enabled.
defence_mode This property is required. str
The prevention mode.
dir This property is required. str
The directory that has web tamper proofing enabled.
exclusive_dir This property is required. str
The directory that has web tamper proofing disabled.
exclusive_file This property is required. str
The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
exclusive_file_type This property is required. 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 This property is required. str
The ID of the resource.
inclusive_file_type This property is required. 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 This property is required. str
The local path to the backup files of the protected directory.
mode This property is required. str
The protection mode of web tamper proofing.
uuid This property is required. str
The UUID of the server that has web tamper proofing enabled.
defenceMode This property is required. String
The prevention mode.
dir This property is required. String
The directory that has web tamper proofing enabled.
exclusiveDir This property is required. String
The directory that has web tamper proofing disabled.
exclusiveFile This property is required. String
The file that has web tamper proofing disabled. Note: If the value of mode is blacklist, this parameter is returned.
exclusiveFileType This property is required. 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 This property is required. String
The ID of the resource.
inclusiveFileType This property is required. 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 This property is required. String
The local path to the backup files of the protected directory.
mode This property is required. String
The protection mode of web tamper proofing.
uuid This property is required. 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.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi