Add a private network
add_private_networkMakes a private network for a database that CodeGene cannot reach over the internet (test_connection's guide offers it): a private tunnel the person connects from a machine inside their network. It is ready at once; then get_private_network_setup gives the one command to run there, check_private_network says when it is connected, and connect_service connects the database naming the network in its Private network setting with the database's own address inside the network. If it answers that it could not be made, call it again with the same name to finish. Only owners and admins can add one.
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": {
"name": "<name>",
"reason": "<reason>"
},
"name": "add_private_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The network's name: 1 to 63 lowercase letters, digits or dashes, starting and ending with a letter or digit (office, plant-2). A database connection names it in its Private network setting. | |
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |