类 ScsClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.scs.ScsClient
-
public class ScsClient extends AbstractBceClient
Scs Client Setup configuration to access scs operation
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 ScsClient()ScsClient(BceClientConfiguration config)ScsClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
-
方法概要
-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
ScsClient
public ScsClient()
-
ScsClient
public ScsClient(BceClientConfiguration config)
-
ScsClient
public ScsClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
-
-
方法详细资料
-
createInstance
public ScsCreateResponse createInstance(ScsCreateRequest request)
Create scs instance- 参数:
request- the request of instance create- 返回:
- response of scs instance create which contains instance id
-
deleteInstance
public AbstractBceResponse deleteInstance(ScsDeleteInstanceRequest request)
Delete instance by instance id- 参数:
request- the request of delete instance
-
renewInstance
public ScsRenewInstanceResponse renewInstance(ScsRenewInstanceRequest request)
Renew the scs instance- 参数:
request- the request of renew instance- 返回:
- the response of renew instance
-
recoverInstance
public AbstractBceResponse recoverInstance(ScsRecoverInstanceRequest request)
Recover the instance from the recycle bin- 参数:
request- the request of recover instance
-
getInstanceList
public InstanceListResponse getInstanceList(InstanceListRequest request)
Request scs instance list- 参数:
request- instance list request- 返回:
- scs instance list
-
getInstanceDetail
public ScsInstanceDetailResponse getInstanceDetail(ScsInstanceDetailRequest request)
Request scs instance detail- 参数:
request- Instance detail request which contains instance id- 返回:
- scs instance detail info
-
getParamList
public ScsParamListResponse getParamList(ScsParamListRequest request)
Request param list- 参数:
request- the request of param list- 返回:
- param list response
-
modifyScsParameter
public AbstractBceResponse modifyScsParameter(ScsParamModifyRequest request)
Modify scs parameter- 参数:
request- the request modify param
-
changeScsInstance
public AbstractBceResponse changeScsInstance(ScsChangeConfigRequest request)
Change scs instance Get the latest instance info bygetInstanceDetail(ScsInstanceDetailRequest)- 参数:
request- The request of change instance
-
swapDomain
public AbstractBceResponse swapDomain(ScsSwapDomainRequest request)
Swap instance domain- 参数:
request- the request of swap domain- 返回:
- the response
-
flushInstance
public AbstractBceResponse flushInstance(ScsFlushInstanceRequest request) throws GeneralSecurityException
Request to flush scs instance , the password will be encrypted- 参数:
request- the request of flush instance- 返回:
- the response of flush instance
- 抛出:
GeneralSecurityException
-
getSlowLog
public ScsSlowLogResponse getSlowLog(ScsSlowLogRequest request)
Request the scs slow log- 参数:
request- the request of scs slow log- 返回:
- the response
-
modifySlowLog
public AbstractBceResponse modifySlowLog(ScsSlowLogModifyRequest request)
Modify the slow log enable- 参数:
request- request of modify the slow log enable- 返回:
- the response
-
getZoneList
public ScsZoneResponse getZoneList()
Get the scs zone list- 返回:
- the scs zone list
-
getSubnetList
public ScsSubnetResponse getSubnetList(ScsSubnetRequest request)
Request the scs subnet list- 参数:
request- the request of scs subnet list- 返回:
- the response
-
releaseInstance
public AbstractBceResponse releaseInstance(ScsReleaseInstanceRequest request)
Release the specific scs instance- 参数:
request- the request of release scs instance- 返回:
- the response
-
-