×
描述

SecretList 是 Secret 的列表。

类型

对象

必需
  • 项目

规范

属性 类型 描述

apiVersion

字符串

APIVersion 定义了对象的此表示形式的版本化模式。服务器应将识别的模式转换为最新的内部值,并可能拒绝无法识别的值。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

项目

数组 (Secret)

Items 是 secret 对象的列表。更多信息:https://kubernetes.ac.cn/docs/concepts/configuration/secret

kind

字符串

Kind 是一个字符串值,表示此对象表示的 REST 资源。服务器可以从客户端提交请求的端点推断出这一点。无法更新。使用驼峰式大小写。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata

ListMeta

标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

API 端点

提供以下 API 端点

  • /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name}/secrets

    • GET:读取指定 ImageStream 的密钥

/apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name}/secrets

表 1. 全局路径参数
参数 类型 描述

name

字符串

SecretList 的名称

HTTP 方法

GET

描述

读取指定 ImageStream 的密钥

表 2. HTTP 响应
HTTP 代码 响应正文

200 - OK

SecretList 模式

401 - 未授权