Skip to content

GoDoxy API

GoDoxy API

GoDoxy Docs

Informations

Version

1.0

License

MIT

Contact

Yusing https://github.com/yusing/godoxy/issues

Terms Of Service

https://github.com/yusing/godoxy/blob/main/LICENSE

Content negotiation

URI Schemes

  • http

Consumes

  • application/json
  • text/plain

Produces

  • image/png
  • image/svg+xml
  • image/webp
  • image/x-icon
  • application/json
  • text/plain
  • application/godoxy+yaml

All endpoints

agent

MethodURINameSummary
GET/api/v1/agent/listget agent listList agents
POST/api/v1/agent/createpost agent createCreate a new agent
POST/api/v1/agent/verifypost agent verifyVerify a new agent

auth

MethodURINameSummary
GET/api/v1/auth/callbackget auth callbackAuth Callback
HEAD/api/v1/auth/checkhead auth checkCheck authentication status
POST/api/v1/auth/loginpost auth loginLogin
POST/api/v1/auth/logoutpost auth logoutLogout

cert

MethodURINameSummary
GET/api/v1/cert/infoget cert infoGet cert info
GET/api/v1/cert/renewget cert renewRenew cert

docker

MethodURINameSummary
GET/api/v1/docker/containersget docker containersGet containers
GET/api/v1/docker/infoget docker infoGet docker info
GET/api/v1/docker/logs/{server}/get docker logs server containerGet docker container logs

file

MethodURINameSummary
GET/api/v1/file/contentget file contentGet file content
GET/api/v1/file/listget file listList files
POST/api/v1/file/validatepost file validateValidate file
PUT/api/v1/file/contentput file contentSet file content

homepage

MethodURINameSummary
GET/api/v1/homepage/categoriesget homepage categoriesList homepage categories
GET/api/v1/homepage/itemsget homepage itemsHomepage items
POST/api/v1/homepage/set/category_orderpost homepage set category orderSet homepage category order
POST/api/v1/homepage/set/itempost homepage set itemOverride single homepage item
POST/api/v1/homepage/set/item_visiblepost homepage set item visibleSet homepage item visibility
POST/api/v1/homepage/set/items_batchpost homepage set items batchOverride multiple homepage items

metrics

MethodURINameSummary
GET/api/v1/metrics/system_infoget metrics system infoGet system info
GET/api/v1/metrics/uptimeget metrics uptimeGet uptime

route

MethodURINameSummary
GET/api/v1/route/by_providerget route by providerList routes by provider
GET/api/v1/route/listget route listList routes
GET/api/v1/route/providersget route providersList route providers
GET/api/v1/route/get route whichList route

version1

MethodURINameSummary
GET/api/v1/faviconget faviconGet favicon
GET/api/v1/healthget healthGet routes health info
GET/api/v1/iconsget iconsList icons
GET/api/v1/statsget statsGet GoDoxy stats
GET/api/v1/versionget versionGet version
POST/api/v1/reloadpost reloadReload config

Paths

List agents (GetAgentList)

GET /api/v1/agent/list

List agents

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

[]Agent

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Auth Callback (GetAuthCallback)

GET /api/v1/auth/callback

Handles the callback from the provider after successful authentication

Produces

  • text/plain

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
bodybodyAuthUserPassAuthCallbackRequestmodels.AuthUserPassAuthCallbackRequestUserpass only

All responses

CodeStatusDescriptionHas headersSchema
200OKUserpass: OKschema
302FoundOIDC: Redirects to home pageschema
400Bad RequestUserpass: invalid request / credentialsschema
500Internal Server ErrorInternal server errorschema

Responses

200 - Userpass: OK

Status: OK

Schema
302 - OIDC: Redirects to home page

Status: Found

Schema
400 - Userpass: invalid request / credentials

Status: Bad Request

Schema
500 - Internal server error

Status: Internal Server Error

Schema

Get cert info (GetCertInfo)

GET /api/v1/cert/info

Get cert info

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
404Not FoundNot Foundschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

CertInfo

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

404 - Not Found

