Return one business-function schedule.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/admin/function-schedules/example"),};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/admin/function-schedules/example';const options = {method: 'GET'};
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/admin/function-schedules/exampleThe response exposes any currently queued or leased job. Later due occurrences are recorded
as Skipped while that work remains active.
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
Business-function schedule configuration.
object
Schedule identifier.
Schedule name.
Published global function identifier.
Explicit schedule time zone identifier; null inherits the workspace time zone.
Cron expression.
Optional JSON arguments exposed as ctx.args.
object
Next eligible run timestamp.
Last enqueue or execution activity timestamp.
Last enqueue, job, or run status.
Last enqueue, job, or run error summary.
Target-resolution error for broken schedules.
Timestamp when target resolution broke.
Maximum duration for one scheduled occurrence.
Optimistic concurrency token.
Retry-control state for a schedule job that is still queued or leased.
object
Queued job identifier.
Concurrency token required by the stop-retries command.
Current persisted attempt number.
Retry limit snapshotted for this job.
Attempts still permitted by the snapshot.
Delay before another attempt.
Next eligible attempt timestamp.
Whether the job is currently waiting for or executing an attempt that may retry.
Whether an administrator can stop this retry chain.
object
object
object
object
Example
{ "Data": { "Status": 0, "TargetState": 0, "ActiveJob": { "Status": 0, "RetryStopState": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Business-function schedule configuration.
object
Schedule identifier.
Schedule name.
Published global function identifier.
Explicit schedule time zone identifier; null inherits the workspace time zone.
Cron expression.
Optional JSON arguments exposed as ctx.args.
object
Next eligible run timestamp.
Last enqueue or execution activity timestamp.
Last enqueue, job, or run status.
Last enqueue, job, or run error summary.
Target-resolution error for broken schedules.
Timestamp when target resolution broke.
Maximum duration for one scheduled occurrence.
Optimistic concurrency token.
Retry-control state for a schedule job that is still queued or leased.
object
Queued job identifier.
Concurrency token required by the stop-retries command.
Current persisted attempt number.
Retry limit snapshotted for this job.
Attempts still permitted by the snapshot.
Delay before another attempt.
Next eligible attempt timestamp.
Whether the job is currently waiting for or executing an attempt that may retry.
Whether an administrator can stop this retry chain.
object
object
object
object
Example
{ "Data": { "Status": 0, "TargetState": 0, "ActiveJob": { "Status": 0, "RetryStopState": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}