Aller au contenu principal

Monitoring

12 routes de l'API publique. Textes de la source : openapi-csp.json du dépôt platform.

List usage daily​

GET /usage-daily

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
limitrequêteintegernonDéfaut : 50. Valeur : 1 à 100.
cursorrequêtestringnonLongueur minimum : 1.
fromrequêtestring (date)oui
torequêtestring (date)oui
endpoint_idrequêtestring (uuid)non
client_idrequêtestring (uuid)non

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
itemsarray of objectoui
items[].msp_idstring (uuid)oui
items[].endpoint_idstring (uuid)oui
items[].revisionintegernonValeur minimum : 0.
items[].datestring (date)oui
items[].orchestrated_bytesintegerouiValeur minimum : 0.
items[].stored_bytesintegerouiValeur minimum : 0.
items[].billable_usersintegernonValeur minimum : 0.
items[].peak_billable_usersintegernonValeur minimum : 0.
items[].licenses_consumedintegernonValeur minimum : 0.
items[].source_bytesobjectnon
items[].client_idstring (uuid)oui
next_cursorstring | nulloui

List audit log​

GET /audit-log

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
limitrequêteintegernonDéfaut : 50. Valeur : 1 à 100.
cursorrequêtestringnonLongueur minimum : 1.
actor_idrequêtestring (uuid)non
api_key_idrequêtestring (uuid)non
actionrequête"auth.login" | "auth.login_failed" | "auth.logout" | "auth.password_changed" | "auth.password_change_failed" | "auth.mfa_failed" | "auth.mfa_enrolled" | "auth.mfa_reset" | "auth.recovery_code_used" | "auth.recovery_codes_regenerated" | "auth.mfa_disabled" | "auth.mfa_confirmed" | "auth.mfa_skipped_trusted_browser" | "auth.trusted_browser_added" | "auth.trusted_browser_revoked" | "invitation.created" | "invitation.revoked" | "invitation.accepted" | "account.updated" | "account.unsubscribed" | "account.push_subscribed" | "account.push_unsubscribed" | "user.role_changed" | "user.removed" | "user.platform_admin_created" | "msp.created" | "msp.suspended" | "msp.reactivated" | "msp.mfa_policy_changed" | "install_profile.updated" | "install_profile.id_regenerated" | "client.created" | "client.delete.requested" | "enrollment_token.revoked" | "enrollment_token.reattach_created" | "deployment_token.created" | "deployment_token.revoked" | "endpoint.enrolled" | "endpoint.enroll_refused" | "endpoint.delete.requested" | "endpoint.renamed" | "problem.acknowledged" | "problem.unacknowledged" | "endpoint.first_backup_alert.updated" | "endpoint.first_backup_reset.updated" | "repo.first_backup_reset" | "policy.created" | "policy.updated" | "script.created" | "script.updated" | "script.version_reverted" | "script.deleted" | "policy.hooks_changed" | "job.cancel.requested" | "pending_action.requested" | "pending_action.cancelled" | "pending_action.applied" | "restore_session.granted" | "restore_session.refused" | "restore_session.closed" | "restore_session.requested" | "restore_session.cross_client_confirmed" | "restore_session.cancel_requested" | "agent.version_changed" | "agent.upload_limit_changed" | "agent.relocate" | "agent.dir_listed" | "share.created" | "share.updated" | "share.deleted" | "share.checked" | "mssql.connection.updated" | "mssql.restore.requested" | "mssql.restore.ended" | "hyperv.tpm_guardian.imported" | "agent.update_relaunched" | "agent.revoked" | "agent.reattached" | "agent_release.created" | "agent_release.revoked" | "agent_rollout.updated" | "agent_rollout.targeted" | "alert_settings.updated" | "alert_recipients.updated" | "keys.exported" | "pool.created" | "pool.updated" | "bucket.created" | "bucket.updated" | "license.imported" | "license.refused" | "license.request_exported" | "data_plane.bandwidth_limit_updated" | "repo_move.requested" | "repo_move.preempted" | "repo_move.switched" | "repo_move.failed" | "repo_move.rolled_back" | "repo_move.purged" | "snapshot.tree_listed" | "snapshot.searched" | "snapshot.selection_sized" | "recovery.claimed" | "recovery.claim_failed" | "recovery.approved" | "recovery.cancelled" | "recovery.closed" | "mcp.enabled" | "mcp.disabled" | "mcp.access_granted" | "mcp.access_revoked" | "mcp.call" | "api_key.created" | "api_key.rotated" | "api_key.revoked" | "api_key.call" | stringnon
object_typerequêtestringnon
object_idrequêtestringnonLongueur : 1 à 256.
endpoint_idrequêtestring (uuid)non
fromrequêtestring (date-time)non
torequêtestring (date-time)non

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
itemsarray of objectoui
items[].idintegerouiValeur minimum : 0.
items[].tsstring (date-time)oui
items[].actor_type"user" | "api_key" | "system"oui
items[].actor_idstring (uuid) | nulloui
items[].actor_emailstring | nulloui
items[].actor_api_keyobject | nulloui
items[].actionstringouiA value of AUDIT_ACTIONS or m365.<action>; rows written before J3 may hold others.
items[].object_typestring | nulloui
items[].object_idstring | nulloui
items[].endpoint_idstring (uuid) | nulloui
items[].payloadstring | number | boolean | null | array of string | number | boolean | null | array | object | object | nulloui
items[].ipstring (ipv4) | string (ipv6) | nulloui
next_cursorstring | nulloui

