Skip to main content

open_shift_clusters

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

Overview

Nameopen_shift_clusters
TypeResource
Idazure_isv.redhatopenshift.open_shift_clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
apiserverProfileobjectThe cluster API server profile.
clusterProfileobjectThe cluster profile.
consoleProfileobjectThe console profile.
identityobjectThe managed service identities assigned to this resource.
ingressProfilesarrayThe cluster ingress profiles.
locationstringThe geo-location where the resource lives. Required.
masterProfileobjectThe cluster master profile.
networkProfileobjectThe cluster network profile.
platformWorkloadIdentityProfileobjectThe workload identity profile.
provisioningStatestringThe cluster provisioning state. Known values are: "AdminUpdating", "Canceled", "Creating", "Deleting", "Failed", "Succeeded", and "Updating". (AdminUpdating, Canceled, Creating, Deleting, Failed, Succeeded, Updating)
servicePrincipalProfileobjectThe cluster service principal profile.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
workerProfilesarrayThe cluster worker profiles.
workerProfilesStatusarrayThe cluster worker profiles status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, subscription_idGets a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.
list_by_resource_groupselectresource_group_name, subscription_idLists OpenShift clusters in the specified subscription and resource group. The operation returns properties of each OpenShift cluster.
listselectsubscription_idLists OpenShift clusters in the specified subscription. The operation returns properties of each OpenShift cluster.
create_or_updateinsertresource_group_name, resource_name, subscription_id, locationCreates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.
updateupdateresource_group_name, resource_name, subscription_idCreates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.
create_or_updatereplaceresource_group_name, resource_name, subscription_id, locationCreates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.
deletedeleteresource_group_name, resource_name, subscription_idDeletes a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns nothing.
list_admin_credentialsexecresource_group_name, resource_name, subscription_idLists admin kubeconfig of an OpenShift cluster with the specified subscription, resource group and resource name. The operation returns the admin kubeconfig.
list_credentialsexecresource_group_name, resource_name, subscription_idLists credentials of an OpenShift cluster with the specified subscription, resource group and resource name. The operation returns the credentials.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the OpenShift cluster resource. Required.
subscription_idstring

SELECT examples

Gets a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.

SELECT
id,
name,
apiserverProfile,
clusterProfile,
consoleProfile,
identity,
ingressProfiles,
location,
masterProfile,
networkProfile,
platformWorkloadIdentityProfile,
provisioningState,
servicePrincipalProfile,
systemData,
tags,
type,
workerProfiles,
workerProfilesStatus
FROM azure_isv.redhatopenshift.open_shift_clusters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.

INSERT INTO azure_isv.redhatopenshift.open_shift_clusters (
tags,
location,
properties,
identity,
resource_group_name,
resource_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.

UPDATE azure_isv.redhatopenshift.open_shift_clusters
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.

REPLACE azure_isv.redhatopenshift.open_shift_clusters
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns nothing.

DELETE FROM azure_isv.redhatopenshift.open_shift_clusters
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists admin kubeconfig of an OpenShift cluster with the specified subscription, resource group and resource name. The operation returns the admin kubeconfig.

EXEC azure_isv.redhatopenshift.open_shift_clusters.list_admin_credentials 
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;