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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesobjectProperties of the virtual endpoint resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serverName, virtualEndpointNameGets information about a virtual endpoint.
list_by_serverselectsubscriptionId, resourceGroupName, serverNameList all the servers in a given resource group.
createinsertsubscriptionId, resourceGroupName, serverName, virtualEndpointNameCreates a new virtual endpoint for PostgreSQL flexible server.
updateupdatesubscriptionId, resourceGroupName, serverName, virtualEndpointNameUpdates an existing virtual endpoint. The request body can contain one to many of the properties present in the normal virtual endpoint definition.
deletedeletesubscriptionId, resourceGroupName, serverName, virtualEndpointNameDeletes a virtual endpoint.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serverNamestringThe name of the server.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualEndpointNamestringThe name of the virtual endpoint.

SELECT examples

Gets information about a virtual endpoint.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.postgresql.virtual_endpoints
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND virtualEndpointName = '{{ virtualEndpointName }}' -- required
;

INSERT examples

Creates a new virtual endpoint for PostgreSQL flexible server.

INSERT INTO azure.postgresql.virtual_endpoints (
data__properties,
subscriptionId,
resourceGroupName,
serverName,
virtualEndpointName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ virtualEndpointName }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates an existing virtual endpoint. The request body can contain one to many of the properties present in the normal virtual endpoint definition.

UPDATE azure.postgresql.virtual_endpoints
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serverName = '{{ serverName }}' --required
AND virtualEndpointName = '{{ virtualEndpointName }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a virtual endpoint.

DELETE FROM azure.postgresql.virtual_endpoints
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serverName = '{{ serverName }}' --required
AND virtualEndpointName = '{{ virtualEndpointName }}' --required
;