Help Center/ ServiceStage/ API Reference (ME-Abu Dhabi Region)/ CSE API/ Querying Static Information About a Microservice
Updated on 2023-06-25 GMT+08:00

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}

Table 1 Path parameters

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

Table 2 Parameter

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.