MetriBeacon
Menu

GET List workspace maintenance

/api/v1/workspaces/{id}/maintenance-schedules

Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.

On this page

Access and permissions

Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.

Browser session: __Host-mb_session cookie.

Machine management credentials in Authorization: Bearer. Check the permissions (scopes) required by the operation.

Parameters and headers

FieldLocationType and limitsRequiredMeaning
idPathstring; {"format":"uuid"}YesResource ID in this workspace

Request body

No request body.

Responses

application/json

FieldType and limitsRequiredMeaning
$objectYes—
$.limitinteger; {"const":20}Yes—
$.schedulesarray<object>; {"maxItems":20}Yes—
$.schedules[]objectYes—
$.schedules[].configobjectYesPrivate one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.
$.schedules[].config.device_idsarray<string; {"format":"uuid"}>; {"maxItems":100}Yes—
$.schedules[].config.device_ids[]string; {"format":"uuid"}Yes—
$.schedules[].config.duration_secondsinteger; {"maximum":604800,"minimum":60}No—
$.schedules[].config.ends_atstring; {"format":"date-time"}No—
$.schedules[].config.group_idsarray<string; {"format":"uuid"}>; {"maxItems":100}Yes—
$.schedules[].config.group_ids[]string; {"format":"uuid"}Yes—
$.schedules[].config.kindstring; {"enum":["once","weekly"]}Yes—
$.schedules[].config.local_timestring; {"pattern":"^[0-2][0-9]:[0-5][0-9]$"}No—
$.schedules[].config.starts_atstring; {"format":"date-time"}No—
$.schedules[].config.targetstring; {"enum":["workspace","groups","monitors"]}Yes—
$.schedules[].config.timezonestring; {"maxLength":64,"minLength":1}Yes—
$.schedules[].config.weekdayinteger; {"maximum":7,"minimum":1}No—
$.schedules[].enabledbooleanYes—
$.schedules[].idstring; {"format":"uuid"}Yes—
$.schedules[].namestring; {"maxLength":128,"minLength":1}Yes—
$.schedules[].occurrencesarray<object>Yes—
$.schedules[].occurrences[]objectYes—
$.schedules[].occurrences[].ends_atstring; {"format":"date-time"}Yes—
$.schedules[].occurrences[].starts_atstring; {"format":"date-time"}Yes—
$.schedules[].revisioninteger; {"minimum":1}Yes—
$.schedules[].updated_atstring; {"format":"date-time"}Yes—
$.schedules[].workspace_idstring; {"format":"uuid"}Yes—
json
{
  "limit": 20,
  "schedules": []
}
Stable error codes
unauthorized
invalid_credential

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
forbidden
csrf
insufficient_scope
workspace_scope

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
not_found

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
idempotency_conflict
revision_conflict

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
invalid_dashboard
invalid_dashboard_sources
invalid_idempotency_key
invalid_maintenance
invalid_maintenance_targets
invalid_reference
invalid_workspace

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
dashboard_limit
maintenance_limit

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
unavailable

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—

Retries and asynchronous work

This operation reads or validates without applying a resource mutation. Respect rate limits and credential lifetime.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --fail-with-body --request GET --header @"$HOME/.config/metribeacon/headers.txt" "https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/maintenance-schedules"
python
import json, os, urllib.request
request = urllib.request.Request("https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/maintenance-schedules", method="GET", headers={"Cookie": os.environ["MB_COOKIE"], "X-CSRF-Token": os.environ["MB_CSRF"], "Content-Type": "application/json"})
with urllib.request.urlopen(request, timeout=30) as response:
    print(json.load(response))
javascript
const response = await fetch("https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/maintenance-schedules", {method: "GET", headers: {"Cookie": process.env.MB_COOKIE, "X-CSRF-Token": process.env.MB_CSRF, "Content-Type": "application/json"}});
console.log(await response.json());
go
package main
import ("fmt"; "net/http"; "os"; "io"; "strings")
func main() {
 req, err := http.NewRequest("GET", "https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/maintenance-schedules", strings.NewReader("")); if err != nil { panic(err) }; req.Header.Set("Cookie", os.Getenv("MB_COOKIE")); req.Header.Set("X-CSRF-Token", os.Getenv("MB_CSRF")); req.Header.Set("Content-Type", "application/json"); response, err := http.DefaultClient.Do(req); if err != nil { panic(err) }; defer response.Body.Close(); _, _ = io.Copy(os.Stdout, response.Body); fmt.Println()
}
  • HTTP API, OAuth and MCP

    Find the user API endpoints, their permissions, fields, examples and response formats.

  • POST Create a private maintenance schedule

    Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.

  • DELETE Remove a private maintenance schedule

    Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.

  • PUT Save a private maintenance schedule

    Private one-time or weekly maintenance. Telemetry and alarm states continue; deliveries are suppressed. IANA gaps are skipped and repeated times use their first occurrence. Disabled schedules consume one of 20 slots. Edits preserve past coverage; group changes take effect going forward. Public notices require a separate draft and status page publication permission.