Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi
sdwan.getSecurityPolicy
Explore with Pulumi AI
This data source can read the Security Policy .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getSecurityPolicy({
    id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_security_policy(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.LookupSecurityPolicy(ctx, &sdwan.LookupSecurityPolicyArgs{
			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.GetSecurityPolicy.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.GetSecurityPolicyArgs;
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.getSecurityPolicy(GetSecurityPolicyArgs.builder()
            .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: sdwan:getSecurityPolicy
      arguments:
        id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getSecurityPolicy
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 getSecurityPolicy(args: GetSecurityPolicyArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyResult>
function getSecurityPolicyOutput(args: GetSecurityPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyResult>def get_security_policy(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyResult
def get_security_policy_output(id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyResult]func LookupSecurityPolicy(ctx *Context, args *LookupSecurityPolicyArgs, opts ...InvokeOption) (*LookupSecurityPolicyResult, error)
func LookupSecurityPolicyOutput(ctx *Context, args *LookupSecurityPolicyOutputArgs, opts ...InvokeOption) LookupSecurityPolicyResultOutput> Note: This function is named LookupSecurityPolicy in the Go SDK.
public static class GetSecurityPolicy 
{
    public static Task<GetSecurityPolicyResult> InvokeAsync(GetSecurityPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityPolicyResult> Invoke(GetSecurityPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityPolicyResult> getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyResult> getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: sdwan:index/getSecurityPolicy:getSecurityPolicy
  arguments:
    # arguments dictionaryThe 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
getSecurityPolicy Result
The following output properties are available:
- AuditTrail string
- Audit trail
- Definitions
List<GetSecurity Policy Definition> 
- List of policy definitions
- Description string
- The description of the security policy
- DirectInternet stringApplications 
- Bypass firewall policy and allow all Internet traffic to/from VPN 0
- FailureMode string
- Failure mode
- HighSpeed stringLogging Server Ip 
- High Speed Logging Server IP
- HighSpeed stringLogging Server Port 
- High Speed Logging Port
- HighSpeed stringLogging Server Source Interface 
- High Speed Logging Source Interface
- HighSpeed stringLogging Vpn 
- High Speed Logging VPN
- Id string
- The id of the object
- ImcpUnreachable boolAllow 
- ICMP Unreachable Allow
- Loggings
List<GetSecurity Policy Logging> 
- MatchStatistics stringPer Filter 
- Match Statistics per-filter
- MaxIncomplete intIcmp Limit 
- Max Incomplete ICMP Limit
- MaxIncomplete intTcp Limit 
- Max Incomplete TCP Limit
- MaxIncomplete intUdp Limit 
- Max Incomplete UDP Limit
- Mode string
- The policy mode
- Name string
- The name of the security policy
- SessionReclassify boolAllow 
- Session Reclassify Allow
- TcpSyn stringFlood Limit 
- TCP SYN Flood Limit, value from 1 to 4294967295
- UnifiedLogging bool
- Unified Logging
- UseCase string
- The use case of the security policy
- Version int
- The version of the object
- AuditTrail string
- Audit trail
- Definitions
[]GetSecurity Policy Definition 
- List of policy definitions
- Description string
- The description of the security policy
- DirectInternet stringApplications 
- Bypass firewall policy and allow all Internet traffic to/from VPN 0
- FailureMode string
- Failure mode
- HighSpeed stringLogging Server Ip 
- High Speed Logging Server IP
- HighSpeed stringLogging Server Port 
- High Speed Logging Port
- HighSpeed stringLogging Server Source Interface 
- High Speed Logging Source Interface
- HighSpeed stringLogging Vpn 
- High Speed Logging VPN
- Id string
- The id of the object
- ImcpUnreachable boolAllow 
- ICMP Unreachable Allow
- Loggings
[]GetSecurity Policy Logging 
- MatchStatistics stringPer Filter 
- Match Statistics per-filter
- MaxIncomplete intIcmp Limit 
- Max Incomplete ICMP Limit
- MaxIncomplete intTcp Limit 
- Max Incomplete TCP Limit
- MaxIncomplete intUdp Limit 
- Max Incomplete UDP Limit
- Mode string
- The policy mode
- Name string
- The name of the security policy
- SessionReclassify boolAllow 
- Session Reclassify Allow
- TcpSyn stringFlood Limit 
- TCP SYN Flood Limit, value from 1 to 4294967295
- UnifiedLogging bool
- Unified Logging
- UseCase string
- The use case of the security policy
- Version int
- The version of the object
- auditTrail String
- Audit trail
- definitions
List<GetSecurity Policy Definition> 
- List of policy definitions
- description String
- The description of the security policy
- directInternet StringApplications 
- Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failureMode String
- Failure mode
- highSpeed StringLogging Server Ip 
- High Speed Logging Server IP
- highSpeed StringLogging Server Port 
- High Speed Logging Port
- highSpeed StringLogging Server Source Interface 
- High Speed Logging Source Interface
- highSpeed StringLogging Vpn 
- High Speed Logging VPN
- id String
- The id of the object
- imcpUnreachable BooleanAllow 
- ICMP Unreachable Allow
- loggings
List<GetSecurity Policy Logging> 
- matchStatistics StringPer Filter 
- Match Statistics per-filter
- maxIncomplete IntegerIcmp Limit 
- Max Incomplete ICMP Limit
- maxIncomplete IntegerTcp Limit 
- Max Incomplete TCP Limit
- maxIncomplete IntegerUdp Limit 
- Max Incomplete UDP Limit
- mode String
- The policy mode
- name String
- The name of the security policy
- sessionReclassify BooleanAllow 
- Session Reclassify Allow
- tcpSyn StringFlood Limit 
- TCP SYN Flood Limit, value from 1 to 4294967295
- unifiedLogging Boolean
- Unified Logging
- useCase String
- The use case of the security policy
- version Integer
- The version of the object
- auditTrail string
- Audit trail
- definitions
GetSecurity Policy Definition[] 
- List of policy definitions
- description string
- The description of the security policy
- directInternet stringApplications 
- Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failureMode string
- Failure mode
- highSpeed stringLogging Server Ip 
- High Speed Logging Server IP
- highSpeed stringLogging Server Port 
- High Speed Logging Port
- highSpeed stringLogging Server Source Interface 
- High Speed Logging Source Interface
- highSpeed stringLogging Vpn 
- High Speed Logging VPN
- id string
- The id of the object
- imcpUnreachable booleanAllow 
- ICMP Unreachable Allow
- loggings
GetSecurity Policy Logging[] 
- matchStatistics stringPer Filter 
- Match Statistics per-filter
- maxIncomplete numberIcmp Limit 
- Max Incomplete ICMP Limit
- maxIncomplete numberTcp Limit 
- Max Incomplete TCP Limit
- maxIncomplete numberUdp Limit 
- Max Incomplete UDP Limit
- mode string
- The policy mode
- name string
- The name of the security policy
- sessionReclassify booleanAllow 
- Session Reclassify Allow
- tcpSyn stringFlood Limit 
- TCP SYN Flood Limit, value from 1 to 4294967295
- unifiedLogging boolean
- Unified Logging
- useCase string
- The use case of the security policy
- version number
- The version of the object
- audit_trail str
- Audit trail
- definitions
Sequence[GetSecurity Policy Definition] 
- List of policy definitions
- description str
- The description of the security policy
- direct_internet_ strapplications 
- Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failure_mode str
- Failure mode
- high_speed_ strlogging_ server_ ip 
- High Speed Logging Server IP
- high_speed_ strlogging_ server_ port 
- High Speed Logging Port
- high_speed_ strlogging_ server_ source_ interface 
- High Speed Logging Source Interface
- high_speed_ strlogging_ vpn 
- High Speed Logging VPN
- id str
- The id of the object
- imcp_unreachable_ boolallow 
- ICMP Unreachable Allow
- loggings
Sequence[GetSecurity Policy Logging] 
- match_statistics_ strper_ filter 
- Match Statistics per-filter
- max_incomplete_ inticmp_ limit 
- Max Incomplete ICMP Limit
- max_incomplete_ inttcp_ limit 
- Max Incomplete TCP Limit
- max_incomplete_ intudp_ limit 
- Max Incomplete UDP Limit
- mode str
- The policy mode
- name str
- The name of the security policy
- session_reclassify_ boolallow 
- Session Reclassify Allow
- tcp_syn_ strflood_ limit 
- TCP SYN Flood Limit, value from 1 to 4294967295
- unified_logging bool
- Unified Logging
- use_case str
- The use case of the security policy
- version int
- The version of the object
- auditTrail String
- Audit trail
- definitions List<Property Map>
- List of policy definitions
- description String
- The description of the security policy
- directInternet StringApplications 
- Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failureMode String
- Failure mode
- highSpeed StringLogging Server Ip 
- High Speed Logging Server IP
- highSpeed StringLogging Server Port 
- High Speed Logging Port
- highSpeed StringLogging Server Source Interface 
- High Speed Logging Source Interface
- highSpeed StringLogging Vpn 
- High Speed Logging VPN
- id String
- The id of the object
- imcpUnreachable BooleanAllow 
- ICMP Unreachable Allow
- loggings List<Property Map>
- matchStatistics StringPer Filter 
- Match Statistics per-filter
- maxIncomplete NumberIcmp Limit 
- Max Incomplete ICMP Limit
- maxIncomplete NumberTcp Limit 
- Max Incomplete TCP Limit
- maxIncomplete NumberUdp Limit 
- Max Incomplete UDP Limit
- mode String
- The policy mode
- name String
- The name of the security policy
- sessionReclassify BooleanAllow 
- Session Reclassify Allow
- tcpSyn StringFlood Limit 
- TCP SYN Flood Limit, value from 1 to 4294967295
- unifiedLogging Boolean
- Unified Logging
- useCase String
- The use case of the security policy
- version Number
- The version of the object
Supporting Types
GetSecurityPolicyDefinition   
- DestinationZone string
- Destination Zone
- Id string
- Policy definition ID
- SourceZone string
- Source Zone
- Type string
- Policy definition type
- Version int
- Policy definition version
- DestinationZone string
- Destination Zone
- Id string
- Policy definition ID
- SourceZone string
- Source Zone
- Type string
- Policy definition type
- Version int
- Policy definition version
- destinationZone String
- Destination Zone
- id String
- Policy definition ID
- sourceZone String
- Source Zone
- type String
- Policy definition type
- version Integer
- Policy definition version
- destinationZone string
- Destination Zone
- id string
- Policy definition ID
- sourceZone string
- Source Zone
- type string
- Policy definition type
- version number
- Policy definition version
- destination_zone str
- Destination Zone
- id str
- Policy definition ID
- source_zone str
- Source Zone
- type str
- Policy definition type
- version int
- Policy definition version
- destinationZone String
- Destination Zone
- id String
- Policy definition ID
- sourceZone String
- Source Zone
- type String
- Policy definition type
- version Number
- Policy definition version
GetSecurityPolicyLogging   
- ExternalSyslog stringServer Ip 
- External Syslog Server IP
- ExternalSyslog stringServer Source Interface 
- External Syslog Server Source Interface
- ExternalSyslog stringServer Vpn 
- External Syslog Server VPN
- ExternalSyslog stringServer Ip 
- External Syslog Server IP
- ExternalSyslog stringServer Source Interface 
- External Syslog Server Source Interface
- ExternalSyslog stringServer Vpn 
- External Syslog Server VPN
- externalSyslog StringServer Ip 
- External Syslog Server IP
- externalSyslog StringServer Source Interface 
- External Syslog Server Source Interface
- externalSyslog StringServer Vpn 
- External Syslog Server VPN
- externalSyslog stringServer Ip 
- External Syslog Server IP
- externalSyslog stringServer Source Interface 
- External Syslog Server Source Interface
- externalSyslog stringServer Vpn 
- External Syslog Server VPN
- external_syslog_ strserver_ ip 
- External Syslog Server IP
- external_syslog_ strserver_ source_ interface 
- External Syslog Server Source Interface
- external_syslog_ strserver_ vpn 
- External Syslog Server VPN
- externalSyslog StringServer Ip 
- External Syslog Server IP
- externalSyslog StringServer Source Interface 
- External Syslog Server Source Interface
- externalSyslog StringServer Vpn 
- External Syslog Server VPN
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the sdwanTerraform Provider.
