mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 13:48:14 -05:00
66 lines
1.3 KiB
JSON
66 lines
1.3 KiB
JSON
{
|
|
"operationId": "getHost",
|
|
"summary": "Get a Host object by ID",
|
|
"tags": ["Hosts"],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "hostID",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"required": true,
|
|
"description": "ID of the Host",
|
|
"example": 1
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["result"],
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/components/schemas/HostObject"
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"result": {
|
|
"id": 1,
|
|
"created_at": 1646279455000,
|
|
"updated_at": 1646279455000,
|
|
"user_id": 2,
|
|
"type": "proxy",
|
|
"nginx_template_id": 1,
|
|
"listen_interface": "",
|
|
"domain_names": ["jc21.com"],
|
|
"upstream_id": 0,
|
|
"certificate_id": 0,
|
|
"access_list_id": 0,
|
|
"ssl_forced": false,
|
|
"caching_enabled": false,
|
|
"block_exploits": false,
|
|
"allow_websocket_upgrade": false,
|
|
"http2_support": false,
|
|
"hsts_enabled": false,
|
|
"hsts_subdomains": false,
|
|
"paths": "",
|
|
"advanced_config": "",
|
|
"is_disabled": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|