云服务器内容精选

  • 请求示例 HTTP的示例 GET /controller/campus/v1/oamservice/certification/caservertemplate 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
  • 响应参数 返回状态码为200:查询成功,响应体参考QueryCAServerResponse。 表1 QueryCAServerResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-20个列表项,详细请参见表2。 SCEP CA服务器信息。 - dataV2 ARRAY_REFERENCE 0-2个列表项,详细请参见表2。 CMPv2 CA服务器信息。 - 表2 CAServerInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 caServerId string - - CA服务器ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" caName string 0~64个字符。 - CA服务器名称。 "cusCA" caUrl string 0~128个字符。 - CA服务器http方式SCEP证书申请URL。 "http://host:port/certsrv/mscep/mscep.dll" caHttpsUrl string 0~128个字符。 - CA服务器https方式SCEP证书申请URL。 "https://host:port/certsrv/mscep/mscep.dll" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryCAServerResponse。 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" : "", "data" : [ { "caServerId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "caName" : "cusCA", "caUrl" : "http://host:port/certsrv/mscep/mscep.dll", "caHttpsUrl" : "https://host:port/certsrv/mscep/mscep.dll" } ], "dataV2" : [ { "caServerId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "caName" : "cusCA", "caUrl" : "http://host:port/certsrv/mscep/mscep.dll", "caHttpsUrl" : "https://host:port/certsrv/mscep/mscep.dll" } ] } 返回状态码为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 返回状态码为500:内部错误,无响应体。 HTTP/1.1 500 Internal Server Error 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
  • 接口约束 1、NCE-Campus LANWAN场景该接口支持租户视图或支持msp视图下,角色为“Open Api Operator”或“Open Api Monitor”的用户访问,必须在用户会话建立后使用; 2、NCE-Campus LAN场景该接口仅支持租户视图或msp代维视图下,角色为“Open Api Operator”或“Open Api Monitor”的用户访问,必须在用户会话建立后使用。
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryTenantCAServerResponse。 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" : "", "data" : [ { "tenantId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "caServerId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "caName" : "cusCA", "caUrl" : "http://host:port/certsrv/mscep/mscep.dll", "caHttpsUrl" : "https://host:port/certsrv/mscep/mscep.dll" } ] } 返回状态码为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 返回状态码为500:内部错误,无响应体。 HTTP/1.1 500 Internal Server Error 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
  • 响应参数 返回状态码为200:查询成功,响应体参考QueryTenantCAServerResponse。 表2 QueryTenantCAServerResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-20个列表项,详细请参见表3。 租户授权CA服务器信息。 - 表3 TenantCAServer对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 tenantId string 0~64个字符。 - 租户ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" caServerId string - - CA服务器ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" caName string 0~64个字符。 - CA服务器名称。 "cusCA" caUrl string 0~128个字符。 - CA服务器http方式SCEP证书申请URL。 "http://host:port/certsrv/mscep/mscep.dll" caHttpsUrl string 0~128个字符。 - CA服务器https方式SCEP证书申请URL。 "https://host:port/certsrv/mscep/mscep.dll" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/oamservice/certification/caserver?tenantId=fbb684c8-0d37-496f-bafa-4b06d5151e2e 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:授权成功,响应体参考AuthorizeCAServerResponseDto。 表3 AuthorizeCAServerResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 1~64个字符。 - 错误码。 "0" errmsg string 1~64个字符。 - 错误信息。 "error" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/oamservice/certification/caserver 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 { "tenantId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "caServerId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "enable" : false }
  • 响应示例 返回状态码为200:授权成功,响应体参考AuthorizeCAServerResponseDto。 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" : "error" } 返回状态码为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 返回状态码为500:内部错误,无响应体。 HTTP/1.1 500 Internal Server Error 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
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 authorizeCAServerDto 是 REFERENCE 详细请参见表2。 授权CA服务器。 - 表2 AuthorizeCAServerDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 tenantId 是 string 1~64个字符。 - 被授权租户。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" caServerId 是 string - - CA服务器ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" enable 是 boolean true false - 是否授权,该字段为true时,授权,该字段为false,取消授权。 false