Movatterモバイル変換


[0]ホーム

URL:


Skip to contentSkip to navigationSkip to topbar
Go to the Twilio Docs home page
Twilio Docs

Create a Service


(warning)

Warning

If you are usingServices orFunctions(Classic) and have included your auth token directly instead of using a variable, you must wait for 1 minute for the update of your auth token to propagate. Otherwise, those functions and services will fail with a403 Forbidden error.

A TwilioService is a container for yourFunctions,Assets, andEnvironments.

As you develop applications usingTwilio Functions and Assets, Services can help you organize the Functions and Assets that compose each respective application, keep separate Environments, and control Deployments.

Runtime Documentation - Service Architecture.

To create a new Service, click on theCreate Service button that's available both from theServices page(link takes you to an external page) in the Twilio Console and theFunctions Overview page(link takes you to an external page).

You will be prompted to provide a name for the new Service. ClickNext once you're satisfied with the new Service name.

The Service will be bootstrapped, and you'll be redirected to theFunctions Editor shortly after. There, you can begin adding Functions and Assets.

Name a new Service.
(warning)

Warning

A Service name must be fewer than 50 characters, and may only contain letters, numbers, and dashes.

Once selected, the Service name is permanent and cannot be modified.

The name of your Service directly influences the domain that your Functions and Assets will be deployed to. The general URL scheme for a Service is as follows:

https://[servicename]-[random numbers]-[environment].twil.io/

This means that a Service namedastley will have the following domain by default:

https://astley-3432.twil.io/# The default, production URL

It could potentially also create these other, Environment-specific domains depending on how you name them and which you choose to deploy:

1
https://astley-3432-dev.twil.io/# For an Environment named 'dev'
2
https://astley-3432-test.twil.io/# For an Environment named 'test'
3
https://astley-3432-stage.twil.io/# For an Environment named 'stage'

View and Manage Services

view-and-manage-services page anchor

You can view all of your existing services on theServices page(link takes you to an external page) in the Twilio Console.

For each existing Service, you can:

  • Click on the unique name to visit theFunctions Editor for that Service and view all Functions and Assets
  • Click onService Details to view metadata for the Service and all Functions, Assets, and Environments
  • Click onDelete to begin the process of deleting the Service
Manage Services Console UI.

Clicking onDelete will initiate the process of deleting a Service. First, you will be prompted to verify that you indeed wish to delete the Service. After confirming, the Service and all of its child Functions, Assets, and Environments will be deleted.

(error)

Danger

If the Service is being used by another application like Studio or Flex, those applications will no longer be able to reach the Service and associated Functions or Assets. This poses the risk of breaking dependent applications, and should be taken into consideration before deleting a Service.


There is currently a maximum of 50 Services available to each Functions user by default. Once you reach 50 Services, you will no longer be able to add additional Services without deleting an existing Service.

(warning)

Warning

Functions(Classic) does not support Services. If you are using Functions(Classic), you can create functions directly in the editor and attach compatible Assets from Assets(Classic).


[8]ページ先頭

©2009-2025 Movatter.jp