Compute Cloud Instance Groups API, REST: InstanceGroup.ListInstances
Lists instances for the specified instance group.
HTTP request
GET https://compute.api.cloud.yandex.net/compute/v1/instanceGroups/{instanceGroupId}/instances
Path parameters
Field |
Description |
instanceGroupId |
string Required field. ID of the InstanceGroup resource to list instances for. |
Query parameters
Field |
Description |
pageSize |
string (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. |
Response
HTTP Code: 200 - OK
{
"instances": [
{
"id": "string",
"status": "string",
"instanceId": "string",
"fqdn": "string",
"name": "string",
"statusMessage": "string",
"zoneId": "string",
"networkInterfaces": [
{
"index": "string",
"macAddress": "string",
"subnetId": "string",
"primaryV4Address": {
"address": "string",
"oneToOneNat": {
"address": "string",
"ipVersion": "string",
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "string",
"ptr": "boolean"
}
]
},
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "string",
"ptr": "boolean"
}
]
},
"primaryV6Address": {
"address": "string",
"oneToOneNat": {
"address": "string",
"ipVersion": "string",
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "string",
"ptr": "boolean"
}
]
},
"dnsRecords": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "string",
"ptr": "boolean"
}
]
}
}
],
"statusChangedAt": "string",
"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 |
string (date-time) The timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
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 |
string (int64) DNS record ttl (optional, if 0, a reasonable default is used). |
ptr |
boolean When true, indicates there is a corresponding auto-created PTR DNS record. |