Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.service_fabric.clusters

Fields

The following fields are returned by SELECT queries:

The operation completed successfully.

NameDatatypeDescription
idstringAzure resource identifier.
namestringAzure resource name.
etagstringAzure resource etag.
locationstringAzure resource location.
propertiesobjectThe cluster resource properties
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectAzure resource tags.
typestringAzure resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, clusterName, subscriptionIdapi-versionGet a Service Fabric cluster resource created or in the process of being created in the specified resource group.
list_by_resource_groupselectresourceGroupName, subscriptionIdapi-versionGets all Service Fabric cluster resources created or in the process of being created in the resource group.
listselectsubscriptionIdapi-versionGets all Service Fabric cluster resources created or in the process of being created in the subscription.
create_or_updateinsertresourceGroupName, clusterName, subscriptionIdapi-versionCreate or update a Service Fabric cluster resource with the specified name.
updateupdateresourceGroupName, clusterName, subscriptionIdapi-versionUpdate the configuration of a Service Fabric cluster resource with the specified name.
deletedeleteresourceGroupName, clusterName, subscriptionIdapi-versionDelete a Service Fabric cluster resource with the specified name.

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
clusterNamestringThe name of the cluster resource.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe customer subscription identifier.
api-versionstringThe version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2021-06-01" for this specification.

SELECT examples

Get a Service Fabric cluster resource created or in the process of being created in the specified resource group.

SELECT
id,
name,
etag,
location,
properties,
systemData,
tags,
type
FROM azure.service_fabric.clusters
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create or update a Service Fabric cluster resource with the specified name.

INSERT INTO azure.service_fabric.clusters (
data__location,
data__tags,
data__properties,
resourceGroupName,
clusterName,
subscriptionId,
api-version
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ subscriptionId }}',
'{{ api-version }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update the configuration of a Service Fabric cluster resource with the specified name.

UPDATE azure.service_fabric.clusters
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Service Fabric cluster resource with the specified name.

DELETE FROM azure.service_fabric.clusters
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND api-version = '{{ api-version }}'
;