apig__AssociateCertificateV2
Associates an SSL certificate and private key with an API Gateway custom domain to enable HTTPS access for APIs.
Instructions
[APIG] 如果创建API时,“定义API请求”使用HTTPS请求协议,那么在独立域名中需要添加SSL证书。
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": {
"cert_content": "<cert_content>",
"domain_id": "<domain_id>",
"group_id": "<group_id>",
"instance_id": "<instance_id>",
"name": "<name>",
"private_key": "<private_key>",
"project_id": "<project_id>"
},
"name": "apig__AssociateCertificateV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 证书名称。长度为4 ~ 50位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。 | |
| group_id | Yes | 分组的编号 | |
| domain_id | Yes | 域名的编号 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| private_key | Yes | 私钥内容 | |
| cert_content | Yes | 证书内容 |