diagnostics_packages
Creates, updates, deletes, gets or lists a diagnostics_packages
resource.
Overview
Name | diagnostics_packages |
Type | Resource |
Id | azure.mobile_network.diagnostics_packages |
Fields
- vw_diagnostics_packages
- diagnostics_packages
Name | Datatype | Description |
---|---|---|
diagnosticsPackageName | text | field from the properties object |
packetCoreControlPlaneName | text | field from the properties object |
provisioning_state | text | field from the properties object |
reason | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Diagnostics package properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | diagnosticsPackageName, packetCoreControlPlaneName, resourceGroupName, subscriptionId | Gets information about the specified diagnostics package. |
list_by_packet_core_control_plane | SELECT | packetCoreControlPlaneName, resourceGroupName, subscriptionId | Lists all the diagnostics packages under a packet core control plane. |
create_or_update | INSERT | diagnosticsPackageName, packetCoreControlPlaneName, resourceGroupName, subscriptionId | Creates or updates a diagnostics package. |
delete | DELETE | diagnosticsPackageName, packetCoreControlPlaneName, resourceGroupName, subscriptionId | Deletes the specified diagnostics package. |
SELECT
examples
Lists all the diagnostics packages under a packet core control plane.
- vw_diagnostics_packages
- diagnostics_packages
SELECT
diagnosticsPackageName,
packetCoreControlPlaneName,
provisioning_state,
reason,
resourceGroupName,
status,
subscriptionId
FROM azure.mobile_network.vw_diagnostics_packages
WHERE packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.mobile_network.diagnostics_packages
WHERE packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new diagnostics_packages
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mobile_network.diagnostics_packages (
diagnosticsPackageName,
packetCoreControlPlaneName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ diagnosticsPackageName }}',
'{{ packetCoreControlPlaneName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified diagnostics_packages
resource.
/*+ delete */
DELETE FROM azure.mobile_network.diagnostics_packages
WHERE diagnosticsPackageName = '{{ diagnosticsPackageName }}'
AND packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';