Communications Gateway
A CommunicationsGateway resource Azure REST API version: 2023-04-03. Prior API version in Azure Native 1.x: 2022-12-01-preview.
Example Usage
CreateCommunicationsGatewayResource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var communicationsGateway = new AzureNative.VoiceServices.CommunicationsGateway("communicationsGateway", new()
{
AutoGeneratedDomainNameLabelScope = "NoReuse",
Codecs = new[]
{
"PCMA",
},
CommunicationsGatewayName = "myname",
Connectivity = "PublicAddress",
E911Type = "Standard",
Location = "useast",
Platforms = new[]
{
"OperatorConnect",
},
ResourceGroupName = "testrg",
ServiceLocations = new[]
{
new AzureNative.VoiceServices.Inputs.ServiceRegionPropertiesArgs
{
Name = "useast",
PrimaryRegionProperties = new AzureNative.VoiceServices.Inputs.PrimaryRegionPropertiesArgs
{
AllowedMediaSourceAddressPrefixes = new[]
{
"10.1.2.0/24",
},
AllowedSignalingSourceAddressPrefixes = new[]
{
"10.1.1.0/24",
},
OperatorAddresses = new[]
{
"198.51.100.1",
},
},
},
new AzureNative.VoiceServices.Inputs.ServiceRegionPropertiesArgs
{
Name = "useast2",
PrimaryRegionProperties = new AzureNative.VoiceServices.Inputs.PrimaryRegionPropertiesArgs
{
AllowedMediaSourceAddressPrefixes = new[]
{
"10.2.2.0/24",
},
AllowedSignalingSourceAddressPrefixes = new[]
{
"10.2.1.0/24",
},
OperatorAddresses = new[]
{
"198.51.100.2",
},
},
},
},
TeamsVoicemailPilotNumber = "1234567890",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/voiceservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := voiceservices.NewCommunicationsGateway(ctx, "communicationsGateway", &voiceservices.CommunicationsGatewayArgs{
AutoGeneratedDomainNameLabelScope: pulumi.String("NoReuse"),
Codecs: pulumi.StringArray{
pulumi.String("PCMA"),
},
CommunicationsGatewayName: pulumi.String("myname"),
Connectivity: pulumi.String("PublicAddress"),
E911Type: pulumi.String("Standard"),
Location: pulumi.String("useast"),
Platforms: pulumi.StringArray{
pulumi.String("OperatorConnect"),
},
ResourceGroupName: pulumi.String("testrg"),
ServiceLocations: []voiceservices.ServiceRegionPropertiesArgs{
{
Name: pulumi.String("useast"),
PrimaryRegionProperties: {
AllowedMediaSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.1.2.0/24"),
},
AllowedSignalingSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.1.1.0/24"),
},
OperatorAddresses: pulumi.StringArray{
pulumi.String("198.51.100.1"),
},
},
},
{
Name: pulumi.String("useast2"),
PrimaryRegionProperties: {
AllowedMediaSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.2.2.0/24"),
},
AllowedSignalingSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.2.1.0/24"),
},
OperatorAddresses: pulumi.StringArray{
pulumi.String("198.51.100.2"),
},
},
},
},
TeamsVoicemailPilotNumber: pulumi.String("1234567890"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.voiceservices.CommunicationsGateway;
import com.pulumi.azurenative.voiceservices.CommunicationsGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var communicationsGateway = new CommunicationsGateway("communicationsGateway", CommunicationsGatewayArgs.builder()
.autoGeneratedDomainNameLabelScope("NoReuse")
.codecs("PCMA")
.communicationsGatewayName("myname")
.connectivity("PublicAddress")
.e911Type("Standard")
.location("useast")
.platforms("OperatorConnect")
.resourceGroupName("testrg")
.serviceLocations(
Map.ofEntries(
Map.entry("name", "useast"),
Map.entry("primaryRegionProperties", Map.ofEntries(
Map.entry("allowedMediaSourceAddressPrefixes", "10.1.2.0/24"),
Map.entry("allowedSignalingSourceAddressPrefixes", "10.1.1.0/24"),
Map.entry("operatorAddresses", "198.51.100.1")
))
),
Map.ofEntries(
Map.entry("name", "useast2"),
Map.entry("primaryRegionProperties", Map.ofEntries(
Map.entry("allowedMediaSourceAddressPrefixes", "10.2.2.0/24"),
Map.entry("allowedSignalingSourceAddressPrefixes", "10.2.1.0/24"),
Map.entry("operatorAddresses", "198.51.100.2")
))
))
.teamsVoicemailPilotNumber("1234567890")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:voiceservices:CommunicationsGateway myname /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard