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
-
service_name: string
service_name
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- text/plain; charset=utf-8
200 Response
200 Response
Default Response
Error Payload
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}]