AnywhereCache

The AnywhereCache resource represents an Anywhere Cache cache instance in Cloud Storage.

To try out the methods for this resource, see Methods.

Resource representation

{
  "kind": "storage#AnywhereCache"
  "id": string,
  "selfLink": string,
  "bucket": string,
  "zone": string,
  "state": string,
  "createTime": datetime,
  "updateTime": datetime,
  "ttl": string,
  "admissionPolicy": string,
  "pendingUpdate": boolean
}
Property nameValueDescriptionNotes
kindstringThe kind of item this is. For caches, this is always "storage#anywhereCache".
idstringThe ID of the cache instance, formatted as BUCKET_NAME/ANYWHERE_CACHE_ZONE_ID. For example, example-bucket/us-east1-b.
bucketstringThe name of the bucket that owns the cache instance. For example, example-bucket.Writeable
zonestringThe zone in which the cache instance is running. For example, us-east1-b.Writeable
statestringThe status of the cache instance. Can be CREATING, RUNNING, DISABLED, or PAUSED.
createTimedatetimeThe creation time of the cache instance.
updateTimedatetimeThe last modification time of the cache instance.
ttlstringThe TTL (time to live) of data in the cache, in seconds.Writeable
admissionPolicystringThe admission policy of the cache instance. Values can be admit-on-second-miss or admit-on-first-miss.Writeable
pendingUpdatebooleanTrue if the cache instance has an active UpdateAnywhereCache long-running operation attached.

Methods

create
Create an AnywhereCache.
disable
Disable an AnywhereCache.
get
Get an AnywhereCache.
list
Retrieve a list of AnywhereCaches.
pause
Pause the data ingestion of an AnywhereCache.
resume
Resume the data ingestion of an AnywhereCache, or revoke the disablement of the AnywhereCache.
update
Update an Anywhere Cache cache.