getWebLockConfigs

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)
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&#46;Apply(@default => @default&#46;Apply(getWebLockConfigsResult => getWebLockConfigsResult&#46;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
})
}
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}

Return

A collection of values returned by getWebLockConfigs.

Parameters

argument

A collection of arguments for invoking getWebLockConfigs.


suspend fun getWebLockConfigs(ids: List<String>? = null, lang: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, remark: String? = null, sourceIp: String? = null, status: String? = null): GetWebLockConfigsResult

Return

A collection of values returned by getWebLockConfigs.

Parameters

ids

A list of Web Lock Config IDs.

lang

The language of the content within the request and the response. Valid values: zh, en.

outputFile

File name where to save data source results (after running pulumi preview).

pageNumber
pageSize
remark

The string that allows you to search for servers in fuzzy match mode. You can enter a server name or IP address.

sourceIp

The source IP address of the request.

status

The protection status of the server that you want to query. Valid values: on, off.

See also


Return

A collection of values returned by getWebLockConfigs.

Parameters

argument

Builder for com.pulumi.alicloud.threatdetection.kotlin.inputs.GetWebLockConfigsPlainArgs.

See also