Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getVtap
Explore with Pulumi AI
This data source provides details about a specific Vtap resource in Oracle Cloud Infrastructure Core service.
Gets the specified Vtap
resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVtap = oci.Core.getVtap({
vtapId: testVtapOciCoreVtap.id,
});
import pulumi
import pulumi_oci as oci
test_vtap = oci.Core.get_vtap(vtap_id=test_vtap_oci_core_vtap["id"])
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.GetVtap(ctx, &core.GetVtapArgs{
VtapId: testVtapOciCoreVtap.Id,
}, nil)
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 testVtap = Oci.Core.GetVtap.Invoke(new()
{
VtapId = testVtapOciCoreVtap.Id,
});
});
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.GetVtapArgs;
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 testVtap = CoreFunctions.getVtap(GetVtapArgs.builder()
.vtapId(testVtapOciCoreVtap.id())
.build());
}
}
variables:
testVtap:
fn::invoke:
Function: oci:Core:getVtap
Arguments:
vtapId: ${testVtapOciCoreVtap.id}
Using getVtap
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 getVtap(args: GetVtapArgs, opts?: InvokeOptions): Promise<GetVtapResult>
function getVtapOutput(args: GetVtapOutputArgs, opts?: InvokeOptions): Output<GetVtapResult>
def get_vtap(vtap_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVtapResult
def get_vtap_output(vtap_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVtapResult]
func GetVtap(ctx *Context, args *GetVtapArgs, opts ...InvokeOption) (*GetVtapResult, error)
func GetVtapOutput(ctx *Context, args *GetVtapOutputArgs, opts ...InvokeOption) GetVtapResultOutput
> Note: This function is named GetVtap
in the Go SDK.
public static class GetVtap
{
public static Task<GetVtapResult> InvokeAsync(GetVtapArgs args, InvokeOptions? opts = null)
public static Output<GetVtapResult> Invoke(GetVtapInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVtapResult> getVtap(GetVtapArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVtap:getVtap
arguments:
# arguments dictionary
The following arguments are supported:
getVtap Result
The following output properties are available:
- Capture
Filter stringId - The capture filter's Oracle ID (OCID).
- Compartment
Id string - The OCID of the compartment containing the
Vtap
resource. - Dictionary<string, string>
- 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.
- Encapsulation
Protocol string - Defines an encapsulation header type for the VTAP's mirrored traffic.
- Dictionary<string, string>
- 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 VTAP's Oracle ID (OCID).
- Is
Vtap boolEnabled - Used to start or stop a
Vtap
resource.TRUE
directs the VTAP to start mirroring traffic.FALSE
(Default) directs the VTAP to stop mirroring traffic.
- Lifecycle
State stringDetails - The VTAP's current running state.
- Max
Packet intSize - The maximum size of the packets to be included in the filter.
- Source
Id string - The OCID of the source point where packets are captured.
- Source
Private stringEndpoint Ip - The IP Address of the source private endpoint.
- Source
Private stringEndpoint Subnet Id - The OCID of the subnet that source private endpoint belongs to.
- Source
Type string - The source type for the VTAP.
- State string
- The VTAP's administrative lifecycle state.
- Target
Id string - The OCID of the destination resource where mirrored packets are sent.
- Target
Ip string - The IP address of the destination resource where mirrored packets are sent.
- Target
Type string - The target type for the VTAP.
- Time
Created string - The date and time the VTAP was created, in the format defined by RFC3339. Example:
2020-08-25T21:10:29.600Z
- Traffic
Mode string - Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT
- Vcn
Id string - The OCID of the VCN containing the
Vtap
resource. - Vtap
Id string - Vxlan
Network stringIdentifier - The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
- Capture
Filter stringId - The capture filter's Oracle ID (OCID).
- Compartment
Id string - The OCID of the compartment containing the
Vtap
resource. - map[string]string
- 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.
- Encapsulation
Protocol string - Defines an encapsulation header type for the VTAP's mirrored traffic.
- map[string]string
- 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 VTAP's Oracle ID (OCID).
- Is
Vtap boolEnabled - Used to start or stop a
Vtap
resource.TRUE
directs the VTAP to start mirroring traffic.FALSE
(Default) directs the VTAP to stop mirroring traffic.
- Lifecycle
State stringDetails - The VTAP's current running state.
- Max
Packet intSize - The maximum size of the packets to be included in the filter.
- Source
Id string - The OCID of the source point where packets are captured.
- Source
Private stringEndpoint Ip - The IP Address of the source private endpoint.
- Source
Private stringEndpoint Subnet Id - The OCID of the subnet that source private endpoint belongs to.
- Source
Type string - The source type for the VTAP.
- State string
- The VTAP's administrative lifecycle state.
- Target
Id string - The OCID of the destination resource where mirrored packets are sent.
- Target
Ip string - The IP address of the destination resource where mirrored packets are sent.
- Target
Type string - The target type for the VTAP.
- Time
Created string - The date and time the VTAP was created, in the format defined by RFC3339. Example:
2020-08-25T21:10:29.600Z
- Traffic
Mode string - Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT
- Vcn
Id string - The OCID of the VCN containing the
Vtap
resource. - Vtap
Id string - Vxlan
Network stringIdentifier - The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
- capture
Filter StringId - The capture filter's Oracle ID (OCID).
- compartment
Id String - The OCID of the compartment containing the
Vtap
resource. - Map<String,String>
- 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.
- encapsulation
Protocol String - Defines an encapsulation header type for the VTAP's mirrored traffic.
- Map<String,String>
- 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 VTAP's Oracle ID (OCID).
- is
Vtap BooleanEnabled - Used to start or stop a
Vtap
resource.TRUE
directs the VTAP to start mirroring traffic.FALSE
(Default) directs the VTAP to stop mirroring traffic.
- lifecycle
State StringDetails - The VTAP's current running state.
- max
Packet IntegerSize - The maximum size of the packets to be included in the filter.
- source
Id String - The OCID of the source point where packets are captured.
- source
Private StringEndpoint Ip - The IP Address of the source private endpoint.
- source
Private StringEndpoint Subnet Id - The OCID of the subnet that source private endpoint belongs to.
- source
Type String - The source type for the VTAP.
- state String
- The VTAP's administrative lifecycle state.
- target
Id String - The OCID of the destination resource where mirrored packets are sent.
- target
Ip String - The IP address of the destination resource where mirrored packets are sent.
- target
Type String - The target type for the VTAP.
- time
Created String - The date and time the VTAP was created, in the format defined by RFC3339. Example:
2020-08-25T21:10:29.600Z
- traffic
Mode String - Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT
- vcn
Id String - The OCID of the VCN containing the
Vtap
resource. - vtap
Id String - vxlan
Network StringIdentifier - The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
- capture
Filter stringId - The capture filter's Oracle ID (OCID).
- compartment
Id string - The OCID of the compartment containing the
Vtap
resource. - {[key: string]: string}
- 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.
- encapsulation
Protocol string - Defines an encapsulation header type for the VTAP's mirrored traffic.
- {[key: string]: string}
- 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 VTAP's Oracle ID (OCID).
- is
Vtap booleanEnabled - Used to start or stop a
Vtap
resource.TRUE
directs the VTAP to start mirroring traffic.FALSE
(Default) directs the VTAP to stop mirroring traffic.
- lifecycle
State stringDetails - The VTAP's current running state.
- max
Packet numberSize - The maximum size of the packets to be included in the filter.
- source
Id string - The OCID of the source point where packets are captured.
- source
Private stringEndpoint Ip - The IP Address of the source private endpoint.
- source
Private stringEndpoint Subnet Id - The OCID of the subnet that source private endpoint belongs to.
- source
Type string - The source type for the VTAP.
- state string
- The VTAP's administrative lifecycle state.
- target
Id string - The OCID of the destination resource where mirrored packets are sent.
- target
Ip string - The IP address of the destination resource where mirrored packets are sent.
- target
Type string - The target type for the VTAP.
- time
Created string - The date and time the VTAP was created, in the format defined by RFC3339. Example:
2020-08-25T21:10:29.600Z
- traffic
Mode string - Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT
- vcn
Id string - The OCID of the VCN containing the
Vtap
resource. - vtap
Id string - vxlan
Network stringIdentifier - The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
- capture_
filter_ strid - The capture filter's Oracle ID (OCID).
- compartment_
id str - The OCID of the compartment containing the
Vtap
resource. - Mapping[str, str]
- 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.
- encapsulation_
protocol str - Defines an encapsulation header type for the VTAP's mirrored traffic.
- Mapping[str, str]
- 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 VTAP's Oracle ID (OCID).
- is_
vtap_ boolenabled - Used to start or stop a
Vtap
resource.TRUE
directs the VTAP to start mirroring traffic.FALSE
(Default) directs the VTAP to stop mirroring traffic.
- lifecycle_
state_ strdetails - The VTAP's current running state.
- max_
packet_ intsize - The maximum size of the packets to be included in the filter.
- source_
id str - The OCID of the source point where packets are captured.
- source_
private_ strendpoint_ ip - The IP Address of the source private endpoint.
- source_
private_ strendpoint_ subnet_ id - The OCID of the subnet that source private endpoint belongs to.
- source_
type str - The source type for the VTAP.
- state str
- The VTAP's administrative lifecycle state.
- target_
id str - The OCID of the destination resource where mirrored packets are sent.
- target_
ip str - The IP address of the destination resource where mirrored packets are sent.
- target_
type str - The target type for the VTAP.
- time_
created str - The date and time the VTAP was created, in the format defined by RFC3339. Example:
2020-08-25T21:10:29.600Z
- traffic_
mode str - Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT
- vcn_
id str - The OCID of the VCN containing the
Vtap
resource. - vtap_
id str - vxlan_
network_ stridentifier - The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
- capture
Filter StringId - The capture filter's Oracle ID (OCID).
- compartment
Id String - The OCID of the compartment containing the
Vtap
resource. - Map<String>
- 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.
- encapsulation
Protocol String - Defines an encapsulation header type for the VTAP's mirrored traffic.
- Map<String>
- 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 VTAP's Oracle ID (OCID).
- is
Vtap BooleanEnabled - Used to start or stop a
Vtap
resource.TRUE
directs the VTAP to start mirroring traffic.FALSE
(Default) directs the VTAP to stop mirroring traffic.
- lifecycle
State StringDetails - The VTAP's current running state.
- max
Packet NumberSize - The maximum size of the packets to be included in the filter.
- source
Id String - The OCID of the source point where packets are captured.
- source
Private StringEndpoint Ip - The IP Address of the source private endpoint.
- source
Private StringEndpoint Subnet Id - The OCID of the subnet that source private endpoint belongs to.
- source
Type String - The source type for the VTAP.
- state String
- The VTAP's administrative lifecycle state.
- target
Id String - The OCID of the destination resource where mirrored packets are sent.
- target
Ip String - The IP address of the destination resource where mirrored packets are sent.
- target
Type String - The target type for the VTAP.
- time
Created String - The date and time the VTAP was created, in the format defined by RFC3339. Example:
2020-08-25T21:10:29.600Z
- traffic
Mode String - Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT
- vcn
Id String - The OCID of the VCN containing the
Vtap
resource. - vtap
Id String - vxlan
Network StringIdentifier - The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.