v3

package
v0.1.123 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtsClientBuilder

func CtsClientBuilder() *httpclient.HcHttpClientBuilder

func GenReqDefForBatchCreateResourceTags added in v0.1.61

func GenReqDefForBatchCreateResourceTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteResourceTags added in v0.1.61

func GenReqDefForBatchDeleteResourceTags() *def.HttpRequestDef

func GenReqDefForCheckObsBuckets added in v0.1.61

func GenReqDefForCheckObsBuckets() *def.HttpRequestDef

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 GenReqDefForListOperations added in v0.1.61

func GenReqDefForListOperations() *def.HttpRequestDef

func GenReqDefForListQuotas

func GenReqDefForListQuotas() *def.HttpRequestDef

func GenReqDefForListTraceResources added in v0.1.61

func GenReqDefForListTraceResources() *def.HttpRequestDef

func GenReqDefForListTraces

func GenReqDefForListTraces() *def.HttpRequestDef

func GenReqDefForListTrackers

func GenReqDefForListTrackers() *def.HttpRequestDef

func GenReqDefForListUserResources added in v0.1.61

func GenReqDefForListUserResources() *def.HttpRequestDef

func GenReqDefForUpdateNotification added in v0.0.68

func GenReqDefForUpdateNotification() *def.HttpRequestDef

func GenReqDefForUpdateTracker

func GenReqDefForUpdateTracker() *def.HttpRequestDef

Types

type BatchCreateResourceTagsInvoker added in v0.1.61

type BatchCreateResourceTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateResourceTagsInvoker) GetBaseInvoker added in v0.1.118

func (i *BatchCreateResourceTagsInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*BatchCreateResourceTagsInvoker) Invoke added in v0.1.61

type BatchDeleteResourceTagsInvoker added in v0.1.61

type BatchDeleteResourceTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteResourceTagsInvoker) GetBaseInvoker added in v0.1.118

func (i *BatchDeleteResourceTagsInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*BatchDeleteResourceTagsInvoker) Invoke added in v0.1.61

type CheckObsBucketsInvoker added in v0.1.61

type CheckObsBucketsInvoker struct {
	*invoker.BaseInvoker
}

func (*CheckObsBucketsInvoker) GetBaseInvoker added in v0.1.118

func (i *CheckObsBucketsInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*CheckObsBucketsInvoker) Invoke added in v0.1.61

type CreateNotificationInvoker added in v0.0.90

type CreateNotificationInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateNotificationInvoker) GetBaseInvoker added in v0.1.118

func (i *CreateNotificationInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*CreateNotificationInvoker) Invoke added in v0.0.90

type CreateTrackerInvoker added in v0.0.90

type CreateTrackerInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTrackerInvoker) GetBaseInvoker added in v0.1.118

func (i *CreateTrackerInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*CreateTrackerInvoker) Invoke added in v0.0.90

type CtsClient

type CtsClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewCtsClient

func NewCtsClient(hcClient *httpclient.HcHttpClient) *CtsClient

func (*CtsClient) BatchCreateResourceTags added in v0.1.61

BatchCreateResourceTags 批量添加CTS资源标签

批量添加CTS资源标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CtsClient) BatchCreateResourceTagsInvoker added in v0.1.61

func (c *CtsClient) BatchCreateResourceTagsInvoker(request *model.BatchCreateResourceTagsRequest) *BatchCreateResourceTagsInvoker

BatchCreateResourceTagsInvoker 批量添加CTS资源标签

func (*CtsClient) BatchDeleteResourceTags added in v0.1.61

BatchDeleteResourceTags 批量删除CTS资源标签

批量删除CTS资源标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CtsClient) BatchDeleteResourceTagsInvoker added in v0.1.61

func (c *CtsClient) BatchDeleteResourceTagsInvoker(request *model.BatchDeleteResourceTagsRequest) *BatchDeleteResourceTagsInvoker

BatchDeleteResourceTagsInvoker 批量删除CTS资源标签

func (*CtsClient) CheckObsBuckets added in v0.1.61

func (c *CtsClient) CheckObsBuckets(request *model.CheckObsBucketsRequest) (*model.CheckObsBucketsResponse, error)

CheckObsBuckets 检查已经配置OBS桶是否可以成功转储

检查已经配置OBS桶是否可以成功转储。

Please refer to HUAWEI cloud API Explorer for details.

func (*CtsClient) CheckObsBucketsInvoker added in v0.1.61

func (c *CtsClient) CheckObsBucketsInvoker(request *model.CheckObsBucketsRequest) *CheckObsBucketsInvoker

CheckObsBucketsInvoker 检查已经配置OBS桶是否可以成功转储

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) ListOperations added in v0.1.61

func (c *CtsClient) ListOperations(request *model.ListOperationsRequest) (*model.ListOperationsResponse, error)

ListOperations 查询云服务的全量操作列表

查询云服务的全量操作列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CtsClient) ListOperationsInvoker added in v0.1.61

func (c *CtsClient) ListOperationsInvoker(request *model.ListOperationsRequest) *ListOperationsInvoker

ListOperationsInvoker 查询云服务的全量操作列表

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) ListTraceResources added in v0.1.61

func (c *CtsClient) ListTraceResources(request *model.ListTraceResourcesRequest) (*model.ListTraceResourcesResponse, error)

ListTraceResources 查询事件的资源类型列表

查询事件的资源类型列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CtsClient) ListTraceResourcesInvoker added in v0.1.61

func (c *CtsClient) ListTraceResourcesInvoker(request *model.ListTraceResourcesRequest) *ListTraceResourcesInvoker

ListTraceResourcesInvoker 查询事件的资源类型列表

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) ListUserResources added in v0.1.61

func (c *CtsClient) ListUserResources(request *model.ListUserResourcesRequest) (*model.ListUserResourcesResponse, error)

ListUserResources 查询30天事件的操作用户列表

查询30天事件的操作用户列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CtsClient) ListUserResourcesInvoker added in v0.1.61

func (c *CtsClient) ListUserResourcesInvoker(request *model.ListUserResourcesRequest) *ListUserResourcesInvoker

ListUserResourcesInvoker 查询30天事件的操作用户列表

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) GetBaseInvoker added in v0.1.118

func (i *DeleteNotificationInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*DeleteNotificationInvoker) Invoke added in v0.0.90

type DeleteTrackerInvoker added in v0.0.90

type DeleteTrackerInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTrackerInvoker) GetBaseInvoker added in v0.1.118

func (i *DeleteTrackerInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*DeleteTrackerInvoker) Invoke added in v0.0.90

type ListNotificationsInvoker added in v0.0.90

type ListNotificationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListNotificationsInvoker) GetBaseInvoker added in v0.1.118

func (i *ListNotificationsInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListNotificationsInvoker) Invoke added in v0.0.90

type ListOperationsInvoker added in v0.1.61

type ListOperationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListOperationsInvoker) GetBaseInvoker added in v0.1.118

func (i *ListOperationsInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListOperationsInvoker) Invoke added in v0.1.61

type ListQuotasInvoker added in v0.0.90

type ListQuotasInvoker struct {
	*invoker.BaseInvoker
}

func (*ListQuotasInvoker) GetBaseInvoker added in v0.1.118

func (i *ListQuotasInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListQuotasInvoker) Invoke added in v0.0.90

type ListTraceResourcesInvoker added in v0.1.61

type ListTraceResourcesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTraceResourcesInvoker) GetBaseInvoker added in v0.1.118

func (i *ListTraceResourcesInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListTraceResourcesInvoker) Invoke added in v0.1.61

type ListTracesInvoker added in v0.0.90

type ListTracesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTracesInvoker) GetBaseInvoker added in v0.1.118

func (i *ListTracesInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListTracesInvoker) Invoke added in v0.0.90

type ListTrackersInvoker added in v0.0.90

type ListTrackersInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTrackersInvoker) GetBaseInvoker added in v0.1.118

func (i *ListTrackersInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListTrackersInvoker) Invoke added in v0.0.90

type ListUserResourcesInvoker added in v0.1.61

type ListUserResourcesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListUserResourcesInvoker) GetBaseInvoker added in v0.1.118

func (i *ListUserResourcesInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ListUserResourcesInvoker) Invoke added in v0.1.61

type UpdateNotificationInvoker added in v0.0.90

type UpdateNotificationInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateNotificationInvoker) GetBaseInvoker added in v0.1.118

func (i *UpdateNotificationInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*UpdateNotificationInvoker) Invoke added in v0.0.90

type UpdateTrackerInvoker added in v0.0.90

type UpdateTrackerInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateTrackerInvoker) GetBaseInvoker added in v0.1.118

func (i *UpdateTrackerInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*UpdateTrackerInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL