第 28 章 检测服务


28.1. 检测服务

28.1.1. DetectBuildTime

POST /v1/detect/build

DetectBuildTime 检查任何镜像是否违反了构建策略。

28.1.1.1. 描述

28.1.1.2. 参数

28.1.1.2.1. 正文参数
Expand
Name描述必填defaultpattern

正文(body)

V1BuildDetectionRequest

X

  

28.1.1.3. 返回类型

V1BuildDetectionResponse

28.1.1.4. 内容类型

  • application/json

28.1.1.5. 响应

Expand
表 28.1. HTTP 响应代码
代码消息datatype

200

成功响应。

V1BuildDetectionResponse

0

意外错误响应。

GooglerpcStatus

28.1.1.6. Samples

28.1.2. DetectDeployTime

POST /v1/detect/deploy

DetectDeployTime 检查任何部署是否违反了部署时间策略。

28.1.2.1. 描述

28.1.2.2. 参数

28.1.2.2.1. 正文参数
Expand
Name描述必填defaultpattern

正文(body)

V1DeployDetectionRequest

X

  

28.1.2.3. 返回类型

V1DeployDetectionResponse

28.1.2.4. 内容类型

  • application/json

28.1.2.5. 响应

Expand
表 28.2. HTTP 响应代码
代码消息datatype

200

成功响应。

V1DeployDetectionResponse

0

意外错误响应。

GooglerpcStatus

28.1.2.6. Samples

28.1.3. DetectDeployTimeFromYAML

POST /v1/detect/deploy/yaml

DetectDeployTimeFromYAML 检查给定的部署 yaml 是否违反了任何部署时间策略。

28.1.3.1. 描述

28.1.3.2. 参数

28.1.3.2.1. 正文参数
Expand
Name描述必填defaultpattern

正文(body)

V1DeployYAMLDetectionRequest

X

  

28.1.3.3. 返回类型

V1DeployDetectionResponse

28.1.3.4. 内容类型

  • application/json

28.1.3.5. 响应

Expand
表 28.3. HTTP 响应代码
代码消息datatype

200

成功响应。

V1DeployDetectionResponse

0

意外错误响应。

GooglerpcStatus

28.1.3.6. Samples

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部