1. Packages
  2. F5 BIG-IP
  3. API Docs
  4. ssl
  5. getWafEntityUrl
f5 BIG-IP v3.17.0 published on Thursday, Mar 28, 2024 by Pulumi

f5bigip.ssl.getWafEntityUrl

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.0 published on Thursday, Mar 28, 2024 by Pulumi

    Use this data source (f5bigip.ssl.getWafPbSuggestions) to create JSON for WAF URL to later use with an existing WAF policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    
    const wAFURL1 = f5bigip.ssl.getWafEntityUrl({
        description: "this is a test",
        methodOverrides: [
            {
                allow: false,
                method: "BCOPY",
            },
            {
                allow: true,
                method: "BDELETE",
            },
        ],
        name: "/foobar",
        performStaging: true,
        protocol: "HTTP",
        signatureOverridesDisables: [
            12345678,
            87654321,
        ],
        type: "explicit",
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    
    w_afurl1 = f5bigip.ssl.get_waf_entity_url(description="this is a test",
        method_overrides=[
            f5bigip.ssl.GetWafEntityUrlMethodOverrideArgs(
                allow=False,
                method="BCOPY",
            ),
            f5bigip.ssl.GetWafEntityUrlMethodOverrideArgs(
                allow=True,
                method="BDELETE",
            ),
        ],
        name="/foobar",
        perform_staging=True,
        protocol="HTTP",
        signature_overrides_disables=[
            12345678,
            87654321,
        ],
        type="explicit")
    
    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.GetWafEntityUrl(ctx, &ssl.GetWafEntityUrlArgs{
    Description: pulumi.StringRef("this is a test"),
    MethodOverrides: []ssl.GetWafEntityUrlMethodOverride{
    {
    Allow: false,
    Method: "BCOPY",
    },
    {
    Allow: true,
    Method: "BDELETE",
    },
    },
    Name: "/foobar",
    PerformStaging: pulumi.BoolRef(true),
    Protocol: pulumi.StringRef("HTTP"),
    SignatureOverridesDisables: interface{}{
    12345678,
    87654321,
    },
    Type: pulumi.StringRef("explicit"),
    }, 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 wAFURL1 = F5BigIP.Ssl.GetWafEntityUrl.Invoke(new()
        {
            Description = "this is a test",
            MethodOverrides = new[]
            {
                new F5BigIP.Ssl.Inputs.GetWafEntityUrlMethodOverrideInputArgs
                {
                    Allow = false,
                    Method = "BCOPY",
                },
                new F5BigIP.Ssl.Inputs.GetWafEntityUrlMethodOverrideInputArgs
                {
                    Allow = true,
                    Method = "BDELETE",
                },
            },
            Name = "/foobar",
            PerformStaging = true,
            Protocol = "HTTP",
            SignatureOverridesDisables = new[]
            {
                12345678,
                87654321,
            },
            Type = "explicit",
        });
    
    });
    
    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.GetWafEntityUrlArgs;
    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 wAFURL1 = SslFunctions.getWafEntityUrl(GetWafEntityUrlArgs.builder()
                .description("this is a test")
                .methodOverrides(            
                    GetWafEntityUrlMethodOverrideArgs.builder()
                        .allow(false)
                        .method("BCOPY")
                        .build(),
                    GetWafEntityUrlMethodOverrideArgs.builder()
                        .allow(true)
                        .method("BDELETE")
                        .build())
                .name("/foobar")
                .performStaging(true)
                .protocol("HTTP")
                .signatureOverridesDisables(            
                    12345678,
                    87654321)
                .type("explicit")
                .build());
    
        }
    }
    
    variables:
      wAFURL1:
        fn::invoke:
          Function: f5bigip:ssl:getWafEntityUrl
          Arguments:
            description: this is a test
            methodOverrides:
              - allow: false
                method: BCOPY
              - allow: true
                method: BDELETE
            name: /foobar
            performStaging: true
            protocol: HTTP
            signatureOverridesDisables:
              - 1.2345678e+07
              - 8.7654321e+07
            type: explicit
    

    Using getWafEntityUrl

    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 getWafEntityUrl(args: GetWafEntityUrlArgs, opts?: InvokeOptions): Promise<GetWafEntityUrlResult>
    function getWafEntityUrlOutput(args: GetWafEntityUrlOutputArgs, opts?: InvokeOptions): Output<GetWafEntityUrlResult>
    def get_waf_entity_url(description: Optional[str] = None,
                           method: Optional[str] = None,
                           method_overrides: Optional[Sequence[GetWafEntityUrlMethodOverride]] = None,
                           name: Optional[str] = None,
                           perform_staging: Optional[bool] = None,
                           protocol: Optional[str] = None,
                           signature_overrides_disables: Optional[Sequence[int]] = None,
                           type: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetWafEntityUrlResult
    def get_waf_entity_url_output(description: Optional[pulumi.Input[str]] = None,
                           method: Optional[pulumi.Input[str]] = None,
                           method_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[GetWafEntityUrlMethodOverrideArgs]]]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           perform_staging: Optional[pulumi.Input[bool]] = None,
                           protocol: Optional[pulumi.Input[str]] = None,
                           signature_overrides_disables: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
                           type: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetWafEntityUrlResult]
    func GetWafEntityUrl(ctx *Context, args *GetWafEntityUrlArgs, opts ...InvokeOption) (*GetWafEntityUrlResult, error)
    func GetWafEntityUrlOutput(ctx *Context, args *GetWafEntityUrlOutputArgs, opts ...InvokeOption) GetWafEntityUrlResultOutput

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

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

    The following arguments are supported:

    Name string
    WAF entity URL name.
    Description string
    A description of the URL.
    Method string
    Specifies an HTTP method.
    MethodOverrides List<Pulumi.F5BigIP.Ssl.Inputs.GetWafEntityUrlMethodOverride>
    A list of methods that are allowed or disallowed for a specific URL.
    PerformStaging bool
    If true then any violation associated to the respective URL will not be enforced, and the request will not be considered illegal.
    Protocol string
    Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
    SignatureOverridesDisables List<int>
    List of Attack Signature Ids which are disabled for this particular URL.
    Type string
    Specifies whether the parameter is an 'explicit' or a 'wildcard' attribute. Default is: wildcard.
    Name string
    WAF entity URL name.
    Description string
    A description of the URL.
    Method string
    Specifies an HTTP method.
    MethodOverrides []GetWafEntityUrlMethodOverride
    A list of methods that are allowed or disallowed for a specific URL.
    PerformStaging bool
    If true then any violation associated to the respective URL will not be enforced, and the request will not be considered illegal.
    Protocol string
    Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
    SignatureOverridesDisables []int
    List of Attack Signature Ids which are disabled for this particular URL.
    Type string
    Specifies whether the parameter is an 'explicit' or a 'wildcard' attribute. Default is: wildcard.
    name String
    WAF entity URL name.
    description String
    A description of the URL.
    method String
    Specifies an HTTP method.
    methodOverrides List<GetWafEntityUrlMethodOverride>
    A list of methods that are allowed or disallowed for a specific URL.
    performStaging Boolean
    If true then any violation associated to the respective URL will not be enforced, and the request will not be considered illegal.
    protocol String
    Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
    signatureOverridesDisables List<Integer>
    List of Attack Signature Ids which are disabled for this particular URL.
    type String
    Specifies whether the parameter is an 'explicit' or a 'wildcard' attribute. Default is: wildcard.
    name string
    WAF entity URL name.
    description string
    A description of the URL.
    method string
    Specifies an HTTP method.
    methodOverrides GetWafEntityUrlMethodOverride[]
    A list of methods that are allowed or disallowed for a specific URL.
    performStaging boolean
    If true then any violation associated to the respective URL will not be enforced, and the request will not be considered illegal.
    protocol string
    Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
    signatureOverridesDisables number[]
    List of Attack Signature Ids which are disabled for this particular URL.
    type string
    Specifies whether the parameter is an 'explicit' or a 'wildcard' attribute. Default is: wildcard.
    name str
    WAF entity URL name.
    description str
    A description of the URL.
    method str
    Specifies an HTTP method.
    method_overrides Sequence[GetWafEntityUrlMethodOverride]
    A list of methods that are allowed or disallowed for a specific URL.
    perform_staging bool
    If true then any violation associated to the respective URL will not be enforced, and the request will not be considered illegal.
    protocol str
    Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
    signature_overrides_disables Sequence[int]
    List of Attack Signature Ids which are disabled for this particular URL.
    type str
    Specifies whether the parameter is an 'explicit' or a 'wildcard' attribute. Default is: wildcard.
    name String
    WAF entity URL name.
    description String
    A description of the URL.
    method String
    Specifies an HTTP method.
    methodOverrides List<Property Map>
    A list of methods that are allowed or disallowed for a specific URL.
    performStaging Boolean
    If true then any violation associated to the respective URL will not be enforced, and the request will not be considered illegal.
    protocol String
    Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
    signatureOverridesDisables List<Number>
    List of Attack Signature Ids which are disabled for this particular URL.
    type String
    Specifies whether the parameter is an 'explicit' or a 'wildcard' attribute. Default is: wildcard.

    getWafEntityUrl Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    Json string representing created WAF entity URL declaration in JSON format
    Name string
    Description string
    Method string
    MethodOverrides List<Pulumi.F5BigIP.Ssl.Outputs.GetWafEntityUrlMethodOverride>
    PerformStaging bool
    Protocol string
    SignatureOverridesDisables List<int>
    Type string
    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    Json string representing created WAF entity URL declaration in JSON format
    Name string
    Description string
    Method string
    MethodOverrides []GetWafEntityUrlMethodOverride
    PerformStaging bool
    Protocol string
    SignatureOverridesDisables []int
    Type string
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    Json string representing created WAF entity URL declaration in JSON format
    name String
    description String
    method String
    methodOverrides List<GetWafEntityUrlMethodOverride>
    performStaging Boolean
    protocol String
    signatureOverridesDisables List<Integer>
    type String
    id string
    The provider-assigned unique ID for this managed resource.
    json string
    Json string representing created WAF entity URL declaration in JSON format
    name string
    description string
    method string
    methodOverrides GetWafEntityUrlMethodOverride[]
    performStaging boolean
    protocol string
    signatureOverridesDisables number[]
    type string
    id str
    The provider-assigned unique ID for this managed resource.
    json str
    Json string representing created WAF entity URL declaration in JSON format
    name str
    description str
    method str
    method_overrides Sequence[GetWafEntityUrlMethodOverride]
    perform_staging bool
    protocol str
    signature_overrides_disables Sequence[int]
    type str
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    Json string representing created WAF entity URL declaration in JSON format
    name String
    description String
    method String
    methodOverrides List<Property Map>
    performStaging Boolean
    protocol String
    signatureOverridesDisables List<Number>
    type String

    Supporting Types

    GetWafEntityUrlMethodOverride

    Allow bool
    Specifies that the system allows or disallows a method for this URL
    Method string
    Specifies an HTTP method.
    Allow bool
    Specifies that the system allows or disallows a method for this URL
    Method string
    Specifies an HTTP method.
    allow Boolean
    Specifies that the system allows or disallows a method for this URL
    method String
    Specifies an HTTP method.
    allow boolean
    Specifies that the system allows or disallows a method for this URL
    method string
    Specifies an HTTP method.
    allow bool
    Specifies that the system allows or disallows a method for this URL
    method str
    Specifies an HTTP method.
    allow Boolean
    Specifies that the system allows or disallows a method for this URL
    method String
    Specifies an HTTP method.

    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.0 published on Thursday, Mar 28, 2024 by Pulumi