Skip to main content

apms

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

Overview

Nameapms
TypeResource
Idazure.spring_apps.apms

Fields

NameDatatypeDescription
apmNametextfield from the properties object
propertiestextProperties of an APM
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
secretstextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapmName, resourceGroupName, serviceName, subscriptionIdGet the APM by name.
listSELECTresourceGroupName, serviceName, subscriptionIdGet collection of APMs.
create_or_updateINSERTapmName, resourceGroupName, serviceName, subscriptionIdCreate or update an APM.
deleteDELETEapmName, resourceGroupName, serviceName, subscriptionIdOperation to delete an APM

SELECT examples

Get collection of APMs.

SELECT
apmName,
properties,
provisioning_state,
resourceGroupName,
secrets,
serviceName,
subscriptionId,
type
FROM azure.spring_apps.vw_apms
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.apms (
apmName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apmName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified apms resource.

/*+ delete */
DELETE FROM azure.spring_apps.apms
WHERE apmName = '{{ apmName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';