Compute Cloud Instance Groups API, gRPC: InstanceGroupService.ListInstances
Lists instances for the specified instance group.
gRPC request
rpc ListInstances (ListInstanceGroupInstancesRequest) returns (ListInstanceGroupInstancesResponse)
ListInstanceGroupInstancesRequest
{
"instance_group_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
instance_group_id |
string Required field. ID of the InstanceGroup resource to list instances for. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, |
filter |
string A filter expression that filters resources listed in the response. |
ListInstanceGroupInstancesResponse
{
"instances": [
{
"id": "string",
"status": "Status",
"instance_id": "string",
"fqdn": "string",
"name": "string",
"status_message": "string",
"zone_id": "string",
"network_interfaces": [
{
"index": "string",
"mac_address": "string",
"subnet_id": "string",
"primary_v4_address": {
"address": "string",
"one_to_one_nat": {
"address": "string",
"ip_version": "IpVersion",
"dns_records": [
{
"fqdn": "string",
"dns_zone_id": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"dns_records": [
{
"fqdn": "string",
"dns_zone_id": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"primary_v6_address": {
"address": "string",
"one_to_one_nat": {
"address": "string",
"ip_version": "IpVersion",
"dns_records": [
{
"fqdn": "string",
"dns_zone_id": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"dns_records": [
{
"fqdn": "string",
"dns_zone_id": "string",
"ttl": "int64",
"ptr": "bool"
}
]
}
}
],
"status_changed_at": "google.protobuf.Timestamp",
"instance_tag": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
instances[] |
Lists instances for the specified instance group. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
ManagedInstance
A ManagedInstance resource. For more information, see Instance Groups Concepts.
Field |
Description |
id |
string ID of the managed instance. |
status |
enum Status Status of the managed instance.
|
instance_id |
string ID of the instance. |
fqdn |
string Fully Qualified Domain Name. |
name |
string The name of the managed instance. |
status_message |
string Status message for the managed instance. |
zone_id |
string ID of the availability zone where the instance resides. |
network_interfaces[] |
Array of network interfaces that are attached to the managed instance. |
status_changed_at |
The timestamp in RFC3339 |
instance_tag |
string Managed instance tag. |
NetworkInterface
Field |
Description |
index |
string The index of the network interface, generated by the server, 0,1,2... etc. |
mac_address |
string MAC address that is assigned to the network interface. |
subnet_id |
string ID of the subnet. |
primary_v4_address |
Primary IPv4 address that is assigned to the instance for this network interface. |
primary_v6_address |
Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet. |
PrimaryAddress
Field |
Description |
address |
string An IPv4 internal network address that is assigned to the managed instance for this network interface. |
one_to_one_nat |
One-to-one NAT configuration. If missing, NAT has not been set up. |
dns_records[] |
Internal DNS configuration. |
OneToOneNat
Field |
Description |
address |
string An IPv4 external network address that is assigned to the managed instance for this network interface. |
ip_version |
enum IpVersion External IP address version.
|
dns_records[] |
External DNS configuration. |
DnsRecord
Field |
Description |
fqdn |
string Required field. Name of the A/AAAA record as specified when creating the instance. |
dns_zone_id |
string DNS zone id (optional, if not set, some private zone is used). |
ttl |
int64 DNS record ttl (optional, if 0, a reasonable default is used). |
ptr |
bool When true, indicates there is a corresponding auto-created PTR DNS record. |