All URIs are relative to https://serverless.twilio.com
Method | HTTP request | Description |
---|---|---|
CreateAsset | Post /v1/Services/{ServiceSid}/Assets | Create a new Asset resource. |
DeleteAsset | Delete /v1/Services/{ServiceSid}/Assets/{Sid} | Delete an Asset resource. |
FetchAsset | Get /v1/Services/{ServiceSid}/Assets/{Sid} | Retrieve a specific Asset resource. |
ListAsset | Get /v1/Services/{ServiceSid}/Assets | Retrieve a list of all Assets. |
UpdateAsset | Post /v1/Services/{ServiceSid}/Assets/{Sid} | Update a specific Asset resource. |
ServerlessV1Asset CreateAsset(ctx, ServiceSidoptional)
Create a new Asset resource.
Create a new Asset resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
ServiceSid | string | The SID of the Service to create the Asset resource under. |
Other parameters are passed through a pointer to a CreateAssetParams struct
Name | Type | Description |
---|---|---|
FriendlyName | string | A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAsset(ctx, ServiceSidSid)
Delete an Asset resource.
Delete an Asset resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
ServiceSid | string | The SID of the Service to delete the Asset resource from. |
Sid | string | The SID that identifies the Asset resource to delete. |
Other parameters are passed through a pointer to a DeleteAssetParams 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]
ServerlessV1Asset FetchAsset(ctx, ServiceSidSid)
Retrieve a specific Asset resource.
Retrieve a specific Asset resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
ServiceSid | string | The SID of the Service to fetch the Asset resource from. |
Sid | string | The SID that identifies the Asset resource to fetch. |
Other parameters are passed through a pointer to a FetchAssetParams 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]
[]ServerlessV1Asset ListAsset(ctx, ServiceSidoptional)
Retrieve a list of all Assets.
Retrieve a list of all Assets.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
ServiceSid | string | The SID of the Service to read the Asset resources from. |
Other parameters are passed through a pointer to a ListAssetParams 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]
ServerlessV1Asset UpdateAsset(ctx, ServiceSidSidoptional)
Update a specific Asset resource.
Update a specific Asset resource.
Name | Type | Description |
---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
ServiceSid | string | The SID of the Service to update the Asset resource from. |
Sid | string | The SID that identifies the Asset resource to update. |
Other parameters are passed through a pointer to a UpdateAssetParams struct
Name | Type | Description |
---|---|---|
FriendlyName | string | A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]