-
Notifications
You must be signed in to change notification settings - Fork 276
Cluster Operations API
Gopalakrishna Holla edited this page Jul 13, 2017
·
1 revision
This document describes APIs that are available for viewing (and eventually managing) the Ambry cluster.
This API can be used to obtain the peers of a given storage node (S) in the cluster. A peer is defined as a storage node that shares at least one partition with S. The response does not include S.
GET /peers?name=<hostname>&port=<hostport>
Query Parameter | Type | Required? | Description |
---|---|---|---|
name | String | Yes | The hostname of S as it is in the hardware layout |
port | Integer | Yes | The plaintext port of S as it is in the hardware layout |
The peers of S as JSON. The JSON contains a single key ("peers") whose value is JSON array of peers. Each peer in the JSON array contains two pieces of information, "name" and "port", that describe the peer.
A successful response is indicated by the status code 200 OK
. The response body is the JSON that contains the peers of S.
See standard error codes.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 131
{"peers":[{"port":6667,"name":"host1.domain.com"},{"port":6667,"name":"host2.domain.com"},{"port":6667,"name":"host3.domain.com"}]}
- Getting Started
- API
- Configuration
- Design
- Implementation
- Operations
- FAQ
- Project
- Future Work