client

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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 DhClient

type DhClient struct {
	core.JDCloudClient
}

func NewDhClient

func NewDhClient(credential *core.Credential) *DhClient

func (*DhClient) AllocDedicatedHosts

func (c *DhClient) AllocDedicatedHosts(request *dh.AllocDedicatedHostsRequest) (*dh.AllocDedicatedHostsResponse, error)
创建一台或多台指定机型的专有宿主机。<br>

创建专有宿主机必须指定专有宿主机池。

func (*DhClient) AllocDedicatedPool

func (c *DhClient) AllocDedicatedPool(request *dh.AllocDedicatedPoolRequest) (*dh.AllocDedicatedPoolResponse, error)
申请专有宿主机池。<br>

专有宿主机池为专有宿主机的集合,为用户提供独享且跨机架的宿主机资源池,基于资源独享及故障隔离实现业务安全、高可用部署。<br> 申请宿主机池需要指定机器类型,目前每一个专有宿主机池只能指定一种机器类型。可供选用的机器类型有通用性,内存性,高频计算型及GPU型。<br> deployPolicy表示是否强制池中专有宿主机在每个AZ内数量均衡。可选值为prefered和required,默认为prefered。

func (*DhClient) DescribeDedicatedHostType

func (c *DhClient) DescribeDedicatedHostType(request *dh.DescribeDedicatedHostTypeRequest) (*dh.DescribeDedicatedHostTypeResponse, error)

查询专有宿主机机型。

func (*DhClient) DescribeDedicatedHosts

func (c *DhClient) DescribeDedicatedHosts(request *dh.DescribeDedicatedHostsRequest) (*dh.DescribeDedicatedHostsResponse, error)
查询专有宿主机列表。<br>

此接口支持分页查询,默认每页20条。

func (*DhClient) DescribeDedicatedPools

func (c *DhClient) DescribeDedicatedPools(request *dh.DescribeDedicatedPoolsRequest) (*dh.DescribeDedicatedPoolsResponse, error)

查询专有宿主机池列表

func (*DhClient) DescribeQuotas

func (c *DhClient) DescribeQuotas(request *dh.DescribeQuotasRequest) (*dh.DescribeQuotasResponse, error)

查询配额,支持的类型:专有宿主机、专有宿主机池。

func (*DhClient) DisableLogger

func (c *DhClient) DisableLogger()

func (*DhClient) ModifyDedicatedHostAttribute

func (c *DhClient) ModifyDedicatedHostAttribute(request *dh.ModifyDedicatedHostAttributeRequest) (*dh.ModifyDedicatedHostAttributeResponse, error)

修改专有宿主机部分属性,包括名称、描述。

func (*DhClient) ModifyDedicatedPoolAttribute

func (c *DhClient) ModifyDedicatedPoolAttribute(request *dh.ModifyDedicatedPoolAttributeRequest) (*dh.ModifyDedicatedPoolAttributeResponse, error)

修改专有宿主机池属性,包括名称、描述和可用区。

func (*DhClient) ReleaseDedicatedHost

func (c *DhClient) ReleaseDedicatedHost(request *dh.ReleaseDedicatedHostRequest) (*dh.ReleaseDedicatedHostResponse, error)
释放按配置计费、或包年包月已到期的单个专有宿主机。不能释放没有计费信息的专有宿主机。<br>

专有宿主机状态必须为可用<b>available</b>、不可用<b>unavailable</b>、维护中<b>under-assessment</b>,同时专有宿主机上必须没有云主机实例才可删除。<br>

[MFA enabled]

func (*DhClient) ReleaseDedicatedPool

func (c *DhClient) ReleaseDedicatedPool(request *dh.ReleaseDedicatedPoolRequest) (*dh.ReleaseDedicatedPoolResponse, error)
释放单个专有宿主机池。<br>

专有宿主机池中必须没有专有宿主机时才可释放。

[MFA enabled]

func (*DhClient) SetConfig

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

func (*DhClient) SetLogger

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

Jump to

Keyboard shortcuts

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