Summary
Get service group by ID
Description
Gets information about a specific service group by its ID
Route
GET /gateway_manager/v1/service-groups/:id
Roles
service-group:read
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
The ID of the service group to retrieve |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
- |
Copied to Clipboard
{
"state": "Success",
"result": {
"_id": "66ff56eb64d3de9f6f930916",
"name": "Default Service Group",
"cluster_id": "cluster_1",
"is_default": false,
"description": "Default service group for the gateway",
"created": "1979-07-05T08:09:05.962Z",
"created_by": "Lorem nisi",
"last_updated": "2022-06-29T13:34:43.856Z",
"last_updated_by": "esse dolore ut",
"groups": [
"gm-admins",
"gm-admins",
"gm-admins"
],
"services": [
{
"id": "debe9024-52ee-4b39-8c49-96567ff925e4",
"name": "my-tofu-service"
},
{
"id": "debe9024-52ee-4b39-8c49-96567ff925e4",
"name": "my-tofu-service"
},
{
"id": "debe9024-52ee-4b39-8c49-96567ff925e4",
"name": "my-tofu-service"
},
{
"id": "debe9024-52ee-4b39-8c49-96567ff925e4",
"name": "my-tofu-service"
}
]
}
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"state": {
"type": "string",
"examples": [
"Success"
]
},
"result": {
"type": "object",
"properties": {
"_id": {
"type": "string",
"description": "The Id of the service group within the database",
"examples": [
"66ff56eb64d3de9f6f930916"
]
},
"name": {
"type": "string",
"examples": [
"Default Service Group"
]
},
"cluster_id": {
"type": "string",
"examples": [
"cluster_1"
]
},
"is_default": {
"type": "boolean"
},
"description": {
"type": "string",
"examples": [
"Default service group for the gateway"
]
},
"created": {
"type": "string",
"format": "date-time"
},
"created_by": {
"type": "string"
},
"last_updated": {
"type": "string",
"format": "date-time"
},
"last_updated_by": {
"type": "string"
},
"groups": {
"type": "array",
"items": {
"type": "string",
"examples": [
"gm-admins"
]
}
},
"services": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"examples": [
"debe9024-52ee-4b39-8c49-96567ff925e4"
]
},
"name": {
"type": "string",
"examples": [
"my-tofu-service"
]
}
}
}
}
}
}
}
}