dis__CreatePolicies
Adds permission policies to a specified DIS stream or channel, granting a user putRecords or getRecords access. Use it to control who can write to or read from a stream.
Instructions
[DIS] 本接口用于给指定通道添加权限策略。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action_type": "<action_type>",
"effect": "<effect>",
"principal_name": "<principal_name>",
"project_id": "<project_id>",
"stream_id": "<stream_id>",
"stream_name": "<stream_name>"
},
"name": "dis__CreatePolicies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | Yes | 授权影响类型。 | |
| stream_id | Yes | 通道唯一标识符。 | |
| project_id | Yes | 项目ID。 | |
| action_type | Yes | 授权操作类型。 | |
| stream_name | Yes | 需要添加授权策略的通道名称。 | |
| principal_name | Yes | 授权用户。 |