apig__CreateEnvironmentV2
Create named API Gateway environments, such as development, testing, or production, within a project and instance so APIs can be published for callers.
Instructions
[APIG] 在实际的生产中,API提供者可能有多个环境,如开发环境、测试环境、生产环境等,用户可以自由将API发布到某个环境,供调用者调用。
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": {
"instance_id": "<instance_id>",
"name": "<name>",
"project_id": "<project_id>"
},
"name": "apig__CreateEnvironmentV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 环境的名称,支持英文,数字,下划线,且只能以英文字母开头。 | |
| remark | No | 描述信息 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 |