Get a list of all items in the Service Discovery database related to a specific service

get

/api/catalog/service/{service_name}

To retrieve a list of all the items in the Service Discovery database that are associated with a specific service, use this endpoint to pass the name of the service, using the service_name parameter.

Request

Path Parameters
Security
Back to Top

Response

Supported Media Types

200 Response

200 Response
Body ()
Root Schema : schema
Type: array
Show Source

Default Response

Error Payload
Body ()
Root Schema : schema
Type: array
Show Source
Back to Top

Examples

The following example shows how to deregister a service in the service discovery database by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.

cURL Command

curl -si 
     -X "GET" 
     -H "Authorization: Bearer 394ed660d52ac8d8" "http://rest_server_url/api/catalog/service/myservice_name"

Example of a Response Header

[{"Address":"ip_address",
  "ID":"myservice_id",
  "Service":"myservice_name",
  "Tags":["myservice_tag1"],
  "Port":9999}]
Back to Top