Skip to content

Reads current Source assignment and configuration fences without scanning local files.

GET
/api/workspace/file-protection/agent/v1/configuration/state
curl --request GET \
--url https://example.com/api/workspace/file-protection/agent/v1/configuration/state \
--header 'X-Moltaro-File-Protection-Agent: <X-Moltaro-File-Protection-Agent>'

Requires TLS at the API connection. A workspace bearer token does not authenticate an Agent.

Send the enrolled device credential in the X-Moltaro-File-Protection-Agent header. Revoked or invalid credentials are rejected.

protocolVersion
string

OK

Media typeapplication/json
object
Data

Bounded configuration negotiation, independent of filesystem observation or scan policy.

object
Sources
Array<object>
nullable

One current assignment fence and the confirmed selector; no physical path is transported.

object
SourceId
string
nullable
AssignmentRevision
string format: uuid
KindDeclarationRevision
string format: uuid
ConfirmedKind

Source selector interpreted only by the local Agent.

integer format: int32
Allowed values: 0 1 2
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Sources": [
{
"ConfirmedKind": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}