AnywhereCaches: create

Creates a cache instance in a specified bucket.

Required permissions

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

Request

HTTP request

POST https://storage.googleapis.com/storage/v1/b/bucket/anywhereCaches

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

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

Parameters

Parameter name Value Description
Path parameters
bucket string Name of a bucket.

Request body

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

Property name Value Description Notes
Required Properties
zone string The zone that the cache instance will run in.
Optional 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, defaults to admit-on-first-miss. writable

Response

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