Package cn.ucloud.uphost.client
Class UPHostClient
java.lang.Object
cn.ucloud.common.client.DefaultClient
cn.ucloud.uphost.client.UPHostClient
- All Implemented Interfaces:
Client,UPHostClientInterface,Closeable,AutoCloseable
This client is used to call actions of **UPHost** service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePHost(CreatePHostRequest request) CreatePHost - 创建物理机createPHostImage(CreatePHostImageRequest request) CreatePHostImage - 创建裸金属2.0用户自定义镜像DescribeBaremetalMachineType - 获取裸金属机型的详细信息describePHost(DescribePHostRequest request) DescribePHost - 获取物理机信息DescribePHostImage - 获取物理机镜像DescribePHostMachineType - 获取物理云机型信息DescribePHostTags - 获取物理机业务组GetPHostDiskUpgradePrice - 获取物理云裸金属挂载云盘的升级价格getPHostPrice(GetPHostPriceRequest request) GetPHostPrice - 获取物理机价格ModifyPHostImageInfo - 修改物理云自定义镜像信息modifyPHostInfo(ModifyPHostInfoRequest request) ModifyPHostInfo - 更改物理机信息poweroffPHost(PoweroffPHostRequest request) PoweroffPHost - 断电物理机rebootPHost(RebootPHostRequest request) RebootPHost - 重启物理机reinstallPHost(ReinstallPHostRequest request) ReinstallPHost - 重装物理机ResetPHostPassword - 重置实例密码ResizePHostAttachedDisk - 修改挂载的磁盘大小startPHost(StartPHostRequest request) StartPHost - 启动物理机stopPHost(StopPHostRequest request) StopPHost - 关闭物理机terminatePHost(TerminatePHostRequest request) TerminatePHost - 删除物理机TerminatePHostImage - 删除裸金属2.0用户自定义镜像Methods inherited from class cn.ucloud.common.client.DefaultClient
close, getConfig, getCredential, getTransport, invoke, setConfig, setCredential, setTransport, useMiddleware
-
Constructor Details
-
UPHostClient
-
-
Method Details
-
createPHost
CreatePHost - 创建物理机- Specified by:
createPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createPHostImage
public CreatePHostImageResponse createPHostImage(CreatePHostImageRequest request) throws UCloudException CreatePHostImage - 创建裸金属2.0用户自定义镜像- Specified by:
createPHostImagein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeBaremetalMachineType
public DescribeBaremetalMachineTypeResponse describeBaremetalMachineType(DescribeBaremetalMachineTypeRequest request) throws UCloudException DescribeBaremetalMachineType - 获取裸金属机型的详细信息- Specified by:
describeBaremetalMachineTypein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describePHost
DescribePHost - 获取物理机信息- Specified by:
describePHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describePHostImage
public DescribePHostImageResponse describePHostImage(DescribePHostImageRequest request) throws UCloudException DescribePHostImage - 获取物理机镜像- Specified by:
describePHostImagein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describePHostMachineType
public DescribePHostMachineTypeResponse describePHostMachineType(DescribePHostMachineTypeRequest request) throws UCloudException DescribePHostMachineType - 获取物理云机型信息- Specified by:
describePHostMachineTypein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describePHostTags
public DescribePHostTagsResponse describePHostTags(DescribePHostTagsRequest request) throws UCloudException DescribePHostTags - 获取物理机业务组- Specified by:
describePHostTagsin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getPHostDiskUpgradePrice
public GetPHostDiskUpgradePriceResponse getPHostDiskUpgradePrice(GetPHostDiskUpgradePriceRequest request) throws UCloudException GetPHostDiskUpgradePrice - 获取物理云裸金属挂载云盘的升级价格- Specified by:
getPHostDiskUpgradePricein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getPHostPrice
GetPHostPrice - 获取物理机价格- Specified by:
getPHostPricein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyPHostImageInfo
public ModifyPHostImageInfoResponse modifyPHostImageInfo(ModifyPHostImageInfoRequest request) throws UCloudException ModifyPHostImageInfo - 修改物理云自定义镜像信息- Specified by:
modifyPHostImageInfoin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyPHostInfo
public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) throws UCloudException ModifyPHostInfo - 更改物理机信息- Specified by:
modifyPHostInfoin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
poweroffPHost
PoweroffPHost - 断电物理机- Specified by:
poweroffPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
rebootPHost
RebootPHost - 重启物理机- Specified by:
rebootPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
reinstallPHost
ReinstallPHost - 重装物理机- Specified by:
reinstallPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
resetPHostPassword
public ResetPHostPasswordResponse resetPHostPassword(ResetPHostPasswordRequest request) throws UCloudException ResetPHostPassword - 重置实例密码- Specified by:
resetPHostPasswordin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
resizePHostAttachedDisk
public ResizePHostAttachedDiskResponse resizePHostAttachedDisk(ResizePHostAttachedDiskRequest request) throws UCloudException ResizePHostAttachedDisk - 修改挂载的磁盘大小- Specified by:
resizePHostAttachedDiskin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
startPHost
StartPHost - 启动物理机- Specified by:
startPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
stopPHost
StopPHost - 关闭物理机- Specified by:
stopPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
terminatePHost
TerminatePHost - 删除物理机- Specified by:
terminatePHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
terminatePHostImage
public TerminatePHostImageResponse terminatePHostImage(TerminatePHostImageRequest request) throws UCloudException TerminatePHostImage - 删除裸金属2.0用户自定义镜像- Specified by:
terminatePHostImagein interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-