read Core V1Namespaced Secret
GET {{baseUrl}}/api/v1/namespaces/:namespace/secrets/:name?exact=<boolean>&export=<boolean>&pretty=<string>
read the specified Secret
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
exact | string | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | |
export | string | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | |
pretty | string | If 'true', then the output is pretty printed. |
RESPONSES
status: OK
{"apiVersion":"\u003cstring\u003e","data":"\u003cobject\u003e","kind":"\u003cstring\u003e","metadata":{"annotations":{},"clusterName":"reprehenderit nostrud sunt enim ullamco","creationTimestamp":"2012-11-22T10:11:23.003Z","deletionGracePeriodSeconds":1851584,"deletionTimestamp":"1998-04-04T01:36:45.488Z","finalizers":["culpa in","elit"],"generateName":"tempor quis in","generation":-46714260,"labels":{},"managedFields":[{"apiVersion":"et proident","fieldsType":"occaecat do id","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"officia dolore Lorem","operation":"Lorem ullamco nis","time":"2007-08-03T14:16:30.674Z"},{"apiVersion":"deserunt occaecat esse","fieldsType":"nisi ut consectetur","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"id Duis nostrud","operation":"sit sint id","time":"1955-02-01T05:37:10.137Z"}],"name":"dolor occaecat amet sit","namespace":"dolor pariatur","ownerReferences":[{"apiVersion":"nulla l","kind":"incididunt sint dolore dolore","name":"labore fugiat ut","uid":"ex sit sint","blockOwnerDeletion":true,"controller":false},{"apiVersion":"commodo ea","kind":"sunt","name":"anim","uid":"nostrud eiusmod","blockOwnerDeletion":false,"controller":true}],"resourceVersion":"qui Ut Lorem amet","selfLink":"aliqua fu","uid":"qui ad dolor Ut"},"stringData":"\u003cobject\u003e","type":"\u003cstring\u003e"}