Get alert settings​

GET /alerts

Accès : Clé API du MSP, portée read.

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
rulesobjectoui
rules.agentobjectoui
rules.m365objectoui
first_backup_alert_default_daysintegerouiStack default, FIRST_BACKUP_ALERT_DAYS of the deployment; PUT /alerts does not set it. Valeur : 1 à 365.

Replace alert settings​

PUT /alerts

Accès : Clé API du MSP, portée operate.

Corps de la requête (application/json)

NomTypeObligatoireDescription
rulesobjectoui
rules.agentobjectoui
rules.agent.backup_failedobjectoui
rules.agent.backup_partialobjectoui
rules.agent.backup_missedobjectoui
rules.agent.agent_offlineobjectoui
rules.agent.no_recent_snapshotobjectoui
rules.agent.check_failedobjectoui
rules.agent.update_failedobjectoui
rules.agent.share_unreachableobjectnonDéfaut : {"enabled":true}.
rules.agent.first_backup_unfinishedobjectnonDéfaut : {"enabled":true}.
rules.m365objectoui
rules.m365.backup_failedobjectoui
rules.m365.backup_partialobjectoui
rules.m365.backup_missedobjectoui
rules.m365.no_recent_snapshotobjectoui
rules.m365.check_failedobjectoui

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
rulesobjectoui
rules.agentobjectoui
rules.m365objectoui
first_backup_alert_default_daysintegerouiStack default, FIRST_BACKUP_ALERT_DAYS of the deployment; PUT /alerts does not set it. Valeur : 1 à 365.

Get client alert settings​

GET /clients/{id}/alerts

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
idcheminstring (uuid)oui

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
client_idstring (uuid)oui
rulesobjectoui
rules.agentobjectoui
rules.m365objectoui

Replace client alert settings​

PUT /clients/{id}/alerts

Accès : Clé API du MSP, portée operate.

Paramètres

NomEmplacementTypeObligatoireDescription
idcheminstring (uuid)oui

Corps de la requête (application/json)

NomTypeObligatoireDescription
rulesobjectoui
rules.agentobjectoui
rules.agent.backup_failedobjectnon
rules.agent.backup_partialobjectnon
rules.agent.backup_missedobjectnon
rules.agent.agent_offlineobjectnon
rules.agent.no_recent_snapshotobjectnon
rules.agent.check_failedobjectnon
rules.agent.update_failedobjectnon
rules.agent.share_unreachableobjectnon
rules.agent.first_backup_unfinishedobjectnon
rules.m365objectoui
rules.m365.backup_failedobjectnon
rules.m365.backup_partialobjectnon
rules.m365.backup_missedobjectnon
rules.m365.no_recent_snapshotobjectnon
rules.m365.check_failedobjectnon

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
client_idstring (uuid)oui
rulesobjectoui
rules.agentobjectoui
rules.m365objectoui

