Merge pull request #34202 from windsonsea/docsite1
[zh] sync 1.24 ref-k8s-api-config: secret-v1.md
This commit is contained in:
@@ -0,0 +1,657 @@
|
|||||||
|
---
|
||||||
|
api_metadata:
|
||||||
|
apiVersion: "v1"
|
||||||
|
import: "k8s.io/api/core/v1"
|
||||||
|
kind: "Secret"
|
||||||
|
content_type: "api_reference"
|
||||||
|
description: "Secret 包含某些类别的秘密数据。"
|
||||||
|
title: "Secret"
|
||||||
|
weight: 2
|
||||||
|
---
|
||||||
|
<!--
|
||||||
|
api_metadata:
|
||||||
|
apiVersion: "v1"
|
||||||
|
import: "k8s.io/api/core/v1"
|
||||||
|
kind: "Secret"
|
||||||
|
content_type: "api_reference"
|
||||||
|
description: "Secret holds secret data of a certain type."
|
||||||
|
title: "Secret"
|
||||||
|
weight: 2
|
||||||
|
-->
|
||||||
|
|
||||||
|
`apiVersion: v1`
|
||||||
|
|
||||||
|
`import "k8s.io/api/core/v1"`
|
||||||
|
|
||||||
|
## Secret {#Secret}
|
||||||
|
<!--
|
||||||
|
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
|
||||||
|
-->
|
||||||
|
Secret 包含某些类别的秘密数据。
|
||||||
|
data 字段值的总字节必须小于 MaxSecretSize 字节。
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
- **apiVersion**: v1
|
||||||
|
|
||||||
|
- **kind**: Secret
|
||||||
|
|
||||||
|
<!--
|
||||||
|
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
|
||||||
|
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||||
|
|
||||||
|
- **data** (map[string][]byte)
|
||||||
|
Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
|
||||||
|
-->
|
||||||
|
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
|
||||||
|
|
||||||
|
标准的对象元数据。
|
||||||
|
更多信息:
|
||||||
|
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||||
|
|
||||||
|
- **data** (map[string][]byte)
|
||||||
|
|
||||||
|
data 包含秘密数据。
|
||||||
|
每个键必须由字母、数字、“-”、“_” 或 “.” 组成。
|
||||||
|
秘密数据的序列化格式是 base64 编码的字符串,表示此处的任意(可能是非字符串)数据值。
|
||||||
|
请参阅 https://tools.ietf.org/html/rfc4648#section-4
|
||||||
|
|
||||||
|
<!--
|
||||||
|
- **immutable** (boolean)
|
||||||
|
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.
|
||||||
|
|
||||||
|
- **stringData** (map[string]string)
|
||||||
|
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.
|
||||||
|
|
||||||
|
- **type** (string)
|
||||||
|
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
|
||||||
|
-->
|
||||||
|
- **immutable** (boolean)
|
||||||
|
|
||||||
|
如果 immutable 设为 true,则确保不会更新 Secret 中存储的数据(只能修改对象元数据)。
|
||||||
|
如果未设为 true,则可以随时修改此字段。
|
||||||
|
默认为 nil。
|
||||||
|
|
||||||
|
- **stringData** (map[string]string)
|
||||||
|
|
||||||
|
stringData 允许指定字符串格式的非二进制秘密数据。
|
||||||
|
为了方便起见,它作为只写输入字段提供。
|
||||||
|
写入时将所有键和值合并到 data 字段,且覆盖任何现有的值。
|
||||||
|
从 API 读取时绝不会输出 stringData 字段。
|
||||||
|
|
||||||
|
- **type** (string)
|
||||||
|
|
||||||
|
用于满足程序化方式处理秘密数据。
|
||||||
|
更多信息:
|
||||||
|
https://kubernetes.io/zh/docs/concepts/configuration/secret/#secret-types
|
||||||
|
|
||||||
|
## SecretList {#SecretList}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
SecretList is a list of Secret.
|
||||||
|
-->
|
||||||
|
SecretList 是 Secret 的列表。
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
- **apiVersion**: v1
|
||||||
|
|
||||||
|
- **kind**: SecretList
|
||||||
|
|
||||||
|
<!--
|
||||||
|
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
|
||||||
|
|
||||||
|
Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
|
||||||
|
- **items** ([]<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>), required
|
||||||
|
|
||||||
|
Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret
|
||||||
|
-->
|
||||||
|
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
|
||||||
|
|
||||||
|
标准的列表元数据。
|
||||||
|
更多信息:
|
||||||
|
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
|
||||||
|
- **items** ([]<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>),必需
|
||||||
|
|
||||||
|
items 是 Secret 对象的列表。
|
||||||
|
更多信息:
|
||||||
|
https://kubernetes.io/zh/docs/concepts/configuration/secret
|
||||||
|
|
||||||
|
<!--
|
||||||
|
## Operations {#Operations}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
### `get` read the specified Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
## 操作 {#Operations}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
### `get` 读取指定的 Secret
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
GET /api/v1/namespaces/{namespace}/secrets/{name}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **name** (*in path*): string, required
|
||||||
|
name of the Secret
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **name** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
Secret 的名称
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): OK
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `list` list or watch objects of kind Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `list` 列出或观测类别为 Secret 的对象
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
GET /api/v1/namespaces/{namespace}/secrets
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **allowWatchBookmarks** (*in query*): boolean
|
||||||
|
- **continue** (*in query*): string
|
||||||
|
- **fieldSelector** (*in query*): string
|
||||||
|
- **labelSelector** (*in query*): string
|
||||||
|
- **limit** (*in query*): integer
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
- **resourceVersion** (*in query*): string
|
||||||
|
- **resourceVersionMatch** (*in query*): string
|
||||||
|
- **timeoutSeconds** (*in query*): integer
|
||||||
|
- **watch** (*in query*): boolean
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **allowWatchBookmarks** (**查询参数**): boolean
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
|
||||||
|
|
||||||
|
- **continue** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||||
|
|
||||||
|
- **fieldSelector** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||||
|
|
||||||
|
- **labelSelector** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||||
|
|
||||||
|
- **limit** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
- **resourceVersion** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||||
|
|
||||||
|
- **resourceVersionMatch** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||||
|
|
||||||
|
- **timeoutSeconds** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||||
|
|
||||||
|
- **watch** (**查询参数**): boolean
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../config-and-storage-resources/secret-v1#SecretList" >}}">SecretList</a>): OK
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `list` list or watch objects of kind Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `list` 列出或观测类别为 Secret 的对象
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
GET /api/v1/secrets
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **allowWatchBookmarks** (*in query*): boolean
|
||||||
|
- **continue** (*in query*): string
|
||||||
|
- **fieldSelector** (*in query*): string
|
||||||
|
- **labelSelector** (*in query*): string
|
||||||
|
- **limit** (*in query*): integer
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
- **resourceVersion** (*in query*): string
|
||||||
|
- **resourceVersionMatch** (*in query*): string
|
||||||
|
- **timeoutSeconds** (*in query*): integer
|
||||||
|
- **watch** (*in query*): boolean
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **allowWatchBookmarks** (**查询参数**): boolean
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
|
||||||
|
|
||||||
|
- **continue** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||||
|
|
||||||
|
- **fieldSelector** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||||
|
|
||||||
|
- **labelSelector** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||||
|
|
||||||
|
- **limit** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
- **resourceVersion** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||||
|
|
||||||
|
- **resourceVersionMatch** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||||
|
|
||||||
|
- **timeoutSeconds** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||||
|
|
||||||
|
- **watch** (**查询参数**): boolean
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../config-and-storage-resources/secret-v1#SecretList" >}}">SecretList</a>): OK
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `create` create a Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `create` 创建 Secret
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
POST /api/v1/namespaces/{namespace}/secrets
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **body**: <a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>, required
|
||||||
|
- **dryRun** (*in query*): string
|
||||||
|
- **fieldManager** (*in query*): string
|
||||||
|
- **fieldValidation** (*in query*): string
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **body**: <a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>,必需
|
||||||
|
|
||||||
|
- **dryRun** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||||
|
|
||||||
|
- **fieldManager** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||||
|
|
||||||
|
- **fieldValidation** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): OK
|
||||||
|
|
||||||
|
201 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): Created
|
||||||
|
|
||||||
|
202 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): Accepted
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `update` replace the specified Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `update` 替换指定的 Secret
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
PUT /api/v1/namespaces/{namespace}/secrets/{name}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **name** (*in path*): string, required
|
||||||
|
name of the Secret
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **body**: <a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>, required
|
||||||
|
- **dryRun** (*in query*): string
|
||||||
|
- **fieldManager** (*in query*): string
|
||||||
|
- **fieldValidation** (*in query*): string
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **name** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
Secret 的名称
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **body**: <a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>,必需
|
||||||
|
|
||||||
|
- **dryRun** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||||
|
|
||||||
|
- **fieldManager** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||||
|
|
||||||
|
- **fieldValidation** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): OK
|
||||||
|
|
||||||
|
201 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): Created
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `patch` partially update the specified Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `patch` 部分更新指定的 Secret
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
PATCH /api/v1/namespaces/{namespace}/secrets/{name}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **name** (*in path*): string, required
|
||||||
|
name of the Secret
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
|
||||||
|
- **dryRun** (*in query*): string
|
||||||
|
- **fieldManager** (*in query*): string
|
||||||
|
- **fieldValidation** (*in query*): string
|
||||||
|
- **force** (*in query*): boolean
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **name** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
Secret 的名称
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
|
||||||
|
|
||||||
|
- **dryRun** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||||
|
|
||||||
|
- **fieldManager** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||||
|
|
||||||
|
- **fieldValidation** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||||
|
|
||||||
|
- **force** (**查询参数**): boolean
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): OK
|
||||||
|
|
||||||
|
201 (<a href="{{< ref "../config-and-storage-resources/secret-v1#Secret" >}}">Secret</a>): Created
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `delete` delete a Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `delete` 删除 Secret
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
DELETE /api/v1/namespaces/{namespace}/secrets/{name}
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **name** (*in path*): string, required
|
||||||
|
name of the Secret
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||||
|
- **dryRun** (*in query*): string
|
||||||
|
- **gracePeriodSeconds** (*in query*): integer
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
- **propagationPolicy** (*in query*): string
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **name** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
Secret 的名称
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||||
|
|
||||||
|
- **dryRun** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||||
|
|
||||||
|
- **gracePeriodSeconds** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
- **propagationPolicy** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
|
||||||
|
|
||||||
|
202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): Accepted
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
|
|
||||||
|
<!--
|
||||||
|
### `deletecollection` delete collection of Secret
|
||||||
|
|
||||||
|
#### HTTP Request
|
||||||
|
-->
|
||||||
|
### `deletecollection` 删除 Secret 的集合
|
||||||
|
|
||||||
|
#### HTTP 请求
|
||||||
|
|
||||||
|
DELETE /api/v1/namespaces/{namespace}/secrets
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Parameters
|
||||||
|
- **namespace** (*in path*): string, required
|
||||||
|
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||||
|
- **continue** (*in query*): string
|
||||||
|
- **dryRun** (*in query*): string
|
||||||
|
- **fieldSelector** (*in query*): string
|
||||||
|
- **gracePeriodSeconds** (*in query*): integer
|
||||||
|
- **labelSelector** (*in query*): string
|
||||||
|
- **limit** (*in query*): integer
|
||||||
|
- **pretty** (*in query*): string
|
||||||
|
- **propagationPolicy** (*in query*): string
|
||||||
|
- **resourceVersion** (*in query*): string
|
||||||
|
- **resourceVersionMatch** (*in query*): string
|
||||||
|
- **timeoutSeconds** (*in query*): integer
|
||||||
|
-->
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- **namespace** (**路径参数**): string,必需
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||||
|
|
||||||
|
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||||
|
|
||||||
|
- **continue** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||||
|
|
||||||
|
- **dryRun** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||||
|
|
||||||
|
- **fieldSelector** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||||
|
|
||||||
|
- **gracePeriodSeconds** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||||
|
|
||||||
|
- **labelSelector** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||||
|
|
||||||
|
- **limit** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||||
|
|
||||||
|
- **pretty** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||||
|
|
||||||
|
- **propagationPolicy** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||||
|
|
||||||
|
- **resourceVersion** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||||
|
|
||||||
|
- **resourceVersionMatch** (**查询参数**): string
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||||
|
|
||||||
|
- **timeoutSeconds** (**查询参数**): integer
|
||||||
|
|
||||||
|
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
#### Response
|
||||||
|
-->
|
||||||
|
#### 响应
|
||||||
|
|
||||||
|
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
|
||||||
|
|
||||||
|
401: Unauthorized
|
||||||
Reference in New Issue
Block a user