get Zero Trust Gateway Policy
suspend fun getZeroTrustGatewayPolicy(argument: GetZeroTrustGatewayPolicyPlainArgs): GetZeroTrustGatewayPolicyResult
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustGatewayPolicy = cloudflare.getZeroTrustGatewayPolicy({
accountId: "699d98642c564d2e855e9661899b7252",
ruleId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_gateway_policy = cloudflare.get_zero_trust_gateway_policy(account_id="699d98642c564d2e855e9661899b7252",
rule_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustGatewayPolicy = Cloudflare.GetZeroTrustGatewayPolicy.Invoke(new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
RuleId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
});
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.LookupZeroTrustGatewayPolicy(ctx, &cloudflare.LookupZeroTrustGatewayPolicyArgs{
AccountId: "699d98642c564d2e855e9661899b7252",
RuleId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
}, 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.GetZeroTrustGatewayPolicyArgs;
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 exampleZeroTrustGatewayPolicy = CloudflareFunctions.getZeroTrustGatewayPolicy(GetZeroTrustGatewayPolicyArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.ruleId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.build());
}
}
Content copied to clipboard
variables:
exampleZeroTrustGatewayPolicy:
fn::invoke:
function: cloudflare:getZeroTrustGatewayPolicy
arguments:
accountId: 699d98642c564d2e855e9661899b7252
ruleId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
Content copied to clipboard
Return
A collection of values returned by getZeroTrustGatewayPolicy.
Parameters
argument
A collection of arguments for invoking getZeroTrustGatewayPolicy.
suspend fun getZeroTrustGatewayPolicy(accountId: String, ruleId: String? = null): GetZeroTrustGatewayPolicyResult
Return
A collection of values returned by getZeroTrustGatewayPolicy.
Parameters
account Id
rule Id
The API resource UUID.
See also
suspend fun getZeroTrustGatewayPolicy(argument: suspend GetZeroTrustGatewayPolicyPlainArgsBuilder.() -> Unit): GetZeroTrustGatewayPolicyResult
Return
A collection of values returned by getZeroTrustGatewayPolicy.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetZeroTrustGatewayPolicyPlainArgs.