Secret [v1]
- Description
- Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
- Type
object
Specification
.data
- Description
- 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
- Type
object
.stringData
- Description
- 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
object
API Endpoints
The following API endpoints are available:
/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 method
DELETE- Description
- delete collection of Secret
- HTTP responses
- HTTP method
GET- Description
- list objects of kind Secret
- HTTP responses
- HTTP method
POST- Description
- create a new Secret
- Query parameters
- Body parameters
- HTTP responses
/kubernetes/{cluster}/api/v1/namespaces/{namespace}/secrets/{name}
- HTTP method
DELETE- Description
- delete the specified Secret
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified Secret
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified Secret
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified Secret
- Query parameters
- Body parameters
- HTTP responses