Skip to Content
CloudAPI and integrationsPublic M2M APIPublic M2M API — host-agents

Public M2M API — host-agents

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/host-agents

Exported methods: GET, POST

GET

  • Resource scopes: monitoring:read
  • Query parameters: agentId
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: agent, agents, data, jobs, recentJobs

POST

  • Resource scopes: monitoring:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: host_agent_error, invalid_request
  • Response keys observed across outcomes: action, agent, data, enrollment, job, session

These tables describe the validated form after the server normalizes the submitted input. Include the shown discriminator explicitly to select an alternative; the server may also accept omitted or aliased fields according to its route-specific normalization.

Provide one of these observed alternatives; additional validation may apply.

Payload alternative 1

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNoenroll—
kindenumYesNoALTOVAR, HETZNER, OVH, GENERICdefault("ALTOVAR")
rawIdstringYesNo—min(1), default("self-enrolled")
labelstringYesNo——
tokenIdstringYesNo——

Payload alternative 2

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNodispatch_job—
agentIdstringNoNo—min(1)
typeenumNoNoRESTART_UNIT, JOURNAL_TAIL, AGENT_UPDATE—
unitstringYesNo——
linesnumberYesNo—int(), min(1), max(200)

Payload alternative 3

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNoopen_console—
agentIdstringNoNo—min(1)

Payload alternative 4

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNorevoke—
agentIdstringNoNo—min(1)

Payload alternative 5

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNorotate_token—
agentIdstringNoNo—min(1)