pub struct FindAgentPolicies<'a>(/* private fields */);Expand description
GET /api/fleet/agent_policies
Implementations§
Source§impl<'a> FindAgentPolicies<'a>
impl<'a> FindAgentPolicies<'a>
Sourcepub fn into_request(self) -> Request<'a>
pub fn into_request(self) -> Request<'a>
Converts this builder to a raw request, preserving its configured route, scope, parameters, body, headers and timeout. Replacing the raw body does not reapply this builder’s identity, concurrency or typed-field checks. Existing construction errors remain errors and cannot be repaired through the raw request.
Sourcepub fn header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn header(self, name: HeaderName, value: HeaderValue) -> Self
Sets a header on this request only. It replaces every value of the same name from the transport defaults or the body.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Overrides the transport timeout for this request.
Source§impl FindAgentPolicies<'_>
impl FindAgentPolicies<'_>
Sourcepub fn with_agent_count(self, enabled: bool) -> Self
pub fn with_agent_count(self, enabled: bool) -> Self
Populates AgentPolicy::agents. Kibana 8.19 rejects this parameter,
including when it is false.
Source§impl FindAgentPolicies<'_>
impl FindAgentPolicies<'_>
Source§impl FindAgentPolicies<'_>
impl FindAgentPolicies<'_>
pub fn sort_field(self, field: &str) -> Self
pub fn sort_order(self, order: SortOrder) -> Self
Source§impl<'a> FindAgentPolicies<'a>
impl<'a> FindAgentPolicies<'a>
Sourcepub fn pages(self) -> BoxStream<'a, Result<FleetPage<AgentPolicy>>>
pub fn pages(self) -> BoxStream<'a, Result<FleetPage<AgentPolicy>>>
Streams every page from the first, one request per page. Any page set on this builder is ignored.
Sourcepub fn items(
self,
) -> BoxStream<'a, Result<<FleetPage<AgentPolicy> as Page>::Item>>
pub fn items( self, ) -> BoxStream<'a, Result<<FleetPage<AgentPolicy> as Page>::Item>>
Streams every item across all pages. See pages.
Sourcepub fn bounded_pages(
self,
max_pages: u32,
) -> BoxStream<'a, Result<FleetPage<AgentPolicy>>>
pub fn bounded_pages( self, max_pages: u32, ) -> BoxStream<'a, Result<FleetPage<AgentPolicy>>>
Like pages, reading at most max_pages pages.
If more remain, the stream ends with Error::PageLimit.
Sourcepub fn bounded_items(
self,
max_pages: u32,
) -> BoxStream<'a, Result<<FleetPage<AgentPolicy> as Page>::Item>>
pub fn bounded_items( self, max_pages: u32, ) -> BoxStream<'a, Result<<FleetPage<AgentPolicy> as Page>::Item>>
Like items, reading at most max_pages pages.
If more remain, the stream ends with Error::PageLimit.