HTTP Access Service
HTTP Access Service supports accessing cloud development resources via HTTP links.
You can manage access domains and cloud function access paths via CLI tools or the console.
Create
You can use the following command to create an HTTP Access Service address through CLI command-line interaction.
tcb service create -e envId
You can also specify the cloud function name functionName
and trigger path servicePath
to create an HTTP Access Service address.
tcb service create -p servicePath -f functionName
Delete HTTP Access Service Link
You can use the following command to delete the cloud function HTTP Access Service link via CLI command-line interaction.
tcb service delete -e envId
You can also specify the HTTP Access Service information to be deleted via parameters, such as the path of the HTTP Access Service address or the HTTP Access Service Id.
# Specify the Bound Path for HTTP Access Service
tcb service delete -p servicePath
# Specify HTTP Access Service Id
tcb service delete -i serviceId
Query HTTP Access Service Information
You can use the following command to list all HTTP Access Service links and view their basic information:
tcb service list
You will see output similar to the following:
Set more query constraints
-d domain Specify the domain
-p servicePath Specify the HTTP Access Service path
-i serviceId Specify the HTTP Access Service Id
Bind Custom Domain to HTTP Access Service
Before binding a custom domain, please set your domain's CNAME record value to the default domain. Binding will fail if the CNAME record does not exist!
You can bind the HTTP Access Service domain using the following command:
tcb service domain bind domain
Unbind Custom Domain from HTTP Access Service
You can unbind the HTTP Access Service domain using the following command:
tcb service domain unbind domain
Querying HTTP Access Service Custom Domain
You can list all HTTP Access Service domains and view their basic information using the following command:
tcb service domain list
You will see output similar to the following:
Set more query constraints
-d domain Specify the domain