Skip to content

Get



GET /api/v1/service_manage/{service_uuid}/get

Overview

Retrieve the complete configuration of a specified Service List and its associated Monitors.

Before You Call and Steps

Copy the UUID from the Service List. Use originStr=0 to read the structured configuration, or originStr=1 to read the raw TOML and modify it accordingly. If the target does not exist, the call succeeds and returns content={}.

Route Parameters

Parameter Type Required Description
service_uuid string Y UUID of the Service List in the current workspace, prefixed with sman_.
Allows empty string: False
Example: sman_example
How to obtain or enter: Get it from content.data[].uuid in the Service List, or use content.uuid from the create response.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with permission for this operation from API Key management in the target workspace.

Query Parameters

Parameter Type Required Description
originStr string Configuration return format. Defaults to 1, where serviceCatelog is a TOML string; 0 returns a parsed object. The server reads it as an integer; use 0 or 1.
Allows null: False
Example: 0
How to obtain or enter: Pass the string 0 when a program needs to read the configuration, or the string 1 to preserve the raw TOML.

Additional Parameter Notes

The returned serviceCatelog preserves the configuration content. When originStr=0, Related.Tags is populated based on the current service tag associations; the field name serviceCatelog retains its historical spelling.

Request Example

curl --get 'https://openapi.guance.com/api/v1/service_manage/sman_example/get' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode originStr=0

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.uuid string Service List UUID, used later for details, modification, and deletion.
content.service string Service name, bound to the service in trace data.
content.type string Service category.
content.colour string Service display color.
content.language string Service language identifier; may be an empty string.
content.createAt number Creation time, in Unix seconds.
content.updateAt number Update time, in Unix seconds; may be -1 if not yet updated.
content.creatorInfo object Creator identity profile; empty object if not found.
content.updatorInfo object Most recent updater identity profile; empty object if not found.
content.creatorInfo.uuid string May be provided when the identity is found. Identity identifier.
content.creatorInfo.status integer May be provided when the identity is found. Account status.
content.creatorInfo.wsAccountStatus integer May be provided when the identity is found. Workspace member status.
content.creatorInfo.username string May be provided when the identity is found. Login name.
content.creatorInfo.name string May be provided when the identity is found. Display name.
content.creatorInfo.iconUrl string May be provided when the identity is found. Avatar URL.
content.creatorInfo.email string May be provided when the identity is found. Account email. For an API Key identity, its identifier may be returned.
content.creatorInfo.mobile string May be provided when the identity is found. Contact number.
content.creatorInfo.countryCode string May be provided when the identity is found. Phone country or region code.
content.creatorInfo.acntWsNickname string May be provided when the identity is found. Nickname within the workspace.
content.updatorInfo.uuid string May be provided when the identity is found. Identity identifier.
content.updatorInfo.status integer May be provided when the identity is found. Account status.
content.updatorInfo.wsAccountStatus integer May be provided when the identity is found. Workspace member status.
content.updatorInfo.username string May be provided when the identity is found. Login name.
content.updatorInfo.name string May be provided when the identity is found. Display name.
content.updatorInfo.iconUrl string May be provided when the identity is found. Avatar URL.
content.updatorInfo.email string May be provided when the identity is found. Account email. For an API Key identity, its identifier may be returned.
content.updatorInfo.mobile string May be provided when the identity is found. Contact number.
content.updatorInfo.countryCode string May be provided when the identity is found. Phone country or region code.
content.updatorInfo.acntWsNickname string May be provided when the identity is found. Nickname within the workspace.
content.serviceCatelog string or object originStr=1 returns a TOML string; originStr=0 returns the configuration object below.
content.serviceCatelog.Team object Service and team configuration.
content.serviceCatelog.Team.service string Service name.
content.serviceCatelog.Team.type string Service category; invalid categories are handled according to API rules when written.
content.serviceCatelog.Team.colour string Service display color.
content.serviceCatelog.Team.team string Team name.
content.serviceCatelog.Team.oncall array<object> Contact information.
content.serviceCatelog.Team.oncall[].name string Contact display name.
content.serviceCatelog.Team.oncall[].type string email, mobile, or slack.
content.serviceCatelog.Team.oncall[].emails array<string> Email addresses for the email contact method.
content.serviceCatelog.Team.oncall[].mobiles array<string> Phone numbers for the mobile contact method.
content.serviceCatelog.Team.oncall[].slack string Slack channel URL.
content.serviceCatelog.Repos array<object> Code repository list.
content.serviceCatelog.Repos[].name string Repository display name.
content.serviceCatelog.Repos[].link string Repository URL.
content.serviceCatelog.Repos[].provider string Provider display name.
content.serviceCatelog.Docs array<object> Documentation list.
content.serviceCatelog.Docs[].name string Document display name.
content.serviceCatelog.Docs[].link string Document URL.
content.serviceCatelog.Docs[].provider string Document provider display name.
content.serviceCatelog.Related object Associated applications, built-in dashboards, and scenario tags.
content.serviceCatelog.Related.AppId string RUM application ID; can be empty.
content.serviceCatelog.Related.DashboardUUIDs array<string> Associated built-in dashboard UUIDs.
content.serviceCatelog.Related.Tags array<string> Scenario tag names.
content.extend object Service List extension information.
content.checkerInfo array<object> Monitor summaries associated by service name, scenario tags, and other criteria.
content.checkerInfo[].uuid string Monitor UUID.
content.checkerInfo[].name string Monitor display name.
content.checkerInfo[].type string Monitor type.
content.declaration object or null Workspace common declaration that may be included when a configuration object is present.
{
  "code": 200,
  "content": {
    "uuid": "sman_example",
    "createAt": 1785427200,
    "updateAt": -1,
    "creatorInfo": {},
    "colour": "#40C9C9",
    "updatorInfo": {},
    "language": "",
    "service": "checkout",
    "type": "web",
    "serviceCatelog": {
      "Team": {
        "service": "checkout",
        "type": "web",
        "team": "team-commerce",
        "colour": "#40C9C9",
        "oncall": [
          {
            "name": "值班邮箱",
            "type": "email",
            "emails": [
              "xxx@guance.com"
            ]
          }
        ]
      },
      "Repos": [
        {
          "name": "业务仓库",
          "link": "https://example.invalid/repos/checkout",
          "provider": "Git"
        }
      ],
      "Docs": [
        {
          "name": "操作手册",
          "link": "https://example.invalid/help/checkout",
          "provider": "Wiki"
        }
      ],
      "Related": {
        "AppId": "",
        "Tags": [
          "team:commerce"
        ],
        "DashboardUUIDs": []
      }
    },
    "extend": {},
    "checkerInfo": [],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

HTTP 200 response when the target does not exist

{
  "code": 200,
  "content": {},
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
406 ft.ParameterValidationFailed An undeclared Query parameter is used or a parameter violates the rules Parameter parsing failed Check the Query parameter table and examples.
500 ft.InternalServerError originStr cannot be converted to an integer Internal error Use the string 0 or 1; record the traceId for troubleshooting.

Feedback

Is this page helpful?