Skip to main content

linked_service

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

Overview

Namelinked_service
TypeResource
Idazure.synapse_artifacts.linked_service

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.
objectUnmatched properties from the message are deserialized to this collection.
annotationsarrayList of tags that can be used for describing the linked service.
connectViaobjectThe integration runtime reference.
descriptionstringLinked service description.
etagstringResource Etag.
parametersobjectParameters for linked service.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionstringVersion of the linked service.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_linked_serviceselectlinked_service_name, endpointIf-None-MatchGets a linked service.
get_linked_services_by_workspaceselectendpointLists linked services.
create_or_update_linked_serviceinsertlinked_service_name, endpoint, typeIf-MatchCreates or updates a linked service.
create_or_update_linked_servicereplacelinked_service_name, endpoint, typeIf-MatchCreates or updates a linked service.
delete_linked_servicedeletelinked_service_name, endpointDeletes a linked service.
rename_linked_serviceexeclinked_service_name, endpointRenames a linked service.

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: )
linked_service_namestringThe linked service name. Required.
If-MatchstringETag of the linkedService 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 linked service 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 linked service.

SELECT
id,
name,
,
annotations,
connectVia,
description,
etag,
parameters,
type,
version
FROM azure.synapse_artifacts.linked_service
WHERE linked_service_name = '{{ linked_service_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples

Creates or updates a linked service.

INSERT INTO azure.synapse_artifacts.linked_service (
,
type,
version,
connectVia,
description,
parameters,
annotations,
linked_service_name,
endpoint,
If-Match
)
SELECT
'{{ }}',
'{{ type }}' /* required */,
'{{ version }}',
'{{ connectVia }}',
'{{ description }}',
'{{ parameters }}',
'{{ annotations }}',
'{{ linked_service_name }}',
'{{ endpoint }}',
'{{ If-Match }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates or updates a linked service.

REPLACE azure.synapse_artifacts.linked_service
SET
= '{{ }}',
type = '{{ type }}',
version = '{{ version }}',
connectVia = '{{ connectVia }}',
description = '{{ description }}',
parameters = '{{ parameters }}',
annotations = '{{ annotations }}'
WHERE
linked_service_name = '{{ linked_service_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND type = '{{ type }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes a linked service.

DELETE FROM azure.synapse_artifacts.linked_service
WHERE linked_service_name = '{{ linked_service_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Renames a linked service.

EXEC azure.synapse_artifacts.linked_service.rename_linked_service 
@linked_service_name='{{ linked_service_name }}' --required,
@endpoint='{{ endpoint }}' --required
;