- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Retrieves a list of resize requests that are contained in the managed instance group.
HTTP request
GET https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID for this request. |
zone |
The name of the zone where the managed instance group is located. The name should conform to RFC1035. |
instance |
The name of the managed instance group. The name should conform to RFC1035. Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
max |
The maximum number of results per page that should be returned. If the number of available results is larger than |
page |
Specifies a page token to use. Set |
filter |
A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either For example, if you are filtering Compute Engine instances, you can exclude instances named The
You can also filter nested fields. For example, you could specify To filter on multiple expressions, provide each separate expression within parentheses. For example:
By default, each expression is an
If you want to use a regular expression, use the
The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use You cannot combine constraints on multiple fields using regular expressions. |
order |
Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using Currently, only sorting by |
return |
Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. |
Request body
The request body must be empty.
Response body
[Output Only] A list of resize requests.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "kind": string, "id": string, "items": [ { "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "zone": string, "resizeBy": integer, "requestedRunDuration": { "seconds": string, "nanos": integer }, "state": enum, "status": { "error": { "errors": [ { "code": string, "location": string, "message": string, "errorDetails": [ { "errorInfo": { "reason": string, "domain": string, "metadatas": { string: string, ... } }, "quotaInfo": { "metricName": string, "limitName": string, "dimensions": { string: string, ... }, "limit": number, "futureLimit": number, "rolloutStatus": enum }, "help": { "links": [ { "description": string, "url": string } ] }, "localizedMessage": { "locale": string, "message": string } } ] } ] }, "lastAttempt": { "error": { "errors": [ { "code": string, "location": string, "message": string, "errorDetails": [ { // Union field |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always |
id |
[Output Only] Unique identifier for the resource; defined by the server. |
items[] |
A list of resize request resources. |
items[]. |
[Output Only] The resource type, which is always |
items[]. |
[Output Only] A unique identifier for this resource type. The server generates this identifier. |
items[]. |
[Output Only] The creation timestamp for this resize request in RFC3339 text format. |
items[]. |
The name of this resize request. The name must be 1-63 characters long, and comply with RFC1035. |
items[]. |
An optional description of this resource. |
items[]. |
[Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests. |
items[]. |
The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'. |
items[]. |
Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted. |
items[]. |
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years |
items[]. |
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 |
items[]. |
[Output only] Current state of the request. |
items[]. |
[Output only] Status of the request. |
items[]. |
[Output only] Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the lastAttempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry. |
items[]. |
[Output Only] The array of errors encountered while processing this operation. |
items[]. |
[Output Only] The error type identifier for this error. |
items[]. |
[Output Only] Indicates the field in the request that caused the error. This property is optional. |
items[]. |
[Output Only] An optional, human-readable error message. |
items[]. |
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. |
items[]. |
|
items[]. |
The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of |
items[]. |
The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". |
items[]. |
Additional structured details about this error. Keys must match /[a-z][a-zA-Z0-9-_]+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. |
items[]. |
|
items[]. |
The Compute Engine quota metric name. |
items[]. |
The name of the quota limit. |
items[]. |
The map holding related quota dimensions. |
items[]. |
Current effective quota limit. The limit's unit depends on the quota type or metric. |
items[]. |
Future quota limit being rolled out. The limit's unit depends on the quota type or metric. |
items[]. |
Rollout status of the future quota limit. |
items[]. |
|
items[]. |
URL(s) pointing to additional information on handling the current error. |
items[]. |
Describes what the link offers. |
items[]. |
The URL of the link. |
items[]. |
|
items[]. |
The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" |
items[]. |
The localized error message in the above locale. |
items[]. |
[Output only] Information about the last attempt to fulfill the request. The value is temporary since the ResizeRequest can retry, as long as it's still active and the last attempt value can either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, the value may be stale and no longer show an active problem. The value is cleared when ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED the error describing it will be storred in the "error" field only. |
items[]. |
Errors that prevented the ResizeRequest to be fulfilled. |
items[]. |
[Output Only] The array of errors encountered while processing this operation. |
items[]. |
[Output Only] The error type identifier for this error. |
items[]. |
[Output Only] Indicates the field in the request that caused the error. This property is optional. |
items[]. |
[Output Only] An optional, human-readable error message. |
items[]. |
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. |
items[]. |
|
items[]. |
The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of |
items[]. |
The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". |
items[]. |
Additional structured details about this error. Keys must match /[a-z][a-zA-Z0-9-_]+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. |
items[]. |
|
items[]. |
The Compute Engine quota metric name. |
items[]. |
The name of the quota limit. |
items[]. |
The map holding related quota dimensions. |
items[]. |
Current effective quota limit. The limit's unit depends on the quota type or metric. |
items[]. |
Future quota limit being rolled out. The limit's unit depends on the quota type or metric. |
items[]. |
Rollout status of the future quota limit. |
items[]. |
|
items[]. |
URL(s) pointing to additional information on handling the current error. |
items[]. |
Describes what the link offers. |
items[]. |
The URL of the link. |
items[]. |
|
items[]. |
The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" |
items[]. |
The localized error message in the above locale. |
items[]. |
[Output Only] The URL for this resize request. The server defines this URL. |
items[]. |
[Output Only] Server-defined URL for this resource with the resource id. |
next |
[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than |
self |
[Output Only] Server-defined URL for this resource. |
warning |
[Output Only] Informational warning message. |
warning. |
[Output Only] A warning code, if applicable. For example, Compute Engine returns |
warning. |
[Output Only] A human-readable description of the warning code. |
warning. |
[Output Only] Metadata about this warning in "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
warning. |
[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be |
warning. |
[Output Only] A warning data value corresponding to the key. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/compute
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.