Help Center/ ServiceStage/ API Reference (Kuala Lumpur Region)/ CSE API/ Querying All Providers of a Microservice
Updated on 2023-06-26 GMT+08:00

Querying All Providers of a Microservice

Function

This API is used to query all providers of a microservice based on the consumer ID.

URI

GET /v4/{project_id}/registry/microservices/{serviceId}/providers

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Fixed value: default.

serviceId

String

Yes

Consumer service ID.

Request

None

Response

Response parameters

Table 2 describes the parameters.

Table 2 Parameter

Parameter

Type

Description

providers

Array of objects

Microservice struct. For details, see MicroService.

Example

Example request

GET /v4/default/registry/microservices/e5788b23b640232730c7a99a6d806b4f31be453e/providers

Example response

{
	"providers": [{
		"serviceId": "string",
		"appId": "string",
		"serviceName": "string",
		"version": "string",
		"description": "string",
		"level": "string",
		"status": "up",
		"timestamp": "string",
		"framework": {
			"name": "string",
			"version": "string"
		}
	}]
}

Status Code

See Status Codes.

Error Code

See CSE Error Codes.