[Service List] Modify¶
POST /api/v1/service_manage/{service_uuid}/modify
Overview¶
Modify a Service List configuration
Route Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
service_uuid | string | Y | Service UUID Example: sman_xxx Allow Empty: False |
Body Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
serviceCatelog | string | Y | Service List configuration, toml configuration string $maxCustomLength: 65535 Allow Empty: False |
Parameter Additional Description¶
Request Body Structure Description
Parameter | Type | Required | Description |
---|---|---|---|
serviceCatelog | string | Y | Original toml format string of Service List configuration |
serviceCatelog Field Description
Parameter | Type | Required | Description |
---|---|---|---|
Team | dict | Y | Service, team, etc. information |
Repos | array | N | Repository configuration |
Docs | array | N | Help configuration |
Related | array | N | Related configuration |
Team Field Description
Parameter | Type | Required | Description |
---|---|---|---|
service | string | Y | Service name |
type | string | N | Service type, this field is an enumeration type (app, framework, cache, message_queue, custom, db, web) |
team | string | N | Team name |
colour | string | N | Service color |
oncall | array | N | Contact information |
colour Field Enumeration Types '#C75BC9', '#DE5565', '#C43243', '#D77D3D', '#2EB2EE', '#A7D650', '#417C51', '#40C9C9', '#6454CB', '#E8C035', '#36AEAE', '#FDA82D', '#FFD33B', '#196AAB', '#993C7E', '#6C7AEB', '#49B566', '#9E7EDD', '#8EB743', '#D47FD6', '#289ED4', '#3F94DC', '#8934A4', '#1A9A82', '#AC8AF0', '#F19AF2'
oncall Field Description
Parameter | Type | Required | Description |
---|---|---|---|
name | string | N | Contact name |
type | string | N | Contact type, enumeration values email,mobile,slack |
emails | array | N | Emails |
mobiles | array | N | Phone numbers |
slack | string | N | Slack channel address |
Repos, Docs Field Description
Parameter | Type | Required | Description |
---|---|---|---|
link | string | N | Repository code URL/related document URL |
name | string | N | Display name |
provider | string | N | Provider name |
Related Field Description
Parameter | Type | Required | Description |
---|---|---|---|
AppId | string | N | RUM application ID |
DashboardUUIDs | array | N | Bound built-in view UUIDs |
Tags | array | N | Related tags |
serviceCatelog Field Example:
[Team] # Team
service = "test_02" # Required
type = "db" # Required, current service type
team = "Development Team" # Current service team name
colour = "#40C922" # Current service color information
[[Team.oncall]] # Contact configuration
name = "example_yun"
type = "email"
emails = ["[email protected]", "[email protected]"]
[[Team.oncall]] # Contact configuration
name = "zhuyun"
type = "mobile"
mobiles = ["xxxxxxx5786", "xxxxxxx4231"]
[[Team.oncall]] # Contact configuration
name = "test"
type = "slack"
slack = "#test"
[[Repos]] # Repository configuration, # Fill in the provider and expected display text for the repository link
link = "https://www.truewatch.com"
name = "truewatch"
provider = "example_yun"
[[Repos]] # Repository configuration
link = "https://dataflux-func.com"
name = "func"
provider = "example_yun"
[[Docs]] # Help, fill in the content provider and expected display text for the help link
link = "https://docs.truewatch.com"
name = "truewatch"
provider = "example_yun"
[[Docs]] # Help
link = "https://dataflux-func.com/doc"
name = "func"
provider = "example_yun"
[Related] # Related configuration
AppId = "a138bcb0_47ef_11ee_9d75_31ea50b9d85a"
Tags = ["test"]
DashboardUUIDs = ["dsbd_xxxx32"]
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/service_manage/sman_xxxx32/modify' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-binary '{"serviceCatelog": "\n[Team] #Team\nservice = \"test_02\" # Required\ntype = \"db\" # Required, current service type\nteam = \"Development Team\" # Current service team UUID\ncolour = \"#40C922\" # Current service color information\n\n[[Team.oncall]] # Contact configuration\nname = \"example_yun\"\ntype = \"email\"\nemails = [\"[email protected]\", \"[email protected]\"]\n\n[[Team.oncall]] # Contact configuration\nname = \"zhuyun\"\ntype = \"mobile\"\nmobiles = [\"xxxxxxx5786\", \"xxxxxxx4231\"]\n\n[[Team.oncall]] # Contact configuration\nname = \"test\"\ntype = \"slack\"\nslack = \"#test\"\n\n[[Repos]] # Repository configuration, # Fill in the provider and expected display text for the repository link\nlink = \"https://www.truewatch.com\"\nname = \"truewatch\"\nprovider = \"example_yun\"\n\n[[Repos]] # Repository configuration\nlink = \"https://dataflux-func.com\"\nname = \"func\"\nprovider = \"example_yun\"\n\n\n[[Docs]] # Help, fill in the content provider and expected display text for the help link\nlink = \"https://docs.truewatch.com\"\nname = \"truewatch\"\nprovider = \"example_yun\"\n\n[[Docs]] # Help\nlink = \"https://dataflux-func.com/doc\"\nname = \"func\"\nprovider = \"example_yun\"\n\n\n[Related] # Related configuration\nAppId = \"a138bcb0_47ef_11ee_9d75_31ea50b9d85a\"\nTags = [\"test\"]\nDashboardUUIDs = [\"dsbd_xxxx32\"]\n\n\n"}' \
--compressed