Tool: get_instance_group_manager_basic_info
Get basic information about a Compute Engine managed instance group (MIG), including its name, ID, instance template, base instance name, target size, target stopped size, target suspended size, status and creation timestamp. Requires project, zone, and MIG name as input.
The following sample demonstrate how to use curl to invoke the get_instance_group_manager_basic_info MCP tool.
| Curl Request |
|---|
curl --location 'https://compute.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "get_instance_group_manager_basic_info", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for getting instance group manager basic info.
| JSON representation |
|---|
{ "project": string, "zone": string, "name": string } |
| Fields | |
|---|---|
project |
Required. Project ID for this request. |
zone |
Required. The zone of the instance group manager. |
name |
Required. Identifier. The instance group manager name. |
Output Schema
Basic information about an instance group manager.
| JSON representation |
|---|
{
"name": string,
"id": string,
"createTime": string,
"instanceTemplate": string,
"baseInstanceName": string,
"targetSize": integer,
"targetStoppedSize": integer,
"targetSuspendedSize": integer,
"status": {
object ( |
| Fields | |
|---|---|
name |
Name of the instance group manager. |
id |
The unique identifier for the instance group manager. |
createTime |
Creation timestamp of the instance group manager. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
instanceTemplate |
The instance template of the instance group manager. |
baseInstanceName |
The base instance name of the instance group manager. |
targetSize |
The target size of the instance group manager. |
targetStoppedSize |
The target stopped size of the instance group manager. |
targetSuspendedSize |
The target suspended size of the instance group manager. |
status |
The status of the instance group manager. |
| JSON representation |
|---|
{ "seconds": string, "nanos": integer } |
| Fields | |
|---|---|
seconds |
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be between -62135596800 and 253402300799 inclusive (which corresponds to 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). |
nanos |
Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive. |
| JSON representation |
|---|
{ "isStable": boolean, "allInstancesConfig": { object ( |
| Fields | |
|---|---|
isStable |
Output only. [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified. |
allInstancesConfig |
Output only. [Output only] Status of all-instances configuration on the group. |
versionTarget |
Output only. [Output Only] A status of consistency of Instances' versions with their target version specified by |
stateful |
Output only. [Output Only] Stateful status of the given Instance Group Manager. |
autoscaler |
Output only. [Output Only] The URL of the Autoscaler that targets this instance group manager. |
| JSON representation |
|---|
{ "effective": boolean, "currentRevision": string } |
| Fields | |
|---|---|
effective |
Output only. [Output Only] A bit indicating whether this configuration has been applied to all managed instances in the group. |
currentRevision |
Output only. [Output Only] Current all-instances configuration revision. This value is in RFC3339 text format. |
| JSON representation |
|---|
{ "isReached": boolean } |
| Fields | |
|---|---|
isReached |
Output only. [Output Only] A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by |
| JSON representation |
|---|
{
"hasStatefulConfig": boolean,
"perInstanceConfigs": {
object ( |
| Fields | |
|---|---|
hasStatefulConfig |
Output only. [Output Only] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful configuration even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions. |
perInstanceConfigs |
Output only. [Output Only] Status of per-instance configurations on the instances. |
| JSON representation |
|---|
{ "allEffective": boolean } |
| Fields | |
|---|---|
allEffective |
Output only. A bit indicating if all of the group's per-instance configurations (listed in the output of a listPerInstanceConfigs API call) have status |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