apig__CreateCertificateV2
Create an SSL certificate for Huawei Cloud API Gateway using certificate content, private key, name, and project ID, with optional instance scope, algorithm type, and root CA.
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>",
"name": "<name>",
"private_key": "<private_key>",
"project_id": "<project_id>"
},
"name": "apig__CreateCertificateV2"
}
}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 | 证书算法类型: | |
| trusted_root_ca | No | 信任的根证书CA | |
| private_key_sign | No | 签名类型私钥内容,仅algorithm_type=SM2时必填。 | |
| cert_content_sign | No | 签名类型证书内容,仅algorithm_type=SM2时必填。 |