Skip to main content

spark_configuration

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

Overview

Namespark_configuration
TypeResource
Idazure.synapse_artifacts.spark_configuration

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}. # pylint: disable=line-too-long
namestringThe name of the resource.
annotationsarrayAnnotations for SparkConfiguration.
configMergeRuleobjectSparkConfiguration configMergeRule.
configsobjectSparkConfiguration configs. Required.
createdstring (date-time)The timestamp of resource creation.
createdBystringThe identity that created the resource.
descriptionstringDescription about the SparkConfiguration.
etagstringResource Etag.
notesstringadditional Notes.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_spark_configurationselectspark_configuration_name, endpointIf-None-MatchGets a sparkConfiguration.
get_spark_configurations_by_workspaceselectendpointLists sparkconfigurations.
create_or_update_spark_configurationinsertspark_configuration_name, endpoint, configsIf-MatchCreates or updates a sparkconfiguration.
create_or_update_spark_configurationreplacespark_configuration_name, endpoint, configsIf-MatchCreates or updates a sparkconfiguration.
delete_spark_configurationdeletespark_configuration_name, endpointDeletes a sparkConfiguration.
rename_spark_configurationexecspark_configuration_name, endpointRenames a sparkConfiguration.

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
endpointstringThe service endpoint host (no scheme). (default: )
spark_configuration_namestringThe spark Configuration name. Required.
If-MatchstringETag of the sparkConfiguration entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None.
If-None-MatchstringETag of the sparkConfiguration entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None.

SELECT examples

Gets a sparkConfiguration.

SELECT
id,
name,
annotations,
configMergeRule,
configs,
created,
createdBy,
description,
etag,
notes,
type
FROM azure.synapse_artifacts.spark_configuration
WHERE spark_configuration_name = '{{ spark_configuration_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples

Creates or updates a sparkconfiguration.

INSERT INTO azure.synapse_artifacts.spark_configuration (
description,
configs,
annotations,
notes,
createdBy,
created,
configMergeRule,
spark_configuration_name,
endpoint,
If-Match
)
SELECT
'{{ description }}',
'{{ configs }}' /* required */,
'{{ annotations }}',
'{{ notes }}',
'{{ createdBy }}',
'{{ created }}',
'{{ configMergeRule }}',
'{{ spark_configuration_name }}',
'{{ endpoint }}',
'{{ If-Match }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates or updates a sparkconfiguration.

REPLACE azure.synapse_artifacts.spark_configuration
SET
description = '{{ description }}',
configs = '{{ configs }}',
annotations = '{{ annotations }}',
notes = '{{ notes }}',
createdBy = '{{ createdBy }}',
created = '{{ created }}',
configMergeRule = '{{ configMergeRule }}'
WHERE
spark_configuration_name = '{{ spark_configuration_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND configs = '{{ configs }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes a sparkConfiguration.

DELETE FROM azure.synapse_artifacts.spark_configuration
WHERE spark_configuration_name = '{{ spark_configuration_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Renames a sparkConfiguration.

EXEC azure.synapse_artifacts.spark_configuration.rename_spark_configuration 
@spark_configuration_name='{{ spark_configuration_name }}' --required,
@endpoint='{{ endpoint }}' --required
;