Find target server group
get_target_server_groupRetrieves one server group from a Spinnaker cluster using a target selector such as current, previous, oldest, or largest, helping identify live deployments or plan rollbacks.
Instructions
Get one server group of a cluster by a target selector instead of its name: current (or newest), previous (or ancestor), oldest, largest, or fail (errors unless exactly one server group exists). Use this for rollback planning or to find what is live now. Returns JSON with the matched server group.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application": "<application>",
"account": "<account>",
"cluster_name": "<cluster_name>",
"cloud_provider": "<cloud_provider>",
"scope": "<scope>",
"target": "<target>"
},
"name": "get_target_server_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Scope for target lookup (e.g. a region like us-east-1) | |
| target | Yes | Target selector, as Clouddriver names it: current and newest are the latest server group, previous and ancestor the one before it | |
| account | Yes | Spinnaker account name | |
| application | Yes | Application name as registered in Spinnaker | |
| cluster_name | Yes | Cluster name as shown in the Spinnaker UI | |
| cloud_provider | Yes | Cloud provider (e.g. aws, gce, kubernetes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of records in items. | |
| items | No | The records, when Gate answered with a list. |