Compute Cloud Instance Groups API, gRPC: InstanceGroupService.ResumeProcesses
- gRPC request
- ResumeInstanceGroupProcessesRequest
- operation.Operation
- ResumeInstanceGroupProcessMetadata
- InstanceGroup
- InstanceTemplate
- ResourcesSpec
- AttachedDiskSpec
- DiskSpec
- NetworkInterfaceSpec
- PrimaryAddressSpec
- OneToOneNatSpec
- DnsRecordSpec
- SchedulingPolicy
- NetworkSettings
- PlacementPolicy
- HostAffinityRule
- AttachedFilesystemSpec
- MetadataOptions
- ScalePolicy
- FixedScale
- AutoScale
- CpuUtilizationRule
- CustomRule
- DeployPolicy
- AllocationPolicy
- Zone
- LoadBalancerState
- ManagedInstancesState
- LoadBalancerSpec
- TargetGroupSpec
- HealthChecksSpec
- HealthCheckSpec
- TcpOptions
- HttpOptions
- Variable
- ApplicationLoadBalancerSpec
- ApplicationTargetGroupSpec
- ApplicationLoadBalancerState
- AutoHealingPolicy
Resumes all processes regarding management of the specified instance group,
i.e. scaling, checking instances' health, auto-healing and updating them.
gRPC request
rpc ResumeProcesses (ResumeInstanceGroupProcessesRequest) returns (operation.Operation)
ResumeInstanceGroupProcessesRequest
{
"instanceGroupId": "string"
}
Field |
Description |
instanceGroupId |
string ID of the instance group to resume processes in. The instance group must have a To get the instance group ID, make a InstanceGroupService.List request. |
operation.Operation
{
"id": "string",
"description": "string",
"createdAt": "google.protobuf.Timestamp",
"createdBy": "string",
"modifiedAt": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"instanceGroupId": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folderId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"instanceTemplate": {
"description": "string",
"labels": "string",
"platformId": "string",
"resourcesSpec": {
"memory": "int64",
"cores": "int64",
"coreFraction": "int64",
"gpus": "int64"
},
"metadata": "string",
"bootDiskSpec": {
"mode": "Mode",
"deviceName": "string",
"diskSpec": {
"description": "string",
"typeId": "string",
"size": "int64",
// Includes only one of the fields `imageId`, `snapshotId`
"imageId": "string",
"snapshotId": "string",
// end of the list of possible fields
"preserveAfterInstanceDelete": "bool"
},
"diskId": "string",
"name": "string"
},
"secondaryDiskSpecs": [
{
"mode": "Mode",
"deviceName": "string",
"diskSpec": {
"description": "string",
"typeId": "string",
"size": "int64",
// Includes only one of the fields `imageId`, `snapshotId`
"imageId": "string",
"snapshotId": "string",
// end of the list of possible fields
"preserveAfterInstanceDelete": "bool"
},
"diskId": "string",
"name": "string"
}
],
"networkInterfaceSpecs": [
{
"networkId": "string",
"subnetIds": [
"string"
],
"primaryV4AddressSpec": {
"oneToOneNatSpec": {
"ipVersion": "IpVersion",
"address": "string",
"dnsRecordSpecs": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"dnsRecordSpecs": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
],
"address": "string"
},
"primaryV6AddressSpec": {
"oneToOneNatSpec": {
"ipVersion": "IpVersion",
"address": "string",
"dnsRecordSpecs": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
]
},
"dnsRecordSpecs": [
{
"fqdn": "string",
"dnsZoneId": "string",
"ttl": "int64",
"ptr": "bool"
}
],
"address": "string"
},
"securityGroupIds": [
"string"
]
}
],
"schedulingPolicy": {
"preemptible": "bool"
},
"serviceAccountId": "string",
"networkSettings": {
"type": "Type"
},
"name": "string",
"hostname": "string",
"placementPolicy": {
"placementGroupId": "string",
"hostAffinityRules": [
{
"key": "string",
"op": "Operator",
"values": [
"string"
]
}
]
},
"filesystemSpecs": [
{
"mode": "Mode",
"deviceName": "string",
"filesystemId": "string"
}
],
"metadataOptions": {
"gceHttpEndpoint": "MetadataOption",
"awsV1HttpEndpoint": "MetadataOption",
"gceHttpToken": "MetadataOption",
"awsV1HttpToken": "MetadataOption"
}
},
"scalePolicy": {
// Includes only one of the fields `fixedScale`, `autoScale`
"fixedScale": {
"size": "int64"
},
"autoScale": {
"minZoneSize": "int64",
"maxSize": "int64",
"measurementDuration": "google.protobuf.Duration",
"warmupDuration": "google.protobuf.Duration",
"stabilizationDuration": "google.protobuf.Duration",
"initialSize": "int64",
"cpuUtilizationRule": {
"utilizationTarget": "double"
},
"customRules": [
{
"ruleType": "RuleType",
"metricType": "MetricType",
"metricName": "string",
"labels": "string",
"target": "double",
"folderId": "string",
"service": "string"
}
],
"autoScaleType": "AutoScaleType"
},
// end of the list of possible fields
"testAutoScale": {
"minZoneSize": "int64",
"maxSize": "int64",
"measurementDuration": "google.protobuf.Duration",
"warmupDuration": "google.protobuf.Duration",
"stabilizationDuration": "google.protobuf.Duration",
"initialSize": "int64",
"cpuUtilizationRule": {
"utilizationTarget": "double"
},
"customRules": [
{
"ruleType": "RuleType",
"metricType": "MetricType",
"metricName": "string",
"labels": "string",
"target": "double",
"folderId": "string",
"service": "string"
}
],
"autoScaleType": "AutoScaleType"
}
},
"deployPolicy": {
"maxUnavailable": "int64",
"maxDeleting": "int64",
"maxCreating": "int64",
"maxExpansion": "int64",
"startupDuration": "google.protobuf.Duration",
"strategy": "Strategy",
"minimalAction": "MinimalAction"
},
"allocationPolicy": {
"zones": [
{
"zoneId": "string",
"instanceTagsPool": [
"string"
]
}
]
},
"loadBalancerState": {
"targetGroupId": "string",
"statusMessage": "string"
},
"managedInstancesState": {
"targetSize": "int64",
"runningActualCount": "int64",
"runningOutdatedCount": "int64",
"processingCount": "int64"
},
"loadBalancerSpec": {
"targetGroupSpec": {
"name": "string",
"description": "string",
"labels": "string"
},
"maxOpeningTrafficDuration": "google.protobuf.Duration",
"ignoreHealthChecks": "bool"
},
"healthChecksSpec": {
"healthCheckSpecs": [
{
"interval": "google.protobuf.Duration",
"timeout": "google.protobuf.Duration",
"unhealthyThreshold": "int64",
"healthyThreshold": "int64",
// Includes only one of the fields `tcpOptions`, `httpOptions`
"tcpOptions": {
"port": "int64"
},
"httpOptions": {
"port": "int64",
"path": "string"
}
// end of the list of possible fields
}
],
"maxCheckingHealthDuration": "google.protobuf.Duration"
},
"serviceAccountId": "string",
"status": "Status",
"variables": [
{
"key": "string",
"value": "string"
}
],
"deletionProtection": "bool",
"applicationLoadBalancerSpec": {
"targetGroupSpec": {
"name": "string",
"description": "string",
"labels": "string"
},
"maxOpeningTrafficDuration": "google.protobuf.Duration",
"ignoreHealthChecks": "bool"
},
"applicationLoadBalancerState": {
"targetGroupId": "string",
"statusMessage": "string"
},
"autoHealingPolicy": {
"autoHealingAction": "AutoHealingAction"
}
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
createdAt |
Creation timestamp. |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
The time when the Operation resource was last modified. |
done |
bool If the value is |
metadata |
ResumeInstanceGroupProcessMetadata Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
ResumeInstanceGroupProcessMetadata
Field |
Description |
instanceGroupId |
string ID of the instance group that processes are being resumed in. |
InstanceGroup
Field |
Description |
id |
string ID of the instance group. |
folderId |
string ID of the folder that the instance group belongs to. |
createdAt |
Creation timestamp in RFC3339 |
name |
string Name of the instance group. |
description |
string Description of the instance group. |
labels |
string Resource labels as |
instanceTemplate |
Instance template for creating the instance group. |
scalePolicy |
Scaling policy of the instance group. |
deployPolicy |
Deployment policy of the instance group. |
allocationPolicy |
Allocation policy of the instance group by zones and regions. |
loadBalancerState |
Status of the Network Load Balancer target group attributed to the instance group. |
managedInstancesState |
States of instances for this instance group. |
loadBalancerSpec |
Settings for balancing load between instances via Network Load Balancer |
healthChecksSpec |
Health checking specification. For more information, see Health check. |
serviceAccountId |
string ID of the service account. The service account will be used for all API calls |
status |
enum Status Status of the instance group.
|
variables[] |
|
deletionProtection |
bool Flag prohibiting deletion of the instance group. Allowed values:- The default is |
applicationLoadBalancerSpec |
Settings for balancing load between instances via Application Load Balancer |
applicationLoadBalancerState |
Status of the Application Load Balancer target group attributed to the instance group. Returned if there is a working load balancer that the target group is connected to. |
autoHealingPolicy |
AutoHealingPolicy policy of the instance group. |
InstanceTemplate
Field |
Description |
description |
string Description of the instance template. |
labels |
string Resource labels as |
platformId |
string Required field. ID of the hardware platform configuration for the instance. |
resourcesSpec |
Required field. Computing resources of the instance such as the amount of memory and number of cores. |
metadata |
string The metadata Metadata values may contain one of the supported placeholders: For example, you may use the metadata in order to provide your public SSH key to the instance. |
bootDiskSpec |
Required field. Boot disk specification that will be attached to the instance. |
secondaryDiskSpecs[] |
Array of secondary disks that will be attached to the instance. |
networkInterfaceSpecs[] |
Required field. Array of network interfaces that will be attached to the instance. |
schedulingPolicy |
Scheduling policy for the instance. |
serviceAccountId |
string Service account ID for the instance. |
networkSettings |
Network settings for the instance. |
name |
string Name of the instance. |
hostname |
string Host name for the instance. In order to be unique it must contain at least on of instance unique placeholders: |
placementPolicy |
Placement Group |
filesystemSpecs[] |
Array of filesystems to attach to the instance. The filesystems must reside in the same availability zone as the instance. To use the instance with an attached filesystem, the latter must be mounted. |
metadataOptions |
Metadata options for the instance |
ResourcesSpec
Field |
Description |
memory |
int64 The amount of memory available to the instance, specified in bytes. |
cores |
int64 The number of cores available to the instance. |
coreFraction |
int64 Baseline level of CPU performance with the ability to burst performance above that baseline level. |
gpus |
int64 The number of GPUs available to the instance. |
AttachedDiskSpec
Field |
Description |
mode |
enum Mode Required field. Access mode to the Disk resource.
|
deviceName |
string Serial number that is reflected in the /dev/disk/by-id/ tree This value can be used to reference the device for mounting, resizing, and so on, from within the instance. |
diskSpec |
Required field. oneof disk_spec or disk_id |
diskId |
string Set to use an existing disk. To set use variables. |
name |
string When set can be later used to change DiskSpec of actual disk. |
DiskSpec
Field |
Description |
description |
string Description of the disk. |
typeId |
string Required field. ID of the disk type. |
size |
int64 Size of the disk, specified in bytes. |
imageId |
string ID of the image that will be used for disk creation. Includes only one of the fields |
snapshotId |
string ID of the snapshot that will be used for disk creation. Includes only one of the fields |
preserveAfterInstanceDelete |
bool When set to true, disk will not be deleted even after managed instance is deleted. |
NetworkInterfaceSpec
Field |
Description |
networkId |
string ID of the network. |
subnetIds[] |
string IDs of the subnets. |
primaryV4AddressSpec |
Primary IPv4 address that is assigned to the instance for this network interface. |
primaryV6AddressSpec |
Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet. |
securityGroupIds[] |
string IDs of security groups. |
PrimaryAddressSpec
Field |
Description |
oneToOneNatSpec |
An external IP address configuration. |
dnsRecordSpecs[] |
Internal DNS configuration |
address |
string Optional. Manual set static internal IP. To set use variables. |
OneToOneNatSpec
Field |
Description |
ipVersion |
enum IpVersion IP version for the public IP address.
|
address |
string Manual set static public IP. To set use variables. (optional) |
dnsRecordSpecs[] |
External DNS configuration |
DnsRecordSpec
Field |
Description |
fqdn |
string Required field. FQDN (required) |
dnsZoneId |
string DNS zone id (optional, if not set, private zone used) |
ttl |
int64 DNS record ttl, values in 0-86400 (optional) |
ptr |
bool When set to true, also create PTR DNS record (optional) |
SchedulingPolicy
Field |
Description |
preemptible |
bool Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time |
NetworkSettings
Field |
Description |
type |
enum Type Type of instance network.
|
PlacementPolicy
Field |
Description |
placementGroupId |
string Identifier of placement group |
hostAffinityRules[] |
List of affinity rules. Scheduler will attempt to allocate instances according to order of rules. |
HostAffinityRule
Affinity definition
Field |
Description |
key |
string Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId' |
op |
enum Operator Include or exclude action
|
values[] |
string Affinity value or host ID or host group ID |
AttachedFilesystemSpec
Field |
Description |
mode |
enum Mode Mode of access to the filesystem that should be attached.
|
deviceName |
string Name of the device representing the filesystem on the instance. The name should be used for referencing the filesystem from within the instance If not specified, a random value will be generated. |
filesystemId |
string ID of the filesystem that should be attached. |
MetadataOptions
Field |
Description |
gceHttpEndpoint |
enum MetadataOption Enabled access to GCE flavored metadata
|
awsV1HttpEndpoint |
enum MetadataOption Enabled access to AWS flavored metadata (IMDSv1)
|
gceHttpToken |
enum MetadataOption Enabled access to IAM credentials with GCE flavored metadata
|
awsV1HttpToken |
enum MetadataOption Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
|
ScalePolicy
Field |
Description |
fixedScale |
Manual scaling policy of the instance group. Includes only one of the fields |
autoScale |
Automatic scaling policy of the instance group. Includes only one of the fields |
testAutoScale |
Test spec for automatic scaling policy of the instance group. |
FixedScale
Field |
Description |
size |
int64 Number of instances in the instance group. |
AutoScale
Field |
Description |
minZoneSize |
int64 Lower limit for instance count in each zone. |
maxSize |
int64 Upper limit for total instance count (across all zones). |
measurementDuration |
Time in seconds allotted for averaging metrics. |
warmupDuration |
The warmup time of the instance in seconds. During this time, |
stabilizationDuration |
Minimum amount of time in seconds allotted for monitoring before |
initialSize |
int64 Target group size. |
cpuUtilizationRule |
Defines an autoscaling rule based on the average CPU utilization of the instance group. If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ( |
customRules[] |
Defines an autoscaling rule based on a custom metric from Monitoring. If more than one rule is specified, e.g. CPU utilization ( |
autoScaleType |
enum AutoScaleType Autoscaling type.
|
CpuUtilizationRule
Field |
Description |
utilizationTarget |
double Target CPU utilization level. Instance Groups maintains this level for each availability zone. |
CustomRule
Field |
Description |
ruleType |
enum RuleType Required field. Custom metric rule type. This field affects which label from
|
metricType |
enum MetricType Required field. Type of custom metric. This field affects how Instance Groups calculates the average metric value.
|
metricName |
string Required field. Name of custom metric in Monitoring that should be used for scaling. |
labels |
string Labels of custom metric in Monitoring that should be used for scaling. |
target |
double Target value for the custom metric. Instance Groups maintains this level for each availability zone. |
folderId |
string Folder id of custom metric in Monitoring that should be used for scaling. |
service |
string Service of custom metric in Monitoring that should be used for scaling. |
DeployPolicy
Field |
Description |
maxUnavailable |
int64 The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time |
maxDeleting |
int64 The maximum number of instances that can be deleted at the same time. The value 0 is any number of virtual machines within the allowed values. |
maxCreating |
int64 The maximum number of instances that can be created at the same time. The value 0 is any number of virtual machines within the allowed values. |
maxExpansion |
int64 The maximum number of instances that can be temporarily allocated above the group's target size |
startupDuration |
Instance startup duration. |
strategy |
enum Strategy Affects the lifecycle of the instance during deployment.
|
minimalAction |
enum MinimalAction If instance update requires a less disruptive action than
|
AllocationPolicy
Field |
Description |
zones[] |
List of availability zones. |
Zone
Field |
Description |
zoneId |
string Required field. ID of the availability zone where the instance resides. |
instanceTagsPool[] |
string Each instance in a zone will be associated with exactly one of a tag from a pool below. |
LoadBalancerState
Field |
Description |
targetGroupId |
string ID of the Network Load Balancer target group attributed to the instance group. |
statusMessage |
string Status message of the target group. |
ManagedInstancesState
Field |
Description |
targetSize |
int64 Target number of instances for this instance group. |
runningActualCount |
int64 The number of running instances that match the current instance template. For more information, see ManagedInstance.Status.RUNNING_ACTUAL. |
runningOutdatedCount |
int64 The number of running instances that does not match the current instance template. For more information, see ManagedInstance.Status.RUNNING_OUTDATED. |
processingCount |
int64 The number of instances in flight (for example, updating, starting, deleting). For more information, see ManagedInstance.Status. |
LoadBalancerSpec
Field |
Description |
targetGroupSpec |
Specification of the target group that the instance group will be added to. For more information, see Target groups and resources. |
maxOpeningTrafficDuration |
Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, |
ignoreHealthChecks |
bool Do not wait load balancer health checks. |
TargetGroupSpec
Field |
Description |
name |
string Name of the target group. |
description |
string Description of the target group. |
labels |
string Resource labels as |
HealthChecksSpec
Field |
Description |
healthCheckSpecs[] |
Health checking specification. For more information, see Health check. |
maxCheckingHealthDuration |
Timeout for waiting for the VM to become healthy. If the timeout is exceeded, |
HealthCheckSpec
Field |
Description |
interval |
The interval between health checks. The default is 2 seconds. |
timeout |
Timeout for the managed instance to return a response for the health check. The default is 1 second. |
unhealthyThreshold |
int64 The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2. |
healthyThreshold |
int64 The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2. |
tcpOptions |
Configuration options for a TCP health check. Includes only one of the fields |
httpOptions |
Configuration options for an HTTP health check. Includes only one of the fields |
TcpOptions
Field |
Description |
port |
int64 Port to use for TCP health checks. |
HttpOptions
Field |
Description |
port |
int64 Port to use for HTTP health checks. |
path |
string URL path to set for health checking requests. |
Variable
Field |
Description |
key |
string |
value |
string |
ApplicationLoadBalancerSpec
Field |
Description |
targetGroupSpec |
Required field. Basic properties of the Application Load Balancer target group attributed to the instance group. |
maxOpeningTrafficDuration |
Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded, |
ignoreHealthChecks |
bool Do not wait load balancer health checks. |
ApplicationTargetGroupSpec
Field |
Description |
name |
string Name of the target group. |
description |
string Description of the target group. |
labels |
string Resource labels as |
ApplicationLoadBalancerState
Field |
Description |
targetGroupId |
string ID of the Application Load Balancer target group attributed to the instance group. |
statusMessage |
string Status message of the target group. |
AutoHealingPolicy
Field |
Description |
autoHealingAction |
enum AutoHealingAction Instance Groups performs
|