List dashboard problems​

GET /dashboard/problems

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
limitrequêteintegernonDéfaut : 50. Valeur : 1 à 100.
cursorrequêtestringnonLongueur minimum : 1.
client_idrequêtestring (uuid)nonEndpoints of this client only; 404 for a client of another MSP.
tagrequêtestring | array of stringnonkey:value, repeat for several (AND). Key and value compare without case.
no_tagrequêtestring | array of stringnonA tag key, repeat for several (AND): the endpoint does not have the key. Compares without case.
endpoint_idrequêtestring (uuid)non
as_ofrequêtestring (date-time)nonReuse the dashboard problem window upper bound across pages.
staterequête"open" | "acknowledged" | "unresolved" | "all"nonopen: the problems not resolved and not acknowledged (the rule of GET /dashboard); acknowledged: not resolved, hidden by an acknowledgement; unresolved: both; all: also the resolved ones. Défaut : "all".

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
itemsarray of objectoui
items[].idstring (uuid)oui
items[].endpoint_idstring (uuid)oui
items[].type"backup" | "baremetal_backup" | "mssql_backup" | "vm_backup" | "init" | "unlock" | "forget" | "prune" | "check" | "migrate" | "update" | "reset_first_backup"oui
items[].status"scheduled" | "dispatched" | "running" | "succeeded" | "partial" | "failed" | "cancelled" | "interrupted" | "preempted" | "missed" | "superseded"oui
items[].trigger"schedule" | "manual" | "system"oui
items[].policy_idstring (uuid) | nullnonThe backup policy of a backup run; null for maintenance or a backup without policy. Optional for older readers [C13], always sent.
items[].causestring | nullouiTyped cause, for example no_ack or repo_migrating
items[].scheduled_atstring (date-time)ouiRequest time for a manual job.
items[].window_ends_atstring (date-time) | nulloui
items[].started_atstring (date-time) | nulloui
items[].ended_atstring (date-time) | nulloui
items[].snapshot_idstring | nullouisucceeded or partial backup only.
items[].summaryobject | nullouiFinal restic summary, backup only.
items[].error_countinteger | nullouiUnreadable files of a partial backup.
items[].file_error_codesarray of object | nullnonCount per typed code of the stored file errors of a partial backup (at most 100; error_count is the real total), most frequent first, without paths or text: for every role and for an OAuth access token (MCP). Null without stored errors. Optional for older readers [C13], always sent.
items[].errorstring | nulloui
items[].upload_limitnumber | nullnonUpload limit sent to the agent for this backup, MiB/s: the exception of the agent, else the limit of the policy, fixed when the order is sent. Null: no limit, or not a backup. Optional for older readers [C13], always sent.
items[].progressobject | nullouiOnly while running
items[].hooksobject | nullnonScripts before and after a backup, per phase: version, SHA-256, status, exit code, duration, output. Null: none ran. Optional for older readers [C13], always sent.
items[].volumeobject | nullnonSize and count of a succeeded or partial backup of any kind. Null: not a backup, no snapshot, or another status. Optional for older readers [C13], always sent.
items[].endpoint_namestringoui
items[].client_idstring (uuid)oui
items[].resolvedbooleanouiA later job of the same endpoint, type and policy succeeded; for an agent update, also: the agent runs its version.
items[].resolved_by_job_idstring (uuid) | nullouiThe newest later succeeded job of the same endpoint, type and policy; null without one.
items[].resolved_atstring (date-time) | nullouiended_at of resolved_by_job_id
items[].acknowledgedobject | nullouiThe acknowledgement that hides this job; null when no acknowledgement covers it.
next_cursorstring | nulloui

Get dashboard​

