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 GenReqDefForListBuiltInPolicyDefinitions() *def.HttpRequestDef
- func GenReqDefForListPolicyAssignments() *def.HttpRequestDef
- func GenReqDefForListPolicyStatesByAssignmentId() *def.HttpRequestDef
- func GenReqDefForListPolicyStatesByDomainId() *def.HttpRequestDef
- func GenReqDefForListPolicyStatesByResourceId() *def.HttpRequestDef
- func GenReqDefForListProviders() *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 RmsClient
- func (c *RmsClient) CreatePolicyAssignments(request *model.CreatePolicyAssignmentsRequest) (*model.CreatePolicyAssignmentsResponse, error)
- func (c *RmsClient) CreateTrackerConfig(request *model.CreateTrackerConfigRequest) (*model.CreateTrackerConfigResponse, error)
- func (c *RmsClient) DeletePolicyAssignment(request *model.DeletePolicyAssignmentRequest) (*model.DeletePolicyAssignmentResponse, error)
- func (c *RmsClient) DeleteTrackerConfig(request *model.DeleteTrackerConfigRequest) (*model.DeleteTrackerConfigResponse, error)
- func (c *RmsClient) DisablePolicyAssignment(request *model.DisablePolicyAssignmentRequest) (*model.DisablePolicyAssignmentResponse, error)
- func (c *RmsClient) EnablePolicyAssignment(request *model.EnablePolicyAssignmentRequest) (*model.EnablePolicyAssignmentResponse, error)
- func (c *RmsClient) ListBuiltInPolicyDefinitions(request *model.ListBuiltInPolicyDefinitionsRequest) (*model.ListBuiltInPolicyDefinitionsResponse, error)
- func (c *RmsClient) ListPolicyAssignments(request *model.ListPolicyAssignmentsRequest) (*model.ListPolicyAssignmentsResponse, error)
- func (c *RmsClient) ListPolicyStatesByAssignmentId(request *model.ListPolicyStatesByAssignmentIdRequest) (*model.ListPolicyStatesByAssignmentIdResponse, error)
- func (c *RmsClient) ListPolicyStatesByDomainId(request *model.ListPolicyStatesByDomainIdRequest) (*model.ListPolicyStatesByDomainIdResponse, error)
- func (c *RmsClient) ListPolicyStatesByResourceId(request *model.ListPolicyStatesByResourceIdRequest) (*model.ListPolicyStatesByResourceIdResponse, error)
- func (c *RmsClient) ListProviders(request *model.ListProvidersRequest) (*model.ListProvidersResponse, error)
- func (c *RmsClient) ListResources(request *model.ListResourcesRequest) (*model.ListResourcesResponse, error)
- func (c *RmsClient) RunEvaluationByPolicyAssignmentId(request *model.RunEvaluationByPolicyAssignmentIdRequest) (*model.RunEvaluationByPolicyAssignmentIdResponse, error)
- func (c *RmsClient) ShowBuiltInPolicyDefinition(request *model.ShowBuiltInPolicyDefinitionRequest) (*model.ShowBuiltInPolicyDefinitionResponse, error)
- func (c *RmsClient) ShowEvaluationStateByAssignmentId(request *model.ShowEvaluationStateByAssignmentIdRequest) (*model.ShowEvaluationStateByAssignmentIdResponse, error)
- func (c *RmsClient) ShowPolicyAssignment(request *model.ShowPolicyAssignmentRequest) (*model.ShowPolicyAssignmentResponse, error)
- func (c *RmsClient) ShowResourceById(request *model.ShowResourceByIdRequest) (*model.ShowResourceByIdResponse, error)
- func (c *RmsClient) ShowResourceHistory(request *model.ShowResourceHistoryRequest) (*model.ShowResourceHistoryResponse, error)
- func (c *RmsClient) ShowResourceRelations(request *model.ShowResourceRelationsRequest) (*model.ShowResourceRelationsResponse, error)
- func (c *RmsClient) ShowTrackerConfig(request *model.ShowTrackerConfigRequest) (*model.ShowTrackerConfigResponse, error)
- func (c *RmsClient) UpdatePolicyAssignment(request *model.UpdatePolicyAssignmentRequest) (*model.UpdatePolicyAssignmentResponse, error)
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 (c *RmsClient) CreatePolicyAssignments(request *model.CreatePolicyAssignmentsRequest) (*model.CreatePolicyAssignmentsResponse, error)
创建新的合规规则
func (*RmsClient) CreateTrackerConfig ¶
func (c *RmsClient) CreateTrackerConfig(request *model.CreateTrackerConfigRequest) (*model.CreateTrackerConfigResponse, error)
创建或更新资源记录器,只能存在一个资源记录器
func (*RmsClient) DeletePolicyAssignment ¶
func (c *RmsClient) DeletePolicyAssignment(request *model.DeletePolicyAssignmentRequest) (*model.DeletePolicyAssignmentResponse, error)
根据规则ID删除此规则
func (*RmsClient) DeleteTrackerConfig ¶
func (c *RmsClient) DeleteTrackerConfig(request *model.DeleteTrackerConfigRequest) (*model.DeleteTrackerConfigResponse, error)
删除资源记录器
func (*RmsClient) DisablePolicyAssignment ¶
func (c *RmsClient) DisablePolicyAssignment(request *model.DisablePolicyAssignmentRequest) (*model.DisablePolicyAssignmentResponse, error)
根据规则ID停用此规则
func (*RmsClient) EnablePolicyAssignment ¶
func (c *RmsClient) EnablePolicyAssignment(request *model.EnablePolicyAssignmentRequest) (*model.EnablePolicyAssignmentResponse, error)
根据规则ID启用此规则
func (*RmsClient) ListBuiltInPolicyDefinitions ¶
func (c *RmsClient) ListBuiltInPolicyDefinitions(request *model.ListBuiltInPolicyDefinitionsRequest) (*model.ListBuiltInPolicyDefinitionsResponse, error)
列出用户的内置策略
func (*RmsClient) ListPolicyAssignments ¶
func (c *RmsClient) ListPolicyAssignments(request *model.ListPolicyAssignmentsRequest) (*model.ListPolicyAssignmentsResponse, error)
列出用户的合规规则
func (*RmsClient) ListPolicyStatesByAssignmentId ¶
func (c *RmsClient) ListPolicyStatesByAssignmentId(request *model.ListPolicyStatesByAssignmentIdRequest) (*model.ListPolicyStatesByAssignmentIdResponse, error)
根据规则ID查询所有的合规结果
func (*RmsClient) ListPolicyStatesByDomainId ¶
func (c *RmsClient) ListPolicyStatesByDomainId(request *model.ListPolicyStatesByDomainIdRequest) (*model.ListPolicyStatesByDomainIdResponse, error)
查询用户所有的合规结果
func (*RmsClient) ListPolicyStatesByResourceId ¶
func (c *RmsClient) ListPolicyStatesByResourceId(request *model.ListPolicyStatesByResourceIdRequest) (*model.ListPolicyStatesByResourceIdResponse, error)
根据资源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 ¶
func (c *RmsClient) RunEvaluationByPolicyAssignmentId(request *model.RunEvaluationByPolicyAssignmentIdRequest) (*model.RunEvaluationByPolicyAssignmentIdResponse, error)
根据规则ID评估此规则
func (*RmsClient) ShowBuiltInPolicyDefinition ¶
func (c *RmsClient) ShowBuiltInPolicyDefinition(request *model.ShowBuiltInPolicyDefinitionRequest) (*model.ShowBuiltInPolicyDefinitionResponse, error)
根据策略ID查询单个内置策略
func (*RmsClient) ShowEvaluationStateByAssignmentId ¶
func (c *RmsClient) ShowEvaluationStateByAssignmentId(request *model.ShowEvaluationStateByAssignmentIdRequest) (*model.ShowEvaluationStateByAssignmentIdResponse, error)
根据规则ID查询此规则的评估状态
func (*RmsClient) ShowPolicyAssignment ¶
func (c *RmsClient) ShowPolicyAssignment(request *model.ShowPolicyAssignmentRequest) (*model.ShowPolicyAssignmentResponse, error)
根据规则ID获取单个规则
func (*RmsClient) ShowResourceById ¶
func (c *RmsClient) ShowResourceById(request *model.ShowResourceByIdRequest) (*model.ShowResourceByIdResponse, error)
指定资源ID,返回该资源的详细信息
func (*RmsClient) ShowResourceHistory ¶
func (c *RmsClient) ShowResourceHistory(request *model.ShowResourceHistoryRequest) (*model.ShowResourceHistoryResponse, error)
查询资源与资源关系的变更历史
func (*RmsClient) ShowResourceRelations ¶
func (c *RmsClient) ShowResourceRelations(request *model.ShowResourceRelationsRequest) (*model.ShowResourceRelationsResponse, error)
指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"
func (*RmsClient) ShowTrackerConfig ¶
func (c *RmsClient) ShowTrackerConfig(request *model.ShowTrackerConfigRequest) (*model.ShowTrackerConfigResponse, error)
查询资源记录器的详细信息
func (*RmsClient) UpdatePolicyAssignment ¶
func (c *RmsClient) UpdatePolicyAssignment(request *model.UpdatePolicyAssignmentRequest) (*model.UpdatePolicyAssignmentResponse, error)
更新用户的合规规则
Click to show internal directories.
Click to hide internal directories.