entity
Create an entity
This endpoint creates or updates an Entity.
Method | Path |
---|---|
|
|
Parameters
name
(string: entity-<UUID>)
– Name of the entity.id
(string: <optional>)
- ID of the entity. If set, updates the corresponding existing entity.metadata
(key-value-map: {})
– Metadata to be associated with the entity.policies
(list of strings: [])
– Policies to be tied to the entity.disabled
(bool: false)
– Whether the entity is disabled. Disabled entities' associated tokens cannot be used, but are not revoked.
Sample payload
Sample request
Sample response
Read entity by ID
This endpoint queries the entity by its identifier.
Method | Path |
---|---|
|
|
Parameters
id
(string: <required>)
– Identifier of the entity.
Sample request
Sample response
Update entity by ID
This endpoint is used to update an existing entity.
Method | Path |
---|---|
|
|
Parameters
id
(string: <required>)
– Identifier of the entity.name
(string: entity-<UUID>)
– Name of the entity.metadata
(key-value-map: {})
– Metadata to be associated with the entity.policies
(list of strings: [])
– Policies to be tied to the entity.disabled
(bool: false)
– Whether the entity is disabled. Disabled entities' associated tokens cannot be used, but are not revoked.
Sample payload
Sample request
Sample response
Delete entity by ID
This endpoint deletes an entity and all its associated aliases.
Method | Path |
---|---|
|
|
Parameters
id
(string: <required>)
– Identifier of the entity.
Sample request
Batch delete entities
This endpoint deletes all entities provided.
Method | Path |
---|---|
|
|
Parameters
entity_ids
([]string: <required>)
– List of entity identifiers to delete.
Sample payload
Sample request
List entities by ID
This endpoint returns a list of available entities by their identifiers.
Method | Path |
---|---|
|
|
|
|
Sample request
Sample response
Create/Update entity by name
This endpoint is used to create or update an entity by a given name.
Method | Path |
---|---|
|
|
Parameters
name
(string: entity-<UUID>)
– Name of the entity.metadata
(key-value-map: {})
– Metadata to be associated with the entity.policies
(list of strings: [])
– Policies to be tied to the entity.disabled
(bool: false)
– Whether the entity is disabled. Disabled entities' associated tokens cannot be used, but are not revoked.
Sample payload
Sample request
Sample response
Read entity by name
This endpoint queries the entity by its name.
Method | Path |
---|---|
|
|
Parameters
name
(string: <required>)
– Name of the entity.
Sample request
Sample response
Delete entity by name
This endpoint deletes an entity and all its associated aliases, given the entity name.
Method | Path |
---|---|
|
|
Parameters
name
(string: <required>)
– Name of the entity.
Sample request
List entities by name
This endpoint returns a list of available entities by their names.
Method | Path |
---|---|
|
|
|
|
Sample request
Sample response
Merge entities
This endpoint merges many entities into one entity. Additionally, all groups associated with from_entity_ids
are merged with those of to_entity_id
. Note that if these entities contain aliases sharing the same mount accessor, the merge will fail unless conflicting_alias_ids_to_keep
is present, and entities must be merged one at a time. This is because each entity can only have one alias with each mount accessor - for more information, see the identity concepts page.
Method | Path |
---|---|
|
|
Parameters
from_entity_ids
(list of strings: <required>)
- Entity IDs which need to get merged.to_entity_id
(string: <required>)
- Entity ID into which all the other entities need to get merged.force
(bool: false)
- Setting this will follow the 'mine' strategy for merging MFA secrets. If there are secrets of the same type both in entities that are merged from and in entity into which all others are getting merged, secrets in the destination will be unaltered. If not set, this API will throw an error containing all the conflicts.conflicting_alias_ids_to_keep
(list of strings: [])
- A list of entity aliases to keep in the case where the to-Entity and from-Entity have aliases with the same mount accessor. In the case where alias share mount accessors, the alias ID given in this list will be kept or merged, and the other alias will be deleted. Note that merges requiring this parameter must have only one from-Entity.
Sample payload
Sample request
Last updated