All URIs are relative to https://serverless.twilio.com
Method | HTTP request | Description |
---|---|---|
CreateService | Post /v1/Services | Create a new Service resource. |
DeleteService | Delete /v1/Services/{Sid} | Delete a Service resource. |
FetchService | Get /v1/Services/{Sid} | Retrieve a specific Service resource. |
ListService | Get /v1/Services | Retrieve a list of all Services. |
UpdateService | Post /v1/Services/{Sid} | Update a specific Service resource. |
ServerlessV1Service CreateService(ctx, optional)
Create a new Service resource.
Create a new Service resource.
This endpoint does not need any path parameter.
Other parameters are passed through a pointer to a CreateServiceParams struct
Name | Type | Description |
---|---|---|
UniqueName | string | A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the sid in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. |
FriendlyName | string | A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. |
IncludeCredentials | bool | Whether to inject Account credentials into a function invocation context. The default value is true . |
UiEditable | bool | Whether the Service's properties and subresources can be edited via the UI. The default value is false . |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteService(ctx, Sid)
Delete a Service resource.
Delete a Service resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Sid | string | The sid or unique_name of the Service resource to delete. |
Other parameters are passed through a pointer to a DeleteServiceParams struct
Name | Type | Description |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServerlessV1Service FetchService(ctx, Sid)
Retrieve a specific Service resource.
Retrieve a specific Service resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Sid | string | The sid or unique_name of the Service resource to fetch. |
Other parameters are passed through a pointer to a FetchServiceParams struct
Name | Type | Description |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ServerlessV1Service ListService(ctx, optional)
Retrieve a list of all Services.
Retrieve a list of all Services.
This endpoint does not need any path parameter.
Other parameters are passed through a pointer to a ListServiceParams struct
Name | Type | Description |
---|---|---|
PageSize | int | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
Limit | int | Max number of records to return. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ServerlessV1Service UpdateService(ctx, Sidoptional)
Update a specific Service resource.
Update a specific Service resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
Sid | string | The sid or unique_name of the Service resource to update. |
Other parameters are passed through a pointer to a UpdateServiceParams struct
Name | Type | Description |
---|---|---|
IncludeCredentials | bool | Whether to inject Account credentials into a function invocation context. |
FriendlyName | string | A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. |
UiEditable | bool | Whether the Service resource's properties and subresources can be edited via the UI. The default value is false . |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]