Services Communications Gateway Args
data class ServicesCommunicationsGatewayArgs(val apiBridge: Output<String>? = null, val autoGeneratedDomainNameLabelScope: Output<String>? = null, val codecs: Output<String>? = null, val connectivity: Output<String>? = null, val e911Type: Output<String>? = null, val emergencyDialStrings: Output<List<String>>? = null, val location: Output<String>? = null, val microsoftTeamsVoicemailPilotNumber: Output<String>? = null, val name: Output<String>? = null, val onPremMcpEnabled: Output<Boolean>? = null, val platforms: Output<List<String>>? = null, val resourceGroupName: Output<String>? = null, val serviceLocations: Output<List<ServicesCommunicationsGatewayServiceLocationArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServicesCommunicationsGatewayArgs>
Manages a Voice Services Communications Gateways. !>NOTE: You must have signed an Operator Connect agreement with Microsoft to use this resource. For more information, see Prerequisites
. !>NOTE: Access to Azure Communications Gateway is restricted, see Get access to Azure Communications Gateway for your Azure subscription
for details.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.voice.ServicesCommunicationsGateway;
import com.pulumi.azure.voice.ServicesCommunicationsGatewayArgs;
import com.pulumi.azure.voice.inputs.ServicesCommunicationsGatewayServiceLocationArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleServicesCommunicationsGateway = new ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", ServicesCommunicationsGatewayArgs.builder()
.location("West Europe")
.resourceGroupName(exampleResourceGroup.name())
.connectivity("PublicAddress")
.codecs("PCMA")
.e911Type("DirectToEsrp")
.platforms(
"OperatorConnect",
"TeamsPhoneMobile")
.serviceLocations(
ServicesCommunicationsGatewayServiceLocationArgs.builder()
.location("eastus")
.allowedMediaSourceAddressPrefixes("10.1.2.0/24")
.allowedSignalingSourceAddressPrefixes("10.1.1.0/24")
.esrpAddresses("198.51.100.3")
.operatorAddresses("198.51.100.1")
.build(),
ServicesCommunicationsGatewayServiceLocationArgs.builder()
.location("eastus2")
.allowedMediaSourceAddressPrefixes("10.2.2.0/24")
.allowedSignalingSourceAddressPrefixes("10.2.1.0/24")
.esrpAddresses("198.51.100.4")
.operatorAddresses("198.51.100.2")
.build())
.autoGeneratedDomainNameLabelScope("SubscriptionReuse")
.apiBridge(serializeJson(
jsonObject(
)))
.emergencyDialStrings(
"911",
"933")
.onPremMcpEnabled(false)
.tags(Map.of("key", "value"))
.microsoftTeamsVoicemailPilotNumber("1")
.build());
}
}
Content copied to clipboard
Import
Voice Services Communications Gateways can be imported using the resource id
, e.g.
$ pulumi import azure:voice/servicesCommunicationsGateway:ServicesCommunicationsGateway example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.VoiceServices/communicationsGateways/communicationsGateway1
Content copied to clipboard
Constructors
Link copied to clipboard
fun ServicesCommunicationsGatewayArgs(apiBridge: Output<String>? = null, autoGeneratedDomainNameLabelScope: Output<String>? = null, codecs: Output<String>? = null, connectivity: Output<String>? = null, e911Type: Output<String>? = null, emergencyDialStrings: Output<List<String>>? = null, location: Output<String>? = null, microsoftTeamsVoicemailPilotNumber: Output<String>? = null, name: Output<String>? = null, onPremMcpEnabled: Output<Boolean>? = null, platforms: Output<List<String>>? = null, resourceGroupName: Output<String>? = null, serviceLocations: Output<List<ServicesCommunicationsGatewayServiceLocationArgs>>? = null, tags: Output<Map<String, String>>? = null)