#[non_exhaustive]pub struct EnrollmentKey {
pub id: String,
pub api_key_id: String,
pub api_key: String,
pub active: bool,
pub policy_id: Option<String>,
pub name: Option<String>,
pub expire_at: Option<String>,
}Expand description
A Fleet enrollment key for joining agents to a policy.
Enrollment credentials are omitted from Debug output.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringFleet resource ID used to retrieve or revoke this enrollment key.
api_key_id: String§api_key: StringEnrollment token passed to Elastic Agent.
active: bool§policy_id: Option<String>§name: Option<String>§expire_at: Option<String>Absent on Kibana 9.0 to 9.3, even for keys created with an expiration.
Trait Implementations§
Source§impl Clone for EnrollmentKey
impl Clone for EnrollmentKey
Source§impl Debug for EnrollmentKey
impl Debug for EnrollmentKey
Source§impl<'de> Deserialize<'de> for EnrollmentKey
impl<'de> Deserialize<'de> for EnrollmentKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnrollmentKey
impl RefUnwindSafe for EnrollmentKey
impl Send for EnrollmentKey
impl Sync for EnrollmentKey
impl Unpin for EnrollmentKey
impl UnsafeUnpin for EnrollmentKey
impl UnwindSafe for EnrollmentKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more