Compute Cloud Instance Groups API, gRPC: InstanceGroupService.ListInstances
Lists instances for the specified instance group.
gRPC request
rpc ListInstances (ListInstanceGroupInstancesRequest) returns (ListInstanceGroupInstancesResponse)
ListInstanceGroupInstancesRequest
{
"instanceGroupId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
instanceGroupId |
string Required field. ID of the InstanceGroup resource to list instances for. |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
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",
"instanceId": "string",
"fqdn": "string",
"name": "string",
"statusMessage": "string",
"zoneId": "string",
"networkInterfaces": [
{
"index": "string",
"macAddress": "string",
"subnetId": "string",
"primaryV4Address": {
"address": "string",
"oneToOneNat": {
"address": "string",
"ipVersion": "IpVersion",
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"primaryV6Address": {
"address": "string",
"oneToOneNat": {
"address": "string",
"ipVersion": "IpVersion",
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
]
}
}
],
"statusChangedAt": "google.protobuf.Timestamp",
"instanceTag": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
instances[] |
Lists instances for the specified instance group. |
nextPageToken |
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.
|
instanceId |
string ID of the instance. |
fqdn |
string Fully Qualified Domain Name. |
name |
string The name of the managed instance. |
statusMessage |
string Status message for the managed instance. |
zoneId |
string ID of the availability zone where the instance resides. |
networkInterfaces[] |
Array of network interfaces that are attached to the managed instance. |
statusChangedAt |
The timestamp in RFC3339 |
instanceTag |
string Managed instance tag. |
NetworkInterface
Field |
Description |
index |
string The index of the network interface, generated by the server, 0,1,2... etc. |
macAddress |
string MAC address that is assigned to the network interface. |
subnetId |
string ID of the subnet. |
primaryV4Address |
Primary IPv4 address that is assigned to the instance for this network interface. |
primaryV6Address |
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. |
oneToOneNat |
One-to-one NAT configuration. If missing, NAT has not been set up. |
dnsRecords[] |
Internal DNS configuration. |
OneToOneNat
Field |
Description |
address |
string An IPv4 external network address that is assigned to the managed instance for this network interface. |
ipVersion |
enum IpVersion External IP address version.
|
dnsRecords[] |
External DNS configuration. |
DnsRecord
Field |
Description |
fqdn |
string Required field. Name of the A/AAAA record as specified when creating the instance. |
dnsZoneId |
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. |