HEAD /gemfire-api/v1/{region}

This topic describes an HTTP HEAD request in VMware Tanzu GemFire that returns region’s size (number of entries) within the HEADERS, which is a response without the content-body. Region size is specified in the pre-defined header named “Resource-Count”.

Resource URL

http://<hostname_or_http-service-bind-address>:<http-service-port>/gemfire-api/v1/{region}

Parameters

None.

Example Request

Request Payload: null
HEAD /gemfire-api/v1/customers
Response Payload: null

Example Success Response

200 OK

Content-Length: <#-of-bytes>
Content-Type: application/json; charset=utf-8
...

Resource-Count: 8192

Error Codes

Status Code Description
400 Bad Request Returned if Tanzu GemFire throws an error while executing the request.
404 Resource Not Found Region does not exist.
500 Internal Server Error Tanzu GemFire has thrown an error or exception.
check-circle-line exclamation-circle-line close-line
Scroll to top icon