f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi
f5bigip.ssl.getWafEntityUrl
Explore with Pulumi AI
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({
name: "/foobar",
description: "this is a test",
type: "explicit",
protocol: "HTTP",
performStaging: true,
signatureOverridesDisables: [
12345678,
87654321,
],
methodOverrides: [
{
allow: false,
method: "BCOPY",
},
{
allow: true,
method: "BDELETE",
},
],
crossOriginRequestsEnforcements: [
{
includeSubdomains: true,
originName: "app1.com",
originPort: "80",
originProtocol: "http",
},
{
includeSubdomains: true,
originName: "app2.com",
originPort: "443",
originProtocol: "http",
},
],
});
import pulumi
import pulumi_f5bigip as f5bigip
wafurl1 = f5bigip.ssl.get_waf_entity_url(name="/foobar",
description="this is a test",
type="explicit",
protocol="HTTP",
perform_staging=True,
signature_overrides_disables=[
12345678,
87654321,
],
method_overrides=[
{
"allow": False,
"method": "BCOPY",
},
{
"allow": True,
"method": "BDELETE",
},
],
cross_origin_requests_enforcements=[
{
"include_subdomains": True,
"origin_name": "app1.com",
"origin_port": "80",
"origin_protocol": "http",
},
{
"include_subdomains": True,
"origin_name": "app2.com",
"origin_port": "443",
"origin_protocol": "http",
},
])
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{
Name: "/foobar",
Description: pulumi.StringRef("this is a test"),
Type: pulumi.StringRef("explicit"),
Protocol: pulumi.StringRef("HTTP"),
PerformStaging: pulumi.BoolRef(true),
SignatureOverridesDisables: interface{}{
12345678,
87654321,
},
MethodOverrides: []ssl.GetWafEntityUrlMethodOverride{
{
Allow: false,
Method: "BCOPY",
},
{
Allow: true,
Method: "BDELETE",
},
},
CrossOriginRequestsEnforcements: []ssl.GetWafEntityUrlCrossOriginRequestsEnforcement{
{
IncludeSubdomains: pulumi.BoolRef(true),
OriginName: "app1.com",
OriginPort: "80",
OriginProtocol: "http",
},
{
IncludeSubdomains: pulumi.BoolRef(true),
OriginName: "app2.com",
OriginPort: "443",
OriginProtocol: "http",
},
},
}, 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()
{
Name = "/foobar",
Description = "this is a test",
Type = "explicit",
Protocol = "HTTP",
PerformStaging = true,
SignatureOverridesDisables = new[]
{
12345678,
87654321,
},
MethodOverrides = new[]
{
new F5BigIP.Ssl.Inputs.GetWafEntityUrlMethodOverrideInputArgs
{
Allow = false,
Method = "BCOPY",
},
new F5BigIP.Ssl.Inputs.GetWafEntityUrlMethodOverrideInputArgs
{
Allow = true,
Method = "BDELETE",
},
},
CrossOriginRequestsEnforcements = new[]
{
new F5BigIP.Ssl.Inputs.GetWafEntityUrlCrossOriginRequestsEnforcementInputArgs
{
IncludeSubdomains = true,
OriginName = "app1.com",
OriginPort = "80",
OriginProtocol = "http",
},
new F5BigIP.Ssl.Inputs.GetWafEntityUrlCrossOriginRequestsEnforcementInputArgs
{
IncludeSubdomains = true,
OriginName = "app2.com",
OriginPort = "443",
OriginProtocol = "http",
},
},
});
});
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()
.name("/foobar")
.description("this is a test")
.type("explicit")
.protocol("HTTP")
.performStaging(true)
.signatureOverridesDisables(
12345678,
87654321)
.methodOverrides(
GetWafEntityUrlMethodOverrideArgs.builder()
.allow(false)
.method("BCOPY")
.build(),
GetWafEntityUrlMethodOverrideArgs.builder()
.allow(true)
.method("BDELETE")
.build())
.crossOriginRequestsEnforcements(
GetWafEntityUrlCrossOriginRequestsEnforcementArgs.builder()
.includeSubdomains(true)
.originName("app1.com")
.originPort("80")
.originProtocol("http")
.build(),
GetWafEntityUrlCrossOriginRequestsEnforcementArgs.builder()
.includeSubdomains(true)
.originName("app2.com")
.originPort("443")
.originProtocol("http")
.build())
.build());
}
}
variables:
WAFURL1:
fn::invoke:
function: f5bigip:ssl:getWafEntityUrl
arguments:
name: /foobar
description: this is a test
type: explicit
protocol: HTTP
performStaging: true
signatureOverridesDisables:
- 1.2345678e+07
- 8.7654321e+07
methodOverrides:
- allow: false
method: BCOPY
- allow: true
method: BDELETE
crossOriginRequestsEnforcements:
- includeSubdomains: true
originName: app1.com
originPort: '80'
originProtocol: http
- includeSubdomains: true
originName: app2.com
originPort: '443'
originProtocol: http
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(cross_origin_requests_enforcements: Optional[Sequence[GetWafEntityUrlCrossOriginRequestsEnforcement]] = None,
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(cross_origin_requests_enforcements: Optional[pulumi.Input[Sequence[pulumi.Input[GetWafEntityUrlCrossOriginRequestsEnforcementArgs]]]] = None,
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)
public static Output<GetWafEntityUrlResult> getWafEntityUrl(GetWafEntityUrlArgs args, InvokeOptions options)
fn::invoke:
function: f5bigip:ssl/getWafEntityUrl:getWafEntityUrl
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- WAF entity URL name.
- Cross
Origin List<Pulumi.Requests Enforcements F5Big IP. Ssl. Inputs. Get Waf Entity Url Cross Origin Requests Enforcement> - A list of options that enables your web-application to share data with a website hosted on a different domain.
- Description string
- A description of the URL.
- Method string
- Select a Method for the URL to create an API endpoint. Default is : *.
- 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.
- Cross
Origin []GetRequests Enforcements Waf Entity Url Cross Origin Requests Enforcement - A list of options that enables your web-application to share data with a website hosted on a different domain.
- Description string
- A description of the URL.
- Method string
- Select a Method for the URL to create an API endpoint. Default is : *.
- 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.
- cross
Origin List<GetRequests Enforcements Waf Entity Url Cross Origin Requests Enforcement> - A list of options that enables your web-application to share data with a website hosted on a different domain.
- description String
- A description of the URL.
- method String
- Select a Method for the URL to create an API endpoint. Default is : *.
- 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.
- cross
Origin GetRequests Enforcements Waf Entity Url Cross Origin Requests Enforcement[] - A list of options that enables your web-application to share data with a website hosted on a different domain.
- description string
- A description of the URL.
- method string
- Select a Method for the URL to create an API endpoint. Default is : *.
- 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.
- cross_
origin_ Sequence[Getrequests_ enforcements Waf Entity Url Cross Origin Requests Enforcement] - A list of options that enables your web-application to share data with a website hosted on a different domain.
- description str
- A description of the URL.
- method str
- Select a Method for the URL to create an API endpoint. Default is : *.
- 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.
- cross
Origin List<Property Map>Requests Enforcements - A list of options that enables your web-application to share data with a website hosted on a different domain.
- description String
- A description of the URL.
- method String
- Select a Method for the URL to create an API endpoint. Default is : *.
- 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
- Cross
Origin List<Pulumi.Requests Enforcements F5Big IP. Ssl. Outputs. Get Waf Entity Url Cross Origin Requests Enforcement> - 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
- Cross
Origin []GetRequests Enforcements Waf Entity Url Cross Origin Requests Enforcement - 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
- cross
Origin List<GetRequests Enforcements Waf Entity Url Cross Origin Requests Enforcement> - 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
- cross
Origin GetRequests Enforcements Waf Entity Url Cross Origin Requests Enforcement[] - 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
- cross_
origin_ Sequence[Getrequests_ enforcements Waf Entity Url Cross Origin Requests Enforcement] - 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
- cross
Origin List<Property Map>Requests Enforcements - description String
- method String
- method
Overrides List<Property Map> - perform
Staging Boolean - protocol String
- signature
Overrides List<Number>Disables - type String
Supporting Types
GetWafEntityUrlCrossOriginRequestsEnforcement
- Origin
Name string - Specifies the name of the origin with which you want to share your data.
- Origin
Port string - Specifies the port that other web applications are allowed to use to request data from your web application.
- Origin
Protocol string - Specifies the protocol that other web applications are allowed to use to request data from your web application.
- Include
Subdomains bool - Determines whether the subdomains are allowed to receive data from the web application.
- Origin
Name string - Specifies the name of the origin with which you want to share your data.
- Origin
Port string - Specifies the port that other web applications are allowed to use to request data from your web application.
- Origin
Protocol string - Specifies the protocol that other web applications are allowed to use to request data from your web application.
- Include
Subdomains bool - Determines whether the subdomains are allowed to receive data from the web application.
- origin
Name String - Specifies the name of the origin with which you want to share your data.
- origin
Port String - Specifies the port that other web applications are allowed to use to request data from your web application.
- origin
Protocol String - Specifies the protocol that other web applications are allowed to use to request data from your web application.
- include
Subdomains Boolean - Determines whether the subdomains are allowed to receive data from the web application.
- origin
Name string - Specifies the name of the origin with which you want to share your data.
- origin
Port string - Specifies the port that other web applications are allowed to use to request data from your web application.
- origin
Protocol string - Specifies the protocol that other web applications are allowed to use to request data from your web application.
- include
Subdomains boolean - Determines whether the subdomains are allowed to receive data from the web application.
- origin_
name str - Specifies the name of the origin with which you want to share your data.
- origin_
port str - Specifies the port that other web applications are allowed to use to request data from your web application.
- origin_
protocol str - Specifies the protocol that other web applications are allowed to use to request data from your web application.
- include_
subdomains bool - Determines whether the subdomains are allowed to receive data from the web application.
- origin
Name String - Specifies the name of the origin with which you want to share your data.
- origin
Port String - Specifies the port that other web applications are allowed to use to request data from your web application.
- origin
Protocol String - Specifies the protocol that other web applications are allowed to use to request data from your web application.
- include
Subdomains Boolean - Determines whether the subdomains are allowed to receive data from the web application.
GetWafEntityUrlMethodOverride
Package Details
- Repository
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigipTerraform Provider.