Requires authorization
Update the entire content of the Autoscaler resource. This method supports patch semantics. Try it now .
Request
HTTP request
PATCH https://www.googleapis.com/autoscaler/v1beta2/projects/project/zones/zone/autoscalers/autoscaler
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
autoscaler
|
string
|
Name of the Autoscaler resource. |
project
|
string
|
Project ID of Autoscaler resource. |
zone
|
string
|
Zone name of Autoscaler resource. |
Authorization
This request requires authorization with the following scope ( read more about authentication and authorization ).
Scope |
---|
https://www.googleapis.com/auth/compute
|
Request body
In the request body, supply an Autoscalers resource .
Response
If successful, this method returns a response body with the following structure:
{ "kind": "autoscaler#operation", "id": unsigned long, "creationTimestamp": string, "name": string, "zone": string, "clientOperationId": string, "operationType": string, "targetLink": string, "targetId": unsigned long, "status": string, "statusMessage": string, "user": string, "progress": integer, "insertTime": string, "startTime": string, "endTime": string, "error": { "errors": [ { "code": string, "location": string, "message": string } ] }, "warnings": [ { "code": string, "message": string, "data": [ { "key": string, "value": string } ] } ], "httpErrorStatusCode": integer, "httpErrorMessage": string, "selfLink": string, "region": string }
Property name | Value | Description | Notes |
---|---|---|---|
kind
|
string
|
[Output Only]
Type of the resource. Always
autoscaler#operation
for Zone Operation resources.
|
|
id
|
unsigned long
|
[Output Only] Unique identifier for the resource, generated by the server. | |
creationTimestamp
|
string
|
[Output Only] Creation timestamp in RFC3339 text format. | |
name
|
string
|
[Output Only] Name of the resource. | |
zone
|
string
|
[Output Only] URL of the zone where the zone operation resides. | |
clientOperationId
|
string
|
[Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project. | |
operationType
|
string
|
[Output Only]
Type of the operation. Operations include
insert
,
update
, and
delete
.
|
|
targetLink
|
string
|
[Output Only] URL of the resource the operation is mutating. | |
targetId
|
unsigned long
|
[Output Only] Unique target id which identifies a particular incarnation of the target. | |
status
|
string
|
[Output Only]
Status of the operation.
Acceptable values are:
|
|
statusMessage
|
string
|
[Output Only] An optional textual description of the current status of the operation. | |
user
|
string
|
[Output Only]
User who requested the operation, for example:
[email protected]
.
|
|
progress
|
integer
|
[Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses. | |
insertTime
|
string
|
[Output Only] The time that this operation was requested. This is in RFC3339 text format. | |
startTime
|
string
|
[Output Only] The time that this operation was started by the server. This is in RFC3339 text format. | |
endTime
|
string
|
[Output Only] The time that this operation was completed. This is in RFC3339 text format. | |
error
|
object
|
[Output Only] If errors occurred during processing of this operation, this field will be populated. | |
error.
errors[]
|
list
|
[Output Only] The array of errors encountered while processing this operation. | |
error.errors[].
code
|
string
|
[Output Only] The error type identifier for this error. | |
error.errors[].
location
|
string
|
[Output Only] Indicates the field in the request which caused the error. This property is optional. | |
error.errors[].
message
|
string
|
[Output Only] An optional, human-readable error message. | |
warnings[]
|
list
|
[Output Only] If there are issues with this operation, a warning is returned. | |
warnings[].
code
|
string
|
[Output Only]
The warning type identifier for this warning.
Acceptable values are:
|
|
warnings[].
message
|
string
|
[Output Only] The warning type identifier for this warning. | |
warnings[].
data[]
|
list
|
[Output Only] Metadata for this warning in 'key: value' format. | |
warnings[].data[].
key
|
string
|
[Output Only] Metadata key for this warning. | |
warnings[].data[].
value
|
string
|
[Output Only] Metadata value for the specified key. | |
httpErrorStatusCode
|
integer
|
[Output Only]
If operation fails, the HTTP error status code returned, for example:
404
.
|
|
httpErrorMessage
|
string
|
[Output Only]
If operation fails, the HTTP error message returned, for example:
NOT FOUND
.
|
|
selfLink
|
string
|
[Output Only] Server-defined fully-qualified URL for this resource. | |
region
|
string
|
[Output Only] URL of the region where the operation resides. Only available when performing regional operations. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.