---
title: "POST /b/{bucket}/anywhereCaches"
method: POST
path: "/b/{bucket}/anywhereCaches"
tags: ["anywhereCaches"]
---

# POST /b/{bucket}/anywhereCaches

`POST /b/{bucket}/anywhereCaches`

Creates an Anywhere Cache instance.

## Path parameters

- `bucket` string, required

## Request body

- AnywhereCache — An Anywhere Cache instance.
  - `kind` string — The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
  - `id` string — The ID of the resource, including the project number, bucket name and anywhere cache ID.
  - `selfLink` string — The link to this cache instance.
  - `bucket` string — The name of the bucket containing this cache instance.
  - `anywhereCacheId` string — The ID of the Anywhere cache instance.
  - `zone` string — The zone in which the cache instance is running. For example, us-central1-a.
  - `state` string — The current state of the cache instance.
  - `createTime` string, date-time — The creation time of the cache instance in RFC 3339 format.
  - `updateTime` string, date-time — The modification time of the cache instance metadata in RFC 3339 format.
  - `ttl` string, google-duration — The TTL of all cache entries in whole seconds. e.g., "7200s".
  - `admissionPolicy` string — The cache-level entry admission policy.
  - `pendingUpdate` boolean — True if the cache instance has an active Update long-running operation.
  - `ingestOnWrite` boolean — Specifies whether objects are ingested into the cache upon write.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/storage.md) · [All operations](https://skmtc.dev/google/apis/storage/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/storage/revisions/4623cd2c71cf/schema)
