agentrouter.policy.v1.PolicyService
PolicyService is the CRUD and resolution surface for fraser's budget/policy control plane: budget policies, budget alerts, user groups, tag schema, and api-key tags.
Introduction
AddApiKeyTag
AddApiKeyTag attaches a (tag_key, tag_value) pair to an API key. Both
RemoveApiKeyTag
RemoveApiKeyTag detaches a tag from an API key.
CreateBudgetPolicy
CreateBudgetPolicy creates a new budget policy. For API_KEY scope, the
UpdateBudgetPolicy
UpdateBudgetPolicy updates mutable budget policy fields. Omitted/empty
DeleteBudgetPolicy
DeleteBudgetPolicy deactivates a budget policy (is_active = false); the
PurgeBudgetPolicy
PurgeBudgetPolicy permanently removes an INACTIVE budget policy.
SetBudgetPolicyStatus
SetBudgetPolicyStatus toggles a budget policy's active/inactive state
CreateFallbackChainPolicy
CreateFallbackChainPolicy creates a new fallback-chain policy scoped to
UpdateFallbackChainPolicy
UpdateFallbackChainPolicy updates mutable fallback chain policy fields.
DeleteFallbackChainPolicy
DeleteFallbackChainPolicy deletes a fallback chain policy.
SetFallbackChainPolicyStatus
SetFallbackChainPolicyStatus toggles a fallback chain policy's
CreateRateLimitPolicy
CreateRateLimitPolicy creates a new rate-limit policy.
DeleteRateLimitPolicy
DeleteRateLimitPolicy deletes a rate-limit policy.
SetRateLimitPolicyStatus
SetRateLimitPolicyStatus toggles a rate-limit policy's active/inactive
UpdateRateLimitPolicy
UpdateRateLimitPolicy updates mutable rate-limit policy fields.
CreateTagSchemaEntry
CreateTagSchemaEntry adds an allowed (tag_key, tag_value) pair to the
DeleteTagSchemaEntry
DeleteTagSchemaEntry removes an allowed (tag_key, tag_value) pair from
CreateTrafficSplitPolicy
CreateTrafficSplitPolicy creates a new traffic-split policy scoped to a
DeleteTrafficSplitPolicy
DeleteTrafficSplitPolicy deletes a traffic split policy.
SetTrafficSplitPolicyStatus
SetTrafficSplitPolicyStatus toggles a traffic split policy's
UpdateTrafficSplitPolicy
UpdateTrafficSplitPolicy updates mutable traffic split policy fields.
CreateUserGroup
CreateUserGroup creates a new user group (team).
DeleteUserGroup
DeleteUserGroup deletes a user group.
UpdateUserGroup
UpdateUserGroup updates mutable user group fields. Omitted/empty scalar
ListApiKeyTags
ListApiKeyTags returns tags attached to an API key.
ListBudgetAlerts
ListBudgetAlerts returns system-fired budget alerts matching the
GetBudgetAlert
GetBudgetAlert returns a single budget alert by id.
ListBudgetPolicies
ListBudgetPolicies returns budget policies matching the specified
GetBudgetPolicy
GetBudgetPolicy returns a single budget policy by id.
GetPolicyCoverage
GetPolicyCoverage reports whether a scope reference has at least one
GetEffectivePolicy
GetEffectivePolicy resolves every BudgetPolicy applicable to a
ListFallbackChainPolicies
ListFallbackChainPolicies returns fallback chain policies matching the
GetFallbackChainPolicy
GetFallbackChainPolicy returns a single fallback chain policy by id.
ListPolicies
ListPolicies returns a UNIFIED, read-only, paginated list of every
ListRateLimitPolicies
ListRateLimitPolicies returns rate-limit policies matching the specified
GetRateLimitPolicy
GetRateLimitPolicy returns a single rate-limit policy by id.
GetRateLimitPolicyAnalytics
GetRateLimitPolicyAnalytics computes a 'would-have-limited' analytics
ListTagSchema
ListTagSchema returns allowed tag key/value pairs matching the specified
ListTrafficSplitPolicies
ListTrafficSplitPolicies returns traffic split policies matching the
GetTrafficSplitPolicy
GetTrafficSplitPolicy returns a single traffic split policy by id.
ListUserGroups
ListUserGroups returns user groups matching the specified filters.
GetUserGroup
GetUserGroup returns a single user group by id.