Skip to main content

sap_database_instances

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

Overview

Namesap_database_instances
TypeResource
Idazure_isv.sap_workloads.sap_database_instances

Fields

NameDatatypeDescription
databaseInstanceNametextfield from the properties object
database_sidtextfield from the properties object
database_typetextfield from the properties object
errorstextfield from the properties object
ip_addresstextfield from the properties object
load_balancer_detailstextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sapVirtualInstanceNametextfield from the properties object
statustextfield from the properties object
subnettextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
vm_detailstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseInstanceName, resourceGroupName, sapVirtualInstanceName, subscriptionIdGets the SAP Database Instance resource.
listSELECTresourceGroupName, sapVirtualInstanceName, subscriptionIdLists the Database resources associated with a Virtual Instance for SAP solutions resource.
createINSERTdatabaseInstanceName, resourceGroupName, sapVirtualInstanceName, subscriptionIdCreates the Database resource corresponding to the Virtual Instance for SAP solutions resource. This will be used by service only. PUT by end user will return a Bad Request error.
deleteDELETEdatabaseInstanceName, resourceGroupName, sapVirtualInstanceName, subscriptionIdDeletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. This will be used by service only. Delete by end user will return a Bad Request error.
updateUPDATEdatabaseInstanceName, resourceGroupName, sapVirtualInstanceName, subscriptionIdUpdates the Database resource.
start_instanceEXECdatabaseInstanceName, resourceGroupName, sapVirtualInstanceName, subscriptionIdStarts the database instance of the SAP system.
stop_instanceEXECdatabaseInstanceName, resourceGroupName, sapVirtualInstanceName, subscriptionIdStops the database instance of the SAP system.

SELECT examples

Lists the Database resources associated with a Virtual Instance for SAP solutions resource.

SELECT
databaseInstanceName,
database_sid,
database_type,
errors,
ip_address,
load_balancer_details,
location,
provisioning_state,
resourceGroupName,
sapVirtualInstanceName,
status,
subnet,
subscriptionId,
tags,
vm_details
FROM azure_isv.sap_workloads.vw_sap_database_instances
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.sap_workloads.sap_database_instances (
databaseInstanceName,
resourceGroupName,
sapVirtualInstanceName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ databaseInstanceName }}',
'{{ resourceGroupName }}',
'{{ sapVirtualInstanceName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a sap_database_instances resource.

/*+ update */
UPDATE azure_isv.sap_workloads.sap_database_instances
SET
tags = '{{ tags }}'
WHERE
databaseInstanceName = '{{ databaseInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified sap_database_instances resource.

/*+ delete */
DELETE FROM azure_isv.sap_workloads.sap_database_instances
WHERE databaseInstanceName = '{{ databaseInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';