You need to enable JavaScript to run this app.
导航
查询子CA详情
最近更新时间:2024.06.24 20:30:01首次发布时间:2023.08.11 19:16:08

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

请求说明

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

调试

暂不支持。

请求参数

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

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

Query

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

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

返回参数

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

请求示例

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

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202303141909591DA7D6362FCD7D0BDCE1",
        "Action": "GetSubInstance",
        "Version": "2023-05-01",
        "Service": "pca",
        "Region": "cn-north-1"
    },
    "Result": {
        "instance_id": "pca_sub_MlRaK****",
        "root_ca_id": "pca_root_aXPEF****",
        "encryption_algorithm": "RSA 2048",
        "signature_algorithm": "SHA512-RSA",
        "serial_number": "54E27CD911DC45EB0F026B1B9A5ABE0F9E0B7474",
        "tag": "doc-test-SubCA",
        "sourceType": 0,
        "contact": {
            "name": "张三",
            "email": "zhangsan@example.com",
            "phone_number": "131****1111"
        },
        "subject": {
            "country": [
                "CN"
            ],
            "organization": [
                "证书中心"
            ],
            "organizational_unit": [
                "研发部"
            ],
            "locality": [
                "海淀"
            ],
            "province": [
                "北京"
            ],
            "common_name": "Certificate Center CA"
        },
        "common_name": "Certificate Center CA",
        "certificate": {
            "csr": "",
            "encrypt_key": "",
            "encrypt_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SDi5vufkeKZRis+\nlC4jcKArVoVnBKCvmUNR/I4xRnY8KbY3jz1topuLw5feCfYkXh+dJilrH6vG1FJL\nBbATN9E8KtuxGI8e5nX8kVHS5toptVbgajpLg+sBKb2vygx4CphzJdECAwEAAaMv\nMC0wDAYDVR0TBAUwAwEB/zAMBgNVHQ8EBQMDB/+AMA8GA1UdJQQIMAYGBFUdJQAw\nDQYJKoZIhvcNAQENBQADggEBABcddS1v0PpRcW0vSKuEiomOrdz54VxmsgXIXweE\nhHLh0scTGtqIhA3Z3fVJujE/GwWIANl6VErHE1W0TmycM19UQ766ErIz2f8RCKMh\nvSsjXjoKkujk1xoR+N5w3gxFB+Epa38vGRXU2aTBDFql0yHdCzccKRME9n36x5hV\nUONnsMFIlguQDyyn+pVg8dmEIDIrNRACKZtlsVEMZ6Xeg0Yj1sHvMZM2b0jO1m35\netpnoDIuzDWriI+ZEA4aoL73FVukoZrOfc7XucJRGkv3zKu4aERAKdkwvPKZlKw2\nc+QpjLJ6r5xjeMDPlTAKWvmxn19hmX0MMsKlWgDkKdlYl+o=\n-----END CERTIFICATE-----\n"
            ]
        },
        "create_at": 1678791085,
        "not_after": 1680537599,
        "not_before": 1678791084,
        "instance_status": 1,
        "duration": "20天"
    }
}

错误码

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