import * as pulumi from "@pulumi/pulumi"; /** * This data source provides details about a specific Vnic resource in Oracle Cloud Infrastructure Core service. * * Gets the information for the specified virtual network interface card (VNIC). * You can get the VNIC [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from the * [ListVnicAttachments](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/VnicAttachment/ListVnicAttachments) * operation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVnic = oci.core.getVnic({ * vnicId: testVnicOciCoreVnic.id, * }); * ``` */ export declare function getVnic(args: GetVnicArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVnic. */ export interface GetVnicArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. */ vnicId: string; } /** * A collection of values returned by getVnic. */ export interface GetVnicResult { /** * The VNIC's availability domain. Example: `Uocm:PHX-AD-1` */ readonly availabilityDomain: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VNIC. */ readonly compartmentId: string; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: { [key: string]: string; }; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName: 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: { [key: string]: string; }; /** * The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example, `bminstance1` in FQDN `bminstance1.subnet123.vcn1.oraclevcn.com`). Must be unique across all VNICs in the subnet and comply with [RFC 952](https://tools.ietf.org/html/rfc952) and [RFC 1123](https://tools.ietf.org/html/rfc1123). */ readonly hostnameLabel: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * List of IPv6 addresses assigned to the VNIC. Example: `2001:DB8::` */ readonly ipv6addresses: string[]; /** * Whether the VNIC is the primary VNIC (the VNIC that is automatically created and attached during instance launch). */ readonly isPrimary: boolean; /** * The MAC address of the VNIC. */ readonly macAddress: string; /** * A list of the OCIDs of the network security groups that the VNIC belongs to. */ readonly nsgIds: string[]; /** * The private IP address of the primary `privateIp` object on the VNIC. The address is within the CIDR of the VNIC's subnet. Example: `10.0.3.3` */ readonly privateIpAddress: string; /** * The public IP address of the VNIC, if one is assigned. */ readonly publicIpAddress: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the IP address or VNIC will use. For more information, see [Source Based Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ readonly routeTableId: string; /** * [Security attributes](https://docs.cloud.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) are labels for a resource that can be referenced in a [Zero Trust Packet Routing](https://docs.cloud.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) policy to control access to ZPR-supported resources. Example: `{"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}` */ readonly securityAttributes: { [key: string]: string; }; /** * Whether the source/destination check is disabled on the VNIC. Defaults to `false`, which means the check is performed. For information about why you would skip the source/destination check, see [Using a Private IP as a Route Target](https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). */ readonly skipSourceDestCheck: boolean; /** * The current state of the VNIC. */ readonly state: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. */ readonly subnetId: string; /** * The date and time the VNIC was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: string; /** * If the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution (instead of belonging to a subnet), the `vlanId` is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN the VNIC is in. See [Vlan](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/Vlan). If the VNIC is instead in a subnet, `subnetId` has a value. */ readonly vlanId: string; readonly vnicId: string; } /** * This data source provides details about a specific Vnic resource in Oracle Cloud Infrastructure Core service. * * Gets the information for the specified virtual network interface card (VNIC). * You can get the VNIC [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from the * [ListVnicAttachments](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/VnicAttachment/ListVnicAttachments) * operation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVnic = oci.core.getVnic({ * vnicId: testVnicOciCoreVnic.id, * }); * ``` */ export declare function getVnicOutput(args: GetVnicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVnic. */ export interface GetVnicOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. */ vnicId: pulumi.Input; } //# sourceMappingURL=getVnic.d.ts.map