Skip to main content

endpoints

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

Overview

Nameendpoints
TypeResource
Idazure_isv.neonpostgres.endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
attributesarrayAdditional attributes for the entity.
branchIdstringThe ID of the branch this endpoint belongs to.
createdAtstringTimestamp indicating when the entity was created.
endpointTypestringThe type of the endpoint. Known values are: "read_only" and "read_write". (read_only, read_write)
entityIdstringUnique identifier for the entity.
entityNamestringName of the resource.
projectIdstringThe ID of the project this endpoint belongs to.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
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
getselectresource_group_name, organization_name, project_name, branch_name, endpoint_name, subscription_idGet a Endpoint.
listselectresource_group_name, organization_name, project_name, branch_name, subscription_idList Endpoint resources by Branch.
create_or_updateinsertresource_group_name, organization_name, project_name, branch_name, endpoint_name, subscription_idCreate a Endpoint.
updateupdateresource_group_name, organization_name, project_name, branch_name, endpoint_name, subscription_idUpdate a Endpoint.
create_or_updatereplaceresource_group_name, organization_name, project_name, branch_name, endpoint_name, subscription_idCreate a Endpoint.
deletedeleteresource_group_name, organization_name, project_name, branch_name, endpoint_name, subscription_idDelete a 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
branch_namestringThe name of the Branch. Required.
endpoint_namestringThe name of the Endpoint. Required.
organization_namestringName of the Neon Organizations resource. Required.
project_namestringThe name of the Project. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a Endpoint.

SELECT
id,
name,
attributes,
branchId,
createdAt,
endpointType,
entityId,
entityName,
projectId,
provisioningState,
systemData,
type
FROM azure_isv.neonpostgres.endpoints
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND branch_name = '{{ branch_name }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Endpoint.

INSERT INTO azure_isv.neonpostgres.endpoints (
properties,
resource_group_name,
organization_name,
project_name,
branch_name,
endpoint_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ organization_name }}',
'{{ project_name }}',
'{{ branch_name }}',
'{{ endpoint_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update a Endpoint.

UPDATE azure_isv.neonpostgres.endpoints
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND organization_name = '{{ organization_name }}' --required
AND project_name = '{{ project_name }}' --required
AND branch_name = '{{ branch_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create a Endpoint.

REPLACE azure_isv.neonpostgres.endpoints
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND organization_name = '{{ organization_name }}' --required
AND project_name = '{{ project_name }}' --required
AND branch_name = '{{ branch_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a Endpoint.

DELETE FROM azure_isv.neonpostgres.endpoints
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND organization_name = '{{ organization_name }}' --required
AND project_name = '{{ project_name }}' --required
AND branch_name = '{{ branch_name }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;