Status: Not Found

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Renew cert (GetCertRenew)

GET /api/v1/cert/renew

Renew cert

Produces

  • text/plain

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get containers (GetDockerContainers)

GET /api/v1/docker/containers

Get containers

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

[]ContainerResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get docker info (GetDockerInfo)

GET /api/v1/docker/info

Get docker info

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

ServerInfo

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get docker container logs (GetDockerLogsServerContainer)

GET /api/v1/docker/logs/{server}/{container}

Get docker container logs

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
containerpathstringstringcontainer id
serverpathstringstringserver name
fromquerystringstringfrom timestamp
levelsquerystringstringlevels
stderrquerybooleanboolshow stderr
stdoutquerybooleanboolshow stdout
toquerystringstringto timestamp

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
404Not FoundNot Foundschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema
400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

404 - Not Found

Status: Not Found

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get favicon (GetFavicon)

GET /api/v1/favicon

Get favicon

Consumes

  • application/json

Produces

  • image/svg+xml
  • image/x-icon
  • image/png
  • image/webp

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
aliasquerystringstringAlias of the route
urlquerystringstringURL of the route

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Request: alias is empty or route is not HTTPRouteschema
403ForbiddenForbidden: unauthorizedschema
404Not FoundNot Found: route or icon not foundschema
500Internal Server ErrorInternal Server Error: internal errorschema

Responses

200 - OK

Status: OK

Schema

[]HomepageFetchResult

400 - Bad Request: alias is empty or route is not HTTPRoute

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden: unauthorized

Status: Forbidden

Schema

ErrorResponse

404 - Not Found: route or icon not found

Status: Not Found

Schema

ErrorResponse

500 - Internal Server Error: internal error

Status: Internal Server Error

Schema

ErrorResponse

Get file content (GetFileContent)

GET /api/v1/file/content

Get file content

Consumes

  • application/json

Produces

  • application/json
  • application/godoxy+yaml

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
filenamequeryfilename (formatted string)string
typequerystringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema
400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

List files (GetFileList)

GET /api/v1/file/list

List files

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

ListFilesResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get routes health info (GetHealth)

GET /api/v1/health

Get health info by route name

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKHealth info by route nameschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - Health info by route name

Status: OK

Schema

HealthMap

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

List homepage categories (GetHomepageCategories)

GET /api/v1/homepage/categories

List homepage categories

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema

Responses

200 - OK

Status: OK

Schema

[]string

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

Homepage items (GetHomepageItems)

GET /api/v1/homepage/items

Homepage items

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
categoryquerystringstringCategory filter
providerquerystringstringProvider filter

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema

Responses

200 - OK

Status: OK

Schema

HomepageItems

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

List icons (GetIcons)

GET /api/v1/icons

List icons

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
keywordquerystringstringKeyword
limitqueryintegerint64Limit

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema

Responses

200 - OK

Status: OK

Schema

[]HomepageIconMetaSearch

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

Get system info (GetMetricsSystemInfo)

GET /api/v1/metrics/system_info

Get system info

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
agentAddrquerystringstring
aggregatequerystringstring
periodquerystringstring

All responses

CodeStatusDescriptionHas headersSchema
200OKperiod specifiedschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
404Not FoundNot Foundschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - period specified

Status: OK

Schema

SystemInfoAggregate

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

404 - Not Found

Status: Not Found

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get uptime (GetMetricsUptime)

GET /api/v1/metrics/uptime

Get uptime

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
intervalquerystringstring
keywordquerystringstring
limitqueryintegerint64
offsetqueryintegerint64

All responses

CodeStatusDescriptionHas headersSchema
200OKperiod specifiedschema
204No ContentNo Contentschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - period specified

Status: OK

Schema

UptimeAggregate

204 - No Content

Status: No Content

Schema

ErrorResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

List routes by provider (GetRouteByProvider)

GET /api/v1/route/by_provider

List routes by provider

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

RouteAPIRoutesByProvider

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

List routes (GetRouteList)

GET /api/v1/route/list

