Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.36 KB

012-api-cells.md

File metadata and controls

52 lines (33 loc) · 1.36 KB
title expires_at tags
Cells API
never
diego-release
bbs

Cells API Reference

This reference does not cover the protobuf payload supplied to each endpoint. Instead, it illustrates calls to the API via the Golang bbs.Client interface. Each method on that Client interface takes a lager.Logger as the first argument to log errors generated within the client. This first Logger argument will not be duplicated on the descriptions of the method arguments.

For detailed information on the types referred to below, see the godoc documentation for the BBS models.

Cells APIs

Cells

BBS API Endpoint

POST an empty request to /v1/cells/list.r1 and receive a CellsResponse.

Deprecated Endpoints

  • Make a GET request to /v1/cells/list.r1 and receive a CellsResponse.

Golang Client API

Cells(logger lager.Logger) ([]*models.CellPresence, error)

Input

None.

Output

  • []*models.CellPresence: Slice of models.CellPresence pointers.
  • error: Non-nil if an error occurred.

Example

client := bbs.NewClient(url)
cells, err := client.Cells(logger)