Skip to main content

virtual_endpoints

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

Overview

Namevirtual_endpoints
TypeResource
Idazure.postgresql.virtual_endpoints

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
endpoint_typetextfield from the properties object
memberstextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
virtualEndpointNametextfield from the properties object
virtual_endpointstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serverName, subscriptionId, virtualEndpointNameGets information about a virtual endpoint.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdList all the servers in a given resource group.
createINSERTresourceGroupName, serverName, subscriptionId, virtualEndpointNameCreates a new virtual endpoint for PostgreSQL flexible server.
deleteDELETEresourceGroupName, serverName, subscriptionId, virtualEndpointNameDeletes a virtual endpoint.
updateUPDATEresourceGroupName, serverName, subscriptionId, virtualEndpointNameUpdates an existing virtual endpoint. The request body can contain one to many of the properties present in the normal virtual endpoint definition.

SELECT examples

List all the servers in a given resource group.

SELECT
id,
name,
endpoint_type,
members,
resourceGroupName,
serverName,
subscriptionId,
system_data,
type,
virtualEndpointName,
virtual_endpoints
FROM azure.postgresql.vw_virtual_endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.postgresql.virtual_endpoints (
resourceGroupName,
serverName,
subscriptionId,
virtualEndpointName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ virtualEndpointName }}',
'{{ properties }}'
;

UPDATE example

Updates a virtual_endpoints resource.

/*+ update */
UPDATE azure.postgresql.virtual_endpoints
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualEndpointName = '{{ virtualEndpointName }}';

DELETE example

Deletes the specified virtual_endpoints resource.

/*+ delete */
DELETE FROM azure.postgresql.virtual_endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualEndpointName = '{{ virtualEndpointName }}';