List routes

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
providerquerystringstringProvider

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema

Responses

200 - OK

Status: OK

Schema

[]Route

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

List route providers (GetRouteProviders)

GET /api/v1/route/providers

List route providers

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

[]RouteProvider

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

List route (GetRouteWhich)

GET /api/v1/route/{which}

List route

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
whichpathstringstringRoute name

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
404Not FoundNot Foundschema

Responses

200 - OK

Status: OK

Schema

Route

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

404 - Not Found

Status: Not Found

Schema

ErrorResponse

Get GoDoxy stats (GetStats)

GET /api/v1/stats

Get stats

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

StatsResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Get version (GetVersion)

GET /api/v1/version

Get the version of the GoDoxy

Consumes

  • application/json

Produces

  • text/plain

All responses

CodeStatusDescriptionHas headersSchema
200OKversionschema

Responses

200 - version

Status: OK

Schema

Check authentication status (HeadAuthCheck)

HEAD /api/v1/auth/check

Checks if the user is authenticated by validating their token

Produces

  • text/plain

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbidden: use X-Redirect-To header to redirect to login pageschema

Responses

200 - OK

Status: OK

Schema
403 - Forbidden: use X-Redirect-To header to redirect to login page

Status: Forbidden

Schema

Create a new agent (PostAgentCreate)

POST /api/v1/agent/create

Create a new agent and return the docker compose file, encrypted CA and client PEMs The returned PEMs are encrypted with a random key and will be used for verification when adding a new agent

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
requestbodyNewAgentRequestmodels.NewAgentRequestRequest

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
409ConflictConflictschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

NewAgentResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

409 - Conflict

Status: Conflict

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Verify a new agent (PostAgentVerify)

POST /api/v1/agent/verify

Verify a new agent and return the number of routes added

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
requestbodyVerifyNewAgentRequestmodels.VerifyNewAgentRequestRequest

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Login (PostAuthLogin)

POST /api/v1/auth/login

Initiates the login process by redirecting the user to the provider's login page

Produces

  • text/plain

All responses

CodeStatusDescriptionHas headersSchema
302FoundRedirects to login page or IdPschema
403ForbiddenForbidden(webui): follow X-Redirect-To headerschema
429Too Many RequestsToo Many Requestsschema

Responses

302 - Redirects to login page or IdP

Status: Found

Schema
403 - Forbidden(webui): follow X-Redirect-To header

Status: Forbidden

Schema
429 - Too Many Requests

Status: Too Many Requests

Schema

Logout (PostAuthLogout)

POST /api/v1/auth/logout

Logs out the user by invalidating the token

Produces

  • text/plain

All responses

CodeStatusDescriptionHas headersSchema
302FoundRedirects to home pageschema

Responses

302 - Redirects to home page

Status: Found

Schema

Validate file (PostFileValidate)

POST /api/v1/file/validate

Validate file

Consumes

  • text/plain

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
typequerystringstringType
filebodystringstringFile content

All responses

CodeStatusDescriptionHas headersSchema
200OKFile validatedschema
400Bad RequestBad requestschema
403ForbiddenForbiddenschema
417Expectation FailedValidation failedschema
500Internal Server ErrorInternal server errorschema

Responses

200 - File validated

Status: OK

Schema

SuccessResponse

400 - Bad request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

417 - Validation failed

Status: Expectation Failed

Schema

any

500 - Internal server error

Status: Internal Server Error

Schema

ErrorResponse

Set homepage category order (PostHomepageSetCategoryOrder)

POST /api/v1/homepage/set/category_order

Set homepage category order.

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
requestbodyHomepageOverrideCategoryOrderParamsmodels.HomepageOverrideCategoryOrderParamsOverride category order

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Override single homepage item (PostHomepageSetItem)

POST /api/v1/homepage/set/item

Override single homepage item.

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
requestbodyHomepageOverrideItemParamsmodels.HomepageOverrideItemParamsOverride single item

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Set homepage item visibility (PostHomepageSetItemVisible)

POST /api/v1/homepage/set/item_visible

