Docs
Live demo
GET/api/v2/resources/targets/{id}/inventory

Return aggregated discovery inventory for a single target.

Parameters

Path1 required of 1
idstringpathrequired

Target ID (UUID)

Responses

200

OK

TargetInventoryResponse · 9 fields
as_ofstring
databasesarray of TargetInventoryDatabase
2 fields
namestring
schemasarray of string
5 fields
cluster_role_bindingsarray of K8sClusterRoleBindingResponse
13 fields
annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
resource_versionstring
subjectsarray of K8sSubjectResponse
target_idstring
cluster_rolesarray of K8sClusterRoleResponse
12 fields
annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
resource_versionstring
rulesarray of K8sRBACRuleResponse
target_idstring
namespacesarray of K8sNamespaceResponse
9 fields
annotationsmap of string → string
created_atstring
discovered_atstring
idstring
labelsmap of string → string
namestring
statusstring
ActiveTerminating
target_idstring
role_bindingsarray of K8sRoleBindingResponse
14 fields
annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
namespacestring
resource_versionstring
subjectsarray of K8sSubjectResponse
target_idstring
rolesarray of K8sRoleResponse
13 fields
annotationsmap of string → string
created_atstring
discovered_atstring
field_managerstring
idstring
labelsmap of string → string
managed_objectManagedObjectResponse

Rule, template or identity this Principal object belongs to. Filled by the resource explorer inventory. Absent for objects Principal does not manage.

namestring
namespacestring
resource_versionstring
rulesarray of K8sRBACRuleResponse
target_idstring
clickhouse_usersarray of ClickHouseUserResponse
13 fields
adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

user_namestringrequired
storage_namestringrequired
auth_typesarray of stringrequired
account_audiencestringrequired
humansystem
system_reasonstring
manageabilitystringrequired
principal_managedadoptableconfig_managedsystem
role_grantsarray of ClickHouseRoleGrantResponserequired
4 fields
role_namestringrequired
role_patharray of string
is_defaultbooleanrequired
with_admin_optionbooleanrequired
direct_grantsarray of ClickHouseGrantResponserequired
11 fields
sourcestringrequired
directrole
source_rolestring
role_patharray of string
privilegestringrequired
databasestring
tablestring
columnsarray of string
is_partial_revokebooleanrequired
grant_optionbooleanrequired
is_wildcardbooleanrequired
shape_unverifiedboolean

The grant may be a wildcard that ClickHouse printed without its '*'. Discovery could not confirm it.

effective_grantsarray of ClickHouseGrantResponserequired
11 fields
sourcestringrequired
directrole
source_rolestring
role_patharray of string
privilegestringrequired
databasestring
tablestring
columnsarray of string
is_partial_revokebooleanrequired
grant_optionbooleanrequired
is_wildcardbooleanrequired
shape_unverifiedboolean

The grant may be a wildcard that ClickHouse printed without its '*'. Discovery could not confirm it.

discovered_atstringrequired
updated_atstringrequired
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
mongodb_usersarray of MongoDBUserResponse
12 fields
adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

user_namestringrequired
auth_sourcestringrequired

Authentication database of the user

mechanismsarray of stringrequired
account_audiencestringrequired
humansystem
system_reasonstring
manageabilitystringrequired
adoptableexternal_authsystem
rolesarray of MongoDBRoleResponserequired
3 fields
rolestringrequired
dbstringrequired
builtinbooleanrequired
privilegesarray of MongoDBPrivilegeResponserequired
5 fields
databasestringrequired
collectionstringrequired
clusterbooleanrequired
any_resourcebooleanrequired
actionsarray of stringrequired
discovered_atstringrequired
updated_atstringrequired
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
kindstring (TargetKind)
postgreskubernetesmysqlclickhousemongodbapplicationssh
mysql_usersarray of MySQLUserResponse
14 fields
adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

user_namestring
user_hoststring
super_privboolean
grant_privboolean
create_user_privboolean
max_connectionsinteger
max_questionsinteger
max_updatesinteger
account_audiencestring
humansystem
system_reasonstring
identity_serviceprincipal_static_accountpostgres_predefined_rolepostgres_bootstrap_superuserpostgres_provider_rolepostgres_connection_rolemysql_reserved_accountmariadb_system_accountmariadb_public_rolemongodb_connection_usermongodb_internal_usermongodb_user_without_idkubernetes_service_accountkubernetes_system_subjectkubernetes_default_rbac
discovered_atstring
updated_atstring
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
15 fields
adoptablebooleanrequired

True when Principal can take the account under management. Adoption refuses the rest. Whether it is already managed is in principal.ownership_state.

discovered_atstring
account_audiencestring
humansystem
system_reasonstring
identity_serviceprincipal_static_accountpostgres_predefined_rolepostgres_bootstrap_superuserpostgres_provider_rolepostgres_connection_rolemysql_reserved_accountmariadb_system_accountmariadb_public_rolemongodb_connection_usermongodb_internal_usermongodb_user_without_idkubernetes_service_accountkubernetes_system_subjectkubernetes_default_rbac
role_bypass_rlsboolean
role_can_loginboolean
role_conn_limitinteger
role_create_dbboolean
role_create_roleboolean
role_inheritboolean
role_namestring
role_replicationboolean
role_superboolean
updated_atstring
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
target_idstring

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

↑ ↓ to moveEnter to openEsc to close