Checks the current user's exact enrollment without returning its code or device credentials.
GET
/api/workspace/file-protection/agents/enrollments/{enrollmentId}
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/file-protection/agents/enrollments/example"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/file-protection/agents/enrollments/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/file-protection/agents/enrollments/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”enrollmentId
required
string
Query Parameters
Section titled “Query Parameters”access_token
string
Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Data
Safe connection progress for the requesting user’s exact enrollment; never contains credentials.
object
ExpiresAtUtc
string format: date-time
IsExpired
boolean
IsRevoked
boolean
Agent
Safe state of one enrolled backup Agent.
object
Id
string
DisplayName
string
OperatingSystem
Operating systems supported by the universal File Protection tools.
integer format: int32
AgentVersion
string
State
Lifecycle state reported for an enrolled Agent.
integer format: int32
LastHeartbeatAtUtc
string format: date-time
SourceCount
integer format: int32
RowVersion
string format: uuid
SignalSummary
Compact active signal summary for object grids.
object
Count
integer format: int32
Severity
integer format: int32
PolicyKinds
Array<integer>
Conditions
Array<object>
Exact active type/severity association for combined grid filters.
object
PolicyKind
integer format: int32
Severity
integer format: int32
Count
integer format: int32
RequiredAgentVersion
Required Agent software for the current installation instructions.
string
RequiresUpdate
Connection availability does not establish software compatibility.
boolean
Errors
Array<object>
object
Code
required
string
Message
required
string
Target
string
Field
string
Metadata
object
key
additional properties
string
Type
integer format: int32
Severity
integer format: int32
Warnings
Array<object>
object
Code
required
string
Message
required
string
Target
string
Field
string
Metadata
object
key
additional properties
string
Type
integer format: int32
Severity
integer format: int32
Success
boolean
Example
{ "Data": { "Agent": { "OperatingSystem": 0, "State": 0, "SignalSummary": { "Severity": 1, "PolicyKinds": [ 0 ], "Conditions": [ { "PolicyKind": 0, "Severity": 1 } ] } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}