apig__AddCustomIngressPort
Adds a custom inbound port to an API Gateway instance and assigns it HTTP or HTTPS protocol, with one protocol allowed per port in the instance.
Instructions
[APIG] 新增实例的自定义入方向端口,在同个实例中,一个端口仅能支持一种协议。
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": {
"ingress_port": "<ingress_port>",
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"protocol": "<protocol>"
},
"name": "apig__AddCustomIngressPort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes | 实例自定义入方向端口协议。 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| ingress_port | Yes | 实例自定义入方向端口,支持的端口范围为1024~49151。 |