Skip to main content

server_trust_groups

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

Overview

Nameserver_trust_groups
TypeResource
Idazure.sql.server_trust_groups

Fields

NameDatatypeDescription
group_memberstextfield from the properties object
locationNametextfield from the properties object
resourceGroupNametextfield from the properties object
serverTrustGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
trust_scopestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationName, resourceGroupName, serverTrustGroupName, subscriptionIdGets a server trust group.
list_by_locationSELECTlocationName, resourceGroupName, subscriptionIdLists a server trust group.
create_or_updateINSERTlocationName, resourceGroupName, serverTrustGroupName, subscriptionIdCreates or updates a server trust group.
deleteDELETElocationName, resourceGroupName, serverTrustGroupName, subscriptionIdDeletes a server trust group.

SELECT examples

Lists a server trust group.

SELECT
group_members,
locationName,
resourceGroupName,
serverTrustGroupName,
subscriptionId,
trust_scopes
FROM azure.sql.vw_server_trust_groups
WHERE locationName = '{{ locationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.server_trust_groups (
locationName,
resourceGroupName,
serverTrustGroupName,
subscriptionId,
properties
)
SELECT
'{{ locationName }}',
'{{ resourceGroupName }}',
'{{ serverTrustGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified server_trust_groups resource.

/*+ delete */
DELETE FROM azure.sql.server_trust_groups
WHERE locationName = '{{ locationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverTrustGroupName = '{{ serverTrustGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';