Returns the Source policies, disabled defaults and current calendar deadlines.
GET
/api/workspace/file-protection/sources/{id}/signal-policies
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/sources/example/signal-policies"), 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/sources/example/signal-policies';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/sources/example/signal-policies \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
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
Editable policy set and workspace time zone used for its calendar.
object
RowVersion
string format: uuid
TimeZoneId
string
Policies
Array<object>
Object-owned rule. Null thresholds disable the corresponding escalation level.
object
Kind
integer format: int32
Enabled
boolean
EventSeverity
integer format: int32
WarningAfterMinutes
integer format: int32
ErrorAfterMinutes
integer format: int32
Calendar
Array<object>
One weekly local interval; day is ISO Monday=1 through Sunday=7. End less than start crosses midnight.
object
DayOfWeek
integer format: int32
StartMinute
integer format: int32
EndMinute
integer format: int32
AllowedActions
Array<string>
NextEvaluations
Earliest observed-file or operation deadline; unknown baselines are explicit.
Array<object>
Server-calculated calendar deadlines for one proposed rule.
object
Kind
integer format: int32
WarningAtUtc
string format: date-time
ErrorAtUtc
string format: date-time
WarningRecipientCount
integer format: int32
ErrorRecipientCount
integer format: int32
ReferenceAtUtc
string format: date-time
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": { "Policies": [ { "Kind": 0, "EventSeverity": 1 } ], "NextEvaluations": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}