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 in 1.195.0+
Example Usage
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)),
};
});
Coming soon!
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());
}
}
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)
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);
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
.- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size 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.
- Source
Ip 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
.- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size 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.
- Source
Ip 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
.- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Integer - page
Size 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.
- source
Ip 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
.- output
File string File name where to save data source results (after running
pulumi preview
).- page
Number number - page
Size 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.
- source
Ip 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
.- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Number - page
Size 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.
- source
Ip 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.
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 string The prevention mode.
- Dir string
The directory that has web tamper proofing enabled.
- Exclusive
Dir string The directory that has web tamper proofing disabled.
- Exclusive
File string The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- Exclusive
File stringType The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- Id string
The ID of the resource.
- Inclusive
File stringType The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned.- Local
Backup stringDir 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 string The prevention mode.
- Dir string
The directory that has web tamper proofing enabled.
- Exclusive
Dir string The directory that has web tamper proofing disabled.
- Exclusive
File string The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- Exclusive
File stringType The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- Id string
The ID of the resource.
- Inclusive
File stringType The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned.- Local
Backup stringDir 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 String The prevention mode.
- dir String
The directory that has web tamper proofing enabled.
- exclusive
Dir String The directory that has web tamper proofing disabled.
- exclusive
File String The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- exclusive
File StringType The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- id String
The ID of the resource.
- inclusive
File StringType The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned.- local
Backup StringDir 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 string The prevention mode.
- dir string
The directory that has web tamper proofing enabled.
- exclusive
Dir string The directory that has web tamper proofing disabled.
- exclusive
File string The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- exclusive
File stringType The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- id string
The ID of the resource.
- inclusive
File stringType The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned.- local
Backup stringDir 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
isblacklist
, this parameter is returned.- exclusive_
file_ strtype The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- id str
The ID of the resource.
- inclusive_
file_ strtype The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned.- local_
backup_ strdir 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.
- defence
Mode String The prevention mode.
- dir String
The directory that has web tamper proofing enabled.
- exclusive
Dir String The directory that has web tamper proofing disabled.
- exclusive
File String The file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- exclusive
File StringType The type of the file that has web tamper proofing disabled. Note: If the value of
mode
isblacklist
, this parameter is returned.- id String
The ID of the resource.
- inclusive
File StringType The type of the file that has web tamper proofing enabled. Note: If the value of
mode
iswhitelist
, this parameter is returned.- local
Backup StringDir 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.