apig__CreateAnAppV2
Creates an API Gateway app identity, enabling you to authorize APIs so the app can call them.
Instructions
[APIG] APP即应用,是一个可以访问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": {
"instance_id": "<instance_id>",
"name": "<name>",
"project_id": "<project_id>"
},
"name": "apig__CreateAnAppV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | APP的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64个字符。 | |
| remark | No | APP描述。字符长度不能大于255。 | |
| app_key | No | APP的key。支持英文,数字,“_”,“-”,且只能以英文或数字开头,8 ~ 200个字符。 | |
| app_secret | No | 密钥。支持英文,数字,“_”,“-”,“!”,“@”,“#”,“$”,“%”,且只能以英文或数字开头,8 ~ 128个字符。 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 |