createVhost
Creates a vhost endpoint for a service, using app and service handles to generate a default on-aptible.com domain.
Instructions
Create a new vhost/endpoint for a Service.
Service handle is a bit weird, since it's auto-assigned by Aptible and not set by the user. The user assigns with process_type in the procfile. Since this is being used by AI, that shouldn't matter, though.
TODO: Add support for database endpoints and custom endpoints. Currently, since there's no tools for handling DNS, we only support creating the default on-aptible.com domains for Services.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_handle": "<app_handle>",
"service_handle": "<service_handle>"
},
"name": "createVhost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_handle | Yes | ||
| account_handle | No | ||
| service_handle | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |