Secret [v1]
- 描述
- Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
- 类型
object
规格
.data
- 描述
- 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
- 类型
object
.stringData
- 描述
- 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.
- 类型
object
API 端点
可用的 API 端点如下:
/kubernetes/{cluster}/api/v1/namespaces/{namespace}/secretsDELETE: delete collection of SecretGET: list objects of kind SecretPOST: create a new Secret
/kubernetes/{cluster}/api/v1/namespaces/{namespace}/secrets/{name}DELETE: delete the specified SecretGET: read the specified SecretPATCH: partially update the specified SecretPUT: replace the specified Secret
/kubernetes/{cluster}/api/v1/namespaces/{namespace}/secrets
- HTTP 方法
DELETE- 描述
- delete collection of Secret
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind Secret
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new Secret
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/api/v1/namespaces/{namespace}/secrets/{name}
- HTTP 方法
DELETE- 描述
- delete the specified Secret
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified Secret
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified Secret
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified Secret
- 查询参数
- 请求体参数
- HTTP 响应