云服务器内容精选

  • 请求示例 HTTP的示例 POST /v1/accountservice/cert-manager/crls/action/batch-immediate-sync HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AC CES S-TOKEN: x-yyyyyy { "{ \n \"ids\":[ \"db27dbc7-a962-4e8a-b23d-bc5e9e3a6881\" ]\n }" }
  • 响应示例 返回状态码为200:设置认证源信息返回体, 同步操作为异步操作,结果需要通过查询list来获取同步结果 { "errcode": "0", "errmsg": " ", "successList": [ "db27dbc7-a962-4e8a-b23d-bc5e9e3a6881" ], "failList": [] } 返回状态码为207:设置认证源信息返回体, 同步操作为异步操作,结果需要通过查询list来获取同步结果,部分证书同步成功 { "errcode": "0", "errmsg": " ", "successList": [ "db27dbc7-a962-4e8a-b23d-bc5e9e3a6881" ], "failList": [ { "errcode": "0x00c8005a", "errmsg": "No rights.", "id": "db27dbc7-a962-4e8a-b23d-bc5e9e3a6333" } ] } 返回状态码为400:出现错误返回结果 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /v1/accountservice/cert-manager/crls?pageIndex=1&pageSize=20&keyWord=com HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy
  • 响应参数 返回状态码为200:查询认证源返回体。 表2 QueryCrlResult对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 1~64个字符。 - 错误码 "0" errmsg string 0~256个字符。 - 错误描述 "" pageIndex int32 [1-100] - 分页页码。 1 pageSize int32 [20-100] - 每页大小。 20 total int32 [0-10000] - 总记录 100 data ARRAY_REFERENCE 0-100个列表项,详细请参见表3。 CRL证书列表数据。 - 表3 CrlDistributionPoint对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 1~64个字符。 - 证书的唯一标识 "8a3aa7626c64a640016c64c3b96d01a8" tenantId string 30~36个字符。 - 租户Id "8a3aa7626c64a640016c64c3b96d01a8" ldapServerId string 1~64个字符。 - 认证源主键 "8a3aa7626c64a640016c64b698c300f4" ldapServerName string 1~64个字符。 - 认证源名字 "10.179.182.226" dn string 1~600个字符。 - Crl发布点 "ou=Domain Controllers" synTime string 1~64个字符。 - 同步时间, 时:分 "12:30" status int32 [0-3] - 同步成功或失败 未同步:0;同步中:1;同步成功:2;同步失败:3 0 enable int32 [0-1] - 是否启用同步设置 同步开关(开启:1;关闭:0) 0 updateTime string 1~64个字符。 - 修改时间, 格式 按照当前时区 yyyy-MM-dd HH:mm:ss "2019-08-12 19:37:15" syncFailedReason string 1~64个字符。 - 同步失败原因 "证书策略不存在" 返回状态码为400:出现错误返回结果 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询认证源返回体。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "pageIndex" : 1, "pageSize" : 20, "total" : 100, "data" : [ { "id" : "8a3aa7626c64a640016c64c3b96d01a8", "tenantId" : "8a3aa7626c64a640016c64c3b96d01a8", "ldapServerId" : "8a3aa7626c64a640016c64b698c300f4", "ldapServerName" : "10.179.182.226", "dn" : "ou=Domain Controllers", "synTime" : "12:30", "status" : 0, "enable" : 0, "updateTime" : "2019-08-12 19:37:15", "syncFailedReason" : "证书策略不存在" } ] } 返回状态码为400:出现错误返回结果 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /v1/accountservice/cert-manager/crls 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 是 int32 [1-100] - 分页页码 1 pageSize 是 int32 [20-100] - 分页数量 20 keyWord 否 string 0~256个字符。 - 关键字,仅支持dn值的过滤 "com"