network_security_group_vnics
Creates, updates, deletes, gets or lists a network_security_group_vnics resource.
Overview​
| Name | network_security_group_vnics |
| Type | Resource |
| Id | oci.network.network_security_group_vnics |
Fields​
The following fields are returned by SELECT queries:
- list
Information about a VNIC that belongs to a network security group.<br />
| Name | Datatype | Description |
|---|---|---|
resourceId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the parent resource that the VNIC is attached to (for example, a Compute instance). |
timeAssociated | string (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 |
vnicId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | networkSecurityGroupId, region | limit, page, sortBy, sortOrder | Lists 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.
| Name | Datatype | Description |
|---|---|---|
networkSecurityGroupId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the network security group. |
region | string | OCI 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) |
limit | integer | For 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 |
page | string | For 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). |
sortBy | string | The field to sort by. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive. |
SELECT examples​
- list
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 }}'
;