Class InstanceGroupManagersResource
The "instanceGroupManagers" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class InstanceGroupManagersResource
Constructors
InstanceGroupManagersResource(IClientService)
Constructs a new resource.
Declaration
public InstanceGroupManagersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AbandonInstances(InstanceGroupManagersAbandonInstancesRequest, string, string, string)
Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.AbandonInstancesRequest AbandonInstances(InstanceGroupManagersAbandonInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersAbandonInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.AbandonInstancesRequest |
AggregatedList(string)
Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends
that you set the returnPartialSuccess
parameter to true
.
Declaration
public virtual InstanceGroupManagersResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.AggregatedListRequest |
ApplyUpdatesToInstances(InstanceGroupManagersApplyUpdatesRequest, string, string, string)
Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions.
Declaration
public virtual InstanceGroupManagersResource.ApplyUpdatesToInstancesRequest ApplyUpdatesToInstances(InstanceGroupManagersApplyUpdatesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersApplyUpdatesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. Should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group, should conform to RFC1035. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ApplyUpdatesToInstancesRequest |
CreateInstances(InstanceGroupManagersCreateInstancesRequest, string, string, string)
Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.
Declaration
public virtual InstanceGroupManagersResource.CreateInstancesRequest CreateInstances(InstanceGroupManagersCreateInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersCreateInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. It should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group. It should conform to RFC1035. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.CreateInstancesRequest |
Delete(string, string, string)
Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information.
Declaration
public virtual InstanceGroupManagersResource.DeleteRequest Delete(string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group to delete. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.DeleteRequest |
DeleteInstances(InstanceGroupManagersDeleteInstancesRequest, string, string, string)
Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.DeleteInstancesRequest DeleteInstances(InstanceGroupManagersDeleteInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersDeleteInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.DeleteInstancesRequest |
DeletePerInstanceConfigs(InstanceGroupManagersDeletePerInstanceConfigsReq, string, string, string)
Deletes selected per-instance configurations for the managed instance group.
Declaration
public virtual InstanceGroupManagersResource.DeletePerInstanceConfigsRequest DeletePerInstanceConfigs(InstanceGroupManagersDeletePerInstanceConfigsReq body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersDeletePerInstanceConfigsReq | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. It should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group. It should conform to RFC1035. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.DeletePerInstanceConfigsRequest |
Get(string, string, string)
Returns all of the details about the specified managed instance group.
Declaration
public virtual InstanceGroupManagersResource.GetRequest Get(string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.GetRequest |
Insert(InstanceGroupManager, string, string)
Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.
Declaration
public virtual InstanceGroupManagersResource.InsertRequest Insert(InstanceGroupManager body, string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManager | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where you want to create the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.InsertRequest |
List(string, string)
Retrieves a list of managed instance groups that are contained within the specified project and zone.
Declaration
public virtual InstanceGroupManagersResource.ListRequest List(string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ListRequest |
ListErrors(string, string, string)
Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported.
Declaration
public virtual InstanceGroupManagersResource.ListErrorsRequest ListErrors(string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. It should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:a-z?)|1-9{0,19}. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ListErrorsRequest |
ListManagedInstances(string, string, string)
Lists all of the instances in the managed instance group. Each instance in the list has a currentAction,
which indicates the action that the managed instance group is performing on the instance. For example, if
the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the
list displays the errors for that failed action. The orderBy query parameter is not supported. The
pageToken
query parameter is supported only if the group's listManagedInstancesResults
field is set to
PAGINATED
.
Declaration
public virtual InstanceGroupManagersResource.ListManagedInstancesRequest ListManagedInstances(string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ListManagedInstancesRequest |
ListPerInstanceConfigs(string, string, string)
Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.
Declaration
public virtual InstanceGroupManagersResource.ListPerInstanceConfigsRequest ListPerInstanceConfigs(string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. It should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group. It should conform to RFC1035. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ListPerInstanceConfigsRequest |
Patch(InstanceGroupManager, string, string, string)
Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
Declaration
public virtual InstanceGroupManagersResource.PatchRequest Patch(InstanceGroupManager body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManager | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where you want to create the managed instance group. |
string | instanceGroupManager | The name of the instance group manager. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.PatchRequest |
PatchPerInstanceConfigs(InstanceGroupManagersPatchPerInstanceConfigsReq, string, string, string)
Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
Declaration
public virtual InstanceGroupManagersResource.PatchPerInstanceConfigsRequest PatchPerInstanceConfigs(InstanceGroupManagersPatchPerInstanceConfigsReq body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersPatchPerInstanceConfigsReq | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. It should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group. It should conform to RFC1035. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.PatchPerInstanceConfigsRequest |
RecreateInstances(InstanceGroupManagersRecreateInstancesRequest, string, string, string)
Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.RecreateInstancesRequest RecreateInstances(InstanceGroupManagersRecreateInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersRecreateInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.RecreateInstancesRequest |
Resize(string, string, string, int)
Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
Declaration
public virtual InstanceGroupManagersResource.ResizeRequest Resize(string project, string zone, string instanceGroupManager, int size)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
int | size | The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ResizeRequest |
ResizeAdvanced(InstanceGroupManagersResizeAdvancedRequest, string, string, string)
Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of the resize method. If you increase the size of the instance group, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating, creatingWithoutRetries, or deleting actions with the get or listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
Declaration
public virtual InstanceGroupManagersResource.ResizeAdvancedRequest ResizeAdvanced(InstanceGroupManagersResizeAdvancedRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersResizeAdvancedRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ResizeAdvancedRequest |
ResumeInstances(InstanceGroupManagersResumeInstancesRequest, string, string, string)
Flags the specified instances in the managed instance group to be resumed. This method increases the targetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of the RESUMING action with the listmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.ResumeInstancesRequest ResumeInstances(InstanceGroupManagersResumeInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersResumeInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.ResumeInstancesRequest |
SetAutoHealingPolicies(InstanceGroupManagersSetAutoHealingRequest, string, string, string)
Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch instead.
Declaration
public virtual InstanceGroupManagersResource.SetAutoHealingPoliciesRequest SetAutoHealingPolicies(InstanceGroupManagersSetAutoHealingRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersSetAutoHealingRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the instance group manager. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.SetAutoHealingPoliciesRequest |
SetInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest, string, string, string)
Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
Declaration
public virtual InstanceGroupManagersResource.SetInstanceTemplateRequest SetInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersSetInstanceTemplateRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.SetInstanceTemplateRequest |
SetTargetPools(InstanceGroupManagersSetTargetPoolsRequest, string, string, string)
Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.
Declaration
public virtual InstanceGroupManagersResource.SetTargetPoolsRequest SetTargetPools(InstanceGroupManagersSetTargetPoolsRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersSetTargetPoolsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.SetTargetPoolsRequest |
StartInstances(InstanceGroupManagersStartInstancesRequest, string, string, string)
Flags the specified instances in the managed instance group to be started. This method increases the targetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STARTING action with the listmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.StartInstancesRequest StartInstances(InstanceGroupManagersStartInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersStartInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.StartInstancesRequest |
StopInstances(InstanceGroupManagersStopInstancesRequest, string, string, string)
Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of the STOPPING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.StopInstancesRequest StopInstances(InstanceGroupManagersStopInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersStopInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.StopInstancesRequest |
SuspendInstances(InstanceGroupManagersSuspendInstancesRequest, string, string, string)
Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces the targetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of the SUSPENDING action with the listmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more than initialDelaySec seconds have passed since instance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.
Declaration
public virtual InstanceGroupManagersResource.SuspendInstancesRequest SuspendInstances(InstanceGroupManagersSuspendInstancesRequest body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersSuspendInstancesRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. |
string | instanceGroupManager | The name of the managed instance group. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.SuspendInstancesRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual InstanceGroupManagersResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.TestIamPermissionsRequest |
Update(InstanceGroupManager, string, string, string)
Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with the listManagedInstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.
Declaration
public virtual InstanceGroupManagersResource.UpdateRequest Update(InstanceGroupManager body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManager | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where you want to create the managed instance group. |
string | instanceGroupManager | The name of the instance group manager. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.UpdateRequest |
UpdatePerInstanceConfigs(InstanceGroupManagersUpdatePerInstanceConfigsReq, string, string, string)
Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.
Declaration
public virtual InstanceGroupManagersResource.UpdatePerInstanceConfigsRequest UpdatePerInstanceConfigs(InstanceGroupManagersUpdatePerInstanceConfigsReq body, string project, string zone, string instanceGroupManager)
Parameters
Type | Name | Description |
---|---|---|
InstanceGroupManagersUpdatePerInstanceConfigsReq | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the managed instance group is located. It should conform to RFC1035. |
string | instanceGroupManager | The name of the managed instance group. It should conform to RFC1035. |
Returns
Type | Description |
---|---|
InstanceGroupManagersResource.UpdatePerInstanceConfigsRequest |