Documentation
¶
Index ¶
- type AutotaskpolicyClient
- func (c *AutotaskpolicyClient) AssociateExecResource(request *autotaskpolicy.AssociateExecResourceRequest) (*autotaskpolicy.AssociateExecResourceResponse, error)
- func (c *AutotaskpolicyClient) CopyPolicy(request *autotaskpolicy.CopyPolicyRequest) (*autotaskpolicy.CopyPolicyResponse, error)
- func (c *AutotaskpolicyClient) CreatePolicy(request *autotaskpolicy.CreatePolicyRequest) (*autotaskpolicy.CreatePolicyResponse, error)
- func (c *AutotaskpolicyClient) DeletePolicy(request *autotaskpolicy.DeletePolicyRequest) (*autotaskpolicy.DeletePolicyResponse, error)
- func (c *AutotaskpolicyClient) DescribePolicies(request *autotaskpolicy.DescribePoliciesRequest) (*autotaskpolicy.DescribePoliciesResponse, error)
- func (c *AutotaskpolicyClient) DescribePolicy(request *autotaskpolicy.DescribePolicyRequest) (*autotaskpolicy.DescribePolicyResponse, error)
- func (c *AutotaskpolicyClient) DisableLogger()
- func (c *AutotaskpolicyClient) DisablePolicy(request *autotaskpolicy.DisablePolicyRequest) (*autotaskpolicy.DisablePolicyResponse, error)
- func (c *AutotaskpolicyClient) DisassociateExecResource(request *autotaskpolicy.DisassociateExecResourceRequest) (*autotaskpolicy.DisassociateExecResourceResponse, error)
- func (c *AutotaskpolicyClient) EnablePolicy(request *autotaskpolicy.EnablePolicyRequest) (*autotaskpolicy.EnablePolicyResponse, error)
- func (c *AutotaskpolicyClient) ModifyPolicy(request *autotaskpolicy.ModifyPolicyRequest) (*autotaskpolicy.ModifyPolicyResponse, error)
- func (c *AutotaskpolicyClient) SetConfig(config *core.Config)
- func (c *AutotaskpolicyClient) SetLogger(logger core.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutotaskpolicyClient ¶
type AutotaskpolicyClient struct {
core.JDCloudClient
}
func NewAutotaskpolicyClient ¶
func NewAutotaskpolicyClient(credential *core.Credential) *AutotaskpolicyClient
func (*AutotaskpolicyClient) AssociateExecResource ¶
func (c *AutotaskpolicyClient) AssociateExecResource(request *autotaskpolicy.AssociateExecResourceRequest) (*autotaskpolicy.AssociateExecResourceResponse, error)
关联资源。
func (*AutotaskpolicyClient) CopyPolicy ¶
func (c *AutotaskpolicyClient) CopyPolicy(request *autotaskpolicy.CopyPolicyRequest) (*autotaskpolicy.CopyPolicyResponse, error)
策略跨区复制。
func (*AutotaskpolicyClient) CreatePolicy ¶
func (c *AutotaskpolicyClient) CreatePolicy(request *autotaskpolicy.CreatePolicyRequest) (*autotaskpolicy.CreatePolicyResponse, error)
创建策略,不同策略类型有不同的规则,具体如下。
- AutoImage: 自动创建镜像策略
- fireCondition
- 仅支持"interval",执行周期仅支持"小时/天/周",如: "interval 7d"
- 两次执行时间间隔需要大于12小时
- fireTime
- 触发时间,首次创建时距离当前时间必须在30分钟以后至1年以内。
- 若策略曾经执行过,再次修改该字段时必须满足距离上一次执行时间超过12小时
- execResource
- 哪些云主机需要制作镜像,可指定具体云主机ID列表,每个策略最多绑定100个。
- 仅支持云盘系统盘的虚机
- execConfig
- 配置规则例子:
- [{"key":"includeDeviceName","value":"vdb,vdc"},{"key":"imageLiveDays","10"}]
- includeDeviceName说明:云主机中的哪些云盘需要制作镜像,可指定具体盘符列表,或指定为"all"。云主机中的vda系统盘不可改变,一定要参与制作镜像。
- imageLiveDays说明:镜像保留时间,以天为单位,范围1-36500。不指定则永久有效。
func (*AutotaskpolicyClient) DeletePolicy ¶
func (c *AutotaskpolicyClient) DeletePolicy(request *autotaskpolicy.DeletePolicyRequest) (*autotaskpolicy.DeletePolicyResponse, error)
删除策略。
func (*AutotaskpolicyClient) DescribePolicies ¶
func (c *AutotaskpolicyClient) DescribePolicies(request *autotaskpolicy.DescribePoliciesRequest) (*autotaskpolicy.DescribePoliciesResponse, error)
查询策略列表。
func (*AutotaskpolicyClient) DescribePolicy ¶
func (c *AutotaskpolicyClient) DescribePolicy(request *autotaskpolicy.DescribePolicyRequest) (*autotaskpolicy.DescribePolicyResponse, error)
查询策略详情。
func (*AutotaskpolicyClient) DisableLogger ¶
func (c *AutotaskpolicyClient) DisableLogger()
func (*AutotaskpolicyClient) DisablePolicy ¶
func (c *AutotaskpolicyClient) DisablePolicy(request *autotaskpolicy.DisablePolicyRequest) (*autotaskpolicy.DisablePolicyResponse, error)
关闭策略。
func (*AutotaskpolicyClient) DisassociateExecResource ¶
func (c *AutotaskpolicyClient) DisassociateExecResource(request *autotaskpolicy.DisassociateExecResourceRequest) (*autotaskpolicy.DisassociateExecResourceResponse, error)
取消关联资源。
func (*AutotaskpolicyClient) EnablePolicy ¶
func (c *AutotaskpolicyClient) EnablePolicy(request *autotaskpolicy.EnablePolicyRequest) (*autotaskpolicy.EnablePolicyResponse, error)
开启策略。
func (*AutotaskpolicyClient) ModifyPolicy ¶
func (c *AutotaskpolicyClient) ModifyPolicy(request *autotaskpolicy.ModifyPolicyRequest) (*autotaskpolicy.ModifyPolicyResponse, error)
更新策略。
func (*AutotaskpolicyClient) SetConfig ¶
func (c *AutotaskpolicyClient) SetConfig(config *core.Config)
func (*AutotaskpolicyClient) SetLogger ¶
func (c *AutotaskpolicyClient) SetLogger(logger core.Logger)
Click to show internal directories.
Click to hide internal directories.