client

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (*AutotaskpolicyClient) CopyPolicy

策略跨区复制。

func (*AutotaskpolicyClient) CreatePolicy

创建策略,不同策略类型有不同的规则,具体如下。

- 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 (*AutotaskpolicyClient) DescribePolicies

查询策略列表。

func (*AutotaskpolicyClient) DescribePolicy

查询策略详情。

func (*AutotaskpolicyClient) DisableLogger

func (c *AutotaskpolicyClient) DisableLogger()

func (*AutotaskpolicyClient) DisablePolicy

关闭策略。

func (*AutotaskpolicyClient) DisassociateExecResource

取消关联资源。

func (*AutotaskpolicyClient) EnablePolicy

开启策略。

func (*AutotaskpolicyClient) ModifyPolicy

更新策略。

func (*AutotaskpolicyClient) SetConfig

func (c *AutotaskpolicyClient) SetConfig(config *core.Config)

func (*AutotaskpolicyClient) SetLogger

func (c *AutotaskpolicyClient) SetLogger(logger core.Logger)

Jump to

Keyboard shortcuts

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