v1

package
v0.0.85 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 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 GenReqDefForListAllResources

func GenReqDefForListAllResources() *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 GenReqDefForListRegions

func GenReqDefForListRegions() *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

创建合规规则

创建新的合规规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) CreateTrackerConfig

创建或更新记录器

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) DeletePolicyAssignment

删除合规规则

根据规则ID删除此规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) DeleteTrackerConfig

删除记录器

删除资源记录器

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) DisablePolicyAssignment

停用合规规则

根据规则ID停用此规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) EnablePolicyAssignment

启用合规规则

根据规则ID启用此规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListAllResources

func (c *RmsClient) ListAllResources(request *model.ListAllResourcesRequest) (*model.ListAllResourcesResponse, error)

列举所有资源

返回当前租户下所有资源,需要当前用户有rms:resources:list权限。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListBuiltInPolicyDefinitions

列出内置策略

列出用户的内置策略

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListPolicyAssignments

列出合规规则

列出用户的合规规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListPolicyStatesByAssignmentId

获取规则的合规结果

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListPolicyStatesByDomainId

获取用户的合规结果

查询用户所有的合规结果

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListPolicyStatesByResourceId

获取资源的合规结果

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListProviders

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

列举云服务

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListRegions

func (c *RmsClient) ListRegions(request *model.ListRegionsRequest) (*model.ListRegionsResponse, error)

查询租户可见的区域

查询租户可见的区域

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ListResources

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

列举指定类型的资源

返回当前租户下特定资源类型的资源,需要当前用户有rms:resources:list权限。比如查询云服务器,对应的RMS资源类型是ecs.cloudservers,其中provider为ecs,type为cloudservers。 RMS支持的服务和资源类型参见[支持的服务和区域](https://console.huaweicloud.com/eps/#/resources/supported)。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) RunEvaluationByPolicyAssignmentId

运行合规评估

根据规则ID评估此规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowBuiltInPolicyDefinition

查询单个内置策略

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowEvaluationStateByAssignmentId

获取规则的评估状态

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowPolicyAssignment

获取单个合规规则

根据规则ID获取单个规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowResourceById

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

查询单个资源

指定资源ID,返回该资源的详细信息,需要当前用户有rms:resources:get权限。比如查询云服务器,对应的RMS资源类型是ecs.cloudservers,其中provider为ecs,type为cloudservers。RMS支持的服务和资源类型参见[支持的服务和区域](https://console.huaweicloud.com/eps/#/resources/supported)。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowResourceHistory

查询资源历史

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowResourceRelations

列举资源关系

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) ShowTrackerConfig

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

查询记录器

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

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*RmsClient) UpdatePolicyAssignment

更新合规规则

更新用户的合规规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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