1. Packages
  2. Bigip Provider
  3. API Docs
  4. ssl
  5. getWafPolicy
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

f5bigip.ssl.getWafPolicy

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 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",
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    existpolicy = f5bigip.ssl.get_waf_policy(policy_id="xxxxx")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      existpolicy:
        fn::invoke:
          Function: f5bigip:ssl:getWafPolicy
          Arguments:
            policyId: xxxxx
    

    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>
    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]
    func GetWafPolicy(ctx *Context, args *GetWafPolicyArgs, opts ...InvokeOption) (*GetWafPolicyResult, error)
    func GetWafPolicyOutput(ctx *Context, args *GetWafPolicyOutputArgs, opts ...InvokeOption) GetWafPolicyResultOutput

    > 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)
    }
    public static CompletableFuture<GetWafPolicyResult> getWafPolicy(GetWafPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: f5bigip:ssl/getWafPolicy:getWafPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PolicyId string
    ID of the WAF policy deployed in the BIG-IP.
    PolicyJson string
    Exported WAF policy JSON
    PolicyId string
    ID of the WAF policy deployed in the BIG-IP.
    PolicyJson string
    Exported WAF policy JSON
    policyId String
    ID of the WAF policy deployed in the BIG-IP.
    policyJson String
    Exported WAF policy JSON
    policyId string
    ID of the WAF policy deployed in the BIG-IP.
    policyJson string
    Exported WAF policy JSON
    policy_id str
    ID of the WAF policy deployed in the BIG-IP.
    policy_json str
    Exported WAF policy JSON
    policyId 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.
    f5bigip logo
    f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi