connection_monitor_tests
Creates, updates, deletes, gets or lists a connection_monitor_tests
resource.
Overview
Name | connection_monitor_tests |
Type | Resource |
Id | azure.peering.connection_monitor_tests |
Fields
- vw_connection_monitor_tests
- connection_monitor_tests
Name | Datatype | Description |
---|---|---|
id | text | The ID of the resource. |
name | text | The name of the resource. |
connectionMonitorTestName | text | field from the properties object |
destination | text | field from the properties object |
destination_port | text | field from the properties object |
is_test_successful | text | field from the properties object |
path | text | field from the properties object |
peeringServiceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source_agent | text | field from the properties object |
subscriptionId | text | field from the properties object |
test_frequency_in_sec | text | field from the properties object |
type | text | The type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the resource. |
name | string | The name of the resource. |
properties | object | The properties that define a Connection Monitor Test. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | connectionMonitorTestName, peeringServiceName, resourceGroupName, subscriptionId | Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service. |
list_by_peering_service | SELECT | peeringServiceName, resourceGroupName, subscriptionId | Lists all connection monitor tests under the given subscription, resource group and peering service. |
create_or_update | INSERT | connectionMonitorTestName, peeringServiceName, resourceGroupName, subscriptionId | Creates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service. |
delete | DELETE | connectionMonitorTestName, peeringServiceName, resourceGroupName, subscriptionId | Deletes an existing connection monitor test with the specified name under the given subscription, resource group and peering service. |
SELECT
examples
Lists all connection monitor tests under the given subscription, resource group and peering service.
- vw_connection_monitor_tests
- connection_monitor_tests
SELECT
id,
name,
connectionMonitorTestName,
destination,
destination_port,
is_test_successful,
path,
peeringServiceName,
provisioning_state,
resourceGroupName,
source_agent,
subscriptionId,
test_frequency_in_sec,
type
FROM azure.peering.vw_connection_monitor_tests
WHERE peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure.peering.connection_monitor_tests
WHERE peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new connection_monitor_tests
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.peering.connection_monitor_tests (
connectionMonitorTestName,
peeringServiceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ connectionMonitorTestName }}',
'{{ peeringServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: type
value: string
- name: properties
value:
- name: sourceAgent
value: string
- name: destination
value: string
- name: destinationPort
value: integer
- name: testFrequencyInSec
value: integer
- name: isTestSuccessful
value: boolean
- name: path
value:
- string
- name: provisioningState
value: string
DELETE
example
Deletes the specified connection_monitor_tests
resource.
/*+ delete */
DELETE FROM azure.peering.connection_monitor_tests
WHERE connectionMonitorTestName = '{{ connectionMonitorTestName }}'
AND peeringServiceName = '{{ peeringServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';