compute

GET /v1/compute/servers/{serverId}/services

List the services running inside a server.

Tất cả các điểm cuối compute

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền sites.view; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.

Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/services \
  -H "Authorization: Bearer zdk_live_…"

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

The machine's own service units - its web server, its database, its FTP daemon and a PHP-FPM pool per website - with the state the provider reports for each, read live. This is the answer to "is my database actually running", which is otherwise only visible by the site being down. Read-only: it reports state and changes none of it. Acting on what it reports is `runComputeServerServiceAction`. Requires `sites.view`.

Tham số

TênLoạiBắt buộcNội dung này là gì
serverId (path)UuidThe server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine.

Phản hồi

TênLoạiBắt buộcNội dung này là gì
dataComputeServerService[]

Các lỗi điểm cuối này có thể trả về

401 · 403 · 404 · 422 · 429 · 503