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
principalTargetAccountPrincipalEnvelope
9 fields
ownership_statestringrequired
unmanagedprincipal_created adoptedorphanedcredential_ownershipstring
externalprincipal_managed unknownlink_idstring
identityTargetAccountIdentitySummary
adopted_atstring
adopted_byTargetAccountIdentitySummary
created_by_ruleTargetAccountRuleSummary
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.
verifiedunverifiedmismatchnative_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.
createdadoptedobservednamestring
statusstring
ActiveTerminatingtarget_idstring
totalinteger
Common errors: 400 401 403 404 429 504. They mean the same for every operation, see Errors.