apig__UpdateCertificateV2
Updates an existing SSL certificate for API Gateway by certificate ID, enabling changes to certificate content, private key, name, algorithm, and visibility scope.
Instructions
[APIG] 修改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>",
"certificate_id": "<certificate_id>",
"name": "<name>",
"private_key": "<private_key>",
"project_id": "<project_id>"
},
"name": "apig__UpdateCertificateV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 证书名称。支持中文,英文字母,数字,下划线,且只能以英文或汉字开头,4~50个字符。 | |
| type | No | 证书可见范围 | global |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | No | 所属实例ID,当type=instance时必填 | |
| private_key | Yes | 证书私钥 | |
| cert_content | Yes | 证书内容 | |
| algorithm_type | No | 证书算法类型: | |
| certificate_id | Yes | 证书的编号 | |
| trusted_root_ca | No | 信任的根证书CA | |
| private_key_sign | No | 签名类型私钥内容,仅algorithm_type=SM2时必填。 | |
| cert_content_sign | No | 签名类型证书内容,仅algorithm_type=SM2时必填。 |