When you pause a cache instance, data entries can no longer be ingested into
the cache. The existing data held in the cache is evicted when the time to live
(TTL) ends. Once paused, the cache can be unpaused by using the
storage.anywhereCaches.resume API.
Required permissions
The authenticated user must have the storage.anywhereCaches.pause IAM permission on the bucket to use this method.
Request
HTTP request
POST https://storage.googleapis.com/storage/v1/b/bucket/anywhereCaches/anywhereCacheID/pause
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# AnywhereCaches: pause\n\nPauses a\n[cache instance](/storage/docs/anywhere-cache)\nin a specified bucket.\n\nWhen you pause a cache instance, data entries can no longer be ingested into\nthe cache. The existing data held in the cache is evicted when the time to live\n(TTL) ends. Once paused, the cache can be unpaused by using the\n[`storage.anywhereCaches.resume` API](/storage/docs/json_api/v1/AnywhereCaches/resume).\n\nRequired permissions\n--------------------\n\nThe authenticated user must have the `storage.anywhereCaches.pause` IAM permission on the bucket to use this method.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://storage.googleapis.com/storage/v1/b/bucket/anywhereCaches/anywhereCacheID/pause\n```\n\nIn addition to [standard query parameters](/storage/docs/json_api/v1/parameters#query),\nthe following parameters apply to this method.\n\nTo see an example of how to include parameters in a request, see the\n[JSON API Overview](/storage/docs/json_api#query_parameters) page.\n\n### Parameters\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns an\n[AnywhereCache resource](/storage/docs/json_api/v1/AnywhereCache#resource-representation).\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]