oci.Core.getCaptureFilters
Explore with Pulumi AI
This data source provides the list of Capture Filters in Oracle Cloud Infrastructure Core service.
Lists the capture filters in the specified compartment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCaptureFilters = Oci.Core.GetCaptureFilters.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Capture_filter_display_name,
State = @var.Capture_filter_state,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.GetCaptureFilters(ctx, &core.GetCaptureFiltersArgs{
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Capture_filter_display_name),
State: pulumi.StringRef(_var.Capture_filter_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetCaptureFiltersArgs;
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 testCaptureFilters = CoreFunctions.getCaptureFilters(GetCaptureFiltersArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.capture_filter_display_name())
.state(var_.capture_filter_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_capture_filters = oci.Core.get_capture_filters(compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
state=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCaptureFilters = oci.Core.getCaptureFilters({
compartmentId: _var.compartment_id,
displayName: _var.capture_filter_display_name,
state: _var.capture_filter_state,
});
variables:
testCaptureFilters:
fn::invoke:
Function: oci:Core:getCaptureFilters
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.capture_filter_display_name}
state: ${var.capture_filter_state}
Using getCaptureFilters
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 getCaptureFilters(args: GetCaptureFiltersArgs, opts?: InvokeOptions): Promise<GetCaptureFiltersResult>
function getCaptureFiltersOutput(args: GetCaptureFiltersOutputArgs, opts?: InvokeOptions): Output<GetCaptureFiltersResult>
def get_capture_filters(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetCaptureFiltersFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCaptureFiltersResult
def get_capture_filters_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetCaptureFiltersFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCaptureFiltersResult]
func GetCaptureFilters(ctx *Context, args *GetCaptureFiltersArgs, opts ...InvokeOption) (*GetCaptureFiltersResult, error)
func GetCaptureFiltersOutput(ctx *Context, args *GetCaptureFiltersOutputArgs, opts ...InvokeOption) GetCaptureFiltersResultOutput
> Note: This function is named GetCaptureFilters
in the Go SDK.
public static class GetCaptureFilters
{
public static Task<GetCaptureFiltersResult> InvokeAsync(GetCaptureFiltersArgs args, InvokeOptions? opts = null)
public static Output<GetCaptureFiltersResult> Invoke(GetCaptureFiltersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCaptureFiltersResult> getCaptureFilters(GetCaptureFiltersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getCaptureFilters:getCaptureFilters
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Capture Filters Filter> - State string
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- Compartment
Id string The OCID of the compartment.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Capture Filters Filter - State string
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to return only resources that match the given display name exactly.
- filters
List<Get
Capture Filters Filter> - state String
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- compartment
Id string The OCID of the compartment.
- display
Name string A filter to return only resources that match the given display name exactly.
- filters
Get
Capture Filters Filter[] - state string
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- compartment_
id str The OCID of the compartment.
- display_
name str A filter to return only resources that match the given display name exactly.
- filters
Get
Capture Filters Filter] - state str
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- compartment
Id String The OCID of the compartment.
- display
Name String A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- state String
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
getCaptureFilters Result
The following output properties are available:
- Capture
Filters List<GetCapture Filters Capture Filter> The list of capture_filters.
- Compartment
Id string The OCID of the compartment containing the capture filter.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Capture Filters Filter> - State string
The capture filter's current administrative state.
- Capture
Filters []GetCapture Filters Capture Filter The list of capture_filters.
- Compartment
Id string The OCID of the compartment containing the capture filter.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Capture Filters Filter - State string
The capture filter's current administrative state.
- capture
Filters List<GetCapture Filters Capture Filter> The list of capture_filters.
- compartment
Id String The OCID of the compartment containing the capture filter.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Capture Filters Filter> - state String
The capture filter's current administrative state.
- capture
Filters GetCapture Filters Capture Filter[] The list of capture_filters.
- compartment
Id string The OCID of the compartment containing the capture filter.
- id string
The provider-assigned unique ID for this managed resource.
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Capture Filters Filter[] - state string
The capture filter's current administrative state.
- capture_
filters GetCapture Filters Capture Filter] The list of capture_filters.
- compartment_
id str The OCID of the compartment containing the capture filter.
- id str
The provider-assigned unique ID for this managed resource.
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Capture Filters Filter] - state str
The capture filter's current administrative state.
- capture
Filters List<Property Map> The list of capture_filters.
- compartment
Id String The OCID of the compartment containing the capture filter.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
The capture filter's current administrative state.
Supporting Types
GetCaptureFiltersCaptureFilter
- Compartment
Id string The OCID of the compartment.
- Dictionary<string, object>
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 A filter to return only resources that match the given display name exactly.
- Filter
Type string Indicates which service will use this capture filter
- Dictionary<string, object>
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"}
- Id string
The capture filter's Oracle ID (OCID).
- State string
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- 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<GetFilter Rules Capture Filters Capture Filter Vtap Capture Filter Rule> The set of rules governing what traffic a VTAP mirrors.
- Compartment
Id string The OCID of the compartment.
- map[string]interface{}
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 A filter to return only resources that match the given display name exactly.
- Filter
Type string Indicates which service will use this capture filter
- map[string]interface{}
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"}
- Id string
The capture filter's Oracle ID (OCID).
- State string
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- 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 []GetFilter Rules Capture Filters Capture Filter Vtap Capture Filter Rule The set of rules governing what traffic a VTAP mirrors.
- compartment
Id String The OCID of the compartment.
- Map<String,Object>
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 A filter to return only resources that match the given display name exactly.
- filter
Type String Indicates which service will use this capture filter
- Map<String,Object>
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"}
- id String
The capture filter's Oracle ID (OCID).
- state String
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- 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<GetFilter Rules Capture Filters Capture Filter Vtap Capture Filter Rule> The set of rules governing what traffic a VTAP mirrors.
- compartment
Id string The OCID of the compartment.
- {[key: string]: any}
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 A filter to return only resources that match the given display name exactly.
- filter
Type string Indicates which service will use this capture filter
- {[key: string]: any}
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"}
- id string
The capture filter's Oracle ID (OCID).
- state string
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- 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 GetFilter Rules Capture Filters Capture Filter Vtap Capture Filter Rule[] The set of rules governing what traffic a VTAP mirrors.
- compartment_
id str The OCID of the compartment.
- Mapping[str, Any]
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 A filter to return only resources that match the given display name exactly.
- filter_
type str Indicates which service will use this capture filter
- Mapping[str, Any]
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"}
- id str
The capture filter's Oracle ID (OCID).
- state str
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- 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_ Getfilter_ rules Capture Filters Capture Filter Vtap Capture Filter Rule] The set of rules governing what traffic a VTAP mirrors.
- compartment
Id String The OCID of the compartment.
- Map<Any>
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 A filter to return only resources that match the given display name exactly.
- filter
Type String Indicates which service will use this capture filter
- Map<Any>
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"}
- id String
The capture filter's Oracle ID (OCID).
- state String
A filter to return only resources that match the given capture filter lifecycle state. The state value is case-insensitive.
- 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 The set of rules governing what traffic a VTAP mirrors.
GetCaptureFiltersCaptureFilterVtapCaptureFilterRule
- Destination
Cidr string Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- Icmp
Options List<GetCapture Filters Capture Filter Vtap Capture Filter Rule Icmp Option> Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
- Protocol string
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 Include or exclude packets meeting this definition from mirrored traffic.
- Source
Cidr string Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- Tcp
Options List<GetCapture Filters Capture Filter Vtap Capture Filter Rule Tcp Option> 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.
- Traffic
Direction string The traffic direction the VTAP is configured to mirror.
- Udp
Options List<GetCapture Filters Capture Filter Vtap Capture Filter Rule Udp Option> 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 Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- Icmp
Options []GetCapture Filters Capture Filter Vtap Capture Filter Rule Icmp Option Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
- Protocol string
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 Include or exclude packets meeting this definition from mirrored traffic.
- Source
Cidr string Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- Tcp
Options []GetCapture Filters Capture Filter Vtap Capture Filter Rule Tcp Option 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.
- Traffic
Direction string The traffic direction the VTAP is configured to mirror.
- Udp
Options []GetCapture Filters Capture Filter Vtap Capture Filter Rule Udp Option 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 Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp
Options List<GetCapture Filters Capture Filter Vtap Capture Filter Rule Icmp Option> Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
- protocol String
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 Include or exclude packets meeting this definition from mirrored traffic.
- source
Cidr String Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp
Options List<GetCapture Filters Capture Filter Vtap Capture Filter Rule Tcp Option> 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.
- traffic
Direction String The traffic direction the VTAP is configured to mirror.
- udp
Options List<GetCapture Filters Capture Filter Vtap Capture Filter Rule Udp Option> 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 Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp
Options GetCapture Filters Capture Filter Vtap Capture Filter Rule Icmp Option[] Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
- protocol string
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 Include or exclude packets meeting this definition from mirrored traffic.
- source
Cidr string Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp
Options GetCapture Filters Capture Filter Vtap Capture Filter Rule Tcp Option[] 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.
- traffic
Direction string The traffic direction the VTAP is configured to mirror.
- udp
Options GetCapture Filters Capture Filter Vtap Capture Filter Rule Udp Option[] 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 Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp_
options GetCapture Filters Capture Filter Vtap Capture Filter Rule Icmp Option] Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
- protocol str
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 Include or exclude packets meeting this definition from mirrored traffic.
- source_
cidr str Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp_
options GetCapture Filters Capture Filter Vtap Capture Filter Rule Tcp Option] 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.
- traffic_
direction str The traffic direction the VTAP is configured to mirror.
- udp_
options GetCapture Filters Capture Filter Vtap Capture Filter Rule Udp Option] 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 Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- icmp
Options List<Property Map> Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:
- protocol String
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 Include or exclude packets meeting this definition from mirrored traffic.
- source
Cidr String Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
- tcp
Options List<Property Map> 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.
- traffic
Direction String The traffic direction the VTAP is configured to mirror.
- udp
Options List<Property Map> 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.
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleIcmpOption
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleTcpOption
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleTcpOptionDestinationPortRange
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleTcpOptionSourcePortRange
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleUdpOption
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleUdpOptionDestinationPortRange
GetCaptureFiltersCaptureFilterVtapCaptureFilterRuleUdpOptionSourcePortRange
GetCaptureFiltersFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.