---
title: "Get Service by Service Id"
method: GET
path: "/mf/v1/service/{id}"
tags: ["modelDeploy"]
---

# Get Service by Service Id

`GET /mf/v1/service/{id}`

## Path parameters

- `id` number, required

## Response `200`

OK

- GetService
  - `id` number — Id for the Service.
  - `service_name` string — Service Name.
  - `type` string — Service Type, Include Single, ABTest, Graph.
  - `status` string — Service's Status
  - `endpoint_type` string — Service's Endpoint Type
  - `parameters` ModelParameters[]
    - `name` string — params name
    - `type` string — params type, STRING
    - `value` string — params value
  - `namespace` string — Service NameSpace.
  - `creation_timestamp` string — creation timestamp of service.
  - `last_updated_timestamp` string — last update timestamp of this service.
  - `cpu` number, double — Serivce CPU resource.
  - `gpu` string — Serivce GPU resource.
  - `memory` number, double — Service memory resource.
  - `user_id` number — the owner id of this service.
  - `group_id` number — the group id of this service.
  - `log_path` string — The location of log path.
  - `remark` string — The location path of the model material.
  - `image` string — The service's image
  - `modelversion` ServiceModelVersion[]
    - `id` number — Id for the ModelVersion.
    - `version` string, required — Model’s version number.
    - `creation_timestamp` string — Timestamp recorded when this model_version was created.
    - `latest_flag` integer — Timestamp recorded when metadata for this model_version was last updated.
    - `source` string, required — User that created this model_version.
    - `filepath` string, required — Running status of this model_version.
    - `model` ServiceModel
      - `id` number — id for the model.
      - `model_name` string — Name for the model.
      - `model_type` string — type of model, eg. tensorflow, sklearn, xgboost
      - `position` integer — Timestamp recorded when metadata for this model was last updated.
      - `creation_timestamp` string — Timestamp recorded when metadata for this model was last updated.
      - `user_id` number — User that created this model.
      - `group_id` number — Group Id of User.
      - `service_id` number — User that created this model.
      - `reamrk` string — Description of this model

## Other responses

- `401` — Unauthorized
- `404` — Model create failed

---

[API](https://skmtc.dev/webankfintech/apis/mf-server.md) · [All operations](https://skmtc.dev/webankfintech/apis/mf-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webankfintech/mf-server/revisions/5ad7fc23d2c6/schema)
