Get-MSTeamsPSTNCalls
    • 21 Aug 2024
    • 1 Minute to read
    • Dark
      Light
    • PDF

    Get-MSTeamsPSTNCalls

    • Dark
      Light
    • PDF

    Article summary

    Return a list of MS Teams PSTN calls

    Syntax

    Get-MSTeamsPSTNCalls
      -FromDateTime  <DateTime>
      -ToDateTime  <DateTime>
      -TenantName  <String>
      -MSClientID  <String>
      -MSClientSecret  <String>
      -MSTenantID  <String>
      -AuthToken  <String>
      -ResultSize  <Int32>
    

    Examples

    Example 1

    Get-MSTeamsPSTNCalls -MSClientID 41a228ad-db6c-4e4e-4184-6d8a1175a35f -MSClientSecret 43Rk5Xl3K349w-pFf0i_Rt45Qd~ArqkE32. -MSTenantID 17e1e614-8119-48ab-8ba1-6ff1d94a6930
    

    Returns all Teams PSTN calls for the specified tenant/clientID/secret combination

    Example 2

    Get-MSTeamsPSTNCalls -AuthToken $AuthToken
    

    Returns all Teams PSTN calls using a previously obtained authtoken

    Parameters

    -FromDateTime <DateTime>
    Start of time range to query. UTC, inclusive. Time range is based on the call start time. Defaults to today

    ParameterValue
    Requiredfalse
    Position1
    Requiredfalse
    Default Value(Get-Date -Format 'yyyy-MM-ddTHH:mm:ssZ')
    Accept pipeline input?false
    Accept wildcard characters?false

    -ToDateTime <DateTime>
    End of time range to query. UTC, inclusive. Defaults to today

    ParameterValue
    Requiredfalse
    Position2
    Requiredfalse
    Default Value((Get-Date).AddDays(+1).ToString('yyyy-MM-ddTHH:mm:ssZ'))
    Accept pipeline input?false
    Accept wildcard characters?false

    -TenantName <String>
    The name of the Nectar DXP tenant. Used in multi-tenant configurations.

    ParameterValue
    Requiredfalse
    Position3
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -MSClientID <String>
    The MS client ID for the application granted access to Azure AD.

    ParameterValue
    Requiredfalse
    Position4
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -MSClientSecret <String>
    The MS client secret for the application granted access to Azure AD.

    ParameterValue
    Requiredfalse
    Position5
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -MSTenantID <String>
    The MS tenant ID for the O365 customer granted access to Azure AD.

    ParameterValue
    Requiredfalse
    Position6
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -AuthToken <String>
    The authorization token used for this request. Normally obtained via Get-MSGraphAccessToken

    ParameterValue
    Requiredfalse
    Position7
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -ResultSize <Int32>
    The number of results to return. Defaults to 1000.

    ParameterValue
    Requiredfalse
    Position8
    Requiredfalse
    Default Value0
    Accept pipeline input?false
    Accept wildcard characters?false

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence