client

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgClient

type AgClient struct {
	core.JDCloudClient
}

func NewAgClient

func NewAgClient(credential *core.Credential) *AgClient

func (*AgClient) AbandonInstances

func (c *AgClient) AbandonInstances(request *ag.AbandonInstancesRequest) (*ag.AbandonInstancesResponse, error)

从高可用组中剔除实例

func (*AgClient) CreateAg

func (c *AgClient) CreateAg(request *ag.CreateAgRequest) (*ag.CreateAgResponse, error)

创建一个高可用组

func (*AgClient) DeleteAg

func (c *AgClient) DeleteAg(request *ag.DeleteAgRequest) (*ag.DeleteAgResponse, error)

根据 ID 删除高可用组,需确保 AG 中云主机实例已全部删除

func (*AgClient) DescribeAg

func (c *AgClient) DescribeAg(request *ag.DescribeAgRequest) (*ag.DescribeAgResponse, error)

根据 ID 查询高可用组详情

func (*AgClient) DescribeAgs

func (c *AgClient) DescribeAgs(request *ag.DescribeAgsRequest) (*ag.DescribeAgsResponse, error)

使用过滤条件查询一个或多个高可用组

func (*AgClient) DescribeQuotas

func (c *AgClient) DescribeQuotas(request *ag.DescribeQuotasRequest) (*ag.DescribeQuotasResponse, error)

查询(ag)配额

func (*AgClient) DisableLogger added in v1.56.0

func (c *AgClient) DisableLogger()

func (*AgClient) SetConfig

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

func (*AgClient) SetInstanceTemplate

func (c *AgClient) SetInstanceTemplate(request *ag.SetInstanceTemplateRequest) (*ag.SetInstanceTemplateResponse, error)

修改高可用组的实例模板<br>- 对于更换实例模板来说,如果已经关联负载均衡,则VPC不可以更改。<br>- 自定义配置型不可更改实例模板。

func (*AgClient) SetLogger

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

func (*AgClient) UpdateAg

func (c *AgClient) UpdateAg(request *ag.UpdateAgRequest) (*ag.UpdateAgResponse, error)

修改一个高可用组的信息

Jump to

Keyboard shortcuts

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