curl --request GET \
--url https://api.myidvirtual.com/server/:id \
--header 'Authorization: <authorization>'{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "BR-SP-001",
"ip": "192.168.1.100",
"port": 1194,
"country": "Brazil",
"city": "São Paulo",
"protocol": "OpenVPN",
"status": true,
"capacity": 500,
"currentLoad": 245,
"description": "Servidor principal em São Paulo",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"message": "Server encontrado"
}
Retorna informações detalhadas de um servidor específico
curl --request GET \
--url https://api.myidvirtual.com/server/:id \
--header 'Authorization: <authorization>'{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "BR-SP-001",
"ip": "192.168.1.100",
"port": 1194,
"country": "Brazil",
"city": "São Paulo",
"protocol": "OpenVPN",
"status": true,
"capacity": 500,
"currentLoad": 245,
"description": "Servidor principal em São Paulo",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"message": "Server encontrado"
}
{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "BR-SP-001",
"ip": "192.168.1.100",
"port": 1194,
"country": "Brazil",
"city": "São Paulo",
"protocol": "OpenVPN",
"status": true,
"capacity": 500,
"currentLoad": 245,
"description": "Servidor principal em São Paulo",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"message": "Server encontrado"
}
curl --location --request GET 'http://localhost:3333/server/123e4567-e89b-12d3-a456-426614174000' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'