---
title: "POST /projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy"
method: POST
path: "/projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy"
tags: ["backendBuckets"]
---

# POST /projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy

`POST /projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy`

Sets the edge security policy for the specified backend bucket.

## Path parameters

- `project` string, required
- `backendBucket` string, required

## Query parameters

- `requestId` string

## Request body

- SecurityPolicyReference
  - `securityPolicy` string

## Response `200`

Successful response

---

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