调用任意 AGC Connect API
agc_requestInvoke any AppGallery Connect API endpoint with automatic authentication and site selection. Handles tasks without dedicated tools, returning HTTP status and raw JSON.
Instructions
以当前凭据调用任意 Connect API 端点(自动添加鉴权头、按站点选择域名)。适用于没有专用工具的接口,如 PMS 商品管理、Provisioning 证书/Profile、Testing 测试版本、Domain、资质审核、协议管理等。调用前请先用 agc_get_api_doc 确认方法、路径和参数。返回 HTTP 状态与原始 JSON。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | 强制使用的凭据;默认按接口文档支持的鉴权方式自动选择(两者都支持时优先 Service Account) | |
| body | No | JSON 请求体 | |
| path | Yes | 接口路径,如 /api/publish/v3/app-info;路径参数需自行替换(如 {appId})。也可传完整 https://connect-api*.cloud.huawei.com URL | |
| site | No | 站点:cn 中国 / de 德国 / sg 新加坡 / ru 俄罗斯。默认使用 AGC_SITE 配置 | |
| query | No | Query 参数;数组值会展开为重复参数(如 filterCondition) | |
| method | Yes | ||
| headers | No | 额外请求头。鉴权头自动添加;但部分接口要求业务参数放在请求头里(如 PMS 接口的 appId),见 agc_get_api_doc 的 Header 段 |