Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.threatdetection.getWebLockConfigs
Explore with Pulumi AI
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);
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)
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
})
}
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)),
};
});
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());
}
}
variables:
default:
fn::invoke:
function: alicloud:threatdetection:getWebLockConfigs
arguments:
ids:
- ${defaultAlicloudThreatDetectionWebLockConfig.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)
public static Output<GetWebLockConfigsResult> getWebLockConfigs(GetWebLockConfigsArgs args, InvokeOptions options)
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
Changes to this property will trigger replacement.
- The language of the content within the request and the response. Valid values:
zh
,en
. - Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number Changes to this property will trigger replacement.
- Page
Size int - Remark
Changes to this property will trigger replacement.
- 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.
- The source IP address of the request.
- Status
Changes to this property will trigger replacement.
- 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.
- The language of the content within the request and the response. Valid values:
zh
,en
. - Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number Changes to this property will trigger replacement.
- Page
Size int - Remark
Changes to this property will trigger replacement.
- 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.
- The source IP address of the request.
- Status
Changes to this property will trigger replacement.
- 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.
- The language of the content within the request and the response. Valid values:
zh
,en
. - output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Changes to this property will trigger replacement.
- page
Size Integer - remark
Changes to this property will trigger replacement.
- 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.
- The source IP address of the request.
- status
Changes to this property will trigger replacement.
- 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.
- The language of the content within the request and the response. Valid values:
zh
,en
. - output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number Changes to this property will trigger replacement.
- page
Size number - remark
Changes to this property will trigger replacement.
- 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.
- The source IP address of the request.
- status
Changes to this property will trigger replacement.
- 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.
- 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.
- page_
size int - remark
Changes to this property will trigger replacement.
- 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.
- The source IP address of the request.
- status
Changes to this property will trigger replacement.
- 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.
- The language of the content within the request and the response. Valid values:
zh
,en
. - output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Changes to this property will trigger replacement.
- page
Size Number - remark
Changes to this property will trigger replacement.
- 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.
- The source IP address of the request.
- status
Changes to this property will trigger replacement.
- 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.
Ali Cloud. Threat Detection. Outputs. Get Web Lock Configs Config> - 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
- Output
File string - Page
Number int - Page
Size int - Remark string
- Source
Ip string - Status string
- Configs
[]Get
Web Lock Configs Config - 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
- Output
File string - Page
Number int - Page
Size int - Remark string
- Source
Ip string - Status string
- configs
List<Get
Web Lock Configs Config> - 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
- output
File String - page
Number Integer - page
Size Integer - remark String
- source
Ip String - status String
- configs
Get
Web Lock Configs Config[] - 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
- output
File string - page
Number number - page
Size number - remark string
- source
Ip string - status string
- configs
Sequence[Get
Web Lock Configs Config] - 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
- output
File String - page
Number Number - page
Size Number - remark String
- source
Ip String - status String
Supporting Types
GetWebLockConfigsConfig
- Defence
Mode This property is required. string - The prevention mode.
- Dir
This property is required. string - The directory that has web tamper proofing enabled.
- Exclusive
Dir This property is required. string - The directory that has web tamper proofing disabled.
- Exclusive
File This property is required. string - The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - Exclusive
File Type This property is required. string - The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - Id
This property is required. string - The ID of the resource.
- Inclusive
File Type This property is required. string - The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned. - Local
Backup Dir 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. string - The prevention mode.
- Dir
This property is required. string - The directory that has web tamper proofing enabled.
- Exclusive
Dir This property is required. string - The directory that has web tamper proofing disabled.
- Exclusive
File This property is required. string - The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - Exclusive
File Type This property is required. string - The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - Id
This property is required. string - The ID of the resource.
- Inclusive
File Type This property is required. string - The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned. - Local
Backup Dir 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. String - The prevention mode.
- dir
This property is required. String - The directory that has web tamper proofing enabled.
- exclusive
Dir This property is required. String - The directory that has web tamper proofing disabled.
- exclusive
File This property is required. String - The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - exclusive
File Type This property is required. String - The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - id
This property is required. String - The ID of the resource.
- inclusive
File Type This property is required. String - The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned. - local
Backup Dir 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. string - The prevention mode.
- dir
This property is required. string - The directory that has web tamper proofing enabled.
- exclusive
Dir This property is required. string - The directory that has web tamper proofing disabled.
- exclusive
File This property is required. string - The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - exclusive
File Type This property is required. string - The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - id
This property is required. string - The ID of the resource.
- inclusive
File Type This property is required. string - The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned. - local
Backup Dir 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
isblacklist
, 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
isblacklist
, 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
iswhitelist
, 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.
- defence
Mode This property is required. String - The prevention mode.
- dir
This property is required. String - The directory that has web tamper proofing enabled.
- exclusive
Dir This property is required. String - The directory that has web tamper proofing disabled.
- exclusive
File This property is required. String - The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - exclusive
File Type This property is required. String - The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned. - id
This property is required. String - The ID of the resource.
- inclusive
File Type This property is required. String - The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned. - local
Backup Dir 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.