public class BbcClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
BbcClient()
Constructs a new client to invoke service methods on bbc.
|
BbcClient(BceClientConfiguration clientConfiguration)
Constructs a new bbc client using the client configuration to access bbc.
|
BbcClient(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers) |
BbcClient(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers,
boolean isHttpAsyncPutEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindInstanceTag(BindBbcTagsRequest request)
Binding the bbc instance to specified list of tags.
|
CreateBbcImageResponse |
createBbcImage(CreateBbcImageRequest request)
Creating a customized image which can be used for creating instance in the future.
|
CreateBbcInstanceResponse |
createInstance(CreateBbcInstanceRequest request)
Create a bcc Instance with the specified options,
see all the supported instance in
InstanceType
You must fill the field of clientToken,which is especially for keeping idempotent. |
void |
deleteImage(DeleteImageRequest request)
Deleting the specified image.
|
GetBbcFlavorResponse |
getBbcFlavor(GetBbcFlavorRequest request)
Geting the flavor information of a flavor
|
GetBbcFlavorRaidResponse |
getBbcFlavorRaid(GetBbcFlavorRequest request)
Geting the flavor raid information of a raid
|
GetImageResponse |
getImage(GetImageRequest request)
Get the detail information of specified image.
|
GetBbcInstanceResponse |
getInstance(GetInstanceRequest request)
Get the detail information of specified bbc instance.
|
GetInstanceVpcResponse |
getInstanceVpcsubnet(GetInstanceVpcRequest request)
Get the Vpc/Subnet information of specified bbc instance.
|
ListBbcFlavorResponse |
listBbcFlavors(ListBbcFlavorsRequest request)
Listing all the flavors of the bbc instance
|
ListBbcInstancesResponse |
listBbcInstances(ListBbcInstancesRequest request)
Return a list of instances owned by the authenticated user.
|
ListOperationLogResponse |
listBbcOperationLog(ListOperationLogRequest request)
Listing the operation log of the bbc.
|
ListImagesResponse |
listImages(ListImagesRequest request)
Listing bbc images owned by the authenticated user.
|
void |
modifyBbcPassword(ModifyInstancePasswordRequest request)
Modifying the password of the bbc instance.
|
void |
modifyInstanceDesc(ModifyInstanceDescRequest request)
Modifying the special describe to new value of the instance.
|
void |
rebootInstance(RebootInstanceRequest request)
Rebooting the bbc instance owned by the user.
|
void |
rebuildBbcInstance(RebuildBbcInstanceRequest request)
Rebuilding the bbc instance owned by the user.
|
void |
releaseBbcInstance(ReleaseInstanceRequest request)
Releasing the instance owned by the user.
|
void |
renameBbcInstance(RenameBbcInstanceRequest request)
Modifying the special attribute to new value of the instance.
|
void |
startInstance(StartInstanceRequest request)
Starting the bbc instance owned by the user.
|
void |
stopInstance(StopInstanceRequest request)
Stopping the bbc instance owned by the user.
|
void |
unBindInstanceTag(BindBbcTagsRequest request)
Unbinding the bbc instance to specified list of tags.
|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic BbcClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The bcc client configuration options controlling how this client
connects to bbc (e.g. proxy settings, retry counts, etc).public BbcClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers, boolean isHttpAsyncPutEnabled)
public BbcClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
public BbcClient()
public void bindInstanceTag(BindBbcTagsRequest request)
request - The request containing all options for binding the instance to specified list of tags.public void unBindInstanceTag(BindBbcTagsRequest request)
request - The request containing all options for unbinding the instance to specified list of tags.public void modifyBbcPassword(ModifyInstancePasswordRequest request) throws BceClientException
You can reboot the instance only when the instance is Running or Stopped ,
otherwise,it's will get 409 errorCode.
request - The request containing all options for modifying the bbc instance password.BceClientExceptionpublic GetInstanceVpcResponse getInstanceVpcsubnet(GetInstanceVpcRequest request) throws BceClientException
request - The request containing all options for getting the Vpc/Subnet informationBceClientExceptionpublic ListBbcInstancesResponse listBbcInstances(ListBbcInstancesRequest request)
request - The request containing all options for listing own's bcc Instance.public GetBbcInstanceResponse getInstance(GetInstanceRequest request)
request - The request containing all options for getting the instance info.public void startInstance(StartInstanceRequest request)
You can start the instance only when the instance is Stopped,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for starting the instance.public void stopInstance(StopInstanceRequest request)
You can stop the instance only when the instance is Running,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for stopping the instance.public void rebootInstance(RebootInstanceRequest request)
You can reboot the instance only when the instance is Running,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for rebooting the instance.public void renameBbcInstance(RenameBbcInstanceRequest request)
You can reboot the instance only when the instance is Running or Stopped ,
otherwise,it's will get 409 errorCode.
request - The request containing all options for modifying the instance attribute.public void modifyInstanceDesc(ModifyInstanceDescRequest request)
request - The request containing all options for modifying the instance desc.public void rebuildBbcInstance(RebuildBbcInstanceRequest request) throws BceClientException
After rebuilding the instance, all of snapshots created from original instance system disk will be deleted, all of customized images created from original instance system disk will be saved.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for rebuilding the instance.BceClientExceptionpublic void releaseBbcInstance(ReleaseInstanceRequest request)
Only the Postpaid instance or Prepaid which is expired can be released. After releasing the instance, all of the data will be deleted. all of volumes attached will be detached,but the volume snapshots will be saved. all of snapshots created from original instance system disk will be deleted, all of customized images created from original instance system disk will be reserved.
request - The request containing all options for releasing the instance.public ListBbcFlavorResponse listBbcFlavors(ListBbcFlavorsRequest request)
request - public GetBbcFlavorResponse getBbcFlavor(GetBbcFlavorRequest request)
request - The request containing all options for releasing the instance.public GetBbcFlavorRaidResponse getBbcFlavorRaid(GetBbcFlavorRequest request)
request - The request containing all options for releasing the instance.public CreateBbcImageResponse createBbcImage(CreateBbcImageRequest request)
You can create an image from an instance or you can create from an snapshot. The parameters of instanceId and snapshotId can no be null simultaneously. when both instanceId and snapshotId are assigned,only instanceId will be used.
While creating an image from an instance,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.
You can create the image only from system snapshot.
While creating an image from a system snapshot,the snapshot must be Available,
otherwise,it's will get 409 errorCode.
request - The request containing all options for creating a new image.public ListImagesResponse listImages(ListImagesRequest request)
request - The request containing all options for listing images owned by user.public GetImageResponse getImage(GetImageRequest request)
request - The request containing all options for getting the detail information of specified image.public void deleteImage(DeleteImageRequest request)
Only the customized image can be deleted,
otherwise,it's will get 403 errorCode.
request - The request containing all options for deleting the specified image.public ListOperationLogResponse listBbcOperationLog(ListOperationLogRequest request)
request - public CreateBbcInstanceResponse createInstance(CreateBbcInstanceRequest request) throws BceClientException
InstanceType
You must fill the field of clientToken,which is especially for keeping idempotent.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for creating a bcc Instance.BceClientExceptionCopyright © 2022. All rights reserved.