List¶
GET /api/v1/service_manage/list
Overview¶
Lists the Service List configurations within a workspace by page.
Prerequisites and usage steps¶
Filter by name or type first, then use content.data[].uuid to call Service List Details. When multiple filters are provided at the same time, they are intersected; options within the same comma-separated field match on any value. Favorites are pinned to the top by default, and the rest are sorted by creation time in descending order. Read the top-level pageInfo of the response page by page; when loading=true, the service status cache is still being prepared, and the default dfStatus of ok cannot be used to confirm that collection or monitoring is working normally.
Request headers¶
| Parameter name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential of the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace. |
Query parameters¶
| Parameter name | Type | Required | Description |
|---|---|---|---|
| search | string | Matches services whose name contains the value; when omitted or blank, no filtering by name is performed. Allows null: False Example: checkoutHow to obtain or fill in: Enter a keyword from a known service name. |
|
| originStr | string | Format of the returned configuration. Defaults to 1, where serviceCatelog is a TOML string; 0 means a parsed object. The server reads it as an integer, so use 0 or 1. Allows null: False Example: 0How to obtain or fill in: Pass the string 0 when the configuration needs to be read by a program, or the string 1 to keep the raw TOML. |
|
| filter | string | Total list, favorites of the current identity, items created by the current identity, or recently viewed. Omitted means the total list. Allows null: False Available values: ['total', 'favorite', 'myCreate', 'oftenBrowse'] Example: totalHow to obtain or fill in: Select total, favorite, myCreate, or oftenBrowse according to the target scope. |
|
| createType | commaArray | manual means created by an account, openapi means created by an API Key, and automatic means auto-discovered. Allows null: False Example: openapi,manualHow to obtain or fill in: Select one or more values from createType in the list items and join them with commas. |
|
| serviceType | commaArray | Service category filter, for example app, framework, cache, message_queue, custom, db, web, aws_lambda. Allows null: False Example: web,appHow to obtain or fill in: Take values from type in the list items and join them with commas. |
|
| teamUUID | commaArray | Filters by owning team; enter the team UUID. Returns an empty list when no team matches. Allows null: False Example: group_exampleHow to obtain or fill in: Obtain the team UUID from the Team List; join multiple UUIDs with commas. |
|
| pageIndex | integer | Page number, default 1, minimum 1. Allows null: False $minValue: 1 Example: 1How to obtain or fill in: Start from 1 and advance to the next page according to the returned pageInfo. |
|
| pageSize | integer | Number of entries per page, default 50, range 1 to 100. Allows null: False $minValue: 1 $maxValue: 100 Example: 20How to obtain or fill in: Choose according to the number of entries the client displays, no more than 100 each time. |
Additional parameter notes¶
When originStr=0, the configuration is returned as an object; the examples use this form. When no service matches, data is empty, both pageInfo.count and totalCount are 0, and loading may be omitted.
Request example¶
curl --get 'https://openapi.guance.com/api/v1/service_manage/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode originStr=0 \
--data-urlencode search=checkout \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=20
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | List data and auto-discovery status. |
| content.automaticFoundTime | string or null | Start time of the most recent auto-discovery job, as a Unix seconds string; may be empty when there is no cache yet. |
| content.loading | boolean | Whether the status cache is still being prepared; may be omitted when there are no service results. |
| content.data | array<object> |
Service List entries on the current page. |
| content.data[].uuid | string | Service List UUID, used later for details, modification, and deletion. |
| content.data[].service | string | Service name, bound to service in tracing data. |
| content.data[].type | string | Service category. |
| content.data[].colour | string | Display color of the service. |
| content.data[].language | string | Service language identifier, possibly an empty string. |
| content.data[].createAt | number | Creation time, in Unix seconds. |
| content.data[].updateAt | number | Update time, in Unix seconds; may be -1 when never updated. |
| content.data[].creatorInfo | object | Profile of the creating identity; an empty object when not found. |
| content.data[].updatorInfo | object | Profile of the identity that last updated it; an empty object when not found. |
| content.data[].creatorInfo.uuid | string | May be provided when the identity is found. Identity identifier. |
| content.data[].creatorInfo.status | integer | May be provided when the identity is found. Account status. |
| content.data[].creatorInfo.wsAccountStatus | integer | May be provided when the identity is found. Workspace member status. |
| content.data[].creatorInfo.username | string | May be provided when the identity is found. Login name. |
| content.data[].creatorInfo.name | string | May be provided when the identity is found. Display name. |
| content.data[].creatorInfo.iconUrl | string | May be provided when the identity is found. Avatar URL. |
| content.data[].creatorInfo.email | string | May be provided when the identity is found. Account email. For an API Key identity, its identifier may be returned. |
| content.data[].creatorInfo.mobile | string | May be provided when the identity is found. Contact information. |
| content.data[].creatorInfo.countryCode | string | May be provided when the identity is found. Country or region code of the phone number. |
| content.data[].creatorInfo.acntWsNickname | string | May be provided when the identity is found. Nickname within the workspace. |
| content.data[].updatorInfo.uuid | string | May be provided when the identity is found. Identity identifier. |
| content.data[].updatorInfo.status | integer | May be provided when the identity is found. Account status. |
| content.data[].updatorInfo.wsAccountStatus | integer | May be provided when the identity is found. Workspace member status. |
| content.data[].updatorInfo.username | string | May be provided when the identity is found. Login name. |
| content.data[].updatorInfo.name | string | May be provided when the identity is found. Display name. |
| content.data[].updatorInfo.iconUrl | string | May be provided when the identity is found. Avatar URL. |
| content.data[].updatorInfo.email | string | May be provided when the identity is found. Account email. For an API Key identity, its identifier may be returned. |
| content.data[].updatorInfo.mobile | string | May be provided when the identity is found. Contact information. |
| content.data[].updatorInfo.countryCode | string | May be provided when the identity is found. Country or region code of the phone number. |
| content.data[].updatorInfo.acntWsNickname | string | May be provided when the identity is found. Nickname within the workspace. |
| content.data[].serviceCatelog | string or object | originStr=1 returns a TOML string; originStr=0 returns the following configuration object. |
| content.data[].serviceCatelog.Team | object | Service and team configuration. |
| content.data[].serviceCatelog.Team.service | string | Service name. |
| content.data[].serviceCatelog.Team.type | string | Service category; invalid categories are handled according to the API rules on write. |
| content.data[].serviceCatelog.Team.colour | string | Display color of the service. |
| content.data[].serviceCatelog.Team.team | string | Name of the owning team. |
| content.data[].serviceCatelog.Team.oncall | array<object> |
Contact information. |
| content.data[].serviceCatelog.Team.oncall[].name | string | Display name of the contact. |
| content.data[].serviceCatelog.Team.oncall[].type | string | email, mobile, or slack. |
| content.data[].serviceCatelog.Team.oncall[].emails | array<string> |
Email addresses for the email contact. |
| content.data[].serviceCatelog.Team.oncall[].mobiles | array<string> |
Phone numbers for the mobile contact. |
| content.data[].serviceCatelog.Team.oncall[].slack | string | Slack channel address. |
| content.data[].serviceCatelog.Repos | array<object> |
List of code repositories. |
| content.data[].serviceCatelog.Repos[].name | string | Display name of the repository. |
| content.data[].serviceCatelog.Repos[].link | string | Repository URL. |
| content.data[].serviceCatelog.Repos[].provider | string | Display name of the provider. |
| content.data[].serviceCatelog.Docs | array<object> |
List of operation documents. |
| content.data[].serviceCatelog.Docs[].name | string | Display name of the document. |
| content.data[].serviceCatelog.Docs[].link | string | Document URL. |
| content.data[].serviceCatelog.Docs[].provider | string | Display name of the document provider. |
| content.data[].serviceCatelog.Related | object | Associated applications, Built-in Views, and scene tags. |
| content.data[].serviceCatelog.Related.AppId | string | Real User Monitoring (RUM) application ID; may be empty. |
| content.data[].serviceCatelog.Related.DashboardUUIDs | array<string> |
UUIDs of associated Built-in Views. |
| content.data[].serviceCatelog.Related.Tags | array<string> |
Scene tag names. |
| content.data[].dfStatus | string | Status of the associated events; defaults to ok when the cache is not ready or there is no status. |
| content.data[].isFavorite | boolean | Whether it is favorited by the current calling identity. |
| content.data[].createType | string | Source inferred from the creating identity. Common values are manual, openapi, and automatic; this field may be omitted for other historical identities. |
| content.declaration | object or null | Common declarations of the workspace. |
| pageInfo | object | Top-level pagination information of the response. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Page size. |
| pageInfo.count | integer | Number of entries returned on the current page. |
| pageInfo.totalCount | integer | Total number of entries that match the filter conditions. |
{
"code": 200,
"content": {
"automaticFoundTime": "1785427200",
"data": [
{
"uuid": "sman_example",
"createAt": 1785427200,
"updateAt": -1,
"creatorInfo": {},
"colour": "#40C9C9",
"updatorInfo": {},
"dfStatus": "ok",
"language": "",
"isFavorite": false,
"createType": "openapi",
"service": "checkout",
"type": "web",
"serviceCatelog": {
"Team": {
"service": "checkout",
"type": "web",
"team": "team-commerce",
"colour": "#40C9C9",
"oncall": [
{
"name": "On-call email",
"type": "email",
"emails": [
"xxx@guance.com"
]
}
]
},
"Repos": [
{
"name": "Business repository",
"link": "https://example.invalid/repos/checkout",
"provider": "Git"
}
],
"Docs": [
{
"name": "Operation manual",
"link": "https://example.invalid/help/checkout",
"provider": "Wiki"
}
],
"Related": {
"AppId": "",
"Tags": [
"team:commerce"
],
"DashboardUUIDs": []
}
}
}
],
"loading": false,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 20,
"count": 1,
"totalCount": 1
}
}
Error responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP status | errorCode | Trigger condition | Message or response description | Handling |
|---|---|---|---|---|
| 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. |