Skip to main content

associations

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

Overview

Nameassociations
TypeResource
Idazure.custom_providers.associations

Fields

The following fields are returned by SELECT queries:

OK. Returns association.

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, associationNameGet an association.
list_allselectscopeGets all association for the given scope.
create_or_updateinsertscope, associationNameCreate or update an association.
deletedeletescope, associationNameDelete an association.

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
associationNamestringThe name of the association.
scopestringThe scope of the association.

SELECT examples

Get an association.

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

INSERT examples

Create or update an association.

INSERT INTO azure.custom_providers.associations (
data__properties,
scope,
associationName
)
SELECT
'{{ properties }}',
'{{ scope }}',
'{{ associationName }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Delete an association.

DELETE FROM azure.custom_providers.associations
WHERE scope = '{{ scope }}' --required
AND associationName = '{{ associationName }}' --required
;