POST list of item ids and visibility value.

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
requestbodyHomepageOverrideItemVisibleParamsmodels.HomepageOverrideItemVisibleParamsSet item visibility

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Override multiple homepage items (PostHomepageSetItemsBatch)

POST /api/v1/homepage/set/items_batch

Override multiple homepage items.

Consumes

  • application/json

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
requestbodyHomepageOverrideItemsBatchParamsmodels.HomepageOverrideItemsBatchParamsOverride multiple items

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Reload config (PostReload)

POST /api/v1/reload

Reload config

Consumes

  • application/json

Produces

  • application/json

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Set file content (PutFileContent)

PUT /api/v1/file/content

Set file content

Consumes

  • text/plain

Produces

  • application/json

Parameters

NameSourceTypeGo typeSeparatorRequiredDefaultDescription
filenamequerystringstringFilename
typequerystringstringType
filebodystringstringFile

All responses

CodeStatusDescriptionHas headersSchema
200OKOKschema
400Bad RequestBad Requestschema
403ForbiddenForbiddenschema
500Internal Server ErrorInternal Server Errorschema

Responses

200 - OK

Status: OK

Schema

SuccessResponse

400 - Bad Request

Status: Bad Request

Schema

ErrorResponse

403 - Forbidden

Status: Forbidden

Schema

ErrorResponse

500 - Internal Server Error

Status: Internal Server Error

Schema

ErrorResponse

Models

Agent

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
addrstringstring
is_nerdctlbooleanbool
namestringstring
versionstringstring

CIDR

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
ip[]int32 (formatted integer)[]int32network number
mask[]int32 (formatted integer)[]int32network mask

CertInfo

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
dns_names[]string[]string
email_addresses[]string[]string
issuerstringstring
not_afterintegerint64
not_beforeintegerint64
subjectstringstring

Container

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
agentAgentAgent
aliases[]string[]string
container_idstringstring
container_namestringstring
docker_hoststringstring
errorsstringstring
idlewatcher_configIdlewatcherConfigIdlewatcherConfig
imageContainerImageContainerImage
is_excludedbooleanbool
is_explicitbooleanbool
is_host_network_modebooleanbool
labelsmap of stringmap[string]stringfor displaying in UI
mountsmap of stringmap[string]stringsource:destination
networkstringstring
private_hostnamestringstring
private_portsContainerContainerprivatePort:types.Port
public_hostnamestringstring
public_portsContainerContainernon-zero publicPort:types.Port
runningbooleanbool

ContainerImage

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
authorstringstring
namestringstring
sha256stringstring
tagstringstring
versionstringstring

ContainerResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
idstringstring
imagestringstring
namestringstring
serverstringstring
stateContainerStateContainerState

ContainerState

NameTypeGo typeDefaultDescriptionExample
ContainerStatestringstring

ContainerStats

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
pausedintegerint64
runningintegerint64
stoppedintegerint64
totalintegerint64

ContainerStopMethod

NameTypeGo typeDefaultDescriptionExample
ContainerStopMethodstringstring

DockerConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
container_idstringstring
container_namestringstring
docker_hoststringstring

ErrorResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
errorstringstring
messagestringstring

FileType

NameTypeGo typeDefaultDescriptionExample
FileTypestringstring

HTTPHeader

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
keystringstring
valuestringstring

HealthCheckConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
disablebooleanbool
intervalintegerint64
pathstringstring
retriesintegerint64<0: immediate, >=0: threshold
timeoutintegerint64
use_getbooleanbool

HealthExtra

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
configLoadBalancerConfigLoadBalancerConfig
poolmap of anymap[string]interface{}

HealthJSON

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
configHealthCheckConfigHealthCheckConfig
detailstringstring
extraHealthJSONHealthJSON
lastSeenintegerint64
lastSeenStrstringstring
latencynumberfloat64
latencyStrstringstring
namestringstring
startedintegerint64
startedStrstringstring
statusstringstring
uptimenumberfloat64
uptimeStrstringstring
urlstringstring

HealthMap

HealthMap

HomepageItems

HomepageItem

HomepageOverrideCategoryOrderParams

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
valueintegerint64
whichstringstring

HomepageOverrideItemParams

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
valueHomepageItemConfigHomepageItemConfig
whichstringstring

HomepageOverrideItemVisibleParams

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
valuebooleanbool
which[]string[]string

HomepageOverrideItemsBatchParams

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
valuemap of HomepageItemConfigmap[string]HomepageItemConfig

IdlewatcherConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
depends_on[]string[]string
dockerDockerConfigDockerConfig
idle_timeoutIdlewatcherConfigIdlewatcherConfig0: no idle watcher.Positive: idle watcher with idle timeout.Negative: idle watcher as a dependency. IdleTimeout time.Duration json:"idle_timeout" json_ext:"duration"
proxmoxProxmoxConfigProxmoxConfig
start_endpointstringstringOptional path that must be hit to start container
stop_methodContainerStopMethodContainerStopMethod
stop_signalstringstring
stop_timeoutTimeDurationTimeDuration
wake_timeoutTimeDurationTimeDuration

ListFilesResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
config[]string[]string
middleware[]string[]string
provider[]string[]string

LoadBalancerConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
linkstringstring
modeLoadBalancerModeLoadBalancerMode
optionsmap of anymap[string]interface{}
weightintegerint64

LoadBalancerMode

NameTypeGo typeDefaultDescriptionExample
LoadBalancerModestringstring

LogFilter-CIDR

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
negativebooleanbool
values[]CIDR[]*CIDR

LogFilter-HTTPHeader

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
negativebooleanbool
values[]HTTPHeader[]*HTTPHeader

LogFilter-HTTPMethod

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
negativebooleanbool
values[]string[]string

LogFilter-Host

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
negativebooleanbool
values[]string[]string

LogFilter-StatusCodeRange

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
negativebooleanbool
values[]StatusCodeRange[]*StatusCodeRange

LogRetention

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
daysintegerint64
keep_sizeintegerint64
lastintegerint64

MetricsPeriod

NameTypeGo typeDefaultDescriptionExample
MetricsPeriodstringstring

NewAgentRequest

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
container_runtimeNewAgentRequestNewAgentRequest
hoststringstring
namestringstring
nightlybooleanbool
portintegerint64
typestringstring

NewAgentResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
caPEMPairResponsePEMPairResponse
clientPEMPairResponsePEMPairResponse
composestringstring

PEMPairResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
certbase64 (formatted string)string
keybase64 (formatted string)string

ProviderStats

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
reverse_proxiesRouteStatsRouteStats
streamsRouteStatsRouteStats
totalintegerint64
typeProviderTypeProviderType

ProviderType

NameTypeGo typeDefaultDescriptionExample
ProviderTypestringstring

ProxmoxConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
nodestringstring
vmidintegerint64

ProxyStats

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
providersmap of ProviderStatsmap[string]ProviderStats
reverse_proxiesRouteStatsRouteStats
streamsRouteStatsRouteStats
totalintegerint64

RequestLoggerConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
buffer_sizeintegerint64Deprecated: buffer size is adjusted dynamically
fieldsAccesslogFieldsAccesslogFields
filtersAccesslogFiltersAccesslogFilters
formatstringstring
pathstringstring
retentionLogRetentionLogRetention
rotate_intervalintegerint64
stdoutbooleanbool

Route

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
access_logRouteRoute
agentstringstring
aliasstringstring
containerRouteRouteDocker only
disable_compressionbooleanbool
excludedbooleanbool
healthRouteRoutefor swagger
healthcheckHealthCheckConfigHealthCheckConfig
homepageHomepageItemConfigHomepageItemConfig
hoststringstring
idlewatcherRouteRoute
load_balanceRouteRoute
lurlstringstringprivate fields
middlewaresmap of TypesLabelMapmap[string]TypesLabelMap
no_tls_verifybooleanbool
path_patterns[]string[]string
portRoutePortRoutePort
providerstringstringfor backward compatibility
purlstringstring
response_header_timeoutintegerint64
rootstringstring
rules[]RulesRule[]*RulesRule
schemeRouteSchemeRouteScheme

RouteProvider

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
full_namestringstring
short_namestringstring

RouteStats

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
errorintegerint64
healthyintegerint64
nappingintegerint64
totalintegerint64
unhealthyintegerint64
unknownintegerint64

RouteStatus

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
latencyintegerint64
statusstringstring
timestampintegerint64

RouteStatusesByAlias

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
statusesmap of RoutesHealthInfomap[string]RoutesHealthInfo
timestampintegerint64

RouteUptimeAggregate

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
aliasstringstring
avg_latencynumberfloat64
display_namestringstring
downtimenumberfloat64
idlenumberfloat64
statuses[]RouteStatus[]*RouteStatus
uptimenumberfloat64

ServerInfo

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
containersContainerStatsContainerStats
imagesintegerint64
memorystringstring
n_cpuintegerint64
namestringstring
versionstringstring

StatsResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
proxiesProxyStatsProxyStats
uptimestringstring

StatusCodeRange

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
endintegerint64
startintegerint64

SuccessResponse

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
detailsmap of anymap[string]interface{}
messagestringstring

SystemInfo

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
cpu_averagenumberfloat64
disksmap of DiskUsageStatmap[string]DiskUsageStatdisk usage by partition
disks_iomap of DiskIOCountersStatmap[string]DiskIOCountersStatdisk IO by device
memoryMemVirtualMemoryStatMemVirtualMemoryStat
networkNetIOCountersStatNetIOCountersStat
sensors[]SensorsTemperatureStat[]*SensorsTemperatureStatsensor temperature by key
timestampintegerint64

SystemInfoAggregate

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
data[]map[string]interface{}[]map[string]interface{}
totalintegerint64

SystemInfoAggregateMode

NameTypeGo typeDefaultDescriptionExample
SystemInfoAggregateModestringstring

UptimeAggregate

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
data[]RouteUptimeAggregate[]*RouteUptimeAggregate
totalintegerint64

VerifyNewAgentRequest

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
caPEMPairResponsePEMPairResponse
clientPEMPairResponsePEMPairResponse
container_runtimeAgentContainerRuntimeAgentContainerRuntime
hoststringstring

accesslog.FieldConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
configmap of AccesslogFieldModemap[string]AccesslogFieldMode
defaultAccesslogFieldConfigAccesslogFieldConfig

accesslog.FieldMode

NameTypeGo typeDefaultDescriptionExample
accesslog.FieldModestringstring

accesslog.Fields

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
cookiesAccesslogFieldConfigAccesslogFieldConfig
headersAccesslogFieldConfigAccesslogFieldConfig
queryAccesslogFieldConfigAccesslogFieldConfig

accesslog.Filters

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
cidrLogFilterCIDRLogFilterCIDR
headersAccesslogFiltersAccesslogFiltersheader exists or header == value
hostLogFilterHostLogFilterHost
methodLogFilterHTTPMethodLogFilterHTTPMethod
status_codesLogFilterStatusCodeRangeLogFilterStatusCodeRange

agent.ContainerRuntime

NameTypeGo typeDefaultDescriptionExample
agent.ContainerRuntimestringstring

auth.UserPassAuthCallbackRequest

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
passwordstringstring
usernamestringstring

container.Port

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
IPstringstringHost IP address that the container's port is mapped to
PrivatePortintegerint64Port on the containerRequired: true
PublicPortintegerint64Port exposed on the host
TypestringstringtypeRequired: true

disk.IOCountersStat

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
iopsintegerint64godoxy
namestringstringReadCount uint64 json:"readCount"MergedReadCount uint64 json:"mergedReadCount"WriteCount uint64 json:"writeCount"MergedWriteCount uint64 json:"mergedWriteCount"ReadBytes uint64 json:"readBytes"WriteBytes uint64 json:"writeBytes"ReadTime uint64 json:"readTime"WriteTime uint64 json:"writeTime"IopsInProgress uint64 json:"iopsInProgress"IoTime uint64 json:"ioTime"WeightedIO uint64 json:"weightedIO"
read_bytesintegerint64SerialNumber string json:"serialNumber"Label string json:"label"
read_countintegerint64
read_speednumberfloat64godoxy
write_bytesintegerint64
write_countintegerint64
write_speednumberfloat64godoxy

disk.UsageStat

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
freeintegerint64
fstypestringstring
pathstringstring
totalintegerint64
usedintegerint64
used_percentnumberfloat64

homepage.FetchResult

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
errMsgstringstring
icon[]int32 (formatted integer)[]int32
statusCodeintegerint64

homepage.IconMetaSearch

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
Darkbooleanbool
Lightbooleanbool
PNGbooleanbool
Refstringstring
SVGbooleanbool
SourceHomepageIconSourceHomepageIconSource
WebPbooleanbool

homepage.IconSource

NameTypeGo typeDefaultDescriptionExample
homepage.IconSourcestringstring

homepage.Item

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
aliasstringstring
categorystringstring
descriptionstringstring
iconstringstring
namestringstringdisplay name
origin_urlstringstring
providerstringstring
showbooleanbool
sort_orderintegerint64
urlstringstring
widget_configHomepageItemHomepageItem

homepage.ItemConfig

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
categorystringstring
descriptionstringstring
iconstringstring
namestringstringdisplay name
showbooleanbool
sort_orderintegerint64
urlstringstring

mem.VirtualMemoryStat

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
availableintegerint64RAM available for programs to allocateThis value is computed from the kernel specific values.
freeintegerint64This is the kernel's notion of free memory; RAM chips whose bits nobodycares about the value of right now. For a human consumable number,Available is what you really want.
totalintegerint64Total amount of RAM on this system
usedintegerint64RAM used by programsThis value is computed from the kernel specific values.
used_percentnumberfloat64Percentage of RAM used by programsThis value is computed from the kernel specific values.

net.IOCountersStat

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
bytes_recvintegerint64number of bytes received
bytes_sentintegerint64Name string json:"name" // interface name
download_speednumberfloat64godoxy
upload_speednumberfloat64godoxy

route.Port

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
listeningintegerint64
proxyintegerint64

route.Route

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
access_logRouteRouteRouteRoute
agentstringstring
aliasstringstring
containerRouteRouteRouteRouteDocker only
disable_compressionbooleanbool
excludedbooleanbool
healthRouteRouteRouteRoutefor swagger
healthcheckHealthCheckConfigHealthCheckConfig
homepageHomepageItemConfigHomepageItemConfig
hoststringstring
idlewatcherRouteRouteRouteRoute
load_balanceRouteRouteRouteRoute
lurlstringstringprivate fields
middlewaresmap of TypesLabelMapmap[string]TypesLabelMap
no_tls_verifybooleanbool
path_patterns[]string[]string
portRoutePortRoutePort
providerstringstringfor backward compatibility
purlstringstring
response_header_timeoutintegerint64
rootstringstring
rules[]RulesRule[]*RulesRule
schemeRouteSchemeRouteScheme

route.Scheme

NameTypeGo typeDefaultDescriptionExample
route.Schemestringstring

routeApi.RoutesByProvider

RouteRoute

routes.HealthInfo

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
detailstringstring
latencynumberfloat64latency in microseconds
statusstringstring
uptimenumberfloat64uptime in milliseconds

rules.Command

interface{}

rules.Rule

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
doRulesCommandRulesCommand
namestringstring
onRulesRuleOnRulesRuleOn

rules.RuleOn

interface{}

sensors.TemperatureStat

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
criticalnumberfloat64
highnumberfloat64
namestringstring
temperaturenumberfloat64

time.Duration

NameTypeGo typeDefaultDescriptionExample
time.Durationint64 (formatted integer)int64

types.LabelMap

TypesLabelMap

types.PortMapping

TypesPortMapping

widgets.Config

Properties

NameTypeGo typeRequiredDefaultDescriptionExample
configinterface{}interface{}
providerstringstring

Released under the MIT License.