oci.Core.CaptureFilter
Explore with Pulumi AI
This resource provides the Capture Filter resource in Oracle Cloud Infrastructure Core service.
Creates a virtual test access point (VTAP) capture filter in the specified compartment.
For the purposes of access control, you must provide the OCID of the compartment that contains the VTAP. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.
You may optionally specify a display name for the VTAP, otherwise a default is provided. It does not have to be unique, and you can change it.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCaptureFilter = new oci.core.CaptureFilter("test_capture_filter", {
compartmentId: compartmentId,
filterType: captureFilterFilterType,
definedTags: {
"Operations.CostCenter": "42",
},
displayName: captureFilterDisplayName,
flowLogCaptureFilterRules: [{
destinationCidr: captureFilterFlowLogCaptureFilterRulesDestinationCidr,
flowLogType: captureFilterFlowLogCaptureFilterRulesFlowLogType,
icmpOptions: {
type: captureFilterFlowLogCaptureFilterRulesIcmpOptionsType,
code: captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode,
},
isEnabled: captureFilterFlowLogCaptureFilterRulesIsEnabled,
priority: captureFilterFlowLogCaptureFilterRulesPriority,
protocol: captureFilterFlowLogCaptureFilterRulesProtocol,
ruleAction: captureFilterFlowLogCaptureFilterRulesRuleAction,
samplingRate: captureFilterFlowLogCaptureFilterRulesSamplingRate,
sourceCidr: captureFilterFlowLogCaptureFilterRulesSourceCidr,
tcpOptions: {
destinationPortRange: {
max: captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
min: captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
},
sourcePortRange: {
max: captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax,
min: captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin,
},
},
udpOptions: {
destinationPortRange: {
max: captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
min: captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
},
sourcePortRange: {
max: captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax,
min: captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin,
},
},
}],
freeformTags: {
Department: "Finance",
},
vtapCaptureFilterRules: [{
trafficDirection: captureFilterVtapCaptureFilterRulesTrafficDirection,
destinationCidr: captureFilterVtapCaptureFilterRulesDestinationCidr,
icmpOptions: {
type: captureFilterVtapCaptureFilterRulesIcmpOptionsType,
code: captureFilterVtapCaptureFilterRulesIcmpOptionsCode,
},
protocol: captureFilterVtapCaptureFilterRulesProtocol,
ruleAction: captureFilterVtapCaptureFilterRulesRuleAction,
sourceCidr: captureFilterVtapCaptureFilterRulesSourceCidr,
tcpOptions: {
destinationPortRange: {
max: captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
min: captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
},
sourcePortRange: {
max: captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax,
min: captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin,
},
},
udpOptions: {
destinationPortRange: {
max: captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
min: captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
},
sourcePortRange: {
max: captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax,
min: captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin,
},
},
}],
});
import pulumi
import pulumi_oci as oci
test_capture_filter = oci.core.CaptureFilter("test_capture_filter",
compartment_id=compartment_id,
filter_type=capture_filter_filter_type,
defined_tags={
"Operations.CostCenter": "42",
},
display_name=capture_filter_display_name,
flow_log_capture_filter_rules=[{
"destination_cidr": capture_filter_flow_log_capture_filter_rules_destination_cidr,
"flow_log_type": capture_filter_flow_log_capture_filter_rules_flow_log_type,
"icmp_options": {
"type": capture_filter_flow_log_capture_filter_rules_icmp_options_type,
"code": capture_filter_flow_log_capture_filter_rules_icmp_options_code,
},
"is_enabled": capture_filter_flow_log_capture_filter_rules_is_enabled,
"priority": capture_filter_flow_log_capture_filter_rules_priority,
"protocol": capture_filter_flow_log_capture_filter_rules_protocol,
"rule_action": capture_filter_flow_log_capture_filter_rules_rule_action,
"sampling_rate": capture_filter_flow_log_capture_filter_rules_sampling_rate,
"source_cidr": capture_filter_flow_log_capture_filter_rules_source_cidr,
"tcp_options": {
"destination_port_range": {
"max": capture_filter_flow_log_capture_filter_rules_tcp_options_destination_port_range_max,
"min": capture_filter_flow_log_capture_filter_rules_tcp_options_destination_port_range_min,
},
"source_port_range": {
"max": capture_filter_flow_log_capture_filter_rules_tcp_options_source_port_range_max,
"min": capture_filter_flow_log_capture_filter_rules_tcp_options_source_port_range_min,
},
},
"udp_options": {
"destination_port_range": {
"max": capture_filter_flow_log_capture_filter_rules_udp_options_destination_port_range_max,
"min": capture_filter_flow_log_capture_filter_rules_udp_options_destination_port_range_min,
},
"source_port_range": {
"max": capture_filter_flow_log_capture_filter_rules_udp_options_source_port_range_max,
"min": capture_filter_flow_log_capture_filter_rules_udp_options_source_port_range_min,
},
},
}],
freeform_tags={
"Department": "Finance",
},
vtap_capture_filter_rules=[{
"traffic_direction": capture_filter_vtap_capture_filter_rules_traffic_direction,
"destination_cidr": capture_filter_vtap_capture_filter_rules_destination_cidr,
"icmp_options": {
"type": capture_filter_vtap_capture_filter_rules_icmp_options_type,
"code": capture_filter_vtap_capture_filter_rules_icmp_options_code,
},
"protocol": capture_filter_vtap_capture_filter_rules_protocol,
"rule_action": capture_filter_vtap_capture_filter_rules_rule_action,
"source_cidr": capture_filter_vtap_capture_filter_rules_source_cidr,
"tcp_options": {
"destination_port_range": {
"max": capture_filter_vtap_capture_filter_rules_tcp_options_destination_port_range_max,
"min": capture_filter_vtap_capture_filter_rules_tcp_options_destination_port_range_min,
},
"source_port_range": {
"max": capture_filter_vtap_capture_filter_rules_tcp_options_source_port_range_max,
"min": capture_filter_vtap_capture_filter_rules_tcp_options_source_port_range_min,
},
},
"udp_options": {
"destination_port_range": {
"max": capture_filter_vtap_capture_filter_rules_udp_options_destination_port_range_max,
"min": capture_filter_vtap_capture_filter_rules_udp_options_destination_port_range_min,
},
"source_port_range": {
"max": capture_filter_vtap_capture_filter_rules_udp_options_source_port_range_max,
"min": capture_filter_vtap_capture_filter_rules_udp_options_source_port_range_min,
},
},
}])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewCaptureFilter(ctx, "test_capture_filter", &Core.CaptureFilterArgs{
CompartmentId: pulumi.Any(compartmentId),
FilterType: pulumi.Any(captureFilterFilterType),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DisplayName: pulumi.Any(captureFilterDisplayName),
FlowLogCaptureFilterRules: core.CaptureFilterFlowLogCaptureFilterRuleArray{
&core.CaptureFilterFlowLogCaptureFilterRuleArgs{
DestinationCidr: pulumi.Any(captureFilterFlowLogCaptureFilterRulesDestinationCidr),
FlowLogType: pulumi.Any(captureFilterFlowLogCaptureFilterRulesFlowLogType),
IcmpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs{
Type: pulumi.Any(captureFilterFlowLogCaptureFilterRulesIcmpOptionsType),
Code: pulumi.Any(captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode),
},
IsEnabled: pulumi.Any(captureFilterFlowLogCaptureFilterRulesIsEnabled),
Priority: pulumi.Any(captureFilterFlowLogCaptureFilterRulesPriority),
Protocol: pulumi.Any(captureFilterFlowLogCaptureFilterRulesProtocol),
RuleAction: pulumi.Any(captureFilterFlowLogCaptureFilterRulesRuleAction),
SamplingRate: pulumi.Any(captureFilterFlowLogCaptureFilterRulesSamplingRate),
SourceCidr: pulumi.Any(captureFilterFlowLogCaptureFilterRulesSourceCidr),
TcpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs{
DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax),
Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin),
},
SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax),
Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin),
},
},
UdpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs{
DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax),
Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin),
},
SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax),
Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin),
},
},
},
},
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
VtapCaptureFilterRules: core.CaptureFilterVtapCaptureFilterRuleArray{
&core.CaptureFilterVtapCaptureFilterRuleArgs{
TrafficDirection: pulumi.Any(captureFilterVtapCaptureFilterRulesTrafficDirection),
DestinationCidr: pulumi.Any(captureFilterVtapCaptureFilterRulesDestinationCidr),
IcmpOptions: &core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs{
Type: pulumi.Any(captureFilterVtapCaptureFilterRulesIcmpOptionsType),
Code: pulumi.Any(captureFilterVtapCaptureFilterRulesIcmpOptionsCode),
},
Protocol: pulumi.Any(captureFilterVtapCaptureFilterRulesProtocol),
RuleAction: pulumi.Any(captureFilterVtapCaptureFilterRulesRuleAction),
SourceCidr: pulumi.Any(captureFilterVtapCaptureFilterRulesSourceCidr),
TcpOptions: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs{
DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
Max: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax),
Min: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin),
},
SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
Max: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax),
Min: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin),
},
},
UdpOptions: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs{
DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
Max: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax),
Min: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin),
},
SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
Max: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax),
Min: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCaptureFilter = new Oci.Core.CaptureFilter("test_capture_filter", new()
{
CompartmentId = compartmentId,
FilterType = captureFilterFilterType,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DisplayName = captureFilterDisplayName,
FlowLogCaptureFilterRules = new[]
{
new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleArgs
{
DestinationCidr = captureFilterFlowLogCaptureFilterRulesDestinationCidr,
FlowLogType = captureFilterFlowLogCaptureFilterRulesFlowLogType,
IcmpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs
{
Type = captureFilterFlowLogCaptureFilterRulesIcmpOptionsType,
Code = captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode,
},
IsEnabled = captureFilterFlowLogCaptureFilterRulesIsEnabled,
Priority = captureFilterFlowLogCaptureFilterRulesPriority,
Protocol = captureFilterFlowLogCaptureFilterRulesProtocol,
RuleAction = captureFilterFlowLogCaptureFilterRulesRuleAction,
SamplingRate = captureFilterFlowLogCaptureFilterRulesSamplingRate,
SourceCidr = captureFilterFlowLogCaptureFilterRulesSourceCidr,
TcpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
{
Max = captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
Min = captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs
{
Max = captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax,
Min = captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin,
},
},
UdpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
{
Max = captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
Min = captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs
{
Max = captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax,
Min = captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin,
},
},
},
},
FreeformTags =
{
{ "Department", "Finance" },
},
VtapCaptureFilterRules = new[]
{
new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleArgs
{
TrafficDirection = captureFilterVtapCaptureFilterRulesTrafficDirection,
DestinationCidr = captureFilterVtapCaptureFilterRulesDestinationCidr,
IcmpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs
{
Type = captureFilterVtapCaptureFilterRulesIcmpOptionsType,
Code = captureFilterVtapCaptureFilterRulesIcmpOptionsCode,
},
Protocol = captureFilterVtapCaptureFilterRulesProtocol,
RuleAction = captureFilterVtapCaptureFilterRulesRuleAction,
SourceCidr = captureFilterVtapCaptureFilterRulesSourceCidr,
TcpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
{
Max = captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
Min = captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs
{
Max = captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax,
Min = captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin,
},
},
UdpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
{
Max = captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
Min = captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs
{
Max = captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax,
Min = captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin,
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CaptureFilter;
import com.pulumi.oci.Core.CaptureFilterArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs;
import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs;
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) {
var testCaptureFilter = new CaptureFilter("testCaptureFilter", CaptureFilterArgs.builder()
.compartmentId(compartmentId)
.filterType(captureFilterFilterType)
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(captureFilterDisplayName)
.flowLogCaptureFilterRules(CaptureFilterFlowLogCaptureFilterRuleArgs.builder()
.destinationCidr(captureFilterFlowLogCaptureFilterRulesDestinationCidr)
.flowLogType(captureFilterFlowLogCaptureFilterRulesFlowLogType)
.icmpOptions(CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs.builder()
.type(captureFilterFlowLogCaptureFilterRulesIcmpOptionsType)
.code(captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode)
.build())
.isEnabled(captureFilterFlowLogCaptureFilterRulesIsEnabled)
.priority(captureFilterFlowLogCaptureFilterRulesPriority)
.protocol(captureFilterFlowLogCaptureFilterRulesProtocol)
.ruleAction(captureFilterFlowLogCaptureFilterRulesRuleAction)
.samplingRate(captureFilterFlowLogCaptureFilterRulesSamplingRate)
.sourceCidr(captureFilterFlowLogCaptureFilterRulesSourceCidr)
.tcpOptions(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs.builder()
.destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
.max(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax)
.min(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin)
.build())
.sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
.max(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax)
.min(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin)
.build())
.build())
.udpOptions(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs.builder()
.destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
.max(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax)
.min(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin)
.build())
.sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
.max(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax)
.min(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin)
.build())
.build())
.build())
.freeformTags(Map.of("Department", "Finance"))
.vtapCaptureFilterRules(CaptureFilterVtapCaptureFilterRuleArgs.builder()
.trafficDirection(captureFilterVtapCaptureFilterRulesTrafficDirection)
.destinationCidr(captureFilterVtapCaptureFilterRulesDestinationCidr)
.icmpOptions(CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs.builder()
.type(captureFilterVtapCaptureFilterRulesIcmpOptionsType)
.code(captureFilterVtapCaptureFilterRulesIcmpOptionsCode)
.build())
.protocol(captureFilterVtapCaptureFilterRulesProtocol)
.ruleAction(captureFilterVtapCaptureFilterRulesRuleAction)
.sourceCidr(captureFilterVtapCaptureFilterRulesSourceCidr)
.tcpOptions(CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs.builder()
.destinationPortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
.max(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax)
.min(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin)
.build())
.sourcePortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
.max(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax)
.min(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin)
.build())
.build())
.udpOptions(CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs.builder()
.destinationPortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
.max(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax)
.min(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin)
.build())
.sourcePortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
.max(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax)
.min(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin)
.build())
.build())
.build())
.build());
}
}
resources:
testCaptureFilter:
type: oci:Core:CaptureFilter
name: test_capture_filter
properties:
compartmentId: ${compartmentId}
filterType: ${captureFilterFilterType}
definedTags:
Operations.CostCenter: '42'
displayName: ${captureFilterDisplayName}
flowLogCaptureFilterRules:
- destinationCidr: ${captureFilterFlowLogCaptureFilterRulesDestinationCidr}
flowLogType: ${captureFilterFlowLogCaptureFilterRulesFlowLogType}
icmpOptions:
type: ${captureFilterFlowLogCaptureFilterRulesIcmpOptionsType}
code: ${captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode}
isEnabled: ${captureFilterFlowLogCaptureFilterRulesIsEnabled}
priority: ${captureFilterFlowLogCaptureFilterRulesPriority}
protocol: ${captureFilterFlowLogCaptureFilterRulesProtocol}
ruleAction: ${captureFilterFlowLogCaptureFilterRulesRuleAction}
samplingRate: ${captureFilterFlowLogCaptureFilterRulesSamplingRate}
sourceCidr: ${captureFilterFlowLogCaptureFilterRulesSourceCidr}
tcpOptions:
destinationPortRange:
max: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax}
min: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin}
sourcePortRange:
max: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax}
min: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin}
udpOptions:
destinationPortRange:
max: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax}
min: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin}
sourcePortRange:
max: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax}
min: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin}
freeformTags:
Department: Finance
vtapCaptureFilterRules:
- trafficDirection: ${captureFilterVtapCaptureFilterRulesTrafficDirection}
destinationCidr: ${captureFilterVtapCaptureFilterRulesDestinationCidr}
icmpOptions:
type: ${captureFilterVtapCaptureFilterRulesIcmpOptionsType}
code: ${captureFilterVtapCaptureFilterRulesIcmpOptionsCode}
protocol: ${captureFilterVtapCaptureFilterRulesProtocol}
ruleAction: ${captureFilterVtapCaptureFilterRulesRuleAction}
sourceCidr: ${captureFilterVtapCaptureFilterRulesSourceCidr}
tcpOptions:
destinationPortRange:
max: ${captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax}
min: ${captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin}
sourcePortRange:
max: ${captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax}
min: ${captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin}
udpOptions:
destinationPortRange:
max: ${captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax}
min: ${captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin}
sourcePortRange:
max: ${captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax}
min: ${captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin}
Create CaptureFilter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CaptureFilter(name: string, args: CaptureFilterArgs, opts?: CustomResourceOptions);
@overload
def CaptureFilter(resource_name: str,
args: CaptureFilterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CaptureFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
filter_type: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
flow_log_capture_filter_rules: Optional[Sequence[_core.CaptureFilterFlowLogCaptureFilterRuleArgs]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
vtap_capture_filter_rules: Optional[Sequence[_core.CaptureFilterVtapCaptureFilterRuleArgs]] = None)
func NewCaptureFilter(ctx *Context, name string, args CaptureFilterArgs, opts ...ResourceOption) (*CaptureFilter, error)
public CaptureFilter(string name, CaptureFilterArgs args, CustomResourceOptions? opts = null)
public CaptureFilter(String name, CaptureFilterArgs args)
public CaptureFilter(String name, CaptureFilterArgs args, CustomResourceOptions options)
type: oci:Core:CaptureFilter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CaptureFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CaptureFilterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CaptureFilterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CaptureFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CaptureFilterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var captureFilterResource = new Oci.Core.CaptureFilter("captureFilterResource", new()
{
CompartmentId = "string",
FilterType = "string",
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FlowLogCaptureFilterRules = new[]
{
new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleArgs
{
DestinationCidr = "string",
FlowLogType = "string",
IcmpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs
{
Type = 0,
Code = 0,
},
IsEnabled = false,
Priority = 0,
Protocol = "string",
RuleAction = "string",
SamplingRate = 0,
SourceCidr = "string",
TcpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
{
Max = 0,
Min = 0,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs
{
Max = 0,
Min = 0,
},
},
UdpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
{
Max = 0,
Min = 0,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs
{
Max = 0,
Min = 0,
},
},
},
},
FreeformTags =
{
{ "string", "string" },
},
VtapCaptureFilterRules = new[]
{
new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleArgs
{
TrafficDirection = "string",
DestinationCidr = "string",
IcmpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs
{
Type = 0,
Code = 0,
},
Protocol = "string",
RuleAction = "string",
SourceCidr = "string",
TcpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
{
Max = 0,
Min = 0,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs
{
Max = 0,
Min = 0,
},
},
UdpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs
{
DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
{
Max = 0,
Min = 0,
},
SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs
{
Max = 0,
Min = 0,
},
},
},
},
});
example, err := Core.NewCaptureFilter(ctx, "captureFilterResource", &Core.CaptureFilterArgs{
CompartmentId: pulumi.String("string"),
FilterType: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FlowLogCaptureFilterRules: core.CaptureFilterFlowLogCaptureFilterRuleArray{
&core.CaptureFilterFlowLogCaptureFilterRuleArgs{
DestinationCidr: pulumi.String("string"),
FlowLogType: pulumi.String("string"),
IcmpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs{
Type: pulumi.Int(0),
Code: pulumi.Int(0),
},
IsEnabled: pulumi.Bool(false),
Priority: pulumi.Int(0),
Protocol: pulumi.String("string"),
RuleAction: pulumi.String("string"),
SamplingRate: pulumi.Int(0),
SourceCidr: pulumi.String("string"),
TcpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs{
DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
},
UdpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs{
DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
},
},
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VtapCaptureFilterRules: core.CaptureFilterVtapCaptureFilterRuleArray{
&core.CaptureFilterVtapCaptureFilterRuleArgs{
TrafficDirection: pulumi.String("string"),
DestinationCidr: pulumi.String("string"),
IcmpOptions: &core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs{
Type: pulumi.Int(0),
Code: pulumi.Int(0),
},
Protocol: pulumi.String("string"),
RuleAction: pulumi.String("string"),
SourceCidr: pulumi.String("string"),
TcpOptions: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs{
DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
},
UdpOptions: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs{
DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
},
},
},
})
var captureFilterResource = new CaptureFilter("captureFilterResource", CaptureFilterArgs.builder()
.compartmentId("string")
.filterType("string")
.definedTags(Map.of("string", "string"))
.displayName("string")
.flowLogCaptureFilterRules(CaptureFilterFlowLogCaptureFilterRuleArgs.builder()
.destinationCidr("string")
.flowLogType("string")
.icmpOptions(CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs.builder()
.type(0)
.code(0)
.build())
.isEnabled(false)
.priority(0)
.protocol("string")
.ruleAction("string")
.samplingRate(0)
.sourceCidr("string")
.tcpOptions(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs.builder()
.destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
.max(0)
.min(0)
.build())
.sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
.max(0)
.min(0)
.build())
.build())
.udpOptions(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs.builder()
.destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
.max(0)
.min(0)
.build())
.sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
.max(0)
.min(0)
.build())
.build())
.build())
.freeformTags(Map.of("string", "string"))
.vtapCaptureFilterRules(CaptureFilterVtapCaptureFilterRuleArgs.builder()
.trafficDirection("string")
.destinationCidr("string")
.icmpOptions(CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs.builder()
.type(0)
.code(0)
.build())
.protocol("string")
.ruleAction("string")
.sourceCidr("string")
.tcpOptions(CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs.builder()
.destinationPortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
.max(0)
.min(0)
.build())
.sourcePortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
.max(0)
.min(0)
.build())
.build())
.udpOptions(CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs.builder()
.destinationPortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
.max(0)
.min(0)
.build())
.sourcePortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
.max(0)
.min(0)
.build())
.build())
.build())
.build());
capture_filter_resource = oci.core.CaptureFilter("captureFilterResource",
compartment_id="string",
filter_type="string",
defined_tags={
"string": "string",
},
display_name="string",
flow_log_capture_filter_rules=[oci.core.CaptureFilterFlowLogCaptureFilterRuleArgs(
destination_cidr="string",
flow_log_type="string",
icmp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs(
type=0,
code=0,
),
is_enabled=False,
priority=0,
protocol="string",
rule_action="string",
sampling_rate=0,
source_cidr="string",
tcp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs(
destination_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs(
max=0,
min=0,
),
source_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs(
max=0,
min=0,
),
),
udp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs(
destination_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs(
max=0,
min=0,
),
source_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs(
max=0,
min=0,
),
),
)],
freeform_tags={
"string": "string",
},
vtap_capture_filter_rules=[oci.core.CaptureFilterVtapCaptureFilterRuleArgs(
traffic_direction="string",
destination_cidr="string",
icmp_options=oci.core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs(
type=0,
code=0,
),
protocol="string",
rule_action="string",
source_cidr="string",
tcp_options=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs(
destination_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs(
max=0,
min=0,
),
source_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs(
max=0,
min=0,
),
),
udp_options=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs(
destination_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs(
max=0,
min=0,
),
source_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs(
max=0,
min=0,
),
),
)])
const captureFilterResource = new oci.core.CaptureFilter("captureFilterResource", {
compartmentId: "string",
filterType: "string",
definedTags: {
string: "string",
},
displayName: "string",
flowLogCaptureFilterRules: [{
destinationCidr: "string",
flowLogType: "string",
icmpOptions: {
type: 0,
code: 0,
},
isEnabled: false,
priority: 0,
protocol: "string",
ruleAction: "string",
samplingRate: 0,
sourceCidr: "string",
tcpOptions: {
destinationPortRange: {
max: 0,
min: 0,
},
sourcePortRange: {
max: 0,
min: 0,
},
},
udpOptions: {
destinationPortRange: {
max: 0,
min: 0,
},
sourcePortRange: {
max: 0,
min: 0,
},
},
}],
freeformTags: {
string: "string",
},
vtapCaptureFilterRules: [{
trafficDirection: "string",
destinationCidr: "string",
icmpOptions: {
type: 0,
code: 0,
},
protocol: "string",
ruleAction: "string",
sourceCidr: "string",
tcpOptions: {
destinationPortRange: {
max: 0,
min: 0,
},
sourcePortRange: {
max: 0,
min: 0,
},
},
udpOptions: {
destinationPortRange: {
max: 0,
min: 0,
},
sourcePortRange: {
max: 0,
min: 0,
},
},
}],
});
type: oci:Core:CaptureFilter
properties:
compartmentId: string
definedTags:
string: string
displayName: string
filterType: string
flowLogCaptureFilterRules:
- destinationCidr: string
flowLogType: string
icmpOptions:
code: 0
type: 0
isEnabled: false
priority: 0
protocol: string
ruleAction: string
samplingRate: 0
sourceCidr: string
tcpOptions:
destinationPortRange:
max: 0
min: 0
sourcePortRange:
max: 0
min: 0
udpOptions:
destinationPortRange:
max: 0
min: 0
sourcePortRange:
max: 0
min: 0
freeformTags:
string: string
vtapCaptureFilterRules:
- destinationCidr: string
icmpOptions:
code: 0
type: 0
protocol: string
ruleAction: string
sourceCidr: string
tcpOptions:
destinationPortRange:
max: 0
min: 0
sourcePortRange:
max: 0
min: 0
trafficDirection: string
udpOptions:
destinationPortRange:
max: 0
min: 0
sourcePortRange:
max: 0
min: 0
CaptureFilter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CaptureFilter resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment containing the capture filter.
- Filter
Type string - Indicates which service will use this capture filter
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Flow
Log List<CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule> - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Vtap
Capture List<CaptureFilter Rules Filter Vtap Capture Filter Rule> - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the capture filter.
- Filter
Type string - Indicates which service will use this capture filter
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Flow
Log []CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule Args - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Vtap
Capture []CaptureFilter Rules Filter Vtap Capture Filter Rule Args - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment
Id String - (Updatable) The OCID of the compartment containing the capture filter.
- filter
Type String - Indicates which service will use this capture filter
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- flow
Log List<CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule> - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- vtap
Capture List<CaptureFilter Rules Filter Vtap Capture Filter Rule> - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment
Id string - (Updatable) The OCID of the compartment containing the capture filter.
- filter
Type string - Indicates which service will use this capture filter
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- flow
Log CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule[] - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- vtap
Capture CaptureFilter Rules Filter Vtap Capture Filter Rule[] - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment_
id str - (Updatable) The OCID of the compartment containing the capture filter.
- filter_
type str - Indicates which service will use this capture filter
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- flow_
log_ Sequence[core.capture_ filter_ rules Capture Filter Flow Log Capture Filter Rule Args] - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- vtap_
capture_ Sequence[core.filter_ rules Capture Filter Vtap Capture Filter Rule Args] - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment
Id String - (Updatable) The OCID of the compartment containing the capture filter.
- filter
Type String - Indicates which service will use this capture filter
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- flow
Log List<Property Map>Capture Filter Rules - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- vtap
Capture List<Property Map>Filter Rules - (Updatable) The set of rules governing what traffic a VTAP mirrors.
Outputs
All input properties are implicitly available as output properties. Additionally, the CaptureFilter resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The capture filter's current administrative state.
- Time
Created string - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The capture filter's current administrative state.
- Time
Created string - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The capture filter's current administrative state.
- time
Created String - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The capture filter's current administrative state.
- time
Created string - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The capture filter's current administrative state.
- time_
created str - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The capture filter's current administrative state.
- time
Created String - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
Look up Existing CaptureFilter Resource
Get an existing CaptureFilter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CaptureFilterState, opts?: CustomResourceOptions): CaptureFilter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
filter_type: Optional[str] = None,
flow_log_capture_filter_rules: Optional[Sequence[_core.CaptureFilterFlowLogCaptureFilterRuleArgs]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
vtap_capture_filter_rules: Optional[Sequence[_core.CaptureFilterVtapCaptureFilterRuleArgs]] = None) -> CaptureFilter
func GetCaptureFilter(ctx *Context, name string, id IDInput, state *CaptureFilterState, opts ...ResourceOption) (*CaptureFilter, error)
public static CaptureFilter Get(string name, Input<string> id, CaptureFilterState? state, CustomResourceOptions? opts = null)
public static CaptureFilter get(String name, Output<String> id, CaptureFilterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the capture filter.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filter
Type string - Indicates which service will use this capture filter
- Flow
Log List<CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule> - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- State string
- The capture filter's current administrative state.
- Time
Created string - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- Vtap
Capture List<CaptureFilter Rules Filter Vtap Capture Filter Rule> - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the capture filter.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filter
Type string - Indicates which service will use this capture filter
- Flow
Log []CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule Args - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- State string
- The capture filter's current administrative state.
- Time
Created string - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- Vtap
Capture []CaptureFilter Rules Filter Vtap Capture Filter Rule Args - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment
Id String - (Updatable) The OCID of the compartment containing the capture filter.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filter
Type String - Indicates which service will use this capture filter
- flow
Log List<CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule> - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- state String
- The capture filter's current administrative state.
- time
Created String - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- vtap
Capture List<CaptureFilter Rules Filter Vtap Capture Filter Rule> - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment
Id string - (Updatable) The OCID of the compartment containing the capture filter.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filter
Type string - Indicates which service will use this capture filter
- flow
Log CaptureCapture Filter Rules Filter Flow Log Capture Filter Rule[] - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- state string
- The capture filter's current administrative state.
- time
Created string - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- vtap
Capture CaptureFilter Rules Filter Vtap Capture Filter Rule[] - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment_
id str - (Updatable) The OCID of the compartment containing the capture filter.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filter_
type str - Indicates which service will use this capture filter
- flow_
log_ Sequence[core.capture_ filter_ rules Capture Filter Flow Log Capture Filter Rule Args] - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- state str
- The capture filter's current administrative state.
- time_
created str - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- vtap_
capture_ Sequence[core.filter_ rules Capture Filter Vtap Capture Filter Rule Args] - (Updatable) The set of rules governing what traffic a VTAP mirrors.
- compartment
Id String - (Updatable) The OCID of the compartment containing the capture filter.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filter
Type String - Indicates which service will use this capture filter
- flow
Log List<Property Map>Capture Filter Rules - (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- state String
- The capture filter's current administrative state.
- time
Created String - The date and time the capture filter was created, in the format defined by RFC3339. Example:
2021-08-25T21:10:29.600Z
- vtap
Capture List<Property Map>Filter Rules - (Updatable) The set of rules governing what traffic a VTAP mirrors.
Supporting Types
CaptureFilterFlowLogCaptureFilterRule, CaptureFilterFlowLogCaptureFilterRuleArgs
- Destination
Cidr string - (Updatable) Traffic to this CIDR will be captured in the flow log.
- Flow
Log stringType - (Updatable) Type or types of flow logs to store.
ALL
includes records for both accepted traffic and rejected traffic. - Icmp
Options CaptureFilter Flow Log Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- Is
Enabled bool - (Updatable) Indicates whether a flow log capture filter rule is enabled.
- Priority int
- (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
- Protocol string
- (Updatable) The transport protocol the filter uses.
- Rule
Action string - (Updatable) Include or exclude a ruleAction object.
- Sampling
Rate int - (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
- Source
Cidr string - (Updatable) Traffic from this CIDR will be captured in the flow log.
- Tcp
Options CaptureFilter Flow Log Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- Udp
Options CaptureFilter Flow Log Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- Destination
Cidr string - (Updatable) Traffic to this CIDR will be captured in the flow log.
- Flow
Log stringType - (Updatable) Type or types of flow logs to store.
ALL
includes records for both accepted traffic and rejected traffic. - Icmp
Options CaptureFilter Flow Log Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- Is
Enabled bool - (Updatable) Indicates whether a flow log capture filter rule is enabled.
- Priority int
- (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
- Protocol string
- (Updatable) The transport protocol the filter uses.
- Rule
Action string - (Updatable) Include or exclude a ruleAction object.
- Sampling
Rate int - (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
- Source
Cidr string - (Updatable) Traffic from this CIDR will be captured in the flow log.
- Tcp
Options CaptureFilter Flow Log Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- Udp
Options CaptureFilter Flow Log Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- destination
Cidr String - (Updatable) Traffic to this CIDR will be captured in the flow log.
- flow
Log StringType - (Updatable) Type or types of flow logs to store.
ALL
includes records for both accepted traffic and rejected traffic. - icmp
Options CaptureFilter Flow Log Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- is
Enabled Boolean - (Updatable) Indicates whether a flow log capture filter rule is enabled.
- priority Integer
- (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
- protocol String
- (Updatable) The transport protocol the filter uses.
- rule
Action String - (Updatable) Include or exclude a ruleAction object.
- sampling
Rate Integer - (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
- source
Cidr String - (Updatable) Traffic from this CIDR will be captured in the flow log.
- tcp
Options CaptureFilter Flow Log Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp
Options CaptureFilter Flow Log Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- destination
Cidr string - (Updatable) Traffic to this CIDR will be captured in the flow log.
- flow
Log stringType - (Updatable) Type or types of flow logs to store.
ALL
includes records for both accepted traffic and rejected traffic. - icmp
Options CaptureFilter Flow Log Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- is
Enabled boolean - (Updatable) Indicates whether a flow log capture filter rule is enabled.
- priority number
- (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
- protocol string
- (Updatable) The transport protocol the filter uses.
- rule
Action string - (Updatable) Include or exclude a ruleAction object.
- sampling
Rate number - (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
- source
Cidr string - (Updatable) Traffic from this CIDR will be captured in the flow log.
- tcp
Options CaptureFilter Flow Log Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp
Options CaptureFilter Flow Log Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- destination_
cidr str - (Updatable) Traffic to this CIDR will be captured in the flow log.
- flow_
log_ strtype - (Updatable) Type or types of flow logs to store.
ALL
includes records for both accepted traffic and rejected traffic. - icmp_
options core.Capture Filter Flow Log Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- is_
enabled bool - (Updatable) Indicates whether a flow log capture filter rule is enabled.
- priority int
- (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
- protocol str
- (Updatable) The transport protocol the filter uses.
- rule_
action str - (Updatable) Include or exclude a ruleAction object.
- sampling_
rate int - (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
- source_
cidr str - (Updatable) Traffic from this CIDR will be captured in the flow log.
- tcp_
options core.Capture Filter Flow Log Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp_
options core.Capture Filter Flow Log Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- destination
Cidr String - (Updatable) Traffic to this CIDR will be captured in the flow log.
- flow
Log StringType - (Updatable) Type or types of flow logs to store.
ALL
includes records for both accepted traffic and rejected traffic. - icmp
Options Property Map (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- is
Enabled Boolean - (Updatable) Indicates whether a flow log capture filter rule is enabled.
- priority Number
- (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
- protocol String
- (Updatable) The transport protocol the filter uses.
- rule
Action String - (Updatable) Include or exclude a ruleAction object.
- sampling
Rate Number - (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
- source
Cidr String - (Updatable) Traffic from this CIDR will be captured in the flow log.
- tcp
Options Property Map - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp
Options Property Map - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
CaptureFilterFlowLogCaptureFilterRuleIcmpOptions, CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs
CaptureFilterFlowLogCaptureFilterRuleTcpOptions, CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs
- destination
Port Property MapRange - (Updatable)
- source
Port Property MapRange - (Updatable)
CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRange, CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRange, CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs
CaptureFilterFlowLogCaptureFilterRuleUdpOptions, CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs
- destination
Port Property MapRange - (Updatable)
- source
Port Property MapRange - (Updatable)
CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRange, CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRange, CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs
CaptureFilterVtapCaptureFilterRule, CaptureFilterVtapCaptureFilterRuleArgs
- Traffic
Direction string - (Updatable) The traffic direction the VTAP is configured to mirror.
- Destination
Cidr string - (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- Icmp
Options CaptureFilter Vtap Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- Protocol string
- (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:
- 1 = ICMP
- 6 = TCP
- 17 = UDP
- Rule
Action string - (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
- Source
Cidr string - (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- Tcp
Options CaptureFilter Vtap Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- Udp
Options CaptureFilter Vtap Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- Traffic
Direction string - (Updatable) The traffic direction the VTAP is configured to mirror.
- Destination
Cidr string - (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- Icmp
Options CaptureFilter Vtap Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- Protocol string
- (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:
- 1 = ICMP
- 6 = TCP
- 17 = UDP
- Rule
Action string - (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
- Source
Cidr string - (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- Tcp
Options CaptureFilter Vtap Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- Udp
Options CaptureFilter Vtap Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- traffic
Direction String - (Updatable) The traffic direction the VTAP is configured to mirror.
- destination
Cidr String - (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp
Options CaptureFilter Vtap Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- protocol String
- (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:
- 1 = ICMP
- 6 = TCP
- 17 = UDP
- rule
Action String - (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
- source
Cidr String - (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp
Options CaptureFilter Vtap Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp
Options CaptureFilter Vtap Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- traffic
Direction string - (Updatable) The traffic direction the VTAP is configured to mirror.
- destination
Cidr string - (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp
Options CaptureFilter Vtap Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- protocol string
- (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:
- 1 = ICMP
- 6 = TCP
- 17 = UDP
- rule
Action string - (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
- source
Cidr string - (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp
Options CaptureFilter Vtap Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp
Options CaptureFilter Vtap Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- traffic_
direction str - (Updatable) The traffic direction the VTAP is configured to mirror.
- destination_
cidr str - (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp_
options core.Capture Filter Vtap Capture Filter Rule Icmp Options (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- protocol str
- (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:
- 1 = ICMP
- 6 = TCP
- 17 = UDP
- rule_
action str - (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
- source_
cidr str - (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp_
options core.Capture Filter Vtap Capture Filter Rule Tcp Options - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp_
options core.Capture Filter Vtap Capture Filter Rule Udp Options - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
- traffic
Direction String - (Updatable) The traffic direction the VTAP is configured to mirror.
- destination
Cidr String - (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp
Options Property Map (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.
- protocol String
- (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:
- 1 = ICMP
- 6 = TCP
- 17 = UDP
- rule
Action String - (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
- source
Cidr String - (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp
Options Property Map - (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
- udp
Options Property Map - (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
CaptureFilterVtapCaptureFilterRuleIcmpOptions, CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs
CaptureFilterVtapCaptureFilterRuleTcpOptions, CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs
- destination
Port Property MapRange - (Updatable)
- source
Port Property MapRange - (Updatable)
CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRange, CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRange, CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs
CaptureFilterVtapCaptureFilterRuleUdpOptions, CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs
- destination
Port Property MapRange - (Updatable)
- source
Port Property MapRange - (Updatable)
CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRange, CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRange, CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs
- Max int
- (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
- Min int
(Updatable) The minimum port number, which must not be greater than the maximum port number.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Max int
- (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
- Min int
(Updatable) The minimum port number, which must not be greater than the maximum port number.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- max Integer
- (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
- min Integer
(Updatable) The minimum port number, which must not be greater than the maximum port number.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- max number
- (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
- min number
(Updatable) The minimum port number, which must not be greater than the maximum port number.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- max int
- (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
- min int
(Updatable) The minimum port number, which must not be greater than the maximum port number.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- max Number
- (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
- min Number
(Updatable) The minimum port number, which must not be greater than the maximum port number.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
CaptureFilters can be imported using the id
, e.g.
$ pulumi import oci:Core/captureFilter:CaptureFilter test_capture_filter "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.