get User Agent Blocking Rule
suspend fun getUserAgentBlockingRule(argument: GetUserAgentBlockingRulePlainArgs): GetUserAgentBlockingRuleResult
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleUserAgentBlockingRule = cloudflare.getUserAgentBlockingRule({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
uaRuleId: "372e67954025e0ba6aaa6d586b9e0b59",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_user_agent_blocking_rule = cloudflare.get_user_agent_blocking_rule(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
ua_rule_id="372e67954025e0ba6aaa6d586b9e0b59")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleUserAgentBlockingRule = Cloudflare.GetUserAgentBlockingRule.Invoke(new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
UaRuleId = "372e67954025e0ba6aaa6d586b9e0b59",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.LookupUserAgentBlockingRule(ctx, &cloudflare.LookupUserAgentBlockingRuleArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
UaRuleId: "372e67954025e0ba6aaa6d586b9e0b59",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetUserAgentBlockingRuleArgs;
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 exampleUserAgentBlockingRule = CloudflareFunctions.getUserAgentBlockingRule(GetUserAgentBlockingRuleArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.uaRuleId("372e67954025e0ba6aaa6d586b9e0b59")
.build());
}
}
Content copied to clipboard
variables:
exampleUserAgentBlockingRule:
fn::invoke:
function: cloudflare:getUserAgentBlockingRule
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
uaRuleId: 372e67954025e0ba6aaa6d586b9e0b59
Content copied to clipboard
Return
A collection of values returned by getUserAgentBlockingRule.
Parameters
argument
A collection of arguments for invoking getUserAgentBlockingRule.
suspend fun getUserAgentBlockingRule(uaRuleId: String, zoneId: String): GetUserAgentBlockingRuleResult
Return
A collection of values returned by getUserAgentBlockingRule.
Parameters
ua Rule Id
The unique identifier of the User Agent Blocking rule.
zone Id
Defines an identifier.
See also
suspend fun getUserAgentBlockingRule(argument: suspend GetUserAgentBlockingRulePlainArgsBuilder.() -> Unit): GetUserAgentBlockingRuleResult
Return
A collection of values returned by getUserAgentBlockingRule.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetUserAgentBlockingRulePlainArgs.