1. Packages
  2. F5bigip Provider
  3. API Docs
  4. ssl
  5. getWafPolicy
f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi

f5bigip.ssl.getWafPolicy

Explore with Pulumi AI

f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi

Use this data source (f5bigip.WafPolicy) to get the details of exist WAF policy BIG-IP.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";

const existpolicy = f5bigip.ssl.getWafPolicy({
    policyId: "xxxxx",
});
Copy
import pulumi
import pulumi_f5bigip as f5bigip

existpolicy = f5bigip.ssl.get_waf_policy(policy_id="xxxxx")
Copy
package main

import (
	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ssl"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ssl.GetWafPolicy(ctx, &ssl.GetWafPolicyArgs{
			PolicyId: "xxxxx",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;

return await Deployment.RunAsync(() => 
{
    var existpolicy = F5BigIP.Ssl.GetWafPolicy.Invoke(new()
    {
        PolicyId = "xxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.ssl.SslFunctions;
import com.pulumi.f5bigip.ssl.inputs.GetWafPolicyArgs;
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 existpolicy = SslFunctions.getWafPolicy(GetWafPolicyArgs.builder()
            .policyId("xxxxx")
            .build());

    }
}
Copy
variables:
  existpolicy:
    fn::invoke:
      function: f5bigip:ssl:getWafPolicy
      arguments:
        policyId: xxxxx
Copy

Using getWafPolicy

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 getWafPolicy(args: GetWafPolicyArgs, opts?: InvokeOptions): Promise<GetWafPolicyResult>
function getWafPolicyOutput(args: GetWafPolicyOutputArgs, opts?: InvokeOptions): Output<GetWafPolicyResult>
Copy
def get_waf_policy(policy_id: Optional[str] = None,
                   policy_json: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetWafPolicyResult
def get_waf_policy_output(policy_id: Optional[pulumi.Input[str]] = None,
                   policy_json: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetWafPolicyResult]
Copy
func GetWafPolicy(ctx *Context, args *GetWafPolicyArgs, opts ...InvokeOption) (*GetWafPolicyResult, error)
func GetWafPolicyOutput(ctx *Context, args *GetWafPolicyOutputArgs, opts ...InvokeOption) GetWafPolicyResultOutput
Copy

> Note: This function is named GetWafPolicy in the Go SDK.

public static class GetWafPolicy 
{
    public static Task<GetWafPolicyResult> InvokeAsync(GetWafPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetWafPolicyResult> Invoke(GetWafPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWafPolicyResult> getWafPolicy(GetWafPolicyArgs args, InvokeOptions options)
public static Output<GetWafPolicyResult> getWafPolicy(GetWafPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: f5bigip:ssl/getWafPolicy:getWafPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyId This property is required. string
ID of the WAF policy deployed in the BIG-IP.
PolicyJson string
Exported WAF policy JSON
PolicyId This property is required. string
ID of the WAF policy deployed in the BIG-IP.
PolicyJson string
Exported WAF policy JSON
policyId This property is required. String
ID of the WAF policy deployed in the BIG-IP.
policyJson String
Exported WAF policy JSON
policyId This property is required. string
ID of the WAF policy deployed in the BIG-IP.
policyJson string
Exported WAF policy JSON
policy_id This property is required. str
ID of the WAF policy deployed in the BIG-IP.
policy_json str
Exported WAF policy JSON
policyId This property is required. String
ID of the WAF policy deployed in the BIG-IP.
policyJson String
Exported WAF policy JSON

getWafPolicy Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
PolicyId string
PolicyJson string
Exported WAF policy JSON
Id string
The provider-assigned unique ID for this managed resource.
PolicyId string
PolicyJson string
Exported WAF policy JSON
id String
The provider-assigned unique ID for this managed resource.
policyId String
policyJson String
Exported WAF policy JSON
id string
The provider-assigned unique ID for this managed resource.
policyId string
policyJson string
Exported WAF policy JSON
id str
The provider-assigned unique ID for this managed resource.
policy_id str
policy_json str
Exported WAF policy JSON
id String
The provider-assigned unique ID for this managed resource.
policyId String
policyJson String
Exported WAF policy JSON

Package Details

Repository
f5 BIG-IP pulumi/pulumi-f5bigip
License
Apache-2.0
Notes
This Pulumi package is based on the bigip Terraform Provider.
f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi