Skip to main content

associations

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

Overview

Nameassociations
TypeResource
Idazure.custom_providers.associations

Fields

NameDatatypeDescription
idstringThe association id.
namestringThe association name.
propertiesobjectThe properties of the association.
typestringThe association type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTassociationName, scopeGet an association.
list_allSELECTscopeGets all association for the given scope.
create_or_updateINSERTassociationName, scopeCreate or update an association.
deleteDELETEassociationName, scopeDelete an association.

SELECT examples

Gets all association for the given scope.

SELECT
id,
name,
properties,
type
FROM azure.custom_providers.associations
WHERE scope = '{{ scope }}';

INSERT example

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

/*+ create */
INSERT INTO azure.custom_providers.associations (
associationName,
scope,
properties
)
SELECT
'{{ associationName }}',
'{{ scope }}',
'{{ properties }}'
;

DELETE example

Deletes the specified associations resource.

/*+ delete */
DELETE FROM azure.custom_providers.associations
WHERE associationName = '{{ associationName }}'
AND scope = '{{ scope }}';