Documentation ¶
Index ¶
- func GenReqDefForCreatePolicyAssignments() *def.HttpRequestDef
- func GenReqDefForCreateTrackerConfig() *def.HttpRequestDef
- func GenReqDefForDeletePolicyAssignment() *def.HttpRequestDef
- func GenReqDefForDeleteTrackerConfig() *def.HttpRequestDef
- func GenReqDefForDisablePolicyAssignment() *def.HttpRequestDef
- func GenReqDefForEnablePolicyAssignment() *def.HttpRequestDef
- func GenReqDefForListAllResources() *def.HttpRequestDef
- func GenReqDefForListBuiltInPolicyDefinitions() *def.HttpRequestDef
- func GenReqDefForListPolicyAssignments() *def.HttpRequestDef
- func GenReqDefForListPolicyStatesByAssignmentId() *def.HttpRequestDef
- func GenReqDefForListPolicyStatesByDomainId() *def.HttpRequestDef
- func GenReqDefForListPolicyStatesByResourceId() *def.HttpRequestDef
- func GenReqDefForListProviders() *def.HttpRequestDef
- func GenReqDefForListRegions() *def.HttpRequestDef
- func GenReqDefForListResources() *def.HttpRequestDef
- func GenReqDefForRunEvaluationByPolicyAssignmentId() *def.HttpRequestDef
- func GenReqDefForShowBuiltInPolicyDefinition() *def.HttpRequestDef
- func GenReqDefForShowEvaluationStateByAssignmentId() *def.HttpRequestDef
- func GenReqDefForShowPolicyAssignment() *def.HttpRequestDef
- func GenReqDefForShowResourceById() *def.HttpRequestDef
- func GenReqDefForShowResourceHistory() *def.HttpRequestDef
- func GenReqDefForShowResourceRelations() *def.HttpRequestDef
- func GenReqDefForShowTrackerConfig() *def.HttpRequestDef
- func GenReqDefForUpdatePolicyAssignment() *def.HttpRequestDef
- func RmsClientBuilder() *http_client.HcHttpClientBuilder
- type CreatePolicyAssignmentsInvoker
- type CreateTrackerConfigInvoker
- type DeletePolicyAssignmentInvoker
- type DeleteTrackerConfigInvoker
- type DisablePolicyAssignmentInvoker
- type EnablePolicyAssignmentInvoker
- type ListAllResourcesInvoker
- type ListBuiltInPolicyDefinitionsInvoker
- type ListPolicyAssignmentsInvoker
- type ListPolicyStatesByAssignmentIdInvoker
- type ListPolicyStatesByDomainIdInvoker
- type ListPolicyStatesByResourceIdInvoker
- type ListProvidersInvoker
- type ListRegionsInvoker
- type ListResourcesInvoker
- type RmsClient
- func (c *RmsClient) CreatePolicyAssignments(request *model.CreatePolicyAssignmentsRequest) (*model.CreatePolicyAssignmentsResponse, error)
- func (c *RmsClient) CreatePolicyAssignmentsInvoker(request *model.CreatePolicyAssignmentsRequest) *CreatePolicyAssignmentsInvoker
- func (c *RmsClient) CreateTrackerConfig(request *model.CreateTrackerConfigRequest) (*model.CreateTrackerConfigResponse, error)
- func (c *RmsClient) CreateTrackerConfigInvoker(request *model.CreateTrackerConfigRequest) *CreateTrackerConfigInvoker
- func (c *RmsClient) DeletePolicyAssignment(request *model.DeletePolicyAssignmentRequest) (*model.DeletePolicyAssignmentResponse, error)
- func (c *RmsClient) DeletePolicyAssignmentInvoker(request *model.DeletePolicyAssignmentRequest) *DeletePolicyAssignmentInvoker
- func (c *RmsClient) DeleteTrackerConfig(request *model.DeleteTrackerConfigRequest) (*model.DeleteTrackerConfigResponse, error)
- func (c *RmsClient) DeleteTrackerConfigInvoker(request *model.DeleteTrackerConfigRequest) *DeleteTrackerConfigInvoker
- func (c *RmsClient) DisablePolicyAssignment(request *model.DisablePolicyAssignmentRequest) (*model.DisablePolicyAssignmentResponse, error)
- func (c *RmsClient) DisablePolicyAssignmentInvoker(request *model.DisablePolicyAssignmentRequest) *DisablePolicyAssignmentInvoker
- func (c *RmsClient) EnablePolicyAssignment(request *model.EnablePolicyAssignmentRequest) (*model.EnablePolicyAssignmentResponse, error)
- func (c *RmsClient) EnablePolicyAssignmentInvoker(request *model.EnablePolicyAssignmentRequest) *EnablePolicyAssignmentInvoker
- func (c *RmsClient) ListAllResources(request *model.ListAllResourcesRequest) (*model.ListAllResourcesResponse, error)
- func (c *RmsClient) ListAllResourcesInvoker(request *model.ListAllResourcesRequest) *ListAllResourcesInvoker
- func (c *RmsClient) ListBuiltInPolicyDefinitions(request *model.ListBuiltInPolicyDefinitionsRequest) (*model.ListBuiltInPolicyDefinitionsResponse, error)
- func (c *RmsClient) ListBuiltInPolicyDefinitionsInvoker(request *model.ListBuiltInPolicyDefinitionsRequest) *ListBuiltInPolicyDefinitionsInvoker
- func (c *RmsClient) ListPolicyAssignments(request *model.ListPolicyAssignmentsRequest) (*model.ListPolicyAssignmentsResponse, error)
- func (c *RmsClient) ListPolicyAssignmentsInvoker(request *model.ListPolicyAssignmentsRequest) *ListPolicyAssignmentsInvoker
- func (c *RmsClient) ListPolicyStatesByAssignmentId(request *model.ListPolicyStatesByAssignmentIdRequest) (*model.ListPolicyStatesByAssignmentIdResponse, error)
- func (c *RmsClient) ListPolicyStatesByAssignmentIdInvoker(request *model.ListPolicyStatesByAssignmentIdRequest) *ListPolicyStatesByAssignmentIdInvoker
- func (c *RmsClient) ListPolicyStatesByDomainId(request *model.ListPolicyStatesByDomainIdRequest) (*model.ListPolicyStatesByDomainIdResponse, error)
- func (c *RmsClient) ListPolicyStatesByDomainIdInvoker(request *model.ListPolicyStatesByDomainIdRequest) *ListPolicyStatesByDomainIdInvoker
- func (c *RmsClient) ListPolicyStatesByResourceId(request *model.ListPolicyStatesByResourceIdRequest) (*model.ListPolicyStatesByResourceIdResponse, error)
- func (c *RmsClient) ListPolicyStatesByResourceIdInvoker(request *model.ListPolicyStatesByResourceIdRequest) *ListPolicyStatesByResourceIdInvoker
- func (c *RmsClient) ListProviders(request *model.ListProvidersRequest) (*model.ListProvidersResponse, error)
- func (c *RmsClient) ListProvidersInvoker(request *model.ListProvidersRequest) *ListProvidersInvoker
- func (c *RmsClient) ListRegions(request *model.ListRegionsRequest) (*model.ListRegionsResponse, error)
- func (c *RmsClient) ListRegionsInvoker(request *model.ListRegionsRequest) *ListRegionsInvoker
- func (c *RmsClient) ListResources(request *model.ListResourcesRequest) (*model.ListResourcesResponse, error)
- func (c *RmsClient) ListResourcesInvoker(request *model.ListResourcesRequest) *ListResourcesInvoker
- func (c *RmsClient) RunEvaluationByPolicyAssignmentId(request *model.RunEvaluationByPolicyAssignmentIdRequest) (*model.RunEvaluationByPolicyAssignmentIdResponse, error)
- func (c *RmsClient) RunEvaluationByPolicyAssignmentIdInvoker(request *model.RunEvaluationByPolicyAssignmentIdRequest) *RunEvaluationByPolicyAssignmentIdInvoker
- func (c *RmsClient) ShowBuiltInPolicyDefinition(request *model.ShowBuiltInPolicyDefinitionRequest) (*model.ShowBuiltInPolicyDefinitionResponse, error)
- func (c *RmsClient) ShowBuiltInPolicyDefinitionInvoker(request *model.ShowBuiltInPolicyDefinitionRequest) *ShowBuiltInPolicyDefinitionInvoker
- func (c *RmsClient) ShowEvaluationStateByAssignmentId(request *model.ShowEvaluationStateByAssignmentIdRequest) (*model.ShowEvaluationStateByAssignmentIdResponse, error)
- func (c *RmsClient) ShowEvaluationStateByAssignmentIdInvoker(request *model.ShowEvaluationStateByAssignmentIdRequest) *ShowEvaluationStateByAssignmentIdInvoker
- func (c *RmsClient) ShowPolicyAssignment(request *model.ShowPolicyAssignmentRequest) (*model.ShowPolicyAssignmentResponse, error)
- func (c *RmsClient) ShowPolicyAssignmentInvoker(request *model.ShowPolicyAssignmentRequest) *ShowPolicyAssignmentInvoker
- func (c *RmsClient) ShowResourceById(request *model.ShowResourceByIdRequest) (*model.ShowResourceByIdResponse, error)
- func (c *RmsClient) ShowResourceByIdInvoker(request *model.ShowResourceByIdRequest) *ShowResourceByIdInvoker
- func (c *RmsClient) ShowResourceHistory(request *model.ShowResourceHistoryRequest) (*model.ShowResourceHistoryResponse, error)
- func (c *RmsClient) ShowResourceHistoryInvoker(request *model.ShowResourceHistoryRequest) *ShowResourceHistoryInvoker
- func (c *RmsClient) ShowResourceRelations(request *model.ShowResourceRelationsRequest) (*model.ShowResourceRelationsResponse, error)
- func (c *RmsClient) ShowResourceRelationsInvoker(request *model.ShowResourceRelationsRequest) *ShowResourceRelationsInvoker
- func (c *RmsClient) ShowTrackerConfig(request *model.ShowTrackerConfigRequest) (*model.ShowTrackerConfigResponse, error)
- func (c *RmsClient) ShowTrackerConfigInvoker(request *model.ShowTrackerConfigRequest) *ShowTrackerConfigInvoker
- func (c *RmsClient) UpdatePolicyAssignment(request *model.UpdatePolicyAssignmentRequest) (*model.UpdatePolicyAssignmentResponse, error)
- func (c *RmsClient) UpdatePolicyAssignmentInvoker(request *model.UpdatePolicyAssignmentRequest) *UpdatePolicyAssignmentInvoker
- type RunEvaluationByPolicyAssignmentIdInvoker
- type ShowBuiltInPolicyDefinitionInvoker
- type ShowEvaluationStateByAssignmentIdInvoker
- type ShowPolicyAssignmentInvoker
- type ShowResourceByIdInvoker
- type ShowResourceHistoryInvoker
- type ShowResourceRelationsInvoker
- type ShowTrackerConfigInvoker
- type UpdatePolicyAssignmentInvoker
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 CreatePolicyAssignmentsInvoker ¶ added in v0.0.90
type CreatePolicyAssignmentsInvoker struct {
*invoker.BaseInvoker
}
func (*CreatePolicyAssignmentsInvoker) Invoke ¶ added in v0.0.90
func (i *CreatePolicyAssignmentsInvoker) Invoke() (*model.CreatePolicyAssignmentsResponse, error)
type CreateTrackerConfigInvoker ¶ added in v0.0.90
type CreateTrackerConfigInvoker struct {
*invoker.BaseInvoker
}
func (*CreateTrackerConfigInvoker) Invoke ¶ added in v0.0.90
func (i *CreateTrackerConfigInvoker) Invoke() (*model.CreateTrackerConfigResponse, error)
type DeletePolicyAssignmentInvoker ¶ added in v0.0.90
type DeletePolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
func (*DeletePolicyAssignmentInvoker) Invoke ¶ added in v0.0.90
func (i *DeletePolicyAssignmentInvoker) Invoke() (*model.DeletePolicyAssignmentResponse, error)
type DeleteTrackerConfigInvoker ¶ added in v0.0.90
type DeleteTrackerConfigInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteTrackerConfigInvoker) Invoke ¶ added in v0.0.90
func (i *DeleteTrackerConfigInvoker) Invoke() (*model.DeleteTrackerConfigResponse, error)
type DisablePolicyAssignmentInvoker ¶ added in v0.0.90
type DisablePolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
func (*DisablePolicyAssignmentInvoker) Invoke ¶ added in v0.0.90
func (i *DisablePolicyAssignmentInvoker) Invoke() (*model.DisablePolicyAssignmentResponse, error)
type EnablePolicyAssignmentInvoker ¶ added in v0.0.90
type EnablePolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
func (*EnablePolicyAssignmentInvoker) Invoke ¶ added in v0.0.90
func (i *EnablePolicyAssignmentInvoker) Invoke() (*model.EnablePolicyAssignmentResponse, error)
type ListAllResourcesInvoker ¶ added in v0.0.90
type ListAllResourcesInvoker struct {
*invoker.BaseInvoker
}
func (*ListAllResourcesInvoker) Invoke ¶ added in v0.0.90
func (i *ListAllResourcesInvoker) Invoke() (*model.ListAllResourcesResponse, error)
type ListBuiltInPolicyDefinitionsInvoker ¶ added in v0.0.90
type ListBuiltInPolicyDefinitionsInvoker struct {
*invoker.BaseInvoker
}
func (*ListBuiltInPolicyDefinitionsInvoker) Invoke ¶ added in v0.0.90
func (i *ListBuiltInPolicyDefinitionsInvoker) Invoke() (*model.ListBuiltInPolicyDefinitionsResponse, error)
type ListPolicyAssignmentsInvoker ¶ added in v0.0.90
type ListPolicyAssignmentsInvoker struct {
*invoker.BaseInvoker
}
func (*ListPolicyAssignmentsInvoker) Invoke ¶ added in v0.0.90
func (i *ListPolicyAssignmentsInvoker) Invoke() (*model.ListPolicyAssignmentsResponse, error)
type ListPolicyStatesByAssignmentIdInvoker ¶ added in v0.0.90
type ListPolicyStatesByAssignmentIdInvoker struct {
*invoker.BaseInvoker
}
func (*ListPolicyStatesByAssignmentIdInvoker) Invoke ¶ added in v0.0.90
func (i *ListPolicyStatesByAssignmentIdInvoker) Invoke() (*model.ListPolicyStatesByAssignmentIdResponse, error)
type ListPolicyStatesByDomainIdInvoker ¶ added in v0.0.90
type ListPolicyStatesByDomainIdInvoker struct {
*invoker.BaseInvoker
}
func (*ListPolicyStatesByDomainIdInvoker) Invoke ¶ added in v0.0.90
func (i *ListPolicyStatesByDomainIdInvoker) Invoke() (*model.ListPolicyStatesByDomainIdResponse, error)
type ListPolicyStatesByResourceIdInvoker ¶ added in v0.0.90
type ListPolicyStatesByResourceIdInvoker struct {
*invoker.BaseInvoker
}
func (*ListPolicyStatesByResourceIdInvoker) Invoke ¶ added in v0.0.90
func (i *ListPolicyStatesByResourceIdInvoker) Invoke() (*model.ListPolicyStatesByResourceIdResponse, error)
type ListProvidersInvoker ¶ added in v0.0.90
type ListProvidersInvoker struct {
*invoker.BaseInvoker
}
func (*ListProvidersInvoker) Invoke ¶ added in v0.0.90
func (i *ListProvidersInvoker) Invoke() (*model.ListProvidersResponse, error)
type ListRegionsInvoker ¶ added in v0.0.90
type ListRegionsInvoker struct {
*invoker.BaseInvoker
}
func (*ListRegionsInvoker) Invoke ¶ added in v0.0.90
func (i *ListRegionsInvoker) Invoke() (*model.ListRegionsResponse, error)
type ListResourcesInvoker ¶ added in v0.0.90
type ListResourcesInvoker struct {
*invoker.BaseInvoker
}
func (*ListResourcesInvoker) Invoke ¶ added in v0.0.90
func (i *ListResourcesInvoker) Invoke() (*model.ListResourcesResponse, error)
type RmsClient ¶
type RmsClient struct {
HcClient *http_client.HcHttpClient
}
func NewRmsClient ¶
func NewRmsClient(hcClient *http_client.HcHttpClient) *RmsClient
func (*RmsClient) CreatePolicyAssignments ¶
func (c *RmsClient) CreatePolicyAssignments(request *model.CreatePolicyAssignmentsRequest) (*model.CreatePolicyAssignmentsResponse, error)
CreatePolicyAssignments 创建合规规则
创建新的合规规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) CreatePolicyAssignmentsInvoker ¶ added in v0.0.90
func (c *RmsClient) CreatePolicyAssignmentsInvoker(request *model.CreatePolicyAssignmentsRequest) *CreatePolicyAssignmentsInvoker
CreatePolicyAssignmentsInvoker 创建合规规则
func (*RmsClient) CreateTrackerConfig ¶
func (c *RmsClient) CreateTrackerConfig(request *model.CreateTrackerConfigRequest) (*model.CreateTrackerConfigResponse, error)
CreateTrackerConfig 创建或更新记录器
创建或更新资源记录器,只能存在一个资源记录器
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) CreateTrackerConfigInvoker ¶ added in v0.0.90
func (c *RmsClient) CreateTrackerConfigInvoker(request *model.CreateTrackerConfigRequest) *CreateTrackerConfigInvoker
CreateTrackerConfigInvoker 创建或更新记录器
func (*RmsClient) DeletePolicyAssignment ¶
func (c *RmsClient) DeletePolicyAssignment(request *model.DeletePolicyAssignmentRequest) (*model.DeletePolicyAssignmentResponse, error)
DeletePolicyAssignment 删除合规规则
根据规则ID删除此规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) DeletePolicyAssignmentInvoker ¶ added in v0.0.90
func (c *RmsClient) DeletePolicyAssignmentInvoker(request *model.DeletePolicyAssignmentRequest) *DeletePolicyAssignmentInvoker
DeletePolicyAssignmentInvoker 删除合规规则
func (*RmsClient) DeleteTrackerConfig ¶
func (c *RmsClient) DeleteTrackerConfig(request *model.DeleteTrackerConfigRequest) (*model.DeleteTrackerConfigResponse, error)
DeleteTrackerConfig 删除记录器
删除资源记录器
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) DeleteTrackerConfigInvoker ¶ added in v0.0.90
func (c *RmsClient) DeleteTrackerConfigInvoker(request *model.DeleteTrackerConfigRequest) *DeleteTrackerConfigInvoker
DeleteTrackerConfigInvoker 删除记录器
func (*RmsClient) DisablePolicyAssignment ¶
func (c *RmsClient) DisablePolicyAssignment(request *model.DisablePolicyAssignmentRequest) (*model.DisablePolicyAssignmentResponse, error)
DisablePolicyAssignment 停用合规规则
根据规则ID停用此规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) DisablePolicyAssignmentInvoker ¶ added in v0.0.90
func (c *RmsClient) DisablePolicyAssignmentInvoker(request *model.DisablePolicyAssignmentRequest) *DisablePolicyAssignmentInvoker
DisablePolicyAssignmentInvoker 停用合规规则
func (*RmsClient) EnablePolicyAssignment ¶
func (c *RmsClient) EnablePolicyAssignment(request *model.EnablePolicyAssignmentRequest) (*model.EnablePolicyAssignmentResponse, error)
EnablePolicyAssignment 启用合规规则
根据规则ID启用此规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) EnablePolicyAssignmentInvoker ¶ added in v0.0.90
func (c *RmsClient) EnablePolicyAssignmentInvoker(request *model.EnablePolicyAssignmentRequest) *EnablePolicyAssignmentInvoker
EnablePolicyAssignmentInvoker 启用合规规则
func (*RmsClient) ListAllResources ¶
func (c *RmsClient) ListAllResources(request *model.ListAllResourcesRequest) (*model.ListAllResourcesResponse, error)
ListAllResources 列举所有资源
返回当前租户下所有资源,需要当前用户有rms:resources:list权限。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListAllResourcesInvoker ¶ added in v0.0.90
func (c *RmsClient) ListAllResourcesInvoker(request *model.ListAllResourcesRequest) *ListAllResourcesInvoker
ListAllResourcesInvoker 列举所有资源
func (*RmsClient) ListBuiltInPolicyDefinitions ¶
func (c *RmsClient) ListBuiltInPolicyDefinitions(request *model.ListBuiltInPolicyDefinitionsRequest) (*model.ListBuiltInPolicyDefinitionsResponse, error)
ListBuiltInPolicyDefinitions 列出内置策略
列出用户的内置策略
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListBuiltInPolicyDefinitionsInvoker ¶ added in v0.0.90
func (c *RmsClient) ListBuiltInPolicyDefinitionsInvoker(request *model.ListBuiltInPolicyDefinitionsRequest) *ListBuiltInPolicyDefinitionsInvoker
ListBuiltInPolicyDefinitionsInvoker 列出内置策略
func (*RmsClient) ListPolicyAssignments ¶
func (c *RmsClient) ListPolicyAssignments(request *model.ListPolicyAssignmentsRequest) (*model.ListPolicyAssignmentsResponse, error)
ListPolicyAssignments 列出合规规则
列出用户的合规规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListPolicyAssignmentsInvoker ¶ added in v0.0.90
func (c *RmsClient) ListPolicyAssignmentsInvoker(request *model.ListPolicyAssignmentsRequest) *ListPolicyAssignmentsInvoker
ListPolicyAssignmentsInvoker 列出合规规则
func (*RmsClient) ListPolicyStatesByAssignmentId ¶
func (c *RmsClient) ListPolicyStatesByAssignmentId(request *model.ListPolicyStatesByAssignmentIdRequest) (*model.ListPolicyStatesByAssignmentIdResponse, error)
ListPolicyStatesByAssignmentId 获取规则的合规结果
根据规则ID查询所有的合规结果
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListPolicyStatesByAssignmentIdInvoker ¶ added in v0.0.90
func (c *RmsClient) ListPolicyStatesByAssignmentIdInvoker(request *model.ListPolicyStatesByAssignmentIdRequest) *ListPolicyStatesByAssignmentIdInvoker
ListPolicyStatesByAssignmentIdInvoker 获取规则的合规结果
func (*RmsClient) ListPolicyStatesByDomainId ¶
func (c *RmsClient) ListPolicyStatesByDomainId(request *model.ListPolicyStatesByDomainIdRequest) (*model.ListPolicyStatesByDomainIdResponse, error)
ListPolicyStatesByDomainId 获取用户的合规结果
查询用户所有的合规结果
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListPolicyStatesByDomainIdInvoker ¶ added in v0.0.90
func (c *RmsClient) ListPolicyStatesByDomainIdInvoker(request *model.ListPolicyStatesByDomainIdRequest) *ListPolicyStatesByDomainIdInvoker
ListPolicyStatesByDomainIdInvoker 获取用户的合规结果
func (*RmsClient) ListPolicyStatesByResourceId ¶
func (c *RmsClient) ListPolicyStatesByResourceId(request *model.ListPolicyStatesByResourceIdRequest) (*model.ListPolicyStatesByResourceIdResponse, error)
ListPolicyStatesByResourceId 获取资源的合规结果
根据资源ID查询所有合规结果
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListPolicyStatesByResourceIdInvoker ¶ added in v0.0.90
func (c *RmsClient) ListPolicyStatesByResourceIdInvoker(request *model.ListPolicyStatesByResourceIdRequest) *ListPolicyStatesByResourceIdInvoker
ListPolicyStatesByResourceIdInvoker 获取资源的合规结果
func (*RmsClient) ListProviders ¶
func (c *RmsClient) ListProviders(request *model.ListProvidersRequest) (*model.ListProvidersResponse, error)
ListProviders 列举云服务
查询RMS支持的云服务、资源、区域列表
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListProvidersInvoker ¶ added in v0.0.90
func (c *RmsClient) ListProvidersInvoker(request *model.ListProvidersRequest) *ListProvidersInvoker
ListProvidersInvoker 列举云服务
func (*RmsClient) ListRegions ¶
func (c *RmsClient) ListRegions(request *model.ListRegionsRequest) (*model.ListRegionsResponse, error)
ListRegions 查询租户可见的区域
查询租户可见的区域
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ListRegionsInvoker ¶ added in v0.0.90
func (c *RmsClient) ListRegionsInvoker(request *model.ListRegionsRequest) *ListRegionsInvoker
ListRegionsInvoker 查询租户可见的区域
func (*RmsClient) ListResources ¶
func (c *RmsClient) ListResources(request *model.ListResourcesRequest) (*model.ListResourcesResponse, error)
ListResources 列举指定类型的资源
返回当前租户下特定资源类型的资源,需要当前用户有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) ListResourcesInvoker ¶ added in v0.0.90
func (c *RmsClient) ListResourcesInvoker(request *model.ListResourcesRequest) *ListResourcesInvoker
ListResourcesInvoker 列举指定类型的资源
func (*RmsClient) RunEvaluationByPolicyAssignmentId ¶
func (c *RmsClient) RunEvaluationByPolicyAssignmentId(request *model.RunEvaluationByPolicyAssignmentIdRequest) (*model.RunEvaluationByPolicyAssignmentIdResponse, error)
RunEvaluationByPolicyAssignmentId 运行合规评估
根据规则ID评估此规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) RunEvaluationByPolicyAssignmentIdInvoker ¶ added in v0.0.90
func (c *RmsClient) RunEvaluationByPolicyAssignmentIdInvoker(request *model.RunEvaluationByPolicyAssignmentIdRequest) *RunEvaluationByPolicyAssignmentIdInvoker
RunEvaluationByPolicyAssignmentIdInvoker 运行合规评估
func (*RmsClient) ShowBuiltInPolicyDefinition ¶
func (c *RmsClient) ShowBuiltInPolicyDefinition(request *model.ShowBuiltInPolicyDefinitionRequest) (*model.ShowBuiltInPolicyDefinitionResponse, error)
ShowBuiltInPolicyDefinition 查询单个内置策略
根据策略ID查询单个内置策略
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ShowBuiltInPolicyDefinitionInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowBuiltInPolicyDefinitionInvoker(request *model.ShowBuiltInPolicyDefinitionRequest) *ShowBuiltInPolicyDefinitionInvoker
ShowBuiltInPolicyDefinitionInvoker 查询单个内置策略
func (*RmsClient) ShowEvaluationStateByAssignmentId ¶
func (c *RmsClient) ShowEvaluationStateByAssignmentId(request *model.ShowEvaluationStateByAssignmentIdRequest) (*model.ShowEvaluationStateByAssignmentIdResponse, error)
ShowEvaluationStateByAssignmentId 获取规则的评估状态
根据规则ID查询此规则的评估状态
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ShowEvaluationStateByAssignmentIdInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowEvaluationStateByAssignmentIdInvoker(request *model.ShowEvaluationStateByAssignmentIdRequest) *ShowEvaluationStateByAssignmentIdInvoker
ShowEvaluationStateByAssignmentIdInvoker 获取规则的评估状态
func (*RmsClient) ShowPolicyAssignment ¶
func (c *RmsClient) ShowPolicyAssignment(request *model.ShowPolicyAssignmentRequest) (*model.ShowPolicyAssignmentResponse, error)
ShowPolicyAssignment 获取单个合规规则
根据规则ID获取单个规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ShowPolicyAssignmentInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowPolicyAssignmentInvoker(request *model.ShowPolicyAssignmentRequest) *ShowPolicyAssignmentInvoker
ShowPolicyAssignmentInvoker 获取单个合规规则
func (*RmsClient) ShowResourceById ¶
func (c *RmsClient) ShowResourceById(request *model.ShowResourceByIdRequest) (*model.ShowResourceByIdResponse, error)
ShowResourceById 查询单个资源
指定资源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) ShowResourceByIdInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowResourceByIdInvoker(request *model.ShowResourceByIdRequest) *ShowResourceByIdInvoker
ShowResourceByIdInvoker 查询单个资源
func (*RmsClient) ShowResourceHistory ¶
func (c *RmsClient) ShowResourceHistory(request *model.ShowResourceHistoryRequest) (*model.ShowResourceHistoryResponse, error)
ShowResourceHistory 查询资源历史
查询资源与资源关系的变更历史
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ShowResourceHistoryInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowResourceHistoryInvoker(request *model.ShowResourceHistoryRequest) *ShowResourceHistoryInvoker
ShowResourceHistoryInvoker 查询资源历史
func (*RmsClient) ShowResourceRelations ¶
func (c *RmsClient) ShowResourceRelations(request *model.ShowResourceRelationsRequest) (*model.ShowResourceRelationsResponse, error)
ShowResourceRelations 列举资源关系
指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ShowResourceRelationsInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowResourceRelationsInvoker(request *model.ShowResourceRelationsRequest) *ShowResourceRelationsInvoker
ShowResourceRelationsInvoker 列举资源关系
func (*RmsClient) ShowTrackerConfig ¶
func (c *RmsClient) ShowTrackerConfig(request *model.ShowTrackerConfigRequest) (*model.ShowTrackerConfigResponse, error)
ShowTrackerConfig 查询记录器
查询资源记录器的详细信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) ShowTrackerConfigInvoker ¶ added in v0.0.90
func (c *RmsClient) ShowTrackerConfigInvoker(request *model.ShowTrackerConfigRequest) *ShowTrackerConfigInvoker
ShowTrackerConfigInvoker 查询记录器
func (*RmsClient) UpdatePolicyAssignment ¶
func (c *RmsClient) UpdatePolicyAssignment(request *model.UpdatePolicyAssignmentRequest) (*model.UpdatePolicyAssignmentResponse, error)
UpdatePolicyAssignment 更新合规规则
更新用户的合规规则
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*RmsClient) UpdatePolicyAssignmentInvoker ¶ added in v0.0.90
func (c *RmsClient) UpdatePolicyAssignmentInvoker(request *model.UpdatePolicyAssignmentRequest) *UpdatePolicyAssignmentInvoker
UpdatePolicyAssignmentInvoker 更新合规规则
type RunEvaluationByPolicyAssignmentIdInvoker ¶ added in v0.0.90
type RunEvaluationByPolicyAssignmentIdInvoker struct {
*invoker.BaseInvoker
}
func (*RunEvaluationByPolicyAssignmentIdInvoker) Invoke ¶ added in v0.0.90
func (i *RunEvaluationByPolicyAssignmentIdInvoker) Invoke() (*model.RunEvaluationByPolicyAssignmentIdResponse, error)
type ShowBuiltInPolicyDefinitionInvoker ¶ added in v0.0.90
type ShowBuiltInPolicyDefinitionInvoker struct {
*invoker.BaseInvoker
}
func (*ShowBuiltInPolicyDefinitionInvoker) Invoke ¶ added in v0.0.90
func (i *ShowBuiltInPolicyDefinitionInvoker) Invoke() (*model.ShowBuiltInPolicyDefinitionResponse, error)
type ShowEvaluationStateByAssignmentIdInvoker ¶ added in v0.0.90
type ShowEvaluationStateByAssignmentIdInvoker struct {
*invoker.BaseInvoker
}
func (*ShowEvaluationStateByAssignmentIdInvoker) Invoke ¶ added in v0.0.90
func (i *ShowEvaluationStateByAssignmentIdInvoker) Invoke() (*model.ShowEvaluationStateByAssignmentIdResponse, error)
type ShowPolicyAssignmentInvoker ¶ added in v0.0.90
type ShowPolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
func (*ShowPolicyAssignmentInvoker) Invoke ¶ added in v0.0.90
func (i *ShowPolicyAssignmentInvoker) Invoke() (*model.ShowPolicyAssignmentResponse, error)
type ShowResourceByIdInvoker ¶ added in v0.0.90
type ShowResourceByIdInvoker struct {
*invoker.BaseInvoker
}
func (*ShowResourceByIdInvoker) Invoke ¶ added in v0.0.90
func (i *ShowResourceByIdInvoker) Invoke() (*model.ShowResourceByIdResponse, error)
type ShowResourceHistoryInvoker ¶ added in v0.0.90
type ShowResourceHistoryInvoker struct {
*invoker.BaseInvoker
}
func (*ShowResourceHistoryInvoker) Invoke ¶ added in v0.0.90
func (i *ShowResourceHistoryInvoker) Invoke() (*model.ShowResourceHistoryResponse, error)
type ShowResourceRelationsInvoker ¶ added in v0.0.90
type ShowResourceRelationsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowResourceRelationsInvoker) Invoke ¶ added in v0.0.90
func (i *ShowResourceRelationsInvoker) Invoke() (*model.ShowResourceRelationsResponse, error)
type ShowTrackerConfigInvoker ¶ added in v0.0.90
type ShowTrackerConfigInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTrackerConfigInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTrackerConfigInvoker) Invoke() (*model.ShowTrackerConfigResponse, error)
type UpdatePolicyAssignmentInvoker ¶ added in v0.0.90
type UpdatePolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
func (*UpdatePolicyAssignmentInvoker) Invoke ¶ added in v0.0.90
func (i *UpdatePolicyAssignmentInvoker) Invoke() (*model.UpdatePolicyAssignmentResponse, error)