跳到主要内容
跳到主要内容

组织

获取可用组织列表

返回与请求中的 API 密钥关联的单个组织的列表。

方法路径
GET/v1/organizations

请求

响应

响应模式

名称类型描述
iduuid唯一的组织 ID。
createdAt日期时间组织创建的时间戳。ISO-8601。
名称字符串组织名称。
privateEndpoints数组组织私有端点列表
byocConfig数组组织的 BYOC 配置

示例响应

{
"id": "uuid",
"createdAt": "date-time",
"name": "string",
"privateEndpoints": "Array",
"byocConfig": "Array"
}

获取组织详细信息

返回单个组织的详细信息。为了获取详细信息,认证密钥必须属于该组织。

方法路径
GET/v1/organizations/{organizationId}

请求

路径参数

名称类型描述
organizationIduuid请求的组织 ID。

响应

响应模式

名称类型描述
iduuid唯一的组织 ID。
createdAt日期时间组织创建的时间戳。ISO-8601。
名称字符串组织名称。
privateEndpoints数组组织私有端点列表
byocConfig数组组织的 BYOC 配置

示例响应

{
"id": "uuid",
"createdAt": "date-time",
"name": "string",
"privateEndpoints": "Array",
"byocConfig": "Array"
}

更新组织详细信息

更新组织字段。需要 ADMIN 认证密钥角色。

方法路径
PATCH/v1/organizations/{organizationId}

请求

路径参数

名称类型描述
organizationIduuid要更新的组织 ID。

请求体参数

名称类型描述
名称字符串组织名称。
privateEndpoints

响应

响应模式

名称类型描述
iduuid唯一的组织 ID。
createdAt日期时间组织创建的时间戳。ISO-8601。
名称字符串组织名称。
privateEndpoints数组组织私有端点列表
byocConfig数组组织的 BYOC 配置

示例响应

{
"id": "uuid",
"createdAt": "date-time",
"name": "string",
"privateEndpoints": "Array",
"byocConfig": "Array"
}

组织活动列表

返回所有组织活动的列表。

方法路径
GET/v1/organizations/{organizationId}/activities

请求

路径参数

名称类型描述
organizationIduuid请求的组织 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}

请求

路径参数

名称类型描述
organizationIduuid请求的组织 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"
}