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

     1  # ServicesEnvironmentsLogsApi
     2  
     3  All URIs are relative to *https://serverless.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchLog**](ServicesEnvironmentsLogsApi.md#FetchLog) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid} | 
     8  [**ListLog**](ServicesEnvironmentsLogsApi.md#ListLog) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs | 
     9  
    10  
    11  
    12  ## FetchLog
    13  
    14  > ServerlessV1Log FetchLog(ctx, ServiceSidEnvironmentSidSid)
    15  
    16  
    17  
    18  Retrieve a specific log.
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **ServiceSid** | **string** | The SID of the Service to fetch the Log resource from.
    27  **EnvironmentSid** | **string** | The SID of the environment with the Log resource to fetch.
    28  **Sid** | **string** | The SID of the Log resource to fetch.
    29  
    30  ### Other Parameters
    31  
    32  Other parameters are passed through a pointer to a FetchLogParams struct
    33  
    34  
    35  Name | Type | Description
    36  ------------- | ------------- | -------------
    37  
    38  ### Return type
    39  
    40  [**ServerlessV1Log**](ServerlessV1Log.md)
    41  
    42  ### Authorization
    43  
    44  [accountSid_authToken](../README.md#accountSid_authToken)
    45  
    46  ### HTTP request headers
    47  
    48  - **Content-Type**: Not defined
    49  - **Accept**: application/json
    50  
    51  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    52  [[Back to Model list]](../README.md#documentation-for-models)
    53  [[Back to README]](../README.md)
    54  
    55  
    56  ## ListLog
    57  
    58  > []ServerlessV1Log ListLog(ctx, ServiceSidEnvironmentSidoptional)
    59  
    60  
    61  
    62  Retrieve a list of all logs.
    63  
    64  ### Path Parameters
    65  
    66  
    67  Name | Type | Description
    68  ------------- | ------------- | -------------
    69  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    70  **ServiceSid** | **string** | The SID of the Service to read the Log resource from.
    71  **EnvironmentSid** | **string** | The SID of the environment with the Log resources to read.
    72  
    73  ### Other Parameters
    74  
    75  Other parameters are passed through a pointer to a ListLogParams struct
    76  
    77  
    78  Name | Type | Description
    79  ------------- | ------------- | -------------
    80  **FunctionSid** | **string** | The SID of the function whose invocation produced the Log resources to read.
    81  **StartDate** | **time.Time** | The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
    82  **EndDate** | **time.Time** | The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
    83  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
    84  **Limit** | **int** | Max number of records to return.
    85  
    86  ### Return type
    87  
    88  [**[]ServerlessV1Log**](ServerlessV1Log.md)
    89  
    90  ### Authorization
    91  
    92  [accountSid_authToken](../README.md#accountSid_authToken)
    93  
    94  ### HTTP request headers
    95  
    96  - **Content-Type**: Not defined
    97  - **Accept**: application/json
    98  
    99  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   100  [[Back to Model list]](../README.md#documentation-for-models)
   101  [[Back to README]](../README.md)
   102