Skip to content

Latest commit

 

History

History
188 lines (145 loc) · 3.55 KB

New-DuoPhone.md

File metadata and controls

188 lines (145 loc) · 3.55 KB
external help file Module Name online version schema
DuoSecurity-help.xml
DuoSecurity
2.0.0

New-DuoPhone

SYNOPSIS

Create Phone

SYNTAX

New-DuoPhone [[-Number] <String>] [[-Name] <String>] [[-Extension] <String>] [[-Type] <String>]
 [[-Platform] <String>] [[-PostDelay] <Int32>] [[-PreDelay] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Create a new phone with a specified phone number or other parameters. Requires "Grant write resource" API permission.

EXAMPLES

EXAMPLE 1

New-DuoPhone -Name 'TestPhone -Number '+15558675309' -Type Mobile -Platform 'Apple iOS'

PARAMETERS

-Number

The phone number; E.164 format recommended (i.e. "+17345551212"). If no leading plus sign is provided then it is assumed to be a United States number and an implicit "+1" country code is prepended. Dashes and spaces are ignored.

A phone with a smartphone platform but no number is a tablet.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Free-form label for the phone.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Extension

The extension.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Type

The phone type. See Retrieve Phones for a list of possible values.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: Mobile
Accept pipeline input: False
Accept wildcard characters: False

-Platform

The phone platform. See Retrieve Phones for a list of possible values.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: Generic Smartphone
Accept pipeline input: False
Accept wildcard characters: False

-PostDelay

The time (in seconds) to wait after the extension is dialed and before the speaking the prompt.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-PreDelay

The time (in seconds) to wait after the number picks up and before dialing the extension.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

https://duo.com/docs/adminapi#create-phone