Skip to main content

addons

Creates, updates, deletes, gets or lists an addons resource.

Overview​

Nameaddons
TypeResource
Idoci.container_engine.addons

Fields​

The following fields are returned by SELECT queries:

Addon details.

NameDatatypeDescription
namestringThe name of the addon. (example: flannel)
addonErrorobjectThe error info of the addon.
configurationsarrayAddon configuration details.
currentInstalledVersionstringcurrent installed version of the addon (example: x.y.z)
lifecycleStatestringThe state of the addon. (CREATING, ACTIVE, DELETING, DELETED, UPDATING, NEEDS_ATTENTION, FAILED) (example: UPDATING, x-obmcs-top-level-enum: #/definitions/AddonLifecycleState)
timeCreatedstring (date-time)The time the cluster was created. (example: 2017-07-21T16:11:29Z)
versionstringselected addon version, or null indicates autoUpdate (example: x.y.z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectclusterId, addonName, regionopc-request-idGet the specified addon for a cluster.
listselectclusterId, regionopc-request-id, limit, page, sortOrder, sortByList addon for a provisioned cluster.
updateupdateclusterId, addonName, regionif-match, opc-request-idUpdate addon details for a cluster.
install_addonexecclusterId, region, addonNameopc-retry-token, opc-request-id, if-matchInstall the specified addon for a cluster.
disable_addonexecclusterId, addonName, isRemoveExistingAddOn, regionif-match, opc-request-idDisable addon for a provisioned cluster.

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
addonNamestringThe name of the addon.
clusterIdstringThe OCID of the cluster.
isRemoveExistingAddOnbooleanWhether existing addon resources should be deleted or not. True would remove the underlying resources completely.
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)
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
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).
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.
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 specified addon for a cluster.

SELECT
name,
addonError,
configurations,
currentInstalledVersion,
lifecycleState,
timeCreated,
version
FROM oci.container_engine.addons
WHERE clusterId = '{{ clusterId }}' -- required
AND addonName = '{{ addonName }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

UPDATE examples​

Update addon details for a cluster.

UPDATE oci.container_engine.addons
SET
configurations = '{{ configurations }}',
version = '{{ version }}'
WHERE
clusterId = '{{ clusterId }}' --required
AND addonName = '{{ addonName }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}';

Lifecycle Methods​

Install the specified addon for a cluster.

EXEC oci.container_engine.addons.install_addon
@clusterId='{{ clusterId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"addonName": "{{ addonName }}",
"configurations": "{{ configurations }}",
"isOverrideExisting": {{ isOverrideExisting }},
"version": "{{ version }}"
}'
;