test_lines
Creates, updates, deletes, gets or lists a test_lines
resource.
Overview
Name | test_lines |
Type | Resource |
Id | azure.voice_services.test_lines |
Fields
- vw_test_lines
- test_lines
Name | Datatype | Description |
---|---|---|
communicationsGatewayName | text | field from the properties object |
location | text | The geo-location where the resource lives |
phone_number | text | field from the properties object |
provisioning_state | text | field from the properties object |
purpose | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
testLineName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Details of the TestLine resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | communicationsGatewayName, resourceGroupName, subscriptionId, testLineName | Get a TestLine |
list_by_communications_gateway | SELECT | communicationsGatewayName, resourceGroupName, subscriptionId | List TestLine resources by CommunicationsGateway |
create_or_update | INSERT | communicationsGatewayName, resourceGroupName, subscriptionId, testLineName | Create a TestLine |
delete | DELETE | communicationsGatewayName, resourceGroupName, subscriptionId, testLineName | Delete a TestLine |
update | UPDATE | communicationsGatewayName, resourceGroupName, subscriptionId, testLineName | Update a TestLine |
SELECT
examples
List TestLine resources by CommunicationsGateway
- vw_test_lines
- test_lines
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 }}';
SELECT
location,
properties,
tags
FROM azure.voice_services.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.voice_services.test_lines (
communicationsGatewayName,
resourceGroupName,
subscriptionId,
testLineName,
properties,
tags,
location
)
SELECT
'{{ communicationsGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testLineName }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: phoneNumber
value: string
- name: purpose
value: []
- name: tags
value: object
- name: location
value: string
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 }}';