Docs
Live demo
GET/api/v2/targets/{id}/k8s/namespaces
targets:readAPI token

Retrieve discovered Namespaces in the Kubernetes target

Parameters

Path1 required of 1
idstringpathrequired

Target ID (UUID)

Responses

200

OK

ListK8sNamespacesResponse · 2 fields
itemsarray of K8sNamespaceResponse
9 fields
annotationsmap of string → string
created_atstring
discovered_atstring
idstring
labelsmap of string → string
9 fields
ownership_statestringrequired
unmanagedprincipal_createdadoptedorphaned
credential_ownershipstring
externalprincipal_managedunknown
link_idstring
adopted_atstring

The rule that created a Principal-created account.

native_identity_statestring

Whether Principal recorded the account instance it created or adopted. Set only for PostgreSQL and MongoDB accounts Principal created or adopted. Principal removes the account, revokes its access or changes its password only when it is verified. Mismatch means the account was recreated outside Principal.

verifiedunverifiedmismatch
native_identity_sourcestring

How Principal recorded the account instance: created right after it created the account, adopted from discovery at adoption, or observed by the first discovery or apply that saw it.

createdadoptedobserved
namestring
statusstring
ActiveTerminating
target_idstring
totalinteger

Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close