GET /dashboard

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
client_idrequêtestring (uuid)nonEndpoints of this client only; 404 for a client of another MSP.
tagrequêtestring | array of stringnonkey:value, repeat for several (AND). Key and value compare without case.
no_tagrequêtestring | array of stringnonA tag key, repeat for several (AND): the endpoint does not have the key. Compares without case.
stale_daysrequêteintegernonstale counts agents without a succeeded backup for this number of days. Défaut : 7. Valeur : 1 à 90.

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
success_30dobjectouiB1: backup jobs scheduled in the last 30 days, by outcome.
success_30d.jobsintegerouisucceeded + partial + failed + interrupted + missed. Valeur minimum : 0.
success_30d.succeededintegerouiValeur minimum : 0.
success_30d.partialintegerouiValeur minimum : 0.
success_30d.failedintegerouiValeur minimum : 0.
success_30d.interruptedintegerouiValeur minimum : 0.
success_30d.missedintegerouiWithout missed of cause repo_migrating Valeur minimum : 0.
success_30d.success_ratenumber | nullouisucceeded / jobs; null without jobs.
success_30d.from_exclusivestring (date-time)oui
success_30d.to_inclusivestring (date-time)oui
staleobjectouiB2: agents without a succeeded backup for stale_days days.
stale.daysintegerouiValeur minimum : 0.
stale.endpointsintegerouiAgents whose last succeeded backup (or creation, without one) is days old or more. Valeur minimum : 0.
stale.neverintegerouiPart of endpoints without any succeeded backup. Valeur minimum : 0.
endpointsobjectouiEndpoints of the MSP not deleted (a pending deletion still counts)
endpoints.agent_onlineintegerouiLive entry in the presence registry. Valeur minimum : 0.
endpoints.agent_offlineintegerouiValeur minimum : 0.
endpoints.m365integerouiValeur minimum : 0.
protected_source_24hobjectouiCumulative logical source bytes of accepted agent snapshots (succeeded/partial) and M365 units completed in (from, to]. Unknown measurements are never zero.
protected_source_24h.from_exclusivestring (date-time)oui
protected_source_24h.to_inclusivestring (date-time)oui
protected_source_24h.source_bytesstring | nulloui
protected_source_24h.known_source_bytesstringoui
protected_source_24h.measured_unitsintegerouiValeur minimum : 0.
protected_source_24h.unknown_unitsintegerouiValeur minimum : 0.
protected_source_24h.availability"complete" | "partial" | "unavailable"oui
problemsobjectouiExact 7-day totals before limits, of the open problems only: a resolved problem job (resolved) or an acknowledged one is not counted. One representative per endpoint, failed > interrupted > missed > partial, then scheduled_at and ID descending. Groups ordered by first representative. GET /dashboard/problems lists omitted history.
problems.as_ofstring (date-time)oui
problems.clientsintegerouiValeur minimum : 0.
problems.endpointsintegerouiValeur minimum : 0.
problems.jobsintegerouiValeur minimum : 0.
problems.resolved_jobsintegerouiProblem jobs of the window resolved since: in GET /dashboard/problems with state: all, not in jobs Valeur minimum : 0.
problems.acknowledged_jobsintegerouiProblem jobs of the window not resolved but hidden by an acknowledgement: not in jobs Valeur minimum : 0.
problems.groupsarray of objectouiÉléments maximum : 5.
stored_bytesintegerouiSum of the latest usage_daily.stored_bytes sample of each endpoint not deleted; 0 before the first sample. Valeur minimum : 0.
vms_failedobjectnonHyper-V VMs in failure in the scope. Optional for older readers, always sent.
vms_failed.vmsintegerouiHyper-V VMs and Proxmox VMs and containers present on their host, backed up by a VM policy, whose last result is failed Valeur minimum : 0.
vms_failed.endpointsintegerouiHosts of these VMs. Valeur minimum : 0.
first_backups_unfinishedobjectouiOpen "first backup unfinished" alerts of the endpoints of the scope, oldest first, 20 at most: a policy with no snapshot N days after its first run started.
first_backups_unfinished.totalintegerouiOpen alerts before the limit. Valeur minimum : 0.
first_backups_unfinished.itemsarray of objectouiÉléments maximum : 20.
first_backup_resetsobjectouiOpen "first backup reset" alerts of the endpoints of the scope, newest first, 20 at most: the data of an abandoned first backup was deleted. The alert ends at the next snapshot of the endpoint.
first_backup_resets.totalintegerouiOpen alerts before the limit. Valeur minimum : 0.
first_backup_resets.itemsarray of objectouiÉléments maximum : 20.
mssql_alertsobjectouiOpen SQL Server alerts (mssql_rights_missing, mssql_log_growing) of the endpoints of the scope, oldest first, 20 at most.
mssql_alerts.totalintegerouiOpen alerts before the limit. Valeur minimum : 0.
mssql_alerts.itemsarray of objectouiÉléments maximum : 20.
recent_problem_jobsarray of objectouiNewest first: jobs failed, partial, missed, interrupted of endpoints not deleted, scheduled in the last 7 days, 20 at most. Without missed jobs of cause repo_migrating: a platform action, not shown to the MSP.
recent_problem_jobs[].idstring (uuid)oui
recent_problem_jobs[].endpoint_idstring (uuid)oui
recent_problem_jobs[].type"backup" | "baremetal_backup" | "mssql_backup" | "vm_backup" | "init" | "unlock" | "forget" | "prune" | "check" | "migrate" | "update" | "reset_first_backup"oui
recent_problem_jobs[].status"scheduled" | "dispatched" | "running" | "succeeded" | "partial" | "failed" | "cancelled" | "interrupted" | "preempted" | "missed" | "superseded"oui
recent_problem_jobs[].trigger"schedule" | "manual" | "system"oui
recent_problem_jobs[].policy_idstring (uuid) | nullnonThe backup policy of a backup run; null for maintenance or a backup without policy. Optional for older readers [C13], always sent.
recent_problem_jobs[].causestring | nullouiTyped cause, for example no_ack or repo_migrating
recent_problem_jobs[].scheduled_atstring (date-time)ouiRequest time for a manual job.
recent_problem_jobs[].window_ends_atstring (date-time) | nulloui
recent_problem_jobs[].started_atstring (date-time) | nulloui
recent_problem_jobs[].ended_atstring (date-time) | nulloui
recent_problem_jobs[].snapshot_idstring | nullouisucceeded or partial backup only.
recent_problem_jobs[].summaryobject | nullouiFinal restic summary, backup only.
recent_problem_jobs[].error_countinteger | nullouiUnreadable files of a partial backup.
recent_problem_jobs[].file_error_codesarray of object | nullnonCount per typed code of the stored file errors of a partial backup (at most 100; error_count is the real total), most frequent first, without paths or text: for every role and for an OAuth access token (MCP). Null without stored errors. Optional for older readers [C13], always sent.
recent_problem_jobs[].errorstring | nulloui
recent_problem_jobs[].upload_limitnumber | nullnonUpload limit sent to the agent for this backup, MiB/s: the exception of the agent, else the limit of the policy, fixed when the order is sent. Null: no limit, or not a backup. Optional for older readers [C13], always sent.
recent_problem_jobs[].progressobject | nullouiOnly while running
recent_problem_jobs[].hooksobject | nullnonScripts before and after a backup, per phase: version, SHA-256, status, exit code, duration, output. Null: none ran. Optional for older readers [C13], always sent.
recent_problem_jobs[].volumeobject | nullnonSize and count of a succeeded or partial backup of any kind. Null: not a backup, no snapshot, or another status. Optional for older readers [C13], always sent.
recent_problem_jobs[].endpoint_namestringoui
recent_problem_jobs[].client_idstring (uuid)oui

Get dashboard tag groups​

GET /dashboard/tag-groups

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
keyrequêtestringouiThe tag key to group by; 404 when the MSP does not have it. Longueur : 1 à 64.
client_idrequêtestring (uuid)nonEndpoints of this client only; 404 for a client of another MSP.
tagrequêtestring | array of stringnonkey:value, repeat for several (AND). Key and value compare without case.
no_tagrequêtestring | array of stringnonA tag key, repeat for several (AND): the endpoint does not have the key. Compares without case.
stale_daysrequêteintegernonstale counts agents without a succeeded backup for this number of days. Défaut : 7. Valeur : 1 à 90.

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
key_idstring (uuid)oui
keystringoui
as_ofstring (date-time)oui
stale_daysintegerouiValeur minimum : 0.
groupsarray of objectouiOne row per value, most endpoints first, then by value; the row without the key is last and always present. The rows add up to the totals of GET /dashboard with the same client_id, tag and no_tag
groups[].valuestring | nullouiThe value (stored form); null for the endpoints without the key.
groups[].endpointsintegerouiagent_online + agent_offline + m365. Valeur minimum : 0.
groups[].agent_onlineintegerouiValeur minimum : 0.
groups[].agent_offlineintegerouiValeur minimum : 0.
groups[].m365integerouiValeur minimum : 0.
groups[].problem_endpoints_7dintegerouiEndpoints with at least one open problem job in the 7-day problem window of GET /dashboard Valeur minimum : 0.
groups[].problem_jobs_7dintegerouiOpen problem jobs, the rule of problems of GET /dashboard Valeur minimum : 0.
groups[].success_30dobjectoui
groups[].stale_endpointsintegerouiSame rule as stale.endpoints of GET /dashboard Valeur minimum : 0.
groups[].stored_bytesintegerouiValeur minimum : 0.

Export dashboard tag groups​

GET /dashboard/tag-groups/export

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
keyrequêtestringouiThe tag key to group by; 404 when the MSP does not have it. Longueur : 1 à 64.
client_idrequêtestring (uuid)nonEndpoints of this client only; 404 for a client of another MSP.
tagrequêtestring | array of stringnonkey:value, repeat for several (AND). Key and value compare without case.
no_tagrequêtestring | array of stringnonA tag key, repeat for several (AND): the endpoint does not have the key. Compares without case.
stale_daysrequêteintegernonstale counts agents without a succeeded backup for this number of days. Défaut : 7. Valeur : 1 à 90.

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Get license overview​

GET /license

Accès : Clé API du MSP, portée read.

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
state"valid" | "grace" | "overdraft" | "exhausted" | "none" | "trial_expired"oui
backups_allowedbooleanoui
new_workloads_allowedbooleanoui
licenseobject | nulloui
commitobject | nulloui
balanceobject | nulloui
month_usageobject | nulloui
trialobject | nulloui
alertsarray of objectoui
alerts[].type"expiry_near" | "grace" | "commit_consumed" | "balance_projection" | "overdraft_started" | "overdraft_exhausted" | "usage_cap_reached" | "clock_behind" | "backups_stopped"oui
alerts[].severity"info" | "warning" | "critical"oui
alerts[].sincestring (date-time)oui
alerts[].valueinteger | nulloui

Get license usage​

GET /license/usage

Accès : Clé API du MSP, portée read.

Paramètres

NomEmplacementTypeObligatoireDescription
daysrequêteintegernonDéfaut : 30. Valeur : 1 à 90.

Réponses

CodeDescription
200Success
defaultError (400, 401, 403, 404, 409, 415, 422, 429, 500, 502, 503 or 504)

Réponse 200 (application/json)

NomTypeObligatoireDescription
state"valid" | "grace" | "overdraft" | "exhausted" | "none" | "trial_expired"oui
billing"prepaid" | "postpaid" | "none" | nulloui
daysarray of objectoui
days[].daystring (date)oui
days[].state"valid" | "grace" | "overdraft" | "exhausted" | "none" | "trial_expired"oui
days[].chargedbooleanoui
days[].consumedintegerouiValeur minimum : 0.
days[].workloadsarray of objectoui
balanceobject | nulloui
month_usageobject | nulloui
projectionobject | nulloui