Skip to main content

connection_monitor_tests

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

Overview

Nameconnection_monitor_tests
TypeResource
Idazure.peering.connection_monitor_tests

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
connectionMonitorTestNametextfield from the properties object
destinationtextfield from the properties object
destination_porttextfield from the properties object
is_test_successfultextfield from the properties object
pathtextfield from the properties object
peeringServiceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_agenttextfield from the properties object
subscriptionIdtextfield from the properties object
test_frequency_in_sectextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionMonitorTestName, peeringServiceName, resourceGroupName, subscriptionIdGets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
list_by_peering_serviceSELECTpeeringServiceName, resourceGroupName, subscriptionIdLists all connection monitor tests under the given subscription, resource group and peering service.
create_or_updateINSERTconnectionMonitorTestName, peeringServiceName, resourceGroupName, subscriptionIdCreates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service.
deleteDELETEconnectionMonitorTestName, peeringServiceName, resourceGroupName, subscriptionIdDeletes 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.

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 }}';

INSERT example

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

/*+ create */
INSERT INTO azure.peering.connection_monitor_tests (
connectionMonitorTestName,
peeringServiceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ connectionMonitorTestName }}',
'{{ peeringServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';