Loading...
Get the list of Secrets in the specified cluster and namespace.
OK
"2023-04-29 05:54:51"
""
Secret name
"cocktail-api-cmdb"
namespace name
"cocktail-system"
Secret type(Generic, DockerRegistry, Tls, BasicAuth, SshAuth)
"Generic"
const response = await fetch('/v1/clusters/{clusterId}/namespaces/{namespaceName}/secrets', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "creationTimestamp": "2023-04-29 05:54:51", "description": "", "labels": { "app.kubernetes.io/instance": "cocktail", "app.kubernetes.io/managed-by": "Helm", "app.kubernetes.io/name": "api-cmdb" }, "name": "cocktail-api-cmdb", "namespace": "cocktail-system", "type": "Generic" } ]