apig__ExportApiDefinitionsAsync
Exports API definitions from a Huawei Cloud API Gateway group as Swagger/OpenAPI JSON, YAML, or YML files for backup, migration, or documentation.
Instructions
[APIG] 导出分组下API的定义信息。导出文件内容符合swagger标准规范,API网关自定义扩展字段请参考《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": {
"env_id": "<env_id>",
"group_id": "<group_id>",
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "apig__ExportApiDefinitionsAsync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apis | No | 导出的API ID列表 | |
| type | No | 导出的API定义的格式 | json |
| define | No | 导出API的定义范围: | spec |
| env_id | Yes | API分组发布的环境ID | |
| version | No | 导出的API定义版本,默认为当前时间 | |
| group_id | Yes | API分组ID | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| oas_version | No | OpenAPI版本 | 2.0 |