ccm__CreateCertificateAuthority
Creates a certificate authority (CA) in Huawei Cloud CCM, supporting on-demand or period-based CAs with configurable distinguished name, key algorithm, validity, issuer, and CRL settings.
Instructions
[CCM] 创建CA,分以下三种情况:
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": {
"distinguished_name": "<distinguished_name>",
"key_algorithm": "<key_algorithm>",
"type": "<type>"
},
"name": "ccm__CreateCertificateAuthority"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 创建的CA类型。 | |
| ca_id | No | CA证书ID。如果为空,则创建按需CA;如果不为空,则保存包周期CA信息。 | |
| validity | No | 证书有效期,分以下三种情况: | |
| issuer_id | No | 父CA证书ID,分以下三种情况: | |
| key_usages | No | 密钥用法,具体标准参见RFC 5280中:[4.2.1.3节](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3)。 | |
| path_length | No | CA证书路径长度,分以下三种情况: | |
| key_algorithm | Yes | 密钥算法,可选值如下: | |
| crl_configuration | No | 证书CRL配置,详情请参见**CrlConfiguration**字段数据结构说明。 | |
| distinguished_name | Yes | 证书名称配置,详情请参见**DistinguishedName**字段数据结构说明。 | |
| signature_algorithm | No | 签名哈希算法。 | |
| enterprise_project_id | No | 企业多项目ID。用户未开通企业多项目时,不需要输入该字段。 用户开通企业多项目时,查询资源可以输入该字段。 若用户不输入该字段,默认查询租户所有有权限的企业多项目下的资源。 此时“enterprise_project_id”取值为“all”。 若用户输入该字段,取值满足以下任一条件. |