github.com/twilio/twilio-go@v1.20.1/rest/voice/v1/docs/ConnectionPoliciesApi.md (about)

     1  # ConnectionPoliciesApi
     2  
     3  All URIs are relative to *https://voice.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateConnectionPolicy**](ConnectionPoliciesApi.md#CreateConnectionPolicy) | **Post** /v1/ConnectionPolicies | 
     8  [**DeleteConnectionPolicy**](ConnectionPoliciesApi.md#DeleteConnectionPolicy) | **Delete** /v1/ConnectionPolicies/{Sid} | 
     9  [**FetchConnectionPolicy**](ConnectionPoliciesApi.md#FetchConnectionPolicy) | **Get** /v1/ConnectionPolicies/{Sid} | 
    10  [**ListConnectionPolicy**](ConnectionPoliciesApi.md#ListConnectionPolicy) | **Get** /v1/ConnectionPolicies | 
    11  [**UpdateConnectionPolicy**](ConnectionPoliciesApi.md#UpdateConnectionPolicy) | **Post** /v1/ConnectionPolicies/{Sid} | 
    12  
    13  
    14  
    15  ## CreateConnectionPolicy
    16  
    17  > VoiceV1ConnectionPolicy CreateConnectionPolicy(ctx, optional)
    18  
    19  
    20  
    21  
    22  
    23  ### Path Parameters
    24  
    25  This endpoint does not need any path parameter.
    26  
    27  ### Other Parameters
    28  
    29  Other parameters are passed through a pointer to a CreateConnectionPolicyParams struct
    30  
    31  
    32  Name | Type | Description
    33  ------------- | ------------- | -------------
    34  **FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
    35  
    36  ### Return type
    37  
    38  [**VoiceV1ConnectionPolicy**](VoiceV1ConnectionPolicy.md)
    39  
    40  ### Authorization
    41  
    42  [accountSid_authToken](../README.md#accountSid_authToken)
    43  
    44  ### HTTP request headers
    45  
    46  - **Content-Type**: application/x-www-form-urlencoded
    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  ## DeleteConnectionPolicy
    55  
    56  > DeleteConnectionPolicy(ctx, Sid)
    57  
    58  
    59  
    60  
    61  
    62  ### Path Parameters
    63  
    64  
    65  Name | Type | Description
    66  ------------- | ------------- | -------------
    67  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    68  **Sid** | **string** | The unique string that we created to identify the Connection Policy resource to delete.
    69  
    70  ### Other Parameters
    71  
    72  Other parameters are passed through a pointer to a DeleteConnectionPolicyParams struct
    73  
    74  
    75  Name | Type | Description
    76  ------------- | ------------- | -------------
    77  
    78  ### Return type
    79  
    80   (empty response body)
    81  
    82  ### Authorization
    83  
    84  [accountSid_authToken](../README.md#accountSid_authToken)
    85  
    86  ### HTTP request headers
    87  
    88  - **Content-Type**: Not defined
    89  - **Accept**: Not defined
    90  
    91  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    92  [[Back to Model list]](../README.md#documentation-for-models)
    93  [[Back to README]](../README.md)
    94  
    95  
    96  ## FetchConnectionPolicy
    97  
    98  > VoiceV1ConnectionPolicy FetchConnectionPolicy(ctx, Sid)
    99  
   100  
   101  
   102  
   103  
   104  ### Path Parameters
   105  
   106  
   107  Name | Type | Description
   108  ------------- | ------------- | -------------
   109  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   110  **Sid** | **string** | The unique string that we created to identify the Connection Policy resource to fetch.
   111  
   112  ### Other Parameters
   113  
   114  Other parameters are passed through a pointer to a FetchConnectionPolicyParams struct
   115  
   116  
   117  Name | Type | Description
   118  ------------- | ------------- | -------------
   119  
   120  ### Return type
   121  
   122  [**VoiceV1ConnectionPolicy**](VoiceV1ConnectionPolicy.md)
   123  
   124  ### Authorization
   125  
   126  [accountSid_authToken](../README.md#accountSid_authToken)
   127  
   128  ### HTTP request headers
   129  
   130  - **Content-Type**: Not defined
   131  - **Accept**: application/json
   132  
   133  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   134  [[Back to Model list]](../README.md#documentation-for-models)
   135  [[Back to README]](../README.md)
   136  
   137  
   138  ## ListConnectionPolicy
   139  
   140  > []VoiceV1ConnectionPolicy ListConnectionPolicy(ctx, optional)
   141  
   142  
   143  
   144  
   145  
   146  ### Path Parameters
   147  
   148  This endpoint does not need any path parameter.
   149  
   150  ### Other Parameters
   151  
   152  Other parameters are passed through a pointer to a ListConnectionPolicyParams struct
   153  
   154  
   155  Name | Type | Description
   156  ------------- | ------------- | -------------
   157  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
   158  **Limit** | **int** | Max number of records to return.
   159  
   160  ### Return type
   161  
   162  [**[]VoiceV1ConnectionPolicy**](VoiceV1ConnectionPolicy.md)
   163  
   164  ### Authorization
   165  
   166  [accountSid_authToken](../README.md#accountSid_authToken)
   167  
   168  ### HTTP request headers
   169  
   170  - **Content-Type**: Not defined
   171  - **Accept**: application/json
   172  
   173  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   174  [[Back to Model list]](../README.md#documentation-for-models)
   175  [[Back to README]](../README.md)
   176  
   177  
   178  ## UpdateConnectionPolicy
   179  
   180  > VoiceV1ConnectionPolicy UpdateConnectionPolicy(ctx, Sidoptional)
   181  
   182  
   183  
   184  
   185  
   186  ### Path Parameters
   187  
   188  
   189  Name | Type | Description
   190  ------------- | ------------- | -------------
   191  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   192  **Sid** | **string** | The unique string that we created to identify the Connection Policy resource to update.
   193  
   194  ### Other Parameters
   195  
   196  Other parameters are passed through a pointer to a UpdateConnectionPolicyParams struct
   197  
   198  
   199  Name | Type | Description
   200  ------------- | ------------- | -------------
   201  **FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
   202  
   203  ### Return type
   204  
   205  [**VoiceV1ConnectionPolicy**](VoiceV1ConnectionPolicy.md)
   206  
   207  ### Authorization
   208  
   209  [accountSid_authToken](../README.md#accountSid_authToken)
   210  
   211  ### HTTP request headers
   212  
   213  - **Content-Type**: application/x-www-form-urlencoded
   214  - **Accept**: application/json
   215  
   216  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   217  [[Back to Model list]](../README.md#documentation-for-models)
   218  [[Back to README]](../README.md)
   219