Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi
sdwan.getUrlFilteringPolicyDefinition
Explore with Pulumi AI
This data source can read the URL Filtering Policy Definition .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getUrlFilteringPolicyDefinition({
id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_url_filtering_policy_definition(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
package main
import (
"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdwan.LookupUrlFilteringPolicyDefinition(ctx, &sdwan.LookupUrlFilteringPolicyDefinitionArgs{
Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;
return await Deployment.RunAsync(() =>
{
var example = Sdwan.GetUrlFilteringPolicyDefinition.Invoke(new()
{
Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.SdwanFunctions;
import com.pulumi.sdwan.inputs.GetUrlFilteringPolicyDefinitionArgs;
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 example = SdwanFunctions.getUrlFilteringPolicyDefinition(GetUrlFilteringPolicyDefinitionArgs.builder()
.id("f6b2c44c-693c-4763-b010-895aa3d236bd")
.build());
}
}
variables:
example:
fn::invoke:
Function: sdwan:getUrlFilteringPolicyDefinition
Arguments:
id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getUrlFilteringPolicyDefinition
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 getUrlFilteringPolicyDefinition(args: GetUrlFilteringPolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetUrlFilteringPolicyDefinitionResult>
function getUrlFilteringPolicyDefinitionOutput(args: GetUrlFilteringPolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetUrlFilteringPolicyDefinitionResult>
def get_url_filtering_policy_definition(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUrlFilteringPolicyDefinitionResult
def get_url_filtering_policy_definition_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUrlFilteringPolicyDefinitionResult]
func LookupUrlFilteringPolicyDefinition(ctx *Context, args *LookupUrlFilteringPolicyDefinitionArgs, opts ...InvokeOption) (*LookupUrlFilteringPolicyDefinitionResult, error)
func LookupUrlFilteringPolicyDefinitionOutput(ctx *Context, args *LookupUrlFilteringPolicyDefinitionOutputArgs, opts ...InvokeOption) LookupUrlFilteringPolicyDefinitionResultOutput
> Note: This function is named LookupUrlFilteringPolicyDefinition
in the Go SDK.
public static class GetUrlFilteringPolicyDefinition
{
public static Task<GetUrlFilteringPolicyDefinitionResult> InvokeAsync(GetUrlFilteringPolicyDefinitionArgs args, InvokeOptions? opts = null)
public static Output<GetUrlFilteringPolicyDefinitionResult> Invoke(GetUrlFilteringPolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUrlFilteringPolicyDefinitionResult> getUrlFilteringPolicyDefinition(GetUrlFilteringPolicyDefinitionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdwan:index/getUrlFilteringPolicyDefinition:getUrlFilteringPolicyDefinition
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The id of the object
- Id string
- The id of the object
- id String
- The id of the object
- id string
- The id of the object
- id str
- The id of the object
- id String
- The id of the object
getUrlFilteringPolicyDefinition Result
The following output properties are available:
- Alerts List<string>
- List of alerts options that will be exported as syslog messages
- Allow
Url stringList Id - Allow URL list ID
- Allow
Url intList Version - Allow URL list version
- Block
Page stringAction - Redirect to a URL or display a message when a blocked page is accessed.
- Block
Page stringContents - The message displayed or URL redirected to when a blocked page is accessed.
- Block
Url stringList Id - Block URL list ID
- Block
Url intList Version - Block URL list version
- Description string
- The description of the policy definition.
- Id string
- The id of the object
- Mode string
- The policy mode
- Name string
- The name of the policy definition.
- Target
Vpns List<string> - List of VPN IDs
- Version int
- The version of the object
- Web
Categories List<string> - List of categories to block or allow
- Web
Categories stringAction - whether the selected web categories should be blocked or allowed.
- Web
Reputation string - The web reputation of the policy definition
- Alerts []string
- List of alerts options that will be exported as syslog messages
- Allow
Url stringList Id - Allow URL list ID
- Allow
Url intList Version - Allow URL list version
- Block
Page stringAction - Redirect to a URL or display a message when a blocked page is accessed.
- Block
Page stringContents - The message displayed or URL redirected to when a blocked page is accessed.
- Block
Url stringList Id - Block URL list ID
- Block
Url intList Version - Block URL list version
- Description string
- The description of the policy definition.
- Id string
- The id of the object
- Mode string
- The policy mode
- Name string
- The name of the policy definition.
- Target
Vpns []string - List of VPN IDs
- Version int
- The version of the object
- Web
Categories []string - List of categories to block or allow
- Web
Categories stringAction - whether the selected web categories should be blocked or allowed.
- Web
Reputation string - The web reputation of the policy definition
- alerts List<String>
- List of alerts options that will be exported as syslog messages
- allow
Url StringList Id - Allow URL list ID
- allow
Url IntegerList Version - Allow URL list version
- block
Page StringAction - Redirect to a URL or display a message when a blocked page is accessed.
- block
Page StringContents - The message displayed or URL redirected to when a blocked page is accessed.
- block
Url StringList Id - Block URL list ID
- block
Url IntegerList Version - Block URL list version
- description String
- The description of the policy definition.
- id String
- The id of the object
- mode String
- The policy mode
- name String
- The name of the policy definition.
- target
Vpns List<String> - List of VPN IDs
- version Integer
- The version of the object
- web
Categories List<String> - List of categories to block or allow
- web
Categories StringAction - whether the selected web categories should be blocked or allowed.
- web
Reputation String - The web reputation of the policy definition
- alerts string[]
- List of alerts options that will be exported as syslog messages
- allow
Url stringList Id - Allow URL list ID
- allow
Url numberList Version - Allow URL list version
- block
Page stringAction - Redirect to a URL or display a message when a blocked page is accessed.
- block
Page stringContents - The message displayed or URL redirected to when a blocked page is accessed.
- block
Url stringList Id - Block URL list ID
- block
Url numberList Version - Block URL list version
- description string
- The description of the policy definition.
- id string
- The id of the object
- mode string
- The policy mode
- name string
- The name of the policy definition.
- target
Vpns string[] - List of VPN IDs
- version number
- The version of the object
- web
Categories string[] - List of categories to block or allow
- web
Categories stringAction - whether the selected web categories should be blocked or allowed.
- web
Reputation string - The web reputation of the policy definition
- alerts Sequence[str]
- List of alerts options that will be exported as syslog messages
- allow_
url_ strlist_ id - Allow URL list ID
- allow_
url_ intlist_ version - Allow URL list version
- block_
page_ straction - Redirect to a URL or display a message when a blocked page is accessed.
- block_
page_ strcontents - The message displayed or URL redirected to when a blocked page is accessed.
- block_
url_ strlist_ id - Block URL list ID
- block_
url_ intlist_ version - Block URL list version
- description str
- The description of the policy definition.
- id str
- The id of the object
- mode str
- The policy mode
- name str
- The name of the policy definition.
- target_
vpns Sequence[str] - List of VPN IDs
- version int
- The version of the object
- web_
categories Sequence[str] - List of categories to block or allow
- web_
categories_ straction - whether the selected web categories should be blocked or allowed.
- web_
reputation str - The web reputation of the policy definition
- alerts List<String>
- List of alerts options that will be exported as syslog messages
- allow
Url StringList Id - Allow URL list ID
- allow
Url NumberList Version - Allow URL list version
- block
Page StringAction - Redirect to a URL or display a message when a blocked page is accessed.
- block
Page StringContents - The message displayed or URL redirected to when a blocked page is accessed.
- block
Url StringList Id - Block URL list ID
- block
Url NumberList Version - Block URL list version
- description String
- The description of the policy definition.
- id String
- The id of the object
- mode String
- The policy mode
- name String
- The name of the policy definition.
- target
Vpns List<String> - List of VPN IDs
- version Number
- The version of the object
- web
Categories List<String> - List of categories to block or allow
- web
Categories StringAction - whether the selected web categories should be blocked or allowed.
- web
Reputation String - The web reputation of the policy definition
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdwan
Terraform Provider.