Skip to main content

sap_central_instances

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

Overview

Namesap_central_instances
TypeResource
Idazure_isv.sap_workloads.sap_central_instances

Fields

The following fields are returned by SELECT queries:

Describes the SAP Central Services Instance resource.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectDefines the SAP Central Services Instance properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceNameGets the SAP Central Services Instance resource.
listselectsubscriptionId, resourceGroupName, sapVirtualInstanceNameLists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource.
createinsertsubscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceNameCreates the SAP Central Services Instance resource.

This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.
updateupdatesubscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceNameUpdates the SAP Central Services Instance resource.

This can be used to update tags on the resource.
deletedeletesubscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceNameDeletes the SAP Central Services Instance resource.

This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the Virtual Instance for SAP solutions resource, using the delete operation on it.
start_instanceexecsubscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceNameStarts the SAP Central Services Instance.
stop_instanceexecsubscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceNameStops the SAP Central Services Instance.

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
centralInstanceNamestringCentral Services Instance resource name string modeled as parameter for auto generation to work correctly.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
sapVirtualInstanceNamestringThe name of the Virtual Instances for SAP solutions resource
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the SAP Central Services Instance resource.

SELECT
location,
properties,
tags
FROM azure_isv.sap_workloads.sap_central_instances
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}' -- required
AND centralInstanceName = '{{ centralInstanceName }}' -- required
;

INSERT examples

Creates the SAP Central Services Instance resource.

This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.

INSERT INTO azure_isv.sap_workloads.sap_central_instances (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
sapVirtualInstanceName,
centralInstanceName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ sapVirtualInstanceName }}',
'{{ centralInstanceName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Updates the SAP Central Services Instance resource.

This can be used to update tags on the resource.

UPDATE azure_isv.sap_workloads.sap_central_instances
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}' --required
AND centralInstanceName = '{{ centralInstanceName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Deletes the SAP Central Services Instance resource.

This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the Virtual Instance for SAP solutions resource, using the delete operation on it.

DELETE FROM azure_isv.sap_workloads.sap_central_instances
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}' --required
AND centralInstanceName = '{{ centralInstanceName }}' --required
;

Lifecycle Methods

Starts the SAP Central Services Instance.

EXEC azure_isv.sap_workloads.sap_central_instances.start_instance 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@sapVirtualInstanceName='{{ sapVirtualInstanceName }}' --required,
@centralInstanceName='{{ centralInstanceName }}' --required
;