Skip to main content

sap_instances

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

Overview

Namesap_instances
TypeResource
Idazure_extras.migration_discovery_sap.sap_instances

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.
applicationstringEnter a business function/department identifier to group multiple SIDs.
environmentstringThe Environment; PRD, QA, DEV, etc to which SAP system belongs to. Select from the list of available dropdown values. Known values are: "Production", "PreProduction", "Test", "QualityAssurance", "Development", "Sandbox", "DisasterRecovery", and "Training".
errorsobjectDefines the errors related to SAP Instance resource.
landscapeSidstringThis is the SID of the production system in a landscape. An SAP system could itself be a production SID or a part of a landscape with a different Production SID. This field can be used to relate non-prod SIDs, other components, SID (WEBDISP) to the prod SID. Enter the value of Production SID.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringDefines the provisioning states. Known values are: "Succeeded", "Updating", "Failed", "Creating", "Canceled", "Accepted", "Deleting", and "Unknown".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
systemSidstringThis is the SID of SAP System. Keeping this not equal to ID as different landscapes can have repeated System SID IDs.
tagsobjectResource tags.
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, sap_discovery_site_name, sap_instance_name, subscription_idGets the SAP Instance resource.
list_by_sap_discovery_siteselectresource_group_name, sap_discovery_site_name, subscription_idLists the SAP Instance resources for the given SAP Migration discovery site resource.
createinsertresource_group_name, sap_discovery_site_name, sap_instance_name, subscription_id, locationCreates the SAP Instance resource. This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.
updateupdateresource_group_name, sap_discovery_site_name, sap_instance_name, subscription_idUpdates the SAP Instance resource.
deletedeleteresource_group_name, sap_discovery_site_name, sap_instance_name, subscription_idDeletes the SAP 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 SAP Migration discovery site resource, using the delete operation on it.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sap_discovery_site_namestringThe name of the discovery site resource for SAP Migration. Required.
sap_instance_namestringThe name of SAP Instance resource for SAP Migration. Required.
subscription_idstring

SELECT examples

Gets the SAP Instance resource.

SELECT
id,
name,
application,
environment,
errors,
landscapeSid,
location,
provisioningState,
systemData,
systemSid,
tags,
type
FROM azure_extras.migration_discovery_sap.sap_instances
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND sap_discovery_site_name = '{{ sap_discovery_site_name }}' -- required
AND sap_instance_name = '{{ sap_instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates the SAP 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_extras.migration_discovery_sap.sap_instances (
tags,
location,
properties,
resource_group_name,
sap_discovery_site_name,
sap_instance_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ sap_discovery_site_name }}',
'{{ sap_instance_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the SAP Instance resource.

UPDATE azure_extras.migration_discovery_sap.sap_instances
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND sap_discovery_site_name = '{{ sap_discovery_site_name }}' --required
AND sap_instance_name = '{{ sap_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the SAP 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 SAP Migration discovery site resource, using the delete operation on it.

DELETE FROM azure_extras.migration_discovery_sap.sap_instances
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND sap_discovery_site_name = '{{ sap_discovery_site_name }}' --required
AND sap_instance_name = '{{ sap_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;