...
Region Management
Create region
API | Sample Request Body | Status Code | Response Body | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Endpoint:http://locator:8080/geode-management/v2/regions Method: POST Headers: Authorization Permission Required: DATA:MANAGE Body: Types supported by this Rest API is defined in RegionType:
| 200 |
|
| memberStatuses
|
| 200 |
| |||||||||||||||||||||||||
409 | { "server-1" : { "success" : true, "message" : "success" } }, "statusCode" : "OK", "statusMessage" : "successfully persisted config for cluster", "successful" : true }409 |
|
| |||||||||||||||||||||||||||||
400 |
| 401 |
| UNAUTHENTICATED
| Authentication error. Please check your credentials
| |||||||||||||||||||||||||||
401 |
| UNAUTHORIZED
| user not authorized for DATA:MANAGE
| |||||||||||||||||||||||||||||
500403 |
|
Notes:
- the CREATE[POST] endpoint is not idempotent, you will receive a 409 when creating the a region with the same name the 2nd time.
- if group name is "cluster" or omitted, the region will be created on all the data members in this cluster.
401 and 403 responses are omitted for the rest of the end points.
List End Point
500 |
|
Notes:
- the CREATE[POST] endpoint is not idempotent, you will receive a 409 when creating the a region with the same name the 2nd time.
- if group name is "cluster" or omitted, the region will be created on all the data members in this cluster.
401 and 403 responses are omitted for the rest of the end points.
List Region
API | Status Code | Response Body | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
API | Status Code | Response Body | |||||||||||||||||||||||
200 |
| 401 |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "Missing authentication credential header(s)"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "User1 not authorized for CLUSTER:READ"
} |
Describe End Point
API | Status Code | Response Body | ||||||
---|---|---|---|---|---|---|---|---|
200 |
| |||||||
401 |
| |||||||
403 |
|
Get Region
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "Region with name '/Foo' does not exist"
} |
API | Status Code | Response Body |
---|---|---|
Endpoint |
Update End Point (not implemented)
API | Status Code | Response Body | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PATCH | GET Headers: Authorization | Body:200 |
| Request Body
|
| regionConfig
| {
"gateway_sender_id
| "1","2"]
}
}200 |
| ||||||||||||||||||||||||||||||||
401 | 400 |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "Invalid parameter specified"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "Missing authentication credential header(s)"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "User1 not authorized for DATA:MANAGE"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"message": "Region with name '/Foo' does not exist"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "message": "FailedMissing toauthentication update region /Foo because of <reason>credential header(s)" } |
Delete End Point
403 | |||||||||||
API | Status Code | Response Body | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
204 | <Successful deletion> | 304 |
| ||||||||
401404 |
|
Delete End Point
API | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
{
"message": "User1 not authorized for DATA:MANAGE"
} | Status Code | Response Body | |||||||||||
204 |
|
| Failed
| to delete region /Foo because of <reason>"
}
Note that the DELETE endpoint is idempotent – i.e. it should be a NOOP if the region does not exist.
Member Management
List members end point
| |||||||||||||
304 |
| ||||||||||||
401 | |||||||||||||
API | Status Code | Response Body | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Permission Required: CLUSTER:READ | 200
| Success
| "memberStatuses
| ||||||||||
403 |
| ||||||||||||
500 |
|
Note that the DELETE endpoint is idempotent – i.e. it should be a NOOP if the region does not exist.
Member Management
List members end point
API | Status Code | Response Body | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Permission Required: CLUSTER:READ | 200 |
| Endpoint:http://locator:8080/geode-management/v2/members?id=server-1 Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 200 | ||||||||
Code Block | ||||||||||||
|
| host
| 19.10
| pid
| 51877",
"cacheServers": [{...}]
| locator
| false
| coordinator
| false
}]
}
Endpoint:http://locator:8080/geode-management/v2/members?id=Non-Existent Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 200 |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"memberStatuses": {},
"statusCode": "OK",
"statusMessage": null,
"result": []
}
|
Get members end point
API | Status Code | Response Body | |||||||
---|---|---|---|---|---|---|---|---|---|
Permission Required: CLUSTER:READ | 200 |
| |||||||
Endpoint:http://locator:8080/geode-management/v2/members/Non-Existent?id=server-1 Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 404200 |
|
Index Management
List indexes
...
Endpoint:http://locator:8080/geode-management/v2/regions/{regionName}/indexes
Method: GET
Headers: Authorization
Permission Required: CLUSTER:READ
...
Get index
...
Endpoint:http://locator:8080/geode-management/v2/regions/{regionName}/indexes/{indexName}
Method: GET
Headers: Authorization
Permission Required: CLUSTER:READ
...
| |||||||||
Endpoint:http://locator:8080/geode-management/v2/members?id=Non-Existent Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 200 |
|
Get members end point
API | Status Code | Response Body | |||||||
---|---|---|---|---|---|---|---|---|---|
Permission Required: CLUSTER:READ | 200 |
| |||||||
Endpoint:http://locator:8080/geode-management/v2/members/Non-Existent Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 404 |
|
Index Management
List indexes
API | Status Code | Response Body | |||||||
---|---|---|---|---|---|---|---|---|---|
Endpoint:http://locator:8080/geode-management/v2/regions/{regionName}/indexes Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 200 |
|
Get index
API | Status Code | Response Body | |||||||
---|---|---|---|---|---|---|---|---|---|
Endpoint:http://locator:8080/geode-management/v2/regions/{regionName}/indexes/{indexName} Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 200 |
|
PDX Management
Configure PDX
API | Request Body | Status Code | Response Body | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Endpoint:http://locator:8080/geode-management/v2/configurations/pdx Method: POST Headers: Authorization Permission Required: CLUSTER:MANAGE |
| 200 |
|
PDX Management
Configure PDX
...
Endpoint:http://locator:8080/geode-management/v2/configurations/pdx
Method: POST
Headers: Authorization
Permission Required: CLUSTER:MANAGE
...
Gateway Management
List gateway receivers
API | Status Code | Response Body | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Endpoint:http://locator:8080/geode-management/v2/gateways/receivers Method: GET Headers: Authorization Permission Required: CLUSTER:READ | 200 | :READ | 200 |
|
Create gateway receiver
API | Status Code | Request Body | Response Body | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Endpoint:http://locator:8080/geode-management/v2/gateways/receivers Method: POST Headers: Authorization Permission Required: CLUSTER:MANAGE | 201 | {"startPort":"5000","group":"group1"} |
|
|
|
|
|
|