Skip to main content

fetch_agent_version

Function fetch_agent_version 

Source
pub async fn fetch_agent_version(
    config: &RemoteAgentClientConfiguration,
) -> Result<RunningAgentVersion, GenericError>
Expand description

Fetches the version of the core Agent from its command API.

§Errors

If the authentication token or IPC certificate can’t be read, the Agent can’t be reached, or it answers with an error status or an unexpected body, an error is returned. The request isn’t retried.