You need to enable JavaScript to run this app.
导航
查询根CA详情
最近更新时间:2024.06.25 14:18:18首次发布时间:2023.08.11 19:16:08

调用本接口查询指定私有根CA(以下简称“根CA”)实例的详情。

请求说明

  • 接口名称:GetRootInstance
  • 请求方式:GET
  • 请求地址:open.volcengineapi.com

调试

暂不支持。

请求参数

下方表格中的参数包含在请求头(header)中。

参数类型是否必选描述示例值
Regionstring服务地区。该参数的取值是cn-north-1cn-north-1
ServiceNamestring服务名称。该参数的取值是pcapca

Query

下方表格中的参数包含在查询字符串(query string)中。

参数
类型
是否必选
描述
示例值
Action
String
API 的名称。该参数的取值是 GetRootInstance
GetRootInstance
Version
String
API 的版本。该参数的取值是 2023-05-01
2023-05-01
instance_id
String
要查询的根CA实例的ID。
您可以调用 ListRootInstances 接口获取所有根CA实例的ID。
pca_root_aXPEF****

返回参数

参数
类型
描述
示例值
Result
Object
根CA实例的详情。

请求示例

GET https://open.volcengineapi.com/?Action=GetRootInstance&Version=2023-05-01&instance_id=pca_root_aXPEF****&<其他公共请求参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202303141728335A3BCB56DFF6D11E40E7",
        "Action": "GetRootInstance",
        "Version": "2023-05-01",
        "Service": "pca",
        "Region": "cn-north-1"
    },
    "Result": {
        "instance_id": "pca_root_aXPEF****",
        "root_ca_id": "",
        "encryption_algorithm": "RSA 2048",
        "signature_algorithm": "SHA512-RSA",
        "serial_number": "331D4CD014E4813AB8302E47DD9EB436DE2E7BDE",
        "tag": "doc-test-RootCA",
        "sourceType": 0,
        "contact": {
            "name": "张三",
            "email": "zhangsan@example.com",
            "phone_number": "131****1111"
        },
        "subject": {
            "country": [
                "CN"
            ],
            "organization": [
                "Volcengine"
            ],
            "organizational_unit": [
                "Certificate Center"
            ],
            "locality": [
                "海淀"
            ],
            "province": [
                "北京"
            ],
            "common_name": "Volcengine CA"
        },
        "common_name": "Volcengine CA",
        "certificate": {
            "csr": "",
            "encrypt_key": "",
            "encrypt_chain": null,
            "key": "",
            "ch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CKMh\nvSsjXjoKkujk1xoR+N5w3gxFB+Epa38vGRXU2aTBDFql0yHdCzccKRME9n36x5hV\nUONnsMFIlguQDyyn+pVg8dmEIDIrNRACKZtlsVEMZ6Xeg0Yj1sHvMZM2b0jO1m35\netpnoDIuzDWriI+ZEA4aoL73FVukoZrOfc7XucJRGkv3zKu4aERAKdkwvPKZlKw2\nc+QpjLJ6r5xjeMDPlTAKWvmxn19hmX0MMsKlWgDkKdlYl+o=\n-----END CERTIFICATE-----\n"
            ]
        },
        "create_at": 1678778206,
        "not_after": 1681401599,
        "not_before": 1678778206,
        "instance_status": 1,
        "duration": "30天"
    }
}

错误码

如果响应正文的ResponseMetadata字段中包含Error字段,则表示API请求失败。您可访问公共错误码,获取更多错误码信息。