v1

package
v0.0.23-beta Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForCreatePolicyAssignments

func GenReqDefForCreatePolicyAssignments() *def.HttpRequestDef

func GenReqDefForCreateTrackerConfig

func GenReqDefForCreateTrackerConfig() *def.HttpRequestDef

func GenReqDefForDeletePolicyAssignment

func GenReqDefForDeletePolicyAssignment() *def.HttpRequestDef

func GenReqDefForDeleteTrackerConfig

func GenReqDefForDeleteTrackerConfig() *def.HttpRequestDef

func GenReqDefForDisablePolicyAssignment

func GenReqDefForDisablePolicyAssignment() *def.HttpRequestDef

func GenReqDefForEnablePolicyAssignment

func GenReqDefForEnablePolicyAssignment() *def.HttpRequestDef

func GenReqDefForListBuiltInPolicyDefinitions

func GenReqDefForListBuiltInPolicyDefinitions() *def.HttpRequestDef

func GenReqDefForListPolicyAssignments

func GenReqDefForListPolicyAssignments() *def.HttpRequestDef

func GenReqDefForListPolicyStatesByAssignmentId

func GenReqDefForListPolicyStatesByAssignmentId() *def.HttpRequestDef

func GenReqDefForListPolicyStatesByDomainId

func GenReqDefForListPolicyStatesByDomainId() *def.HttpRequestDef

func GenReqDefForListPolicyStatesByResourceId

func GenReqDefForListPolicyStatesByResourceId() *def.HttpRequestDef

func GenReqDefForListProviders

func GenReqDefForListProviders() *def.HttpRequestDef

func GenReqDefForListResources

func GenReqDefForListResources() *def.HttpRequestDef

func GenReqDefForRunEvaluationByPolicyAssignmentId

func GenReqDefForRunEvaluationByPolicyAssignmentId() *def.HttpRequestDef

func GenReqDefForShowBuiltInPolicyDefinition

func GenReqDefForShowBuiltInPolicyDefinition() *def.HttpRequestDef

func GenReqDefForShowEvaluationStateByAssignmentId

func GenReqDefForShowEvaluationStateByAssignmentId() *def.HttpRequestDef

func GenReqDefForShowPolicyAssignment

func GenReqDefForShowPolicyAssignment() *def.HttpRequestDef

func GenReqDefForShowResourceById

func GenReqDefForShowResourceById() *def.HttpRequestDef

func GenReqDefForShowResourceHistory

func GenReqDefForShowResourceHistory() *def.HttpRequestDef

func GenReqDefForShowResourceRelations

func GenReqDefForShowResourceRelations() *def.HttpRequestDef

func GenReqDefForShowTrackerConfig

func GenReqDefForShowTrackerConfig() *def.HttpRequestDef

func GenReqDefForUpdatePolicyAssignment

func GenReqDefForUpdatePolicyAssignment() *def.HttpRequestDef

func RmsClientBuilder

func RmsClientBuilder() *http_client.HcHttpClientBuilder

Types

type RmsClient

type RmsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewRmsClient

func NewRmsClient(hcClient *http_client.HcHttpClient) *RmsClient

func (*RmsClient) CreatePolicyAssignments

创建新的合规规则

func (*RmsClient) CreateTrackerConfig

创建或更新资源记录器,只能存在一个资源记录器

func (*RmsClient) DeletePolicyAssignment

根据规则ID删除此规则

func (*RmsClient) DeleteTrackerConfig

删除资源记录器

func (*RmsClient) DisablePolicyAssignment

根据规则ID停用此规则

func (*RmsClient) EnablePolicyAssignment

根据规则ID启用此规则

func (*RmsClient) ListBuiltInPolicyDefinitions

列出用户的内置策略

func (*RmsClient) ListPolicyAssignments

列出用户的合规规则

func (*RmsClient) ListPolicyStatesByAssignmentId

根据规则ID查询所有的合规结果

func (*RmsClient) ListPolicyStatesByDomainId

查询用户所有的合规结果

func (*RmsClient) ListPolicyStatesByResourceId

根据资源ID查询所有合规结果

func (*RmsClient) ListProviders

func (c *RmsClient) ListProviders(request *model.ListProvidersRequest) (*model.ListProvidersResponse, error)

查询RMS支持的云服务、资源、区域列表

func (*RmsClient) ListResources

func (c *RmsClient) ListResources(request *model.ListResourcesRequest) (*model.ListResourcesResponse, error)

返回当前租户下特定资源类型的资源,需要当前用户需要有rms:resources:list权限

func (*RmsClient) RunEvaluationByPolicyAssignmentId

根据规则ID评估此规则

func (*RmsClient) ShowBuiltInPolicyDefinition

根据策略ID查询单个内置策略

func (*RmsClient) ShowEvaluationStateByAssignmentId

根据规则ID查询此规则的评估状态

func (*RmsClient) ShowPolicyAssignment

根据规则ID获取单个规则

func (*RmsClient) ShowResourceById

func (c *RmsClient) ShowResourceById(request *model.ShowResourceByIdRequest) (*model.ShowResourceByIdResponse, error)

指定资源ID,返回该资源的详细信息

func (*RmsClient) ShowResourceHistory

查询资源与资源关系的变更历史

func (*RmsClient) ShowResourceRelations

指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"

func (*RmsClient) ShowTrackerConfig

func (c *RmsClient) ShowTrackerConfig(request *model.ShowTrackerConfigRequest) (*model.ShowTrackerConfigResponse, error)

查询资源记录器的详细信息

func (*RmsClient) UpdatePolicyAssignment

更新用户的合规规则

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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