Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdwan:index/getSecurityPolicy:getSecurityPolicy
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
getSecurityPolicy Result
The following output properties are available:
- Audit
Trail string - Audit trail
- Definitions
List<Get
Security Policy Definition> - List of policy definitions
- Description string
- The description of the security policy
- Direct
Internet stringApplications - Bypass firewall policy and allow all Internet traffic to/from VPN 0
- Failure
Mode string - Failure mode
- High
Speed stringLogging Server Ip - High Speed Logging Server IP
- High
Speed stringLogging Server Port - High Speed Logging Port
- High
Speed stringLogging Vpn - High Speed Logging VPN
- Id string
- The id of the object
- Loggings
List<Get
Security Policy Logging> - Match
Statistics stringPer Filter - Match Statistics per-filter
- Mode string
- The policy mode
- Name string
- The name of the security policy
- Tcp
Syn stringFlood Limit - TCP SYN Flood Limit, value from 1 to 4294967295
- Use
Case string - The use case of the security policy
- Version int
- The version of the object
- Audit
Trail string - Audit trail
- Definitions
[]Get
Security Policy Definition - List of policy definitions
- Description string
- The description of the security policy
- Direct
Internet stringApplications - Bypass firewall policy and allow all Internet traffic to/from VPN 0
- Failure
Mode string - Failure mode
- High
Speed stringLogging Server Ip - High Speed Logging Server IP
- High
Speed stringLogging Server Port - High Speed Logging Port
- High
Speed stringLogging Vpn - High Speed Logging VPN
- Id string
- The id of the object
- Loggings
[]Get
Security Policy Logging - Match
Statistics stringPer Filter - Match Statistics per-filter
- Mode string
- The policy mode
- Name string
- The name of the security policy
- Tcp
Syn stringFlood Limit - TCP SYN Flood Limit, value from 1 to 4294967295
- Use
Case string - The use case of the security policy
- Version int
- The version of the object
- audit
Trail String - Audit trail
- definitions
List<Get
Security Policy Definition> - List of policy definitions
- description String
- The description of the security policy
- direct
Internet StringApplications - Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failure
Mode String - Failure mode
- high
Speed StringLogging Server Ip - High Speed Logging Server IP
- high
Speed StringLogging Server Port - High Speed Logging Port
- high
Speed StringLogging Vpn - High Speed Logging VPN
- id String
- The id of the object
- loggings
List<Get
Security Policy Logging> - match
Statistics StringPer Filter - Match Statistics per-filter
- mode String
- The policy mode
- name String
- The name of the security policy
- tcp
Syn StringFlood Limit - TCP SYN Flood Limit, value from 1 to 4294967295
- use
Case String - The use case of the security policy
- version Integer
- The version of the object
- audit
Trail string - Audit trail
- definitions
Get
Security Policy Definition[] - List of policy definitions
- description string
- The description of the security policy
- direct
Internet stringApplications - Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failure
Mode string - Failure mode
- high
Speed stringLogging Server Ip - High Speed Logging Server IP
- high
Speed stringLogging Server Port - High Speed Logging Port
- high
Speed stringLogging Vpn - High Speed Logging VPN
- id string
- The id of the object
- loggings
Get
Security Policy Logging[] - match
Statistics stringPer Filter - Match Statistics per-filter
- mode string
- The policy mode
- name string
- The name of the security policy
- tcp
Syn stringFlood Limit - TCP SYN Flood Limit, value from 1 to 4294967295
- use
Case string - The use case of the security policy
- version number
- The version of the object
- audit_
trail str - Audit trail
- definitions
Sequence[Get
Security 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_ vpn - High Speed Logging VPN
- id str
- The id of the object
- loggings
Sequence[Get
Security Policy Logging] - match_
statistics_ strper_ filter - Match Statistics per-filter
- mode str
- The policy mode
- name str
- The name of the security policy
- tcp_
syn_ strflood_ limit - TCP SYN Flood Limit, value from 1 to 4294967295
- use_
case str - The use case of the security policy
- version int
- The version of the object
- audit
Trail String - Audit trail
- definitions List<Property Map>
- List of policy definitions
- description String
- The description of the security policy
- direct
Internet StringApplications - Bypass firewall policy and allow all Internet traffic to/from VPN 0
- failure
Mode String - Failure mode
- high
Speed StringLogging Server Ip - High Speed Logging Server IP
- high
Speed StringLogging Server Port - High Speed Logging Port
- high
Speed StringLogging Vpn - High Speed Logging VPN
- id String
- The id of the object
- loggings List<Property Map>
- match
Statistics StringPer Filter - Match Statistics per-filter
- mode String
- The policy mode
- name String
- The name of the security policy
- tcp
Syn StringFlood Limit - TCP SYN Flood Limit, value from 1 to 4294967295
- use
Case String - The use case of the security policy
- version Number
- The version of the object
Supporting Types
GetSecurityPolicyDefinition
GetSecurityPolicyLogging
- External
Syslog stringServer Ip - External Syslog Server IP
- External
Syslog stringServer Vpn - External Syslog Server VPN
- External
Syslog stringServer Ip - External Syslog Server IP
- External
Syslog stringServer Vpn - External Syslog Server VPN
- external
Syslog StringServer Ip - External Syslog Server IP
- external
Syslog StringServer Vpn - External Syslog Server VPN
- external
Syslog stringServer Ip - External Syslog Server IP
- external
Syslog stringServer Vpn - External Syslog Server VPN
- external_
syslog_ strserver_ ip - External Syslog Server IP
- external_
syslog_ strserver_ vpn - External Syslog Server VPN
- external
Syslog StringServer Ip - External Syslog Server IP
- external
Syslog 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
sdwan
Terraform Provider.