Skip to main content

kubernetes_cluster_features

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

Overview

Namekubernetes_cluster_features
TypeResource
Idazure.nexus.kubernetes_cluster_features

Fields

NameDatatypeDescription
availability_lifecycletextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
featureNametextfield from the properties object
kubernetesClusterNametextfield from the properties object
locationtextThe geo-location where the resource lives
optionstextfield from the properties object
provisioning_statetextfield from the properties object
requiredtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfeatureName, kubernetesClusterName, resourceGroupName, subscriptionIdGet properties of the provided the Kubernetes cluster feature.
list_by_kubernetes_clusterSELECTkubernetesClusterName, resourceGroupName, subscriptionIdGet a list of features for the provided Kubernetes cluster.
create_or_updateINSERTfeatureName, kubernetesClusterName, resourceGroupName, subscriptionIdCreate a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists.
deleteDELETEfeatureName, kubernetesClusterName, resourceGroupName, subscriptionIdDelete the provided Kubernetes cluster feature.
updateUPDATEfeatureName, kubernetesClusterName, resourceGroupName, subscriptionIdPatch properties of the provided Kubernetes cluster feature.

SELECT examples

Get a list of features for the provided Kubernetes cluster.

SELECT
availability_lifecycle,
detailed_status,
detailed_status_message,
featureName,
kubernetesClusterName,
location,
options,
provisioning_state,
required,
resourceGroupName,
subscriptionId,
tags,
version
FROM azure.nexus.vw_kubernetes_cluster_features
WHERE kubernetesClusterName = '{{ kubernetesClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new kubernetes_cluster_features resource.

/*+ create */
INSERT INTO azure.nexus.kubernetes_cluster_features (
featureName,
kubernetesClusterName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ featureName }}',
'{{ kubernetesClusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a kubernetes_cluster_features resource.

/*+ update */
UPDATE azure.nexus.kubernetes_cluster_features
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
featureName = '{{ featureName }}'
AND kubernetesClusterName = '{{ kubernetesClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified kubernetes_cluster_features resource.

/*+ delete */
DELETE FROM azure.nexus.kubernetes_cluster_features
WHERE featureName = '{{ featureName }}'
AND kubernetesClusterName = '{{ kubernetesClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';