apms
Creates, updates, deletes, gets or lists a apms
resource.
Overview
Name | apms |
Type | Resource |
Id | azure.spring_apps.apms |
Fields
- vw_apms
- apms
Name | Datatype | Description |
---|---|---|
apmName | text | field from the properties object |
properties | text | Properties of an APM |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
secrets | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of an APM |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apmName, resourceGroupName, serviceName, subscriptionId | Get the APM by name. |
list | SELECT | resourceGroupName, serviceName, subscriptionId | Get collection of APMs. |
create_or_update | INSERT | apmName, resourceGroupName, serviceName, subscriptionId | Create or update an APM. |
delete | DELETE | apmName, resourceGroupName, serviceName, subscriptionId | Operation to delete an APM |
SELECT
examples
Get collection of APMs.
- vw_apms
- 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 }}';
SELECT
properties
FROM azure.spring_apps.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.spring_apps.apms (
apmName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apmName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: type
value: string
- name: provisioningState
value: string
- name: properties
value: object
- name: secrets
value: object
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 }}';