组织
获取可用组织列表
返回与请求中的 API 密钥关联的单个组织的列表。
| 方法 | 路径 |
|---|---|
| GET | /v1/organizations |
请求
响应
响应模式
| 名称 | 类型 | 描述 |
|---|---|---|
| id | uuid | 唯一的组织 ID。 |
| createdAt | 日期时间 | 组织创建的时间戳。ISO-8601。 |
| 名称 | 字符串 | 组织名称。 |
| privateEndpoints | 数组 | 组织私有端点列表 |
| byocConfig | 数组 | 组织的 BYOC 配置 |
示例响应
{
"id": "uuid",
"createdAt": "date-time",
"name": "string",
"privateEndpoints": "Array",
"byocConfig": "Array"
}
获取组织详细信息
返回单个组织的详细信息。为了获取详细信息,认证密钥必须属于该组织。
| 方法 | 路径 |
|---|---|
| GET | /v1/organizations/{organizationId} |
请求
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
| organizationId | uuid | 请求的组织 ID。 |
响应
响应模式
| 名称 | 类型 | 描述 |
|---|---|---|
| id | uuid | 唯一的组织 ID。 |
| createdAt | 日期时间 | 组织创建的时间戳。ISO-8601。 |
| 名称 | 字符串 | 组织名称。 |
| privateEndpoints | 数组 | 组织私有端点列表 |
| byocConfig | 数组 | 组织的 BYOC 配置 |
示例响应
{
"id": "uuid",
"createdAt": "date-time",
"name": "string",
"privateEndpoints": "Array",
"byocConfig": "Array"
}
更新组织详细信息
更新组织字段。需要 ADMIN 认证密钥角色。
| 方法 | 路径 |
|---|---|
| PATCH | /v1/organizations/{organizationId} |
请求
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
| organizationId | uuid | 要更新的组织 ID。 |
请求体参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 名称 | 字符串 | 组织名称。 |
| privateEndpoints |
响应
响应模式
| 名称 | 类型 | 描述 |
|---|---|---|
| id | uuid | 唯一的组织 ID。 |
| createdAt | 日期时间 | 组织创建的时间戳。ISO-8601。 |
| 名称 | 字符串 | 组织名称。 |
| privateEndpoints | 数组 | 组织私有端点列表 |
| byocConfig | 数组 | 组织的 BYOC 配置 |
示例响应
{
"id": "uuid",
"createdAt": "date-time",
"name": "string",
"privateEndpoints": "Array",
"byocConfig": "Array"
}
组织活动列表
返回所有组织活动的列表。
| 方法 | 路径 |
|---|---|
| GET | /v1/organizations/{organizationId}/activities |
请求
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
| organizationId | uuid | 请求的组织 ID。 |
| from_date | 日期时间 | 搜索的起始日期 |
| to_date | 日期时间 | 搜索的结束日期 |
响应
响应模式
| 名称 | 类型 | 描述 |
|---|---|---|
| id | 字符串 | 唯一的活动 ID。 |
| createdAt | 日期时间 | 活动的时间戳。ISO-8601。 |
| 类型 | 字符串 | 活动类型。 |
| actorType | 字符串 | 参与者类型:'用户'、'支持'、'系统'、'API'。 |
| actorId | 字符串 | 唯一的参与者 ID。 |
| actorDetails | 字符串 | 关于参与者的附加信息。 |
| actorIpAddress | 字符串 | 参与者的 IP 地址。为 '用户' 和 'API' 参与者类型定义。 |
| organizationId | 字符串 | 活动范围:此活动相关的组织 ID。 |
| serviceId | 字符串 | 活动范围:此活动相关的服务 ID。 |
示例响应
{
"id": "string",
"createdAt": "date-time",
"type": "string",
"actorType": "string",
"actorId": "string",
"actorDetails": "string",
"actorIpAddress": "string",
"organizationId": "string",
"serviceId": "string"
}
组织活动
按 ID 返回单个组织活动。
| 方法 | 路径 |
|---|---|
| GET | /v1/organizations/{organizationId}/activities/{activityId} |
请求
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
| organizationId | uuid | 请求的组织 ID。 |
| activityId | 字符串 | 请求的活动 ID。 |
响应
响应模式
| 名称 | 类型 | 描述 |
|---|---|---|
| id | 字符串 | 唯一的活动 ID。 |
| createdAt | 日期时间 | 活动的时间戳。ISO-8601。 |
| 类型 | 字符串 | 活动类型。 |
| actorType | 字符串 | 参与者类型:'用户'、'支持'、'系统'、'API'。 |
| actorId | 字符串 | 唯一的参与者 ID。 |
| actorDetails | 字符串 | 关于参与者的附加信息。 |
| actorIpAddress | 字符串 | 参与者的 IP 地址。为 '用户' 和 'API' 参与者类型定义。 |
| organizationId | 字符串 | 活动范围:此活动相关的组织 ID。 |
| serviceId | 字符串 | 活动范围:此活动相关的服务 ID。 |
示例响应
{
"id": "string",
"createdAt": "date-time",
"type": "string",
"actorType": "string",
"actorId": "string",
"actorDetails": "string",
"actorIpAddress": "string",
"organizationId": "string",
"serviceId": "string"
}