EndpointsSet a connection policy

Vault connections

Set a connection policy

Replaces the bindings attached to this connection.

POST/vaults/{vault}/connections/{connection}:setIamPolicy
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

if-matchstringrequired

The etag of the resource version the client last read. Required on writes when the resource exposes an etag field. Mismatch returns 409 ABORTED with the current etag in the error metadata.

Required string length: 1 - 256

Example: "42"

vaultstringrequired

A vault id chosen by its creator, unique in the Workspace. default is the Workspace vault.

Pattern: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$

Example: "default"

connectionstringrequired

A connection id

Pattern: ^conn_[^\s/]{1,64}$

Example: "conn_j572abc123def456"

Body

application/json
bindingsobject[]required

Maximum array length: 100 elements

child attributes
bindings.rolestringrequired

A basic role roles/<name> or a predefined role roles/<service>.<role>

Pattern: ^roles\/(owner|admin|member|viewer|[a-z][a-z0-9-]{0,62}\.[a-z][A-Za-z]{0,62})$

Example: "roles/admin"

bindings.membersstring[]required

Required array length: 1 - 64 elements

child attributes

Required string length: 1 - 100

Maximum string length: 512

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

Required array length: 1 - 100 elements

Response

application/json

Policy

bindingsobject[]required

Maximum array length: 100 elements

child attributes
bindings.rolestringrequired

A basic role roles/<name> or a predefined role roles/<service>.<role>

Pattern: ^roles\/(owner|admin|member|viewer|[a-z][a-z0-9-]{0,62}\.[a-z][A-Za-z]{0,62})$

Example: "roles/admin"

bindings.membersstring[]required

Required array length: 1 - 64 elements

child attributes

Required string length: 1 - 100

Maximum string length: 512

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

Required array length: 1 - 100 elements

etagstringrequired

Pass as If-Match on setIamPolicy. OUTPUT_ONLY.

Maximum string length: 64