Skip to main content

test_lines

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

Overview

Nametest_lines
TypeResource
Idazure.voice_services.test_lines

Fields

NameDatatypeDescription
communicationsGatewayNametextfield from the properties object
locationtextThe geo-location where the resource lives
phone_numbertextfield from the properties object
provisioning_statetextfield from the properties object
purposetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
testLineNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcommunicationsGatewayName, resourceGroupName, subscriptionId, testLineNameGet a TestLine
list_by_communications_gatewaySELECTcommunicationsGatewayName, resourceGroupName, subscriptionIdList TestLine resources by CommunicationsGateway
create_or_updateINSERTcommunicationsGatewayName, resourceGroupName, subscriptionId, testLineNameCreate a TestLine
deleteDELETEcommunicationsGatewayName, resourceGroupName, subscriptionId, testLineNameDelete a TestLine
updateUPDATEcommunicationsGatewayName, resourceGroupName, subscriptionId, testLineNameUpdate a TestLine

SELECT examples

List TestLine resources by CommunicationsGateway

SELECT
communicationsGatewayName,
location,
phone_number,
provisioning_state,
purpose,
resourceGroupName,
subscriptionId,
tags,
testLineName
FROM azure.voice_services.vw_test_lines
WHERE communicationsGatewayName = '{{ communicationsGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.voice_services.test_lines (
communicationsGatewayName,
resourceGroupName,
subscriptionId,
testLineName,
properties,
tags,
location
)
SELECT
'{{ communicationsGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testLineName }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a test_lines resource.

/*+ update */
UPDATE azure.voice_services.test_lines
SET
tags = '{{ tags }}'
WHERE
communicationsGatewayName = '{{ communicationsGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testLineName = '{{ testLineName }}';

DELETE example

Deletes the specified test_lines resource.

/*+ delete */
DELETE FROM azure.voice_services.test_lines
WHERE communicationsGatewayName = '{{ communicationsGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testLineName = '{{ testLineName }}';