pub struct MergeEntitiesRequest {
pub from_entity_ids: Vec<String>,
pub to_entity_id: String,
pub force: Option<bool>,
pub conflicting_alias_ids_to_keep: Option<String>,
}
Expand description
§Merge entities
This endpoint merges many entities into one entity.
- Path: identity/entity/merge
- Method: POST
- Reference: https://developer.hashicorp.com/vault/api-docs/secret/identity/entity#merge-entities
Fields§
§from_entity_ids: Vec<String>
Entity IDs which need to get merged.
to_entity_id: String
Entity ID into which all the other entities need to get merged.
force: Option<bool>
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: Option<String>
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.
Implementations§
source§impl MergeEntitiesRequest
impl MergeEntitiesRequest
pub fn builder() -> MergeEntitiesRequestBuilder
Trait Implementations§
source§impl Debug for MergeEntitiesRequest
impl Debug for MergeEntitiesRequest
source§impl Default for MergeEntitiesRequest
impl Default for MergeEntitiesRequest
source§fn default() -> MergeEntitiesRequest
fn default() -> MergeEntitiesRequest
source§impl Endpoint for MergeEntitiesRequest
impl Endpoint for MergeEntitiesRequest
source§const REQUEST_BODY_TYPE: RequestType = RequestType::JSON
const REQUEST_BODY_TYPE: RequestType = RequestType::JSON
source§const RESPONSE_BODY_TYPE: ResponseType = ResponseType::JSON
const RESPONSE_BODY_TYPE: ResponseType = ResponseType::JSON
source§type Response = ()
type Response = ()
parse()
method is called.