Skip to main content

virtual_nodes

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

Overview​

Namevirtual_nodes
TypeResource
Idoci.container_engine.virtual_nodes

Fields​

The following fields are returned by SELECT queries:

The virtual node.

NameDatatypeDescription
idstringThe ocid of the virtual node. (example: ocid1.virtualnode.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgyswgycdoy3tcmtctmyw)
availabilityDomainstringThe name of the availability domain in which this virtual node is placed
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}}
displayNamestringThe name of the virtual node. (example: My Kubernetes virtual Node)
faultDomainstringThe fault domain of this virtual node.
freeformTagsobjectFree-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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"}
kubernetesVersionstringThe version of Kubernetes this virtual node is running. (example: v1.9.4)
lifecycleDetailsstringDetails about the state of the Virtual Node.
lifecycleStatestringThe state of the Virtual Node. (CREATING, ACTIVE, UPDATING, DELETING, DELETED, FAILED, NEEDS_ATTENTION) (x-obmcs-top-level-enum: #/definitions/VirtualNodeLifecycleState)
nsgIdsarrayNSG Ids applied to virtual node vnic.
privateIpstringThe private IP address of this Virtual Node.
subnetIdstringThe OCID of the subnet in which this Virtual Node is placed.
systemTagsobjectUsage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}}
timeCreatedstring (date-time)The time at which the virtual node was created. (example: 2017-07-21T16:11:29Z)
virtualNodeErrorstringAn error that may be associated with the virtual node.
virtualNodePoolIdstringThe ocid of the virtual node pool this virtual node belongs to. (example: ocid1.virtualnodepool.oc1.iad.aaaaaaaanifpelnyzmkvnepohbz4ntswkpl35syzzsugdxceth3oihe8hcfq)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvirtualNodePoolId, virtualNodeId, regionopc-request-idGet the details of a virtual node.
listselectvirtualNodePoolId, regionopc-request-id, name, limit, page, sortOrder, sortByList virtual nodes in a virtual node pool.

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
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)
virtualNodeIdstringThe OCID of the virtual node.
virtualNodePoolIdstringThe OCID of the virtual node pool.
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. 1 is the minimum, 1000 is the maximum. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
namestringThe name to filter on.
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
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 optional field to sort the results by.
sortOrderstringThe optional order in which to sort the results.

SELECT examples​

Get the details of a virtual node.

SELECT
id,
availabilityDomain,
definedTags,
displayName,
faultDomain,
freeformTags,
kubernetesVersion,
lifecycleDetails,
lifecycleState,
nsgIds,
privateIp,
subnetId,
systemTags,
timeCreated,
virtualNodeError,
virtualNodePoolId
FROM oci.container_engine.virtual_nodes
WHERE virtualNodePoolId = '{{ virtualNodePoolId }}' -- required
AND virtualNodeId = '{{ virtualNodeId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;