f5bigip.ssl.getWafEntityUrl
Use this data source (f5bigip.ssl.getWafPbSuggestions
) to create JSON for WAF URL to later use with an existing WAF policy.
Example Usage
using System.Collections.Generic;
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",
});
});
Coming soon!
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());
}
}
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")
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",
});
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.
- Method
Overrides List<Pulumi.F5Big IP. Ssl. Inputs. Get Waf Entity Url Method Override> 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 string
Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
- Signature
Overrides List<int>Disables 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.
- Method
Overrides []GetWaf Entity Url Method Override 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 string
Specifies whether the protocol for the URL is 'http' or 'https'. Default is: http.
- Signature
Overrides []intDisables 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.
- method
Overrides List<GetWaf Entity Url Method Override> A list of methods that are allowed or disallowed for a specific URL.
- perform
Staging 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.
- signature
Overrides List<Integer>Disables 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.
- method
Overrides GetWaf Entity Url Method Override[] A list of methods that are allowed or disallowed for a specific URL.
- perform
Staging 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.
- signature
Overrides number[]Disables 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[GetWaf Entity Url Method Override] 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_ Sequence[int]disables 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.
- method
Overrides List<Property Map> A list of methods that are allowed or disallowed for a specific URL.
- perform
Staging 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.
- signature
Overrides List<Number>Disables 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
- Method
Overrides List<Pulumi.F5Big IP. Ssl. Outputs. Get Waf Entity Url Method Override> - Perform
Staging bool - Protocol string
- Signature
Overrides List<int>Disables - 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
- Method
Overrides []GetWaf Entity Url Method Override - Perform
Staging bool - Protocol string
- Signature
Overrides []intDisables - 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
- method
Overrides List<GetWaf Entity Url Method Override> - perform
Staging Boolean - protocol String
- signature
Overrides List<Integer>Disables - 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
- method
Overrides GetWaf Entity Url Method Override[] - perform
Staging boolean - protocol string
- signature
Overrides number[]Disables - 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[GetWaf Entity Url Method Override] - perform_
staging bool - protocol str
- signature_
overrides_ Sequence[int]disables - 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
- method
Overrides List<Property Map> - perform
Staging Boolean - protocol String
- signature
Overrides List<Number>Disables - type String
Supporting Types
GetWafEntityUrlMethodOverride
Package Details
- Repository
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
bigip
Terraform Provider.