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

f5bigip.ssl.getWafPbSuggestions

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.ssl.getWafPbSuggestions) to export PB suggestions from an existing WAF policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const PBWAF1 = f5bigip.ssl.getWafPbSuggestions({
        policyName: "protect_me_policy",
        partition: "Common",
        minimumLearningScore: 20,
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    pbwaf1 = f5bigip.ssl.get_waf_pb_suggestions(policy_name="protect_me_policy",
        partition="Common",
        minimum_learning_score=20)
    
    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.GetWafPbSuggestions(ctx, &ssl.GetWafPbSuggestionsArgs{
    			PolicyName:           "protect_me_policy",
    			Partition:            "Common",
    			MinimumLearningScore: 20,
    		}, 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 PBWAF1 = F5BigIP.Ssl.GetWafPbSuggestions.Invoke(new()
        {
            PolicyName = "protect_me_policy",
            Partition = "Common",
            MinimumLearningScore = 20,
        });
    
    });
    
    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.GetWafPbSuggestionsArgs;
    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 PBWAF1 = SslFunctions.getWafPbSuggestions(GetWafPbSuggestionsArgs.builder()
                .policyName("protect_me_policy")
                .partition("Common")
                .minimumLearningScore(20)
                .build());
    
        }
    }
    
    variables:
      PBWAF1:
        fn::invoke:
          Function: f5bigip:ssl:getWafPbSuggestions
          Arguments:
            policyName: protect_me_policy
            partition: Common
            minimumLearningScore: 20
    

    Using getWafPbSuggestions

    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 getWafPbSuggestions(args: GetWafPbSuggestionsArgs, opts?: InvokeOptions): Promise<GetWafPbSuggestionsResult>
    function getWafPbSuggestionsOutput(args: GetWafPbSuggestionsOutputArgs, opts?: InvokeOptions): Output<GetWafPbSuggestionsResult>
    def get_waf_pb_suggestions(minimum_learning_score: Optional[int] = None,
                               partition: Optional[str] = None,
                               policy_id: Optional[str] = None,
                               policy_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetWafPbSuggestionsResult
    def get_waf_pb_suggestions_output(minimum_learning_score: Optional[pulumi.Input[int]] = None,
                               partition: Optional[pulumi.Input[str]] = None,
                               policy_id: Optional[pulumi.Input[str]] = None,
                               policy_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetWafPbSuggestionsResult]
    func GetWafPbSuggestions(ctx *Context, args *GetWafPbSuggestionsArgs, opts ...InvokeOption) (*GetWafPbSuggestionsResult, error)
    func GetWafPbSuggestionsOutput(ctx *Context, args *GetWafPbSuggestionsOutputArgs, opts ...InvokeOption) GetWafPbSuggestionsResultOutput

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

    public static class GetWafPbSuggestions 
    {
        public static Task<GetWafPbSuggestionsResult> InvokeAsync(GetWafPbSuggestionsArgs args, InvokeOptions? opts = null)
        public static Output<GetWafPbSuggestionsResult> Invoke(GetWafPbSuggestionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWafPbSuggestionsResult> getWafPbSuggestions(GetWafPbSuggestionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: f5bigip:ssl/getWafPbSuggestions:getWafPbSuggestions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MinimumLearningScore int
    The minimum learning score for suggestions.
    Partition string
    Partition on which WAF policy is located.
    PolicyName string
    WAF policy name from which PB suggestions should be exported.
    PolicyId string
    System generated id of the WAF policy
    MinimumLearningScore int
    The minimum learning score for suggestions.
    Partition string
    Partition on which WAF policy is located.
    PolicyName string
    WAF policy name from which PB suggestions should be exported.
    PolicyId string
    System generated id of the WAF policy
    minimumLearningScore Integer
    The minimum learning score for suggestions.
    partition String
    Partition on which WAF policy is located.
    policyName String
    WAF policy name from which PB suggestions should be exported.
    policyId String
    System generated id of the WAF policy
    minimumLearningScore number
    The minimum learning score for suggestions.
    partition string
    Partition on which WAF policy is located.
    policyName string
    WAF policy name from which PB suggestions should be exported.
    policyId string
    System generated id of the WAF policy
    minimum_learning_score int
    The minimum learning score for suggestions.
    partition str
    Partition on which WAF policy is located.
    policy_name str
    WAF policy name from which PB suggestions should be exported.
    policy_id str
    System generated id of the WAF policy
    minimumLearningScore Number
    The minimum learning score for suggestions.
    partition String
    Partition on which WAF policy is located.
    policyName String
    WAF policy name from which PB suggestions should be exported.
    policyId String
    System generated id of the WAF policy

    getWafPbSuggestions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    Json string representing exported PB suggestions ready to be used in WAF policy declaration
    MinimumLearningScore int
    Partition string
    PolicyId string
    System generated id of the WAF policy
    PolicyName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    Json string representing exported PB suggestions ready to be used in WAF policy declaration
    MinimumLearningScore int
    Partition string
    PolicyId string
    System generated id of the WAF policy
    PolicyName string
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    Json string representing exported PB suggestions ready to be used in WAF policy declaration
    minimumLearningScore Integer
    partition String
    policyId String
    System generated id of the WAF policy
    policyName String
    id string
    The provider-assigned unique ID for this managed resource.
    json string
    Json string representing exported PB suggestions ready to be used in WAF policy declaration
    minimumLearningScore number
    partition string
    policyId string
    System generated id of the WAF policy
    policyName string
    id str
    The provider-assigned unique ID for this managed resource.
    json str
    Json string representing exported PB suggestions ready to be used in WAF policy declaration
    minimum_learning_score int
    partition str
    policy_id str
    System generated id of the WAF policy
    policy_name str
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    Json string representing exported PB suggestions ready to be used in WAF policy declaration
    minimumLearningScore Number
    partition String
    policyId String
    System generated id of the WAF policy
    policyName String

    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