Skip to main content

neon_databases

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

Overview

Nameneon_databases
TypeResource
Idazure_isv.neonpostgres.neon_databases

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 database belongs to.
createdAtstringTimestamp indicating when the entity was created.
entityIdstringUnique identifier for the entity.
entityNamestringName of the resource.
ownerNamestringThe name of the role that owns the database.
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, neon_database_name, subscription_idGet a NeonDatabase.
listselectresource_group_name, organization_name, project_name, branch_name, subscription_idList NeonDatabase resources by Branch.
create_or_updateinsertresource_group_name, organization_name, project_name, branch_name, neon_database_name, subscription_idCreate a NeonDatabase.
updateupdateresource_group_name, organization_name, project_name, branch_name, neon_database_name, subscription_idUpdate a NeonDatabase.
create_or_updatereplaceresource_group_name, organization_name, project_name, branch_name, neon_database_name, subscription_idCreate a NeonDatabase.
deletedeleteresource_group_name, organization_name, project_name, branch_name, neon_database_name, subscription_idDelete a NeonDatabase.

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.
neon_database_namestringThe name of the NeonDatabase. 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 NeonDatabase.

SELECT
id,
name,
attributes,
branchId,
createdAt,
entityId,
entityName,
ownerName,
provisioningState,
systemData,
type
FROM azure_isv.neonpostgres.neon_databases
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 neon_database_name = '{{ neon_database_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a NeonDatabase.

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

UPDATE examples

Update a NeonDatabase.

UPDATE azure_isv.neonpostgres.neon_databases
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 neon_database_name = '{{ neon_database_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create a NeonDatabase.

REPLACE azure_isv.neonpostgres.neon_databases
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 neon_database_name = '{{ neon_database_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a NeonDatabase.

DELETE FROM azure_isv.neonpostgres.neon_databases
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 neon_database_name = '{{ neon_database_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;