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
public class UPHostClient extends DefaultClient implements UPHostClientInterface
This client is used to call actions of **UPHost** service
-
-
Constructor Summary
Constructors Constructor Description UPHostClient(Config config, Credential credential)
-
Method Summary
-
Methods inherited from class cn.ucloud.common.client.DefaultClient
close, getConfig, getCredential, getTransport, invoke, setConfig, setCredential, setTransport, useMiddleware
-
-
-
-
Constructor Detail
-
UPHostClient
public UPHostClient(Config config, Credential credential)
-
-
Method Detail
-
createPHost
public CreatePHostResponse createPHost(CreatePHostRequest request) throws UCloudException
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
public DescribePHostResponse describePHost(DescribePHostRequest request) throws UCloudException
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
public GetPHostPriceResponse getPHostPrice(GetPHostPriceRequest request) throws UCloudException
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
public PoweroffPHostResponse poweroffPHost(PoweroffPHostRequest request) throws UCloudException
PoweroffPHost - 断电物理机- Specified by:
poweroffPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
rebootPHost
public RebootPHostResponse rebootPHost(RebootPHostRequest request) throws UCloudException
RebootPHost - 重启物理机- Specified by:
rebootPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
reinstallPHost
public ReinstallPHostResponse reinstallPHost(ReinstallPHostRequest request) throws UCloudException
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
public StartPHostResponse startPHost(StartPHostRequest request) throws UCloudException
StartPHost - 启动物理机- Specified by:
startPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
stopPHost
public StopPHostResponse stopPHost(StopPHostRequest request) throws UCloudException
StopPHost - 关闭物理机- Specified by:
stopPHostin interfaceUPHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
terminatePHost
public TerminatePHostResponse terminatePHost(TerminatePHostRequest request) throws UCloudException
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
-
-