github.com/twilio/twilio-go@v1.20.1/rest/routes/v2/docs/TrunksApi.md (about)

     1  # TrunksApi
     2  
     3  All URIs are relative to *https://routes.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchTrunks**](TrunksApi.md#FetchTrunks) | **Get** /v2/Trunks/{SipTrunkDomain} | 
     8  [**UpdateTrunks**](TrunksApi.md#UpdateTrunks) | **Post** /v2/Trunks/{SipTrunkDomain} | 
     9  
    10  
    11  
    12  ## FetchTrunks
    13  
    14  > RoutesV2Trunks FetchTrunks(ctx, SipTrunkDomain)
    15  
    16  
    17  
    18  Fetch the Inbound Processing Region assigned to a SIP Trunk.
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **SipTrunkDomain** | **string** | The absolute URL of the SIP Trunk
    27  
    28  ### Other Parameters
    29  
    30  Other parameters are passed through a pointer to a FetchTrunksParams struct
    31  
    32  
    33  Name | Type | Description
    34  ------------- | ------------- | -------------
    35  
    36  ### Return type
    37  
    38  [**RoutesV2Trunks**](RoutesV2Trunks.md)
    39  
    40  ### Authorization
    41  
    42  [accountSid_authToken](../README.md#accountSid_authToken)
    43  
    44  ### HTTP request headers
    45  
    46  - **Content-Type**: Not defined
    47  - **Accept**: application/json
    48  
    49  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    50  [[Back to Model list]](../README.md#documentation-for-models)
    51  [[Back to README]](../README.md)
    52  
    53  
    54  ## UpdateTrunks
    55  
    56  > RoutesV2Trunks UpdateTrunks(ctx, SipTrunkDomainoptional)
    57  
    58  
    59  
    60  Assign an Inbound Processing Region to a SIP Trunk
    61  
    62  ### Path Parameters
    63  
    64  
    65  Name | Type | Description
    66  ------------- | ------------- | -------------
    67  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    68  **SipTrunkDomain** | **string** | The absolute URL of the SIP Trunk
    69  
    70  ### Other Parameters
    71  
    72  Other parameters are passed through a pointer to a UpdateTrunksParams struct
    73  
    74  
    75  Name | Type | Description
    76  ------------- | ------------- | -------------
    77  **VoiceRegion** | **string** | The Inbound Processing Region used for this SIP Trunk for voice
    78  **FriendlyName** | **string** | A human readable description of this resource, up to 64 characters.
    79  
    80  ### Return type
    81  
    82  [**RoutesV2Trunks**](RoutesV2Trunks.md)
    83  
    84  ### Authorization
    85  
    86  [accountSid_authToken](../README.md#accountSid_authToken)
    87  
    88  ### HTTP request headers
    89  
    90  - **Content-Type**: application/x-www-form-urlencoded
    91  - **Accept**: application/json
    92  
    93  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    94  [[Back to Model list]](../README.md#documentation-for-models)
    95  [[Back to README]](../README.md)
    96