AnywhereCaches: update

Updates a cache instance in a specified bucket. Only caches in a RUNNING state can be updated.

Required permissions

The authenticated user must have the storage.anywhereCaches.update IAM permission on the bucket to use this method.

Request

HTTP request

PATCH https://storage.googleapis.com/storage/v1/b/bucket/anywhereCaches/anywhereCacheID

In addition to standard query parameters, the following parameters apply to this method.

Parameters

Parameter name Value Description
Path parameters
bucket string Name of a bucket.
anywhereCacheID string A value that, along with the bucket's name, uniquely identifies the cache.

To see an example of how to include parameters in a request, see the JSON API Overview page.

Request body

In the request body, supply an AnywhereCache resource with the following properties:

Property name Value Description Notes
Required Properties
ttl string The time to live (TTL) of data in the cache, in seconds. If not specified, it defaults to 86400s (24 hours). writable
admissionPolicy string The cache's admission policy. Values can be admit-on-first-miss or admit-on-second-miss. If not specified, it defaults to admit-on-first-miss. writable

Response

If successful, this method returns a google.longrunning.Operation in the response body.