更新时间:2025-08-15 GMT+08:00
分享

查询密码服务的镜像

功能介绍

查询密码服务的镜像

调用方法

请参见如何调用API

URI

GET /v1/{project_id}/dew/cpcs/images

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID

表2 Query参数

参数

是否必选

参数类型

描述

page_size

Integer

指定查询返回记录条数,默认值10

page_num

Integer

索引位置,从page_num指定的下一条数据开始查询默认值为0

image_name

String

镜像名称

service_type

String

镜像所属的服务类型:

  • ENCRYPT_DECRYPT : 加解密服务;

  • SIGN_VERIFY : 签名验签服务;

  • KMS : 密钥管理服务;

  • TIMESTAMP : 时间戳服务;

  • COLLA_SIGN : 协同签名服务;

  • OTP : 动态令牌服务;

  • DB_ENCRYPT : 数据库加密服务;

  • FILE_ENCRYPT : 文件加密服务

  • TIMESTAMP : 时间戳服务;

  • DIGIT_SEAL : 电子签章服务;

  • SSL_VPN : ssl vpn服务;

sort_key

String

排序属性,目前支持以下属性:

  • create_time : 镜像的创建时间(默认)

sort_dir

String

排序方向,支持以下值:

  • DESC : 降序(默认)

  • ASC : 升序

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户token,参见:IAM token获取方法

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

total_num

Integer

满足条件的镜像总数

result

Array of ImageInfo objects

镜像列表

表5 ImageInfo

参数

参数类型

描述

image_id

String

镜像ID

image_name

String

镜像名称

service_type

String

镜像所属的服务

arch_type

String

镜像的系统架构:

  • X86_64 : X86

  • ARRCH : ARM

specification_id

String

规格ID

create_time

String

镜像的录入时间,UNIX时间戳,单位毫秒

version_type

String

版本类型

trust_domain

String

domain白名单列表,多个之间用逗号分隔

vendor_name

String

厂商名称

vendor_image_version

String

厂商版本号

ccsp_version_need

String

密码服务依赖的(厂商)平台版本号

hw_image_version

String

华为版本号

description

String

描述

请求示例

查询密码服务的API调用情况请求头中的X-Auth-Token字段需要填写token,且该token需要具有本API的访问权限

GET https://cpcs.com/v1/{project_id}/dew/cpcs/images

响应示例

状态码:200

请求已成功

{
  "total_num" : 1,
  "result" : [ {
    "image_id" : "a6bbf0be-79f3-4f66-858a-0fdcb96dfcbe",
    "image_name" : "test",
    "service_type" : "SIGN_VERIFY",
    "arch_type" : "X86_64",
    "specification_id" : "a6bbf0be-79f3-4f66-858a-0fdcb96dfbcd",
    "create_time" : "1702181694618"
  } ]
}

状态码

状态码

描述

200

请求已成功

错误码

请参见错误码

相关文档