kubernetes

Create a Secret in the given namespace. Data values are sent as plain strings and encoded server-side. The response carries the created Secret's metadata only, not its data. Access policy: Authenticated user.

post/kubernetes/{id}/namespaces/{namespace}/secrets

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/kubernetes/{id}/namespaces/{namespace}/secrets
  • Auth
    API key in header X-API-KEY and API key in header Authorization

Path parameters

idinteger required

Environment identifier

namespacestring required

The namespace name where the secret is created

Request body

Annotationsobject
Dataobject
Labelsobject
Namestring
SecretTypestring

Response

Success

Annotationsobject
ConfigurationOwnerstring
ConfigurationOwnerIdstring
CreationDatestring
Dataobject
IsUsedboolean
Labelsobject
Namestring
Namespacestring
SecretTypestring
UIDstring

Changes