Skip to main content

policy_service.proto

path agntcy/identity/service/v1alpha1/policy_service.proto

package agntcy.identity.service.v1alpha1


Messages​

CreatePolicyRequest​

NameTypeDescription
namestringA human-readable name for the Policy.
descriptionoptional stringA human-readable description for the Policy.
assigned_tostringThe requester application that this policy applies to.

CreateRuleRequest​

NameTypeDescription
policy_idstringThe Policy Id to which these Rules belong.
namestringA human-readable name for the Rule.
descriptionoptional stringA human-readable description for the Rule.
tasksrepeated stringThe tasks that this Rule applies to.
needs_approvaloptional boolNeed User Approval for this Rule.
actionRuleActionThe action applied for the rule when calling the tasks

DeletePolicyRequest​

NameTypeDescription
policy_idstringPolicy Id to delete.

DeleteRuleRequest​

NameTypeDescription
policy_idstringThe Policy Id to which these Rules belong.
rule_idstringRule Id to delete.

GetPoliciesCountRequest​

NameTypeDescription

GetPoliciesCountResponse​

NameTypeDescription
totalint64The total count

GetPolicyRequest​

NameTypeDescription
policy_idstringPolicy Id to get.

GetRuleRequest​

NameTypeDescription
policy_idstringThe Policy Id to which these Rules belong.
rule_idstringRule Id to get.

ListPoliciesRequest​

NameTypeDescription
pageoptional int32The current page of the pagination
sizeoptional int32The page size of the pagination
queryoptional stringThe search query
app_idsrepeated stringA filter used to fetch policies only for the specified Agentic Services
rules_for_app_idsrepeated stringA filter used to fetch policies where the rules applies for the specified Agentic Services

ListPoliciesResponse​

NameTypeDescription
policiesrepeated PolicyA list of Policies.
paginationoptional PagedResponsePagination response.

ListRulesRequest​

NameTypeDescription
policy_idstringThe Policy Id to which these Rules belong.
pageoptional int32The current page of the pagination
sizeoptional int32The page size of the pagination
queryoptional stringThe search query

ListRulesResponse​

NameTypeDescription
rulesrepeated RuleA list of Rules.
paginationoptional PagedResponsePagination response.

UpdatePolicyRequest​

NameTypeDescription
policy_idstringPolicy Id to update.
namestringA human-readable name for the Policy.
descriptionoptional stringA human-readable description for the Policy.
assigned_tostringThe requester application that this policy applies to.

UpdateRuleRequest​

NameTypeDescription
policy_idstringThe Policy Id to which these Rules belong.
rule_idstringRule Id to update.
namestringA human-readable name for the Rule.
descriptionoptional stringA human-readable description for the Rule.
tasksrepeated stringThe tasks that this Rule applies to.
needs_approvaloptional boolNeed User Approval for this Rule.
actionRuleActionThe action applied for the rule when calling the tasks

Services​

PolicyService​

PolicyService manages policy.

ListPolicies​

MethodListPolicies
RequestListPoliciesRequest
ResponseListPoliciesResponse
DescriptionList Policies.

GetPoliciesCount​

MethodGetPoliciesCount
RequestGetPoliciesCountRequest
ResponseGetPoliciesCountResponse
DescriptionGet policies total count.

GetPolicy​

MethodGetPolicy
RequestGetPolicyRequest
ResponsePolicy
DescriptionGet Policy by id

CreatePolicy​

MethodCreatePolicy
RequestCreatePolicyRequest
ResponsePolicy
DescriptionCreate a new Policy.

UpdatePolicy​

MethodUpdatePolicy
RequestUpdatePolicyRequest
ResponsePolicy
DescriptionUpdate a Policy.

DeletePolicy​

MethodDeletePolicy
RequestDeletePolicyRequest
ResponseEmpty
DescriptionDelete an existing Policy.

ListRules​

MethodListRules
RequestListRulesRequest
ResponseListRulesResponse
DescriptionList Rules.

GetRule​

MethodGetRule
RequestGetRuleRequest
ResponseRule
DescriptionGet Rule by id

CreateRule​

MethodCreateRule
RequestCreateRuleRequest
ResponseRule
DescriptionCreate a new Rule.

UpdateRule​

MethodUpdateRule
RequestUpdateRuleRequest
ResponseRule
DescriptionUpdate a Rule.

DeleteRule​

MethodDeleteRule
RequestDeleteRuleRequest
ResponseEmpty
DescriptionDelete an existing Rule.