Skip to main content

communications_gateways

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

Overview

Namecommunications_gateways
TypeResource
Idazure_extras.voice_services.communications_gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
apiBridgeobjectDetails of API bridge functionality, if required.
autoGeneratedDomainNameLabelstringThe autogenerated label used as part of the FQDNs for accessing the Communications Gateway.
autoGeneratedDomainNameLabelScopestringThe scope at which the auto-generated domain name can be re-used. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse".
codecsarrayVoice codecs to support.
connectivitystringHow to connect back to the operator network, e.g. MAPS. "PublicAddress"
e911TypestringHow to handle 911 calls. Known values are: "Standard" and "DirectToEsrp".
emergencyDialStringsarrayA list of dial strings used for emergency calling.
locationstringThe geo-location where the resource lives. Required.
onPremMcpEnabledbooleanWhether an on-premises Mobile Control Point is in use.
platformsarrayWhat platforms to support.
provisioningStatestringResource provisioning state. Known values are: "Succeeded", "Failed", and "Canceled".
serviceLocationsarrayThe regions in which to deploy the resources needed for Teams Calling.
statusstringThe current status of the deployment. Known values are: "ChangePending" and "Complete".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
teamsVoicemailPilotNumberstringThis number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, communications_gateway_name, subscription_idGet a CommunicationsGateway.
list_by_resource_groupselectresource_group_name, subscription_idList CommunicationsGateway resources by resource group.
list_by_subscriptionselectsubscription_idList CommunicationsGateway resources by subscription ID.
create_or_updateinsertresource_group_name, communications_gateway_name, subscription_id, locationCreate a CommunicationsGateway.
updateupdateresource_group_name, communications_gateway_name, subscription_idUpdate a CommunicationsGateway.
create_or_updatereplaceresource_group_name, communications_gateway_name, subscription_id, locationCreate a CommunicationsGateway.
deletedeleteresource_group_name, communications_gateway_name, subscription_idDelete a CommunicationsGateway.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
communications_gateway_namestringUnique identifier for this deployment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a CommunicationsGateway.

SELECT
id,
name,
apiBridge,
autoGeneratedDomainNameLabel,
autoGeneratedDomainNameLabelScope,
codecs,
connectivity,
e911Type,
emergencyDialStrings,
location,
onPremMcpEnabled,
platforms,
provisioningState,
serviceLocations,
status,
systemData,
tags,
teamsVoicemailPilotNumber,
type
FROM azure_extras.voice_services.communications_gateways
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND communications_gateway_name = '{{ communications_gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a CommunicationsGateway.

INSERT INTO azure_extras.voice_services.communications_gateways (
tags,
location,
properties,
resource_group_name,
communications_gateway_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ communications_gateway_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a CommunicationsGateway.

UPDATE azure_extras.voice_services.communications_gateways
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND communications_gateway_name = '{{ communications_gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a CommunicationsGateway.

REPLACE azure_extras.voice_services.communications_gateways
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND communications_gateway_name = '{{ communications_gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a CommunicationsGateway.

DELETE FROM azure_extras.voice_services.communications_gateways
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND communications_gateway_name = '{{ communications_gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;