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