Package cn.ucloud.uhost.client
Class UHostClient
- java.lang.Object
-
- cn.ucloud.common.client.DefaultClient
-
- cn.ucloud.uhost.client.UHostClient
-
- All Implemented Interfaces:
Client,UHostClientInterface,Closeable,AutoCloseable
public class UHostClient extends DefaultClient implements UHostClientInterface
This client is used to call actions of **UHost** service
-
-
Constructor Summary
Constructors Constructor Description UHostClient(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
-
UHostClient
public UHostClient(Config config, Credential credential)
-
-
Method Detail
-
copyCustomImage
public CopyCustomImageResponse copyCustomImage(CopyCustomImageRequest request) throws UCloudException
CopyCustomImage - 复制自制镜像- Specified by:
copyCustomImagein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createCustomImage
public CreateCustomImageResponse createCustomImage(CreateCustomImageRequest request) throws UCloudException
CreateCustomImage - 创建自制镜像- Specified by:
createCustomImagein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createIsolationGroup
public CreateIsolationGroupResponse createIsolationGroup(CreateIsolationGroupRequest request) throws UCloudException
CreateIsolationGroup - 创建硬件隔离组- Specified by:
createIsolationGroupin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUHostInstance
public CreateUHostInstanceResponse createUHostInstance(CreateUHostInstanceRequest request) throws UCloudException
CreateUHostInstance - 创建云主机- Specified by:
createUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUHostKeyPair
public CreateUHostKeyPairResponse createUHostKeyPair(CreateUHostKeyPairRequest request) throws UCloudException
CreateUHostKeyPair - 创建主机密钥对- Specified by:
createUHostKeyPairin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteIsolationGroup
public DeleteIsolationGroupResponse deleteIsolationGroup(DeleteIsolationGroupRequest request) throws UCloudException
DeleteIsolationGroup - 删除硬件隔离组- Specified by:
deleteIsolationGroupin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteUHostKeyPairs
public DeleteUHostKeyPairsResponse deleteUHostKeyPairs(DeleteUHostKeyPairsRequest request) throws UCloudException
DeleteUHostKeyPairs - 删除主机密钥- Specified by:
deleteUHostKeyPairsin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeAvailableInstanceTypes
public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes(DescribeAvailableInstanceTypesRequest request) throws UCloudException
DescribeAvailableInstanceTypes - 获取某个地域下可售/售罄的所有机型信息- Specified by:
describeAvailableInstanceTypesin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeImage
public DescribeImageResponse describeImage(DescribeImageRequest request) throws UCloudException
DescribeImage - 获取镜像列表- Specified by:
describeImagein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeIsolationGroup
public DescribeIsolationGroupResponse describeIsolationGroup(DescribeIsolationGroupRequest request) throws UCloudException
DescribeIsolationGroup - 查询硬件隔离组- Specified by:
describeIsolationGroupin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUHostInstance
public DescribeUHostInstanceResponse describeUHostInstance(DescribeUHostInstanceRequest request) throws UCloudException
DescribeUHostInstance - 获取主机信息- Specified by:
describeUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUHostKeyPairs
public DescribeUHostKeyPairsResponse describeUHostKeyPairs(DescribeUHostKeyPairsRequest request) throws UCloudException
DescribeUHostKeyPairs - 查询主机密钥信息- Specified by:
describeUHostKeyPairsin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUHostTags
public DescribeUHostTagsResponse describeUHostTags(DescribeUHostTagsRequest request) throws UCloudException
DescribeUHostTags - 获取主机业务组列表- Specified by:
describeUHostTagsin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getAttachedDiskUpgradePrice
public GetAttachedDiskUpgradePriceResponse getAttachedDiskUpgradePrice(GetAttachedDiskUpgradePriceRequest request) throws UCloudException
GetAttachedDiskUpgradePrice - 获取挂载磁盘的升级价格- Specified by:
getAttachedDiskUpgradePricein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUHostInstancePrice
public GetUHostInstancePriceResponse getUHostInstancePrice(GetUHostInstancePriceRequest request) throws UCloudException
GetUHostInstancePrice - 获取主机价格- Specified by:
getUHostInstancePricein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUHostInstanceVncInfo
public GetUHostInstanceVncInfoResponse getUHostInstanceVncInfo(GetUHostInstanceVncInfoRequest request) throws UCloudException
GetUHostInstanceVncInfo - 获取VNC登录信息- Specified by:
getUHostInstanceVncInfoin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUHostRenewPrice
public GetUHostRenewPriceResponse getUHostRenewPrice(GetUHostRenewPriceRequest request) throws UCloudException
GetUHostRenewPrice - 获取主机续费价格- Specified by:
getUHostRenewPricein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUHostUpgradePrice
public GetUHostUpgradePriceResponse getUHostUpgradePrice(GetUHostUpgradePriceRequest request) throws UCloudException
GetUHostUpgradePrice - 获取主机规格调整差价- Specified by:
getUHostUpgradePricein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
importCustomImage
public ImportCustomImageResponse importCustomImage(ImportCustomImageRequest request) throws UCloudException
ImportCustomImage - 导入镜像- Specified by:
importCustomImagein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
importUHostKeyPairs
public ImportUHostKeyPairsResponse importUHostKeyPairs(ImportUHostKeyPairsRequest request) throws UCloudException
ImportUHostKeyPairs - 导入密钥对的公钥部分- Specified by:
importUHostKeyPairsin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
leaveIsolationGroup
public LeaveIsolationGroupResponse leaveIsolationGroup(LeaveIsolationGroupRequest request) throws UCloudException
LeaveIsolationGroup - 移除硬件隔离组中的主机- Specified by:
leaveIsolationGroupin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUHostIP
public ModifyUHostIPResponse modifyUHostIP(ModifyUHostIPRequest request) throws UCloudException
ModifyUHostIP - 修改云主机内部 IP 地址- Specified by:
modifyUHostIPin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUHostInstanceName
public ModifyUHostInstanceNameResponse modifyUHostInstanceName(ModifyUHostInstanceNameRequest request) throws UCloudException
ModifyUHostInstanceName - 修改主机名- Specified by:
modifyUHostInstanceNamein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUHostInstanceRemark
public ModifyUHostInstanceRemarkResponse modifyUHostInstanceRemark(ModifyUHostInstanceRemarkRequest request) throws UCloudException
ModifyUHostInstanceRemark - 修改主机备注- Specified by:
modifyUHostInstanceRemarkin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUHostInstanceTag
public ModifyUHostInstanceTagResponse modifyUHostInstanceTag(ModifyUHostInstanceTagRequest request) throws UCloudException
ModifyUHostInstanceTag - 修改主机业务组- Specified by:
modifyUHostInstanceTagin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
poweroffUHostInstance
public PoweroffUHostInstanceResponse poweroffUHostInstance(PoweroffUHostInstanceRequest request) throws UCloudException
PoweroffUHostInstance - 模拟主机掉电- Specified by:
poweroffUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
rebootUHostInstance
public RebootUHostInstanceResponse rebootUHostInstance(RebootUHostInstanceRequest request) throws UCloudException
RebootUHostInstance - 重启主机- Specified by:
rebootUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
reinstallUHostInstance
public ReinstallUHostInstanceResponse reinstallUHostInstance(ReinstallUHostInstanceRequest request) throws UCloudException
ReinstallUHostInstance - 重装系统- Specified by:
reinstallUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
resetUHostInstancePassword
public ResetUHostInstancePasswordResponse resetUHostInstancePassword(ResetUHostInstancePasswordRequest request) throws UCloudException
ResetUHostInstancePassword - 重置主机密码- Specified by:
resetUHostInstancePasswordin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
resizeAttachedDisk
public ResizeAttachedDiskResponse resizeAttachedDisk(ResizeAttachedDiskRequest request) throws UCloudException
ResizeAttachedDisk - 修改挂载的磁盘大小- Specified by:
resizeAttachedDiskin interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
resizeUHostInstance
public ResizeUHostInstanceResponse resizeUHostInstance(ResizeUHostInstanceRequest request) throws UCloudException
ResizeUHostInstance - 修改主机规格- Specified by:
resizeUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
startUHostInstance
public StartUHostInstanceResponse startUHostInstance(StartUHostInstanceRequest request) throws UCloudException
StartUHostInstance - 启动主机- Specified by:
startUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
stopUHostInstance
public StopUHostInstanceResponse stopUHostInstance(StopUHostInstanceRequest request) throws UCloudException
StopUHostInstance - 关闭主机- Specified by:
stopUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
terminateCustomImage
public TerminateCustomImageResponse terminateCustomImage(TerminateCustomImageRequest request) throws UCloudException
TerminateCustomImage - 删除自制镜像- Specified by:
terminateCustomImagein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
terminateUHostInstance
public TerminateUHostInstanceResponse terminateUHostInstance(TerminateUHostInstanceRequest request) throws UCloudException
TerminateUHostInstance - 删除云主机- Specified by:
terminateUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
upgradeToArkUHostInstance
public UpgradeToArkUHostInstanceResponse upgradeToArkUHostInstance(UpgradeToArkUHostInstanceRequest request) throws UCloudException
UpgradeToArkUHostInstance - 普通升级为方舟机型- Specified by:
upgradeToArkUHostInstancein interfaceUHostClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
-