Querying Static Information About a Microservice
Function
This API is used to query static information about a microservice based on the service ID.
URI
GET /v4/{project_id}/registry/microservices/{serviceId}
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Fixed value: default. |
serviceId |
String |
Yes |
Microservice ID, which must be unique. The value must be 1 to 64 characters long. Regular expression: ^.*$ |
Request
None
Response
Response parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
service |
Object |
Yes |
Microservice struct. For details, see MicroService. |
Example
Example request
GET /v4/default/registry/microservices/819706e21b7173306797d19922ce4231441c17c5
Example response
{ "service": { "serviceId": "819706e21b7173306797d19922ce4231441c17c5", "appId": "default", "serviceName": "SERVICECENTER", "version": "2.4.8", "level": "BACK", "schemas": [ "servicecenter.grpc.api.ServiceCtrl", "servicecenter.grpc.api.ServiceInstanceCtrl" ], "status": "UP", "properties": { "allowCrossApp": "true" }, "timestamp": "1616426688", "alias": "SERVICECENTER", "modTimestamp": "1616426688", "environment": "development" } }
Status Code
See Status Codes.
Error Code
See CSE Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot