oci.Core.getCaptureFilter
Explore with Pulumi AI
This data source provides details about a specific Capture Filter resource in Oracle Cloud Infrastructure Core service.
Gets information about the specified VTAP capture filter.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testCaptureFilter = Oci.Core.GetCaptureFilter.Invoke(new()
{
CaptureFilterId = oci_core_capture_filter.Test_capture_filter.Id,
});
});
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.GetCaptureFilter(ctx, &core.GetCaptureFilterArgs{
CaptureFilterId: oci_core_capture_filter.Test_capture_filter.Id,
}, 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.GetCaptureFilterArgs;
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 testCaptureFilter = CoreFunctions.getCaptureFilter(GetCaptureFilterArgs.builder()
.captureFilterId(oci_core_capture_filter.test_capture_filter().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_capture_filter = oci.Core.get_capture_filter(capture_filter_id=%!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 testCaptureFilter = oci.Core.getCaptureFilter({
captureFilterId: oci_core_capture_filter.test_capture_filter.id,
});
variables:
testCaptureFilter:
fn::invoke:
Function: oci:Core:getCaptureFilter
Arguments:
captureFilterId: ${oci_core_capture_filter.test_capture_filter.id}
Using getCaptureFilter
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 getCaptureFilter(args: GetCaptureFilterArgs, opts?: InvokeOptions): Promise<GetCaptureFilterResult>
function getCaptureFilterOutput(args: GetCaptureFilterOutputArgs, opts?: InvokeOptions): Output<GetCaptureFilterResult>
def get_capture_filter(capture_filter_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCaptureFilterResult
def get_capture_filter_output(capture_filter_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCaptureFilterResult]
func GetCaptureFilter(ctx *Context, args *GetCaptureFilterArgs, opts ...InvokeOption) (*GetCaptureFilterResult, error)
func GetCaptureFilterOutput(ctx *Context, args *GetCaptureFilterOutputArgs, opts ...InvokeOption) GetCaptureFilterResultOutput
> Note: This function is named GetCaptureFilter
in the Go SDK.
public static class GetCaptureFilter
{
public static Task<GetCaptureFilterResult> InvokeAsync(GetCaptureFilterArgs args, InvokeOptions? opts = null)
public static Output<GetCaptureFilterResult> Invoke(GetCaptureFilterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCaptureFilterResult> getCaptureFilter(GetCaptureFilterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getCaptureFilter:getCaptureFilter
arguments:
# arguments dictionary
The following arguments are supported:
- Capture
Filter stringId The OCID of the capture filter.
- Capture
Filter stringId The OCID of the capture filter.
- capture
Filter StringId The OCID of the capture filter.
- capture
Filter stringId The OCID of the capture filter.
- capture_
filter_ strid The OCID of the capture filter.
- capture
Filter StringId The OCID of the capture filter.
getCaptureFilter Result
The following output properties are available:
- Capture
Filter stringId - Compartment
Id string The OCID of the compartment containing the capture filter.
- 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 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
- 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
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<GetFilter Rules Capture Filter Vtap Capture Filter Rule> The set of rules governing what traffic a VTAP mirrors.
- Capture
Filter stringId - Compartment
Id string The OCID of the compartment containing the capture filter.
- 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 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
- 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
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 []GetFilter Rules Capture Filter Vtap Capture Filter Rule The set of rules governing what traffic a VTAP mirrors.
- capture
Filter StringId - compartment
Id String The OCID of the compartment containing the capture filter.
- 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 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
- 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
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<GetFilter Rules Capture Filter Vtap Capture Filter Rule> The set of rules governing what traffic a VTAP mirrors.
- capture
Filter stringId - compartment
Id string The OCID of the compartment containing the capture filter.
- {[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 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
- {[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
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 GetFilter Rules Capture Filter Vtap Capture Filter Rule[] The set of rules governing what traffic a VTAP mirrors.
- capture_
filter_ strid - compartment_
id str The OCID of the compartment containing the capture filter.
- 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 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
- 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
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_ Getfilter_ rules Capture Filter Vtap Capture Filter Rule] The set of rules governing what traffic a VTAP mirrors.
- capture
Filter StringId - compartment
Id String The OCID of the compartment containing the capture filter.
- 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 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
- 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
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 The set of rules governing what traffic a VTAP mirrors.
Supporting Types
GetCaptureFilterVtapCaptureFilterRule
- Destination
Cidr string Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
- Icmp
Options List<GetCapture 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.
GetCaptureFilterVtapCaptureFilterRuleIcmpOption
GetCaptureFilterVtapCaptureFilterRuleTcpOption
GetCaptureFilterVtapCaptureFilterRuleTcpOptionDestinationPortRange
GetCaptureFilterVtapCaptureFilterRuleTcpOptionSourcePortRange
GetCaptureFilterVtapCaptureFilterRuleUdpOption
GetCaptureFilterVtapCaptureFilterRuleUdpOptionDestinationPortRange
GetCaptureFilterVtapCaptureFilterRuleUdpOptionSourcePortRange
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.