roma__CreateAuthorizingAppsV2
Authorizes specified apps to access selected APIs in a target environment, enabling API access after app creation.
Instructions
[ROMA] APP创建成功后,还不能访问API,如果想要访问某个环境上的API,需要将该API在该环境上授权给APP。授权成功后,APP即可访问该环境上的这个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": {
"api_ids": "<api_ids>",
"app_ids": "<app_ids>",
"env_id": "<env_id>",
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "roma__CreateAuthorizingAppsV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_id | Yes | 需要授权的环境编号 | |
| api_ids | Yes | API的编号列表。 | |
| app_ids | Yes | APP的编号列表 | |
| project_id | Yes | 项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。 | |
| auth_tunnel | No | 授权通道类型: | NORMAL |
| instance_id | Yes | 实例ID | |
| visit_params | No | 访问参数列表。 | |
| auth_blacklist | No | 绿色通道授权黑名单。 | |
| auth_whitelist | No | 绿色通道授权白名单。 |