We recommend using Azure Native.
azure.voice.ServicesCommunicationsGatewayTestLine
Explore with Pulumi AI
Manages a Voice Services Communications Gateway Test Line.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Central US",
});
const exampleServicesCommunicationsGateway = new azure.voice.ServicesCommunicationsGateway("example", {
name: "example-vcg",
resourceGroupName: example.name,
});
const exampleServicesCommunicationsGatewayTestLine = new azure.voice.ServicesCommunicationsGatewayTestLine("example", {
name: "example-vtl",
location: "West Central US",
voiceServicesCommunicationsGatewayId: exampleServicesCommunicationsGateway.id,
phoneNumber: "123456789",
purpose: "Automated",
tags: {
key: "value",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Central US")
example_services_communications_gateway = azure.voice.ServicesCommunicationsGateway("example",
name="example-vcg",
resource_group_name=example.name)
example_services_communications_gateway_test_line = azure.voice.ServicesCommunicationsGatewayTestLine("example",
name="example-vtl",
location="West Central US",
voice_services_communications_gateway_id=example_services_communications_gateway.id,
phone_number="123456789",
purpose="Automated",
tags={
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/voice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Central US"),
})
if err != nil {
return err
}
exampleServicesCommunicationsGateway, err := voice.NewServicesCommunicationsGateway(ctx, "example", &voice.ServicesCommunicationsGatewayArgs{
Name: pulumi.String("example-vcg"),
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
_, err = voice.NewServicesCommunicationsGatewayTestLine(ctx, "example", &voice.ServicesCommunicationsGatewayTestLineArgs{
Name: pulumi.String("example-vtl"),
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Central US",
});
var exampleServicesCommunicationsGateway = new Azure.Voice.ServicesCommunicationsGateway("example", new()
{
Name = "example-vcg",
ResourceGroupName = example.Name,
});
var exampleServicesCommunicationsGatewayTestLine = new Azure.Voice.ServicesCommunicationsGatewayTestLine("example", new()
{
Name = "example-vtl",
Location = "West Central US",
VoiceServicesCommunicationsGatewayId = exampleServicesCommunicationsGateway.Id,
PhoneNumber = "123456789",
Purpose = "Automated",
Tags =
{
{ "key", "value" },
},
});
});
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Central US")
.build());
var exampleServicesCommunicationsGateway = new ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", ServicesCommunicationsGatewayArgs.builder()
.name("example-vcg")
.resourceGroupName(example.name())
.build());
var exampleServicesCommunicationsGatewayTestLine = new ServicesCommunicationsGatewayTestLine("exampleServicesCommunicationsGatewayTestLine", ServicesCommunicationsGatewayTestLineArgs.builder()
.name("example-vtl")
.location("West Central US")
.voiceServicesCommunicationsGatewayId(exampleServicesCommunicationsGateway.id())
.phoneNumber("123456789")
.purpose("Automated")
.tags(Map.of("key", "value"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Central US
exampleServicesCommunicationsGateway:
type: azure:voice:ServicesCommunicationsGateway
name: example
properties:
name: example-vcg
resourceGroupName: ${example.name}
exampleServicesCommunicationsGatewayTestLine:
type: azure:voice:ServicesCommunicationsGatewayTestLine
name: example
properties:
name: example-vtl
location: West Central US
voiceServicesCommunicationsGatewayId: ${exampleServicesCommunicationsGateway.id}
phoneNumber: '123456789'
purpose: Automated
tags:
key: value
Create ServicesCommunicationsGatewayTestLine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServicesCommunicationsGatewayTestLine(name: string, args: ServicesCommunicationsGatewayTestLineArgs, opts?: CustomResourceOptions);
@overload
def ServicesCommunicationsGatewayTestLine(resource_name: str,
args: ServicesCommunicationsGatewayTestLineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServicesCommunicationsGatewayTestLine(resource_name: str,
opts: Optional[ResourceOptions] = None,
phone_number: Optional[str] = None,
purpose: Optional[str] = None,
voice_services_communications_gateway_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var servicesCommunicationsGatewayTestLineResource = new Azure.Voice.ServicesCommunicationsGatewayTestLine("servicesCommunicationsGatewayTestLineResource", new()
{
PhoneNumber = "string",
Purpose = "string",
VoiceServicesCommunicationsGatewayId = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := voice.NewServicesCommunicationsGatewayTestLine(ctx, "servicesCommunicationsGatewayTestLineResource", &voice.ServicesCommunicationsGatewayTestLineArgs{
PhoneNumber: pulumi.String("string"),
Purpose: pulumi.String("string"),
VoiceServicesCommunicationsGatewayId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var servicesCommunicationsGatewayTestLineResource = new ServicesCommunicationsGatewayTestLine("servicesCommunicationsGatewayTestLineResource", ServicesCommunicationsGatewayTestLineArgs.builder()
.phoneNumber("string")
.purpose("string")
.voiceServicesCommunicationsGatewayId("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
services_communications_gateway_test_line_resource = azure.voice.ServicesCommunicationsGatewayTestLine("servicesCommunicationsGatewayTestLineResource",
phone_number="string",
purpose="string",
voice_services_communications_gateway_id="string",
location="string",
name="string",
tags={
"string": "string",
})
const servicesCommunicationsGatewayTestLineResource = new azure.voice.ServicesCommunicationsGatewayTestLine("servicesCommunicationsGatewayTestLineResource", {
phoneNumber: "string",
purpose: "string",
voiceServicesCommunicationsGatewayId: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:voice:ServicesCommunicationsGatewayTestLine
properties:
location: string
name: string
phoneNumber: string
purpose: string
tags:
string: string
voiceServicesCommunicationsGatewayId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServicesCommunicationsGatewayTestLine resource accepts the following input properties:
- Phone
Number string - Specifies the phone number.
- Purpose string
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - Voice
Services stringCommunications Gateway Id - 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.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- Phone
Number string - Specifies the phone number.
- Purpose string
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - Voice
Services stringCommunications Gateway Id - 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.
- map[string]string
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- phone
Number String - Specifies the phone number.
- purpose String
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - voice
Services StringCommunications Gateway Id - 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.
- Map<String,String>
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- phone
Number string - Specifies the phone number.
- purpose string
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - voice
Services stringCommunications Gateway Id - 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.
- {[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
orManual
. - voice_
services_ strcommunications_ gateway_ id - 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.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- phone
Number String - Specifies the phone number.
- purpose String
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - voice
Services StringCommunications Gateway Id - 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.
- 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.
- 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.
- Phone
Number string - Specifies the phone number.
- Purpose string
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- Voice
Services stringCommunications Gateway Id - 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.
- Phone
Number string - Specifies the phone number.
- Purpose string
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - map[string]string
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- Voice
Services stringCommunications Gateway Id - 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.
- phone
Number String - Specifies the phone number.
- purpose String
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - Map<String,String>
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- voice
Services StringCommunications Gateway Id - 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.
- phone
Number string - Specifies the phone number.
- purpose string
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - {[key: string]: string}
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- voice
Services stringCommunications Gateway Id - 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
orManual
. - Mapping[str, str]
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- voice_
services_ strcommunications_ gateway_ id - 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.
- phone
Number String - Specifies the phone number.
- purpose String
- The purpose of the Voice Services Communications Gateway Test Line. Possible values are
Automated
orManual
. - Map<String>
- A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
- voice
Services StringCommunications Gateway Id - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.