Skip to main content

network_security_group_vnics

Creates, updates, deletes, gets or lists a network_security_group_vnics resource.

Overview​

Namenetwork_security_group_vnics
TypeResource
Idoci.network.network_security_group_vnics

Fields​

The following fields are returned by SELECT queries:

Information about a VNIC that belongs to a network security group.<br />

NameDatatypeDescription
resourceIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the parent resource that the VNIC is attached to (for example, a Compute instance).
timeAssociatedstring (date-time)The date and time the VNIC was added to the network security group, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
vnicIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the VNIC.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectnetworkSecurityGroupId, regionlimit, page, sortBy, sortOrderLists the VNICs in the specified network security group.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
networkSecurityGroupIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the network security group.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
sortBystringThe field to sort by.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

SELECT examples​

Lists the VNICs in the specified network security group.<br />

SELECT
resourceId,
timeAssociated,
vnicId
FROM oci.network.network_security_group_vnics
WHERE networkSecurityGroupId = '{{ networkSecurityGroupId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
;