Skip to main content
POST
Create a service binding

Authorizations

Authorization
string
header
required

An sre_ak_* API key holding the api:admin scope (or api:config_read, which every write refuses with read_only_key).

Body

application/json
service
string
required

The service to bind.

account_id
string | null

AWS account (twelve digits) the service lives in; null searches every account.

environment
string

Default "", meaning no particular environment.

log_filter
string

A Logs Insights filter fragment. "" clears it.

log_groups
string[]

CloudWatch log group names, replacing the stored list.

log_inline_fields
string[] | null

Up to 3 JSON log field keys the live stream and the Explorer show inline on a line of this service, in order (a nested field by its dotted key, user.id). Set on the binding with no environment only: it applies to every environment. null or [] clears it back to the built-in choice (trace and request ids, then the first fields of the line).

Maximum array length: 3
metric_selectors
object[]

{namespace, metric_name, dimensions?: [{name, value}]} objects, replacing the stored list.

region
string | null

AWS region the service lives in, for example us-east-1; null searches every region.

trace_service_names
string[]

X-Ray service names, replacing the stored list.

Response

Created.