REST Resource: projects.locations.namespaces.services.endpoints

Resource: Endpoint

An individual endpoint that provides a service. The service must already exist to create an endpoint.

JSON representation
{
  "name": string,
  "address": string,
  "port": integer,
  "metadata": {
    string: string,
    ...
  }
}
Fields
name

string

Immutable. The resource name for the endpoint in the format 'projects/*/locations/*/namespaces/*/services/*/endpoints/*'.

address

string

Optional. An IPv4 or IPv6 address. Service Directory will reject bad addresses like: "8.8.8" "8.8.8.8:53" "test:bad:address" "[::1]" "[::1]:8080" Limited to 45 characters.

port

integer

Optional. Service Directory will reject values outside of [0, 65535].

metadata

map (key: string, value: string)

Optional. Metadata for the endpoint. This data can be consumed by service clients. The entire metadata dictionary may contain up to 512 characters, spread accoss all key-value pairs. Metadata that goes beyond any these limits will be rejected.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Methods

create

Creates a endpoint, and returns the new Endpoint.

delete

Deletes a endpoint.

get

Gets a endpoint.

list

Lists all endpoints.

patch

Updates a endpoint.