Documentation ¶
Index ¶
- func CtsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateNotification() *def.HttpRequestDef
- func GenReqDefForCreateTracker() *def.HttpRequestDef
- func GenReqDefForDeleteNotification() *def.HttpRequestDef
- func GenReqDefForDeleteTracker() *def.HttpRequestDef
- func GenReqDefForListNotifications() *def.HttpRequestDef
- func GenReqDefForListQuotas() *def.HttpRequestDef
- func GenReqDefForListTraces() *def.HttpRequestDef
- func GenReqDefForListTrackers() *def.HttpRequestDef
- func GenReqDefForUpdateNotification() *def.HttpRequestDef
- func GenReqDefForUpdateTracker() *def.HttpRequestDef
- type CtsClient
- func (c *CtsClient) CreateNotification(request *model.CreateNotificationRequest) (*model.CreateNotificationResponse, error)
- func (c *CtsClient) CreateTracker(request *model.CreateTrackerRequest) (*model.CreateTrackerResponse, error)
- func (c *CtsClient) DeleteNotification(request *model.DeleteNotificationRequest) (*model.DeleteNotificationResponse, error)
- func (c *CtsClient) DeleteTracker(request *model.DeleteTrackerRequest) (*model.DeleteTrackerResponse, error)
- func (c *CtsClient) ListNotifications(request *model.ListNotificationsRequest) (*model.ListNotificationsResponse, error)
- func (c *CtsClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
- func (c *CtsClient) ListTraces(request *model.ListTracesRequest) (*model.ListTracesResponse, error)
- func (c *CtsClient) ListTrackers(request *model.ListTrackersRequest) (*model.ListTrackersResponse, error)
- func (c *CtsClient) UpdateNotification(request *model.UpdateNotificationRequest) (*model.UpdateNotificationResponse, error)
- func (c *CtsClient) UpdateTracker(request *model.UpdateTrackerRequest) (*model.UpdateTrackerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtsClientBuilder ¶
func CtsClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCreateNotification ¶ added in v0.0.68
func GenReqDefForCreateNotification() *def.HttpRequestDef
func GenReqDefForCreateTracker ¶
func GenReqDefForCreateTracker() *def.HttpRequestDef
func GenReqDefForDeleteNotification ¶ added in v0.0.68
func GenReqDefForDeleteNotification() *def.HttpRequestDef
func GenReqDefForDeleteTracker ¶
func GenReqDefForDeleteTracker() *def.HttpRequestDef
func GenReqDefForListNotifications ¶ added in v0.0.68
func GenReqDefForListNotifications() *def.HttpRequestDef
func GenReqDefForListQuotas ¶
func GenReqDefForListQuotas() *def.HttpRequestDef
func GenReqDefForListTraces ¶
func GenReqDefForListTraces() *def.HttpRequestDef
func GenReqDefForListTrackers ¶
func GenReqDefForListTrackers() *def.HttpRequestDef
func GenReqDefForUpdateNotification ¶ added in v0.0.68
func GenReqDefForUpdateNotification() *def.HttpRequestDef
func GenReqDefForUpdateTracker ¶
func GenReqDefForUpdateTracker() *def.HttpRequestDef
Types ¶
type CtsClient ¶
type CtsClient struct {
HcClient *http_client.HcHttpClient
}
func NewCtsClient ¶
func NewCtsClient(hcClient *http_client.HcHttpClient) *CtsClient
func (*CtsClient) CreateNotification ¶ added in v0.0.68
func (c *CtsClient) CreateNotification(request *model.CreateNotificationRequest) (*model.CreateNotificationResponse, error)
配置关键操作通知,可在发生特定操作时,使用预先创建好的SMN主题,向用户手机、邮箱发送消息,也可直接发送http/https消息。常用于实时感知高危操作、触发特定操作或对接用户自有审计分析系统。
func (*CtsClient) CreateTracker ¶
func (c *CtsClient) CreateTracker(request *model.CreateTrackerRequest) (*model.CreateTrackerResponse, error)
云审计服务开通后系统会自动创建一个追踪器,用来关联系统记录的所有操作。目前,一个云账户在一个Region下支持创建一个管理类追踪器和多个数据类追踪器。 云审计服务支持在管理控制台查询近7天内的操作记录。如需保存更长时间的操作记录,您可以在创建追踪器之后通过对象存储服务(Object Storage Service,以下简称OBS)将操作记录实时保存至OBS桶中。
func (*CtsClient) DeleteNotification ¶ added in v0.0.68
func (c *CtsClient) DeleteNotification(request *model.DeleteNotificationRequest) (*model.DeleteNotificationResponse, error)
云审计服务支持删除已创建的关键操作通知。
func (*CtsClient) DeleteTracker ¶
func (c *CtsClient) DeleteTracker(request *model.DeleteTrackerRequest) (*model.DeleteTrackerResponse, error)
云审计服务目前仅支持删除已创建的数据类追踪器。删除追踪器对已有的操作记录没有影响,当您重新开通云审计服务后,依旧可以查看已有的操作记录。
func (*CtsClient) ListNotifications ¶ added in v0.0.68
func (c *CtsClient) ListNotifications(request *model.ListNotificationsRequest) (*model.ListNotificationsResponse, error)
查询创建的关键操作通知规则。
func (*CtsClient) ListQuotas ¶
func (c *CtsClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
查询租户追踪器配额信息。
func (*CtsClient) ListTraces ¶
func (c *CtsClient) ListTraces(request *model.ListTracesRequest) (*model.ListTracesResponse, error)
通过事件列表查询接口,可以查出系统记录的7天内资源操作记录。
func (*CtsClient) ListTrackers ¶
func (c *CtsClient) ListTrackers(request *model.ListTrackersRequest) (*model.ListTrackersResponse, error)
开通云审计服务成功后,您可以在追踪器信息页面查看追踪器的详细信息。详细信息主要包括追踪器名称,用于存储操作事件的OBS桶名称和OBS桶中的事件文件前缀。
func (*CtsClient) UpdateNotification ¶ added in v0.0.68
func (c *CtsClient) UpdateNotification(request *model.UpdateNotificationRequest) (*model.UpdateNotificationResponse, error)
云审计服务支持修改已创建关键操作通知配置项,通过notification_id的字段匹配修改对象,notification_id必须已经存在。
func (*CtsClient) UpdateTracker ¶
func (c *CtsClient) UpdateTracker(request *model.UpdateTrackerRequest) (*model.UpdateTrackerResponse, error)
云审计服务支持修改已创建追踪器的配置项,包括OBS桶转储、关键事件通知、事件转储加密、通过LTS对管理类事件进行检索、事件文件完整性校验以及追踪器启停状态等相关参数,修改追踪器对已有的操作记录没有影响。修改追踪器完成后,系统立即以新的规则开始记录操作。