Skip to main content

open_shift_clusters

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

Overview

Nameopen_shift_clusters
TypeResource
Idazure_isv.openshift_clusters.open_shift_clusters

Fields

NameDatatypeDescription
apiserver_profiletextfield from the properties object
cluster_profiletextfield from the properties object
console_profiletextfield from the properties object
ingress_profilestextfield from the properties object
locationtextThe geo-location where the resource lives
master_profiletextfield from the properties object
network_profiletextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
service_principal_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
worker_profilestextfield from the properties object
worker_profiles_statustextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdThe operation returns properties of a OpenShift cluster.
listSELECTsubscriptionIdThe operation returns properties of each OpenShift cluster.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdThe operation returns properties of each OpenShift cluster.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdThe operation returns properties of a OpenShift cluster.
deleteDELETEresourceGroupName, resourceName, subscriptionIdThe operation returns nothing.
updateUPDATEresourceGroupName, resourceName, subscriptionIdThe operation returns properties of a OpenShift cluster.

SELECT examples

The operation returns properties of each OpenShift cluster.

SELECT
apiserver_profile,
cluster_profile,
console_profile,
ingress_profiles,
location,
master_profile,
network_profile,
provisioning_state,
resourceGroupName,
resourceName,
service_principal_profile,
subscriptionId,
system_data,
tags,
worker_profiles,
worker_profiles_status
FROM azure_isv.openshift_clusters.vw_open_shift_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.openshift_clusters.open_shift_clusters (
resourceGroupName,
resourceName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a open_shift_clusters resource.

/*+ update */
UPDATE azure_isv.openshift_clusters.open_shift_clusters
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified open_shift_clusters resource.

/*+ delete */
DELETE FROM azure_isv.openshift_clusters.open_shift_clusters
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';