1. Packages
  2. Azure Classic
  3. API Docs
  4. voice
  5. ServicesCommunicationsGatewayTestLine

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

azure.voice.ServicesCommunicationsGatewayTestLine

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

    Manages a Voice Services Communications Gateway Test Line.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Central US",
        });
    
        var exampleServicesCommunicationsGateway = new Azure.Voice.ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
        });
    
        var exampleServicesCommunicationsGatewayTestLine = new Azure.Voice.ServicesCommunicationsGatewayTestLine("exampleServicesCommunicationsGatewayTestLine", new()
        {
            Location = "West Central US",
            VoiceServicesCommunicationsGatewayId = exampleServicesCommunicationsGateway.Id,
            PhoneNumber = "123456789",
            Purpose = "Automated",
            Tags = 
            {
                { "key", "value" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/voice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Central US"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleServicesCommunicationsGateway, err := voice.NewServicesCommunicationsGateway(ctx, "exampleServicesCommunicationsGateway", &voice.ServicesCommunicationsGatewayArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = voice.NewServicesCommunicationsGatewayTestLine(ctx, "exampleServicesCommunicationsGatewayTestLine", &voice.ServicesCommunicationsGatewayTestLineArgs{
    			Location:                             pulumi.String("West Central US"),
    			VoiceServicesCommunicationsGatewayId: exampleServicesCommunicationsGateway.ID(),
    			PhoneNumber:                          pulumi.String("123456789"),
    			Purpose:                              pulumi.String("Automated"),
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.ServicesCommunicationsGatewayTestLine;
    import com.pulumi.azure.voice.ServicesCommunicationsGatewayTestLineArgs;
    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 Central US")
                .build());
    
            var exampleServicesCommunicationsGateway = new ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", ServicesCommunicationsGatewayArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .build());
    
            var exampleServicesCommunicationsGatewayTestLine = new ServicesCommunicationsGatewayTestLine("exampleServicesCommunicationsGatewayTestLine", ServicesCommunicationsGatewayTestLineArgs.builder()        
                .location("West Central US")
                .voiceServicesCommunicationsGatewayId(exampleServicesCommunicationsGateway.id())
                .phoneNumber("123456789")
                .purpose("Automated")
                .tags(Map.of("key", "value"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Central US")
    example_services_communications_gateway = azure.voice.ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", resource_group_name=example_resource_group.name)
    example_services_communications_gateway_test_line = azure.voice.ServicesCommunicationsGatewayTestLine("exampleServicesCommunicationsGatewayTestLine",
        location="West Central US",
        voice_services_communications_gateway_id=example_services_communications_gateway.id,
        phone_number="123456789",
        purpose="Automated",
        tags={
            "key": "value",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Central US"});
    const exampleServicesCommunicationsGateway = new azure.voice.ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", {resourceGroupName: exampleResourceGroup.name});
    const exampleServicesCommunicationsGatewayTestLine = new azure.voice.ServicesCommunicationsGatewayTestLine("exampleServicesCommunicationsGatewayTestLine", {
        location: "West Central US",
        voiceServicesCommunicationsGatewayId: exampleServicesCommunicationsGateway.id,
        phoneNumber: "123456789",
        purpose: "Automated",
        tags: {
            key: "value",
        },
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Central US
      exampleServicesCommunicationsGateway:
        type: azure:voice:ServicesCommunicationsGateway
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
      exampleServicesCommunicationsGatewayTestLine:
        type: azure:voice:ServicesCommunicationsGatewayTestLine
        properties:
          location: West Central US
          voiceServicesCommunicationsGatewayId: ${exampleServicesCommunicationsGateway.id}
          phoneNumber: '123456789'
          purpose: Automated
          tags:
            key: value
    

    Create ServicesCommunicationsGatewayTestLine Resource

    new ServicesCommunicationsGatewayTestLine(name: string, args: ServicesCommunicationsGatewayTestLineArgs, opts?: CustomResourceOptions);
    @overload
    def ServicesCommunicationsGatewayTestLine(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              location: Optional[str] = None,
                                              name: Optional[str] = None,
                                              phone_number: Optional[str] = None,
                                              purpose: Optional[str] = None,
                                              tags: Optional[Mapping[str, str]] = None,
                                              voice_services_communications_gateway_id: Optional[str] = None)
    @overload
    def ServicesCommunicationsGatewayTestLine(resource_name: str,
                                              args: ServicesCommunicationsGatewayTestLineArgs,
                                              opts: Optional[ResourceOptions] = None)
    func NewServicesCommunicationsGatewayTestLine(ctx *Context, name string, args ServicesCommunicationsGatewayTestLineArgs, opts ...ResourceOption) (*ServicesCommunicationsGatewayTestLine, error)
    public ServicesCommunicationsGatewayTestLine(string name, ServicesCommunicationsGatewayTestLineArgs args, CustomResourceOptions? opts = null)
    public ServicesCommunicationsGatewayTestLine(String name, ServicesCommunicationsGatewayTestLineArgs args)
    public ServicesCommunicationsGatewayTestLine(String name, ServicesCommunicationsGatewayTestLineArgs args, CustomResourceOptions options)
    
    type: azure:voice:ServicesCommunicationsGatewayTestLine
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServicesCommunicationsGatewayTestLineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServicesCommunicationsGatewayTestLineArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServicesCommunicationsGatewayTestLineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServicesCommunicationsGatewayTestLineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServicesCommunicationsGatewayTestLineArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServicesCommunicationsGatewayTestLine Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServicesCommunicationsGatewayTestLine resource accepts the following input properties:

    PhoneNumber string
    Specifies the phone number.
    Purpose string
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    VoiceServicesCommunicationsGatewayId string
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    Location string
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    PhoneNumber string
    Specifies the phone number.
    Purpose string
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    VoiceServicesCommunicationsGatewayId string
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    Location string
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    phoneNumber String
    Specifies the phone number.
    purpose String
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    voiceServicesCommunicationsGatewayId String
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location String
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    phoneNumber string
    Specifies the phone number.
    purpose string
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    voiceServicesCommunicationsGatewayId string
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location string
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name string
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    phone_number str
    Specifies the phone number.
    purpose str
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    voice_services_communications_gateway_id str
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location str
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name str
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    phoneNumber String
    Specifies the phone number.
    purpose String
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    voiceServicesCommunicationsGatewayId String
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location String
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServicesCommunicationsGatewayTestLine resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ServicesCommunicationsGatewayTestLine Resource

    Get an existing ServicesCommunicationsGatewayTestLine resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServicesCommunicationsGatewayTestLineState, opts?: CustomResourceOptions): ServicesCommunicationsGatewayTestLine
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            phone_number: Optional[str] = None,
            purpose: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            voice_services_communications_gateway_id: Optional[str] = None) -> ServicesCommunicationsGatewayTestLine
    func GetServicesCommunicationsGatewayTestLine(ctx *Context, name string, id IDInput, state *ServicesCommunicationsGatewayTestLineState, opts ...ResourceOption) (*ServicesCommunicationsGatewayTestLine, error)
    public static ServicesCommunicationsGatewayTestLine Get(string name, Input<string> id, ServicesCommunicationsGatewayTestLineState? state, CustomResourceOptions? opts = null)
    public static ServicesCommunicationsGatewayTestLine get(String name, Output<String> id, ServicesCommunicationsGatewayTestLineState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Location string
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    PhoneNumber string
    Specifies the phone number.
    Purpose string
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    VoiceServicesCommunicationsGatewayId string
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    Location string
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    PhoneNumber string
    Specifies the phone number.
    Purpose string
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    Tags map[string]string
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    VoiceServicesCommunicationsGatewayId string
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location String
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    phoneNumber String
    Specifies the phone number.
    purpose String
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    voiceServicesCommunicationsGatewayId String
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location string
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name string
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    phoneNumber string
    Specifies the phone number.
    purpose string
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    voiceServicesCommunicationsGatewayId string
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location str
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name str
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    phone_number str
    Specifies the phone number.
    purpose str
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    voice_services_communications_gateway_id str
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
    location String
    Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
    phoneNumber String
    Specifies the phone number.
    purpose String
    The purpose of the Voice Services Communications Gateway Test Line. Possible values are Automated or Manual.
    tags Map<String>
    A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
    voiceServicesCommunicationsGatewayId String
    Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.

    Import

    Voice Services Communications Gateway Test Line can be imported using the resource id, e.g.

    $ pulumi import azure:voice/servicesCommunicationsGatewayTestLine:ServicesCommunicationsGatewayTestLine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.VoiceServices/communicationsGateways/communicationsGateway1/testLines/testLine1
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi