public class BccClient extends AbstractBceClient
| Modifier and Type | Field and Description |
|---|---|
static String |
EHC_CLUSTER_MODIFY |
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
BccClient()
Constructs a new client to invoke service methods on bcc.
|
BccClient(BceClientConfiguration clientConfiguration)
Constructs a new bcc client using the client configuration to access bcc.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceAddIpv6Response |
addIpv6(InstanceIpv6Request request) |
void |
attachAsp(AttachAspRequest request)
Attaching the specified asp to volumes.
|
void |
attachKeypair(KeypairAttachRequest request)
Attach an keypair to one or more instances.
|
AttachVolumeResponse |
attachVolume(AttachVolumeRequest request)
Attaching the specified volume to a specified instance.
|
AttachVolumeResponse |
attachVolume(String volumeId,
String instanceId)
Attaching the specified volume to a specified instance.
|
void |
authorizeSecurityGroupRule(SecurityGroupRuleOperateRequest request)
authorizing a security group rule to a specified security group
|
void |
autoRenewVolume(AutoRenewVolumeRequest request)
Enable auto renewal the specified volume
|
void |
autoRenewVolume(String volumeId,
String renewTimeUnit,
int renewTime) |
void |
autoRenewVolumeCluster(AutoRenewVolumeClusterRequest request)
Enable auto renewal the specified cluster
|
void |
autoRenewVolumeCluster(String clusterId,
int renewTime,
String renewTimeUnit) |
BatchAddIpResponse |
batchAddIp(BatchAddIpRequest request) |
BatchChangeToPrepaidResponse |
batchChangeToPrepaid(BatchChangeToPrepaidRequest request) |
void |
batchDeleteIp(BatchDeleteIpRequest request) |
BatchRefundResourceResponse |
batchRefundResource(BatchRefundResourceRequest request) |
void |
batchStopInstance(BatchStopInstanceRequest request) |
void |
bindInstanceToSecurityGroup(BindSecurityGroupRequest request)
Binding the instance to specified securitygroup.
|
void |
bindInstanceToSecurityGroup(String instanceId,
String securityGroupId)
Binding the instance to specified securitygroup.
|
void |
bindInstanceToTags(BindTagsRequest request)
Binding the instance to specified list of tags.
|
void |
bindInstanceToTags(String instanceId,
List<TagModel> changeTags)
Binding the instance to specified list of tags.
|
void |
bindReservedInstanceToTags(ReservedTagsRequest request) |
void |
bindTagsBatchByResourceType(TagsOperationRequest request) |
void |
cancelAutoRenewVolume(CancelAutoRenewVolumeRequest request)
Disable auto renewal the volume
|
void |
cancelAutoRenewVolumeCluster(CancelAutoRenewVolumeClusterRequest request)
Disable auto renewal the cluster
|
CancelBidOrderResponse |
cancelBidOrder(CancelBidOrderRequest request)
Cancel the bidding instance order.
|
CancelBidOrderResponse |
cancelBidOrder(String oderId)
Cancel the bidding instance order.
|
void |
cancelRemoteCopyImage(CancelRemoteCopyImageRequest request)
Cancel remote copy image.
|
void |
cancelRemoteCopyImage(String imageId)
Cancel remote copy image.
|
ChangeToPrepaidResponse |
changeToPrepaid(ChangeToPrepaidRequest request)
Change the instance payment method to prepaid.
|
AbstractBceResponse |
changeVpc(ChangeVpcRequest request) |
CreateAspResponse |
createAsp(CreateAspRequest request)
Creating autoSnapshotPolicy
|
void |
createAutoRenewRule(BccAutoRenewRequest request) |
CreateInstanceResponse |
createBidInstance(CreateInstanceRequest request)
Create a bcc bidding Instance with the specified options,
You must fill the field with clientToken,which is especially for keeping idempotent.
|
CreateDeploySetResponse |
createDeploySet(CreateDeploySetRequest request)
Create a deploy set
|
CreateEhcClusterResponse |
createEhcCluster(CreateEhcClusterRequest request) |
CreateImageResponse |
createImage(CreateImageRequest request)
Creating a customized image which can be used for creating instance in the future.
|
CreateImageResponse |
createImageFromInstance(String imageName,
String instanceId)
Creating a customized image from the instance..
|
CreateImageResponse |
createImageFromInstanceWithRelateCds(String imageName,
String instanceId,
boolean relateCds)
Creating a customized image from the instance..
|
CreateImageResponse |
createImageFromSnapshot(String imageName,
String snapshotId)
Creating a customized image from specified snapshot.
|
CreateInstanceResponse |
createInstance(CreateInstanceRequest request)
Create a bcc Instance with the specified options,
see all the supported instance in
InstanceType
You must fill the field with clientToken,which is especially for keeping idempotent. |
CreateInstanceResponse |
createInstanceBySpec(CreateInstanceRequest request)
Create a bcc Instance by spec
see all the supported instance in
InstanceType
You must fill the field with clientToken,which is especially for keeping idempotent. |
KeypairModel |
createKeypair(KeypairCreateRequest request)
create an keypair.
|
CreateReservedInstanceResponse |
createReservedInstances(CreateReservedInstancesRequest request) |
CreateSecurityGroupResponse |
createSecurityGroup(CreateSecurityGroupRequest request)
Creating a newly SecurityGroup with specified rules.
|
CreateSnapshotResponse |
createSnapshot(CreateSnapshotRequest request)
Creating snapshot from specified volume.
|
CreateSnapshotResponse |
createSnapshot(String volumeId,
String snapshotName)
Creating snapshot from specified volume.
|
CreateSnapshotResponse |
createSnapshot(String volumeId,
String snapshotName,
String desc)
Creating snapshot from specified volume.
|
CreateVolumeResponse |
createVolume(CreateVolumeRequest request)
Create a volume with the specified options.
|
CreateVolumeClusterResponse |
createVolumeCluster(CreateVolumeClusterRequest request)
Create a volume Cluster with the specified options.
|
void |
deleteAsp(DeleteAspRequest request)
Deleting autoSnapshotPolicy
|
void |
deleteAsp(String aspId)
Deleting autoSnapshotPolicy
|
void |
deleteAutoRenewRule(BccAutoRenewRequest request) |
void |
deleteDeploySet(DeleteDeploySetRequest request)
Delete a deploy set with deployId
|
void |
deleteEhcCluster(DeleteEhcClusterRequest request) |
void |
deleteImage(DeleteImageRequest request)
Deleting the specified image.
|
void |
deleteImage(String imageId)
Deleting the specified image.
|
void |
deleteInstanceDeploySet(DeleteInstanceDeploysetRequest request) |
void |
deleteKeypair(KeypairDeleteRequest request)
Delete keypair.
|
void |
deleteRecycledInstance(String instanceId) |
void |
deleteSecurityGroup(DeleteSecurityGroupRequest request)
Deleting the specified SecurityGroup.
|
void |
deleteSecurityGroup(String securityGroupId)
Deleting the specified SecurityGroup.
|
void |
deleteSecurityGroupRule(DeleteSecurityGroupRuleRequest request)
Delete the specific security group rule via params in the deleteSecurityGroupRuleRequest
|
void |
deleteSecurityGroupRule(String securityGroupRuleId)
Delete the specific security group rule by the corresponding rule id.
|
void |
deleteSnapshot(DeleteSnapshotRequest request)
Deleting the specified snapshot.
|
void |
deleteSnapshot(String snapshotId)
Deleting the specified snapshot.
|
void |
delIpv6(InstanceIpv6Request request) |
DescribeRegionsResponse |
describeRegions(DescribeRegionsRequest request)
List all region's endpoint information.
|
void |
detachAsp(DetachAspRequest request)
Detaching the specified asp to volumes.
|
void |
detachKeypair(KeypairDetachRequest request)
Detach the keypair from one or more instances.
|
void |
detachVolume(DetachVolumeRequest request)
Detaching the specified volume from a specified instance.
|
void |
detachVolume(String volumeId,
String instanceId)
Detaching the specified volume from a specified instance.
|
DescribeEhcClusterListResponse |
ehcClusterList(DescribeEhcClusterListRequest request) |
GetAspResponse |
getAsp(GetAspRequest request)
Getting the detail information of specified asp.
|
GetAspResponse |
getAsp(String aspId)
Get the detail information of specified asp.
|
GetAvailableImagesBySpecResponse |
getAvailableImagesBySpec(GetAvailableImagesBySpecRequest request) |
GetBidInstancePriceResponse |
getBidInstancePrice(GetBidInstancePriceRequest request)
Query market price of bidding instance
|
VolumePriceResponse |
getCdsPrice(VolumePriceRequest request) |
GetImageResponse |
getImage(GetImageRequest request)
Get the detail information of specified image.
|
GetImageResponse |
getImage(String imageId)
Get the detail information of specified image.
|
GetInstanceResponse |
getInstance(GetInstanceRequest request)
Get the detail information of specified instance.
|
GetInstanceResponse |
getInstance(String instanceId)
Get the detail information of specified instance.
|
ListInstancesResponse |
getInstanceNoChargeList(ListGetInstanceNoChargeRequest request)
Return a list of noCharge instances owned by the authenticated user.
|
GetInstanceVncResponse |
getInstanceVnc(GetInstanceVncRequest request)
Getting the vnc url to access the instance.
|
GetInstanceVncResponse |
getInstanceVnc(String instanceId)
Getting the vnc url to access the instance.
|
BccPriceResponse |
getPriceBySpec(BccPriceRequest request)
Get the price information of specified instance.
|
GetSnapshotResponse |
getSnapshot(GetSnapshotRequest request)
Getting the detail information of specified snapshot.
|
GetSnapshotResponse |
getSnapshot(String snapshotId)
Get the detail information of specified snapshot.
|
GetVolumeResponse |
getVolume(GetVolumeRequest request)
Get the detail information of specified volume.
|
GetVolumeResponse |
getVolume(String volumeId)
Get the detail information of specified volume.
|
GetVolumeClusterResponse |
getVolumeCluster(GetVolumeClusterRequest request)
Get the detail information of specified cluster.
|
GetVolumeClusterResponse |
getVolumeCluster(String clusterId)
Get the detail information of specified cluster.
|
KeypairModel |
importKeypair(KeypairImportRequest request)
Import an keypair.
|
KeypairModel |
keypairDetail(KeypairDetailRequest request)
Query keypair's detail information.
|
ListAspsResponse |
listAsps(ListAspsRequest request)
Listing asps owned by the authenticated user.
|
ListAvailableResizeSpecResponse |
listAvailableResizeSpec(ListAvailableResizeSpecRequest request) |
ListBccBidFlavorResponse |
listBidFlavor()
Return a list of bidFlavor owned by the authenticated user.
|
ListDeploySetResponse |
listDeploySet()
Query the user's deploy set list
|
ListBccFlavorSpecResponse |
listFlavorSpec(ListFlavorSpecRequest request)
Return a list of flavorSpec owned by the authenticated user.
|
ListImagesResponse |
listImages()
Listing images owned by the authenticated user.
|
ListImagesResponse |
listImages(ListImagesRequest request)
Listing images owned by the authenticated user.
|
ListInstancesResponse |
listInstanceByIds(ListInstanceByIdsRequest request)
Return a list of instances owned by the authenticated user.
|
ListInstanceEnisResponse |
listInstanceEnis(ListInstanceEnisRequest request) |
ListInstancesResponse |
listInstances()
Return a list of instances owned by the authenticated user.
|
ListInstancesResponse |
listInstances(ListInstancesRequest request)
Return a list of instances owned by the authenticated user.
|
ListInstanceSpecsResponse |
listInstanceSpecs()
Deprecated.
|
ListInstanceSpecsResponse |
listInstanceSpecs(ListInstanceSpecsRequest request)
Deprecated.
|
KeypairListResponse |
listKeypair(KeypairListRequest request)
Query keypair's information from specifics range.
|
ListOsResponse |
listOs(ListOsRequest request)
list os by instanceIds.
|
ListRecycleInstanceResponse |
listRecycleInstance(ListRecycleInstanceRequest request) |
ListSecurityGroupsResponse |
listSecurityGroups(ListSecurityGroupsRequest request)
Listing SecurityGroup owned by the authenticated user.
|
ListSharedUserResponse |
listSharedUser(ListSharedUserRequest request)
Listing sharedUsers by the authenticated imageId.
|
ListSharedUserResponse |
listSharedUser(String imageId)
Listing sharedUsers by the authenticated imageId.
|
ListSnapchainResponse |
listSnapchain(ListSnapchainRequest request)
Query the list of user's snapshot chain information.
|
ListSnapshotsResponse |
listSnapshots(ListSnapshotsRequest request)
Listing snapshots owned by the authenticated user.
|
ListVolumeClustersResponse |
listVolumeClusters()
Listing volumes owned by the authenticated user.
|
ListVolumeClustersResponse |
listVolumeClusters(ListVolumeClustersRequest request)
Listing Cluster owned by the authenticated user.
|
ListVolumesResponse |
listVolumes()
Listing volumes owned by the authenticated user.
|
ListVolumesResponse |
listVolumes(ListVolumesRequest request)
Listing volumes owned by the authenticated user.
|
ListZonesResponse |
listZones()
listing zones within current region
|
ListZonesResponse |
listZones(AbstractBceRequest request)
listing zones within current region
|
void |
modifyCdsAttribute(ModifyCdsAttrRequest modifyCdsAttrRequest)
change cds volume's attribute。
this interface is used to change cds's attribute, currently Name/Desc attribute is supported.
|
void |
modifyEhcCluster(ModifyEhcClusterRequest request) |
void |
modifyInstanceAttributes(ModifyInstanceAttributesRequest request)
Modifying the special attribute to new value of the instance.
|
void |
modifyInstanceDesc(ModifyInstanceDescRequest request)
Modifying the special describe to new value of the instance.
|
void |
modifyInstanceHostname(ModifyInstanceHostnameRequest request)
Modifying the hostname to new value of the instance.
|
void |
modifyInstanceHostname(String instanceId,
String hostname,
boolean isReboot,
boolean isOpenHostnameDomain) |
void |
modifyInstancePassword(ModifyInstancePasswordRequest request)
Modifying the password of the instance.
|
void |
modifyInstancePassword(String instanceId,
String adminPass)
Modifying the password of the instance.
|
ModifyReservedInstancesResponse |
modifyReservedInstances(ModifyReservedInstancesRequest request) |
void |
modifyVolumeChargeType(ModifyVolumeChargeRequest request)
Change the volume's billing method.
|
void |
modifyVolumeChargeType(ModifyVolumeChargeTypeRequest request)
Change the volume's billing method.
|
PurchaseReservedInstanceResponse |
purchaseReservedInstance(PurchaseReservedInstanceRequeset request)
Renewing the instance with fixed duration.
|
PurchaseReservedInstanceResponse |
purchaseReservedInstance(String instanceId,
int reservationLength,
String reservationTimeUnit)
PurchaseReserved the instance with fixed duration.
|
PurchaseReservedInstanceResponse |
purchaseReservedInstance(String instanceId,
int reservationLength,
String reservationTimeUnit,
String relatedRenewFlagType)
PurchaseReserved the instance with fixed duration.
|
void |
purchaseReservedVolume(PurchaseReservedVolumeRequest request)
PurchaseReserved the instance with fixed duration.
|
void |
purchaseReservedVolume(String volumeId,
int reservationLength,
String reservationTimeUnit)
PurchaseReserved the instance with fixed duration.
|
void |
purchaseReservedVolumeCluster(PurchaseReservedVolumeClusterRequest request)
PurchaseReserved the cluster with fixed duration.
|
void |
purchaseReservedVolumeCluster(String clusterId,
int reservationLength,
String reservationTimeUnit)
PurchaseReserved the cluster with fixed duration.
|
void |
rebootInstance(RebootInstanceRequest request)
Rebooting the instance owned by the user.
|
void |
rebootInstance(String instanceId)
Rebooting the instance owned by the user.
|
void |
rebootInstance(String instanceId,
boolean forceStop)
Rebooting the instance owned by the user.
|
void |
rebuildBatchInstance(List<String> instanceIds,
String imageId,
String adminPass)
Rebuilding the instance owned by the user by batch.
|
void |
rebuildBatchInstance(List<String> instanceIds,
String imageId,
String adminPass,
String keypairId)
Rebuilding the instance owned by the user by batch.
|
void |
rebuildBatchInstance(RebuildBatchInstanceRequest request)
Rebuilding the instance owned by the user.
|
void |
rebuildInstance(RebuildInstanceRequest request)
Rebuilding the instance owned by the user.
|
void |
rebuildInstance(String instanceId,
String imageId,
String adminPass)
Rebuilding the instance owned by the user.
|
void |
rebuildInstance(String instanceId,
String imageId,
String adminPass,
String keypairId)
Rebuilding the instance owned by the user.
|
void |
refundVolumeCluster(String clusterId)
The cluster can be unsubscribed after six months of use.
|
void |
releaseInstance(ReleaseInstanceRequest request)
Releasing the instance owned by the user.
|
void |
releaseInstance(String instanceId)
Releasing the instance owned by the user.
|
void |
releaseInstanceByPost(ReleaseInstanceByPostRequest request)
Releasing the instance owned by the user.
|
void |
releaseInstanceByPost(String instanceId,
boolean relatedReleaseFlag,
boolean deleteCdsSnapshotFlag)
Releasing the instance owned by the user by POST.
|
void |
releaseMultipleInstanceByPost(ReleaseMultipleInstancesRequest request)
Releasing the instance owned by the user.
|
void |
releaseMultipleInstancesByPost(List<String> instanceIds,
boolean relatedReleaseFlag,
boolean deleteCdsSnapshotFlag,
boolean bccRecycleFlag,
boolean deleteRelatedEnisFlag)
Releasing the instance owned by the user by POST.
|
ReleasePrepaidInstanceResponse |
releasePrepaidInstanceByPost(ReleasePrepaidInstanceRequest request)
Releasing the instance owned by the user.
|
ReleasePrepaidInstanceResponse |
releasePrepaidInstanceByPost(String instanceId,
boolean relatedReleaseFlag,
boolean deleteCdsSnapshotFlag,
boolean deleteRelatedEnisFlag)
Releasing the instance owned by the user by POST.
|
void |
releaseRecycledInstance(ReleaseInstanceRequest request)
Releasing the recycled instance owned by the user.
|
void |
releaseRecycledInstance(String instanceId)
Releasing the recycled instance owned by the user.
|
void |
releaseVolume(ReleaseVolumeRequest request)
Releasing the specified volume owned by the user.
|
void |
releaseVolume(String volumeId)
Releasing the specified volume owned by the user.
|
void |
remoteCopyImage(RemoteCopyImageRequest request)
Remote copy image.
|
void |
renameKeypair(KeypairRenameRequest request)
Rename an keypair to instance.
|
void |
renameVolume(RenameVolumeRequest request)
Rename the volume
|
void |
resizeInstance(ResizeInstanceRequest request)
Resizing the instance owned by the user.
|
void |
resizeInstanceBySpec(ResizeInstanceRequest request)
Through spec Resizing the instance through the spec owned by the user.
|
ResizeVolumeResponse |
resizeVolume(ResizeVolumeRequest request)
Resizing the specified volume with newly size.
|
ResizeVolumeResponse |
resizeVolume(String volumeId,
int newCdsSizeInGB)
Resizing the specified volume with newly size.
|
void |
resizeVolumeCluster(ResizeVolumeClusterRequest request)
Resizing the specified cluster with newly size.
|
void |
resizeVolumeCluster(String clusterId,
int newClusterSizeInGB)
Resizing the specified cluster with newly size.
|
void |
revokeSecurityGroupRule(SecurityGroupRuleOperateRequest request)
revoking a security group rule from the specified security group
|
void |
rollbackVolume(RollbackVolumeRequest request)
Rollback the volume with the specified volume snapshot.
|
void |
rollbackVolume(String volumeId,
String snapshotId)
Rollback the volume with the specified volume snapshot.
|
void |
shareImage(ShareImageRequest request)
Sharing the specified image.
|
void |
startInstance(StartInstanceRequest request)
Starting the instance owned by the user.
|
void |
startInstance(String instanceId)
Starting the instance owned by the user.
|
void |
stopInstance(StopInstanceRequest request)
Stopping the instance owned by the user.
|
void |
stopInstance(String instanceId)
Stopping the instance owned by the user.
|
void |
stopInstance(String instanceId,
boolean forceStop)
Stopping the instance owned by the user.
|
void |
stopInstance(String instanceId,
boolean forceStop,
boolean stopWithNoCharge)
Stopping the instance owned by the user.
|
CreateVolumeResponse |
syncCreateVolume(CreateVolumeRequest request)
Sync create volume with the specified options.
|
void |
unbindInstanceFromSecurityGroup(String instanceId,
String securityGroupId)
Unbinding the instance from securitygroup.
|
void |
unbindInstanceFromSecurityGroup(UnbindSecurityGroupRequest request)
Unbinding the instance from securitygroup.
|
void |
unbindInstanceFromTags(String instanceId,
List<TagModel> changeTags)
Unbinding the instance to specified list of tags.
|
void |
unbindInstanceFromTags(UnbindTagsRequest request)
Unbinding the instance to specified list of tags.
|
void |
unbindReservedInstanceFromTags(ReservedTagsRequest request) |
void |
unbindTagsBatchByResourceType(TagsOperationRequest request) |
void |
unShareImage(UnShareImageRequest request)
UnSharing the specified image.
|
void |
updateAsp(UpdateAspRequest request)
Updating autoSnapshotPolicy
|
void |
updateDeploySet(UpdateDeploySetRequest request)
Update deploy set
|
void |
updateInstanceSubnet(ChangeInstanceSubnetRequest request)
Changing the subnetId of the instance owned by the user.
|
void |
updateInstanceSubnet(String instanceId,
String subnetId,
boolean reboot)
Changing the subnetId of the instance owned by the user.
|
void |
updateKeypairDescription(KeypairUpdateDescRequest request)
update the description of the keypair to instance.
|
void |
updateSecurityGroupRule(UpdateSecurityGroupRuleRequest request)
Update the specific security group rule via params in the updateSecurityGroupRuleRequest
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic static final String EHC_CLUSTER_MODIFY
public BccClient()
public BccClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The bcc client configuration options controlling how this client
connects to bcc (e.g. proxy settings, retry counts, etc).public CreateInstanceResponse createInstance(CreateInstanceRequest request) throws BceClientException
InstanceType
You must fill the field with 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.BceClientExceptionpublic CreateInstanceResponse createInstanceBySpec(CreateInstanceRequest request) throws BceClientException
InstanceType
You must fill the field with 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.BceClientExceptionpublic CreateInstanceResponse createBidInstance(CreateInstanceRequest request) throws BceClientException
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 bidding Instance.BceClientExceptionpublic BccPriceResponse getPriceBySpec(BccPriceRequest request)
request - The request containing all options for get specified bcc price.public ListInstancesResponse listInstances()
public ListInstancesResponse listInstances(ListInstancesRequest request)
request - The request containing all options for listing owns bcc Instance.public ListInstancesResponse listInstanceByIds(ListInstanceByIdsRequest request)
request - The request containing all options for listing owns bcc Instance.public ListBccFlavorSpecResponse listFlavorSpec(ListFlavorSpecRequest request)
request - The request containing all options for listing owns flavor spec.public ListBccBidFlavorResponse listBidFlavor()
public GetBidInstancePriceResponse getBidInstancePrice(GetBidInstancePriceRequest request) throws BceClientException
request - The request containing all options for querying market price of bidding instance.BceClientExceptionpublic CancelBidOrderResponse cancelBidOrder(String oderId)
oderId - The id of the order.public CancelBidOrderResponse cancelBidOrder(CancelBidOrderRequest request)
request - The request containing the orderId which is the user wants to cancel.public ListInstancesResponse getInstanceNoChargeList(ListGetInstanceNoChargeRequest request)
request - The request containing all options for listing owns bcc noCharge Instance.public GetInstanceResponse getInstance(String instanceId)
instanceId - The id of the instance.public GetInstanceResponse getInstance(GetInstanceRequest request)
request - The request containing all options for getting the instance info.public ChangeToPrepaidResponse changeToPrepaid(ChangeToPrepaidRequest request)
request - The request containing all options for changing the instance payment method to prepaid.public void startInstance(String instanceId)
You can start the instance only when the instance is Stopped,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.public void startInstance(StartInstanceRequest request)
You can start the instance only when the instance is Stopped,
otherwise,it 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(String instanceId)
You can stop the instance only when the instance is Running,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.public void stopInstance(String instanceId, boolean forceStop)
You can stop the instance only when the instance is Running,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.forceStop - The optional parameter to stop the instance forcibly.If true,
it will stop the instance just like power off immediately,
and it may result in losing important data which have not been written to disk.public void stopInstance(String instanceId, boolean forceStop, boolean stopWithNoCharge)
You can stop the instance only when the instance is Running,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.forceStop - The optional parameter to stop the instance forcibly.If true,
it will stop the instance just like power off immediately,
and it may result in losing important data which have not been written to disk.stopWithNoCharge - The optional parameter to indicate that whether the instance can be stopped
with no charge or not, default value is false.
If true>, it means the instance can be stopped with no charge.public void stopInstance(StopInstanceRequest request)
You can stop the instance only when the instance is Running,
otherwise,it 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 batchStopInstance(BatchStopInstanceRequest request)
public void rebootInstance(String instanceId)
You can reboot the instance only when the instance is Running,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.public void rebootInstance(String instanceId, boolean forceStop)
You can reboot the instance only when the instance is Running,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.forceStop - The option param to stop the instance forcibly.If true,
it will stop the instance just like power off immediately,
and it may result int losing important data which have not written to disk.public void rebootInstance(RebootInstanceRequest request)
You can reboot the instance only when the instance is Running,
otherwise,it 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 modifyInstancePassword(String instanceId, String adminPass) throws BceClientException
You can change the instance password only when the instance is Running or Stopped ,
otherwise,it will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.adminPass - The new password to update.
The adminPass will be encrypted in AES-128 algorithm
with the substring of the former 16 characters of user SecretKey.BceClientExceptionpublic void modifyInstancePassword(ModifyInstancePasswordRequest request) throws BceClientException
You can reboot the instance only when the instance is Running or Stopped ,
otherwise,it 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 modifying the instance password.BceClientExceptionpublic void modifyInstanceHostname(String instanceId, String hostname, boolean isReboot, boolean isOpenHostnameDomain) throws BceClientException
BceClientExceptionpublic void modifyInstanceHostname(ModifyInstanceHostnameRequest request) throws BceClientException
request - The request containing all options for modifying the instance hostname.BceClientExceptionpublic void modifyInstanceAttributes(ModifyInstanceAttributesRequest request)
You can reboot the instance only when the instance is Running or Stopped ,
otherwise,it 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 rebuildInstance(String instanceId, String imageId, String adminPass) throws BceClientException
After rebuilding the instance, all snapshots created from original instance system disk will be deleted, all of customized images will be saved for using in the future.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.imageId - The id of the image which is used to rebuild the instance.adminPass - The admin password to login the instance.
The admin password will be encrypted in AES-128 algorithm
with the substring of the former 16 characters of user SecretKey.
See more detail on
BCE API docBceClientExceptionpublic void rebuildInstance(String instanceId, String imageId, String adminPass, String keypairId) throws BceClientException
After rebuilding the instance, all snapshots created from original instance system disk will be deleted, all of customized images will be saved for using in the future.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.imageId - The id of the image which is used to rebuild the instance.adminPass - The admin password to login the instance.
The admin password will be encrypted in AES-128 algorithm
with the substring of the former 16 characters of user SecretKey.
See more detail on
BCE API dockeypairId - The id of the keypair.BceClientExceptionpublic void rebuildInstance(RebuildInstanceRequest request) throws BceClientException
After rebuilding the instance, all 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 rebuildBatchInstance(List<String> instanceIds, String imageId, String adminPass) throws BceClientException
After rebuilding the instance, all snapshots created from original instance system disk will be deleted, all of customized images will be saved for using in the future.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceIds - The ids of the instance.imageId - The id of the image which is used to rebuild the instance.adminPass - The admin password to login the instance.
The admin password will be encrypted in AES-128 algorithm
with the substring of the former 16 characters of user SecretKey.
See more detail on
BCE API docBceClientExceptionpublic void rebuildBatchInstance(List<String> instanceIds, String imageId, String adminPass, String keypairId) throws BceClientException
After rebuilding the instance, all snapshots created from original instance system disk will be deleted, all of customized images will be saved for using in the future.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceIds - The ids of the instance.imageId - The id of the image which is used to rebuild the instance.adminPass - The admin password to login the instance.
The admin password will be encrypted in AES-128 algorithm
with the substring of the former 16 characters of user SecretKey.
See more detail on
BCE API dockeypairId - The id of the keypair.BceClientExceptionpublic void rebuildBatchInstance(RebuildBatchInstanceRequest request) throws BceClientException
After rebuilding the instance, all 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 releaseInstance(String instanceId)
Only the Postpaid instance or Prepaid which is expired can be released.
After releasing the instance, all the data will be deleted. all volumes attached will be auto detached, but the volume snapshots will be saved. all snapshots created from original instance system disk will be deleted, all of customized images created from original instance system disk will be reserved.
instanceId - The id of the instance.public void releaseRecycledInstance(String instanceId)
After releasing the instance, all the data will be deleted.
instanceId - The id of the instance.public void releaseRecycledInstance(ReleaseInstanceRequest request)
Only the Postpaid instance or Prepaid which is expired can be released. After releasing the instance, all the data will be deleted. all volumes attached will be detached,but the volume snapshots will be saved. all 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 void releaseInstance(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 void releaseInstanceByPost(String instanceId, boolean relatedReleaseFlag, boolean deleteCdsSnapshotFlag)
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 auto 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.
instanceId - The id of the instance.relatedReleaseFlag - Whether to release the EIP and the data disk attached to the instance
at the current time in the same time. Iftrue, it means release,
and the parameters deleteCdsSnapshotFlag works. Iffalse, it means
not to release, and the parameters deleteCdsSnapshotFlag does not works.deleteCdsSnapshotFlag - Whether to delete the CDS Snapshot. Iftrue, it means delete.public ReleasePrepaidInstanceResponse releasePrepaidInstanceByPost(String instanceId, boolean relatedReleaseFlag, boolean deleteCdsSnapshotFlag, boolean deleteRelatedEnisFlag)
Only the Prepaid instance and the instance has not expired can be released.
After releasing the instance, all the data will be deleted. all volumes attached will be auto detached, but the volume snapshots will be saved. all snapshots created from original instance system disk will be deleted, all of customized images created from original instance system disk will be reserved.
instanceId - The id of the instance.relatedReleaseFlag - Whether to release the EIP and the data disk attached to the instance
at the current time in the same time. Iftrue, it means release,
and the parameters deleteCdsSnapshotFlag works. Iffalse, it means
not to release, and the parameters deleteCdsSnapshotFlag does not work.deleteCdsSnapshotFlag - Whether to delete the CDS Snapshot. Iftrue, it means delete.deleteRelatedEnisFlag - Whether to delete the ENI. Iftrue, it means delete.public ReleasePrepaidInstanceResponse releasePrepaidInstanceByPost(ReleasePrepaidInstanceRequest request)
Only the Prepaid instance and the instance has not expired can be released. After releasing the instance, all the data will be deleted. all volumes attached will be detached,but the volume snapshots will be saved. all 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 void releaseMultipleInstancesByPost(List<String> instanceIds, boolean relatedReleaseFlag, boolean deleteCdsSnapshotFlag, boolean bccRecycleFlag, boolean deleteRelatedEnisFlag)
Only the Postpaid instance or Prepaid which is expired can be released.
After releasing the instance, all the data will be deleted. all volumes attached will be auto detached, but the volume snapshots will be saved. all snapshots created from original instance system disk will be deleted, all of customized images created from original instance system disk will be reserved.
instanceIds - The id of the instances.relatedReleaseFlag - Whether to release the EIP and the data disk attached to the instance
at the current time in the same time. Iftrue, it means release,
and the parameters deleteCdsSnapshotFlag works. Iffalse, it means
not to release, and the parameters deleteCdsSnapshotFlag does not work.deleteCdsSnapshotFlag - Whether to delete the CDS Snapshot. Iftrue, it means delete.bccRecycleFlag - Whether to recycle the bcc. Iftrue, it means recycle.deleteRelatedEnisFlag - Whether to delete the ENI. Iftrue, it means delete.public void releaseInstanceByPost(ReleaseInstanceByPostRequest 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 void releaseMultipleInstanceByPost(ReleaseMultipleInstancesRequest request)
Only the Postpaid instance or Prepaid which is expired can be released. After releasing the instance, all the data will be deleted. all volumes attached will be detached,but the volume snapshots will be saved. all 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 void updateInstanceSubnet(String instanceId, String subnetId, boolean reboot)
instanceId - The id of instance.subnetId - The id of subnet after changed.reboot - Whether to reboot automatically or not. If true, it means reboot automatically.public void updateInstanceSubnet(ChangeInstanceSubnetRequest request)
request - The request containing all options for changing the subnetId of the instance.public void deleteInstanceDeploySet(DeleteInstanceDeploysetRequest request)
public void deleteRecycledInstance(String instanceId)
public void resizeInstance(ResizeInstanceRequest request)
The Prepaid instance can not be downgrade.
Only the Running/Stopped instance can be resized,otherwise,it's will get 409 errorCode.
After resizing the instance,it will be reboot once.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for resizing the instance.public void resizeInstanceBySpec(ResizeInstanceRequest request)
The Prepaid instance can not be downgrade.
Only the Running/Stopped instance can be resized,otherwise,it's will get 409 errorCode.
After resizing the instance,it will be reboot once.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for resizing the instance.public void bindInstanceToSecurityGroup(String instanceId, String securityGroupId)
instanceId - The id of the instance.securityGroupId - The id of the securitygroup.public void bindInstanceToSecurityGroup(BindSecurityGroupRequest request)
request - The request containing all options for binding the instance to specified securitygroup.public void unbindInstanceFromSecurityGroup(String instanceId, String securityGroupId)
instanceId - The id of the instance.securityGroupId - The id of the securitygroup.public void unbindInstanceFromSecurityGroup(UnbindSecurityGroupRequest request)
request - The request containing all options for unbinding the instance from securitygroup.public void bindInstanceToTags(String instanceId, List<TagModel> changeTags)
instanceId - The id of the instance.changeTags - The list of tags.public void bindInstanceToTags(BindTagsRequest request)
request - The request containing all options for binding the instance to specified list of tags.public void unbindInstanceFromTags(String instanceId, List<TagModel> changeTags)
instanceId - The id of the instance.changeTags - The list of tags to be unbound.public void unbindInstanceFromTags(UnbindTagsRequest request)
request - The request containing all options for unbinding the instance to specified list of tags.public GetInstanceVncResponse getInstanceVnc(String instanceId)
The vnc url can be used once.
instanceId - The id of the instance.public GetInstanceVncResponse getInstanceVnc(GetInstanceVncRequest request)
The vnc url can be used once.
request - The request containing all options for getting the vnc url.public PurchaseReservedInstanceResponse purchaseReservedInstance(String instanceId, int reservationLength, String reservationTimeUnit)
You can not purchaseReserved the instance which is resizing.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.reservationLength - The fixed duration to purchaseReserved,available is [1,2,3,4,5,6,7,8,9,12,24,36]reservationTimeUnit - The timeUnit to renew the instance,only support "month" now.public PurchaseReservedInstanceResponse purchaseReservedInstance(String instanceId, int reservationLength, String reservationTimeUnit, String relatedRenewFlagType)
You can not purchaseReserved the instance which is resizing.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
instanceId - The id of the instance.reservationLength - The fixed duration to purchaseReserved,available is [1,2,3,4,5,6,7,8,9,12,24,36]reservationTimeUnit - The timeUnit to renew the instance,only support "month" now.relatedRenewFlagType - The flag of instance related renew.
see all of supported flag type inRelatedRenewFlagTypepublic PurchaseReservedInstanceResponse purchaseReservedInstance(PurchaseReservedInstanceRequeset request)
You can not renew the instance which is resizing.
This is an asynchronous interface,
you can get the latest status by invoke getInstance(GetInstanceRequest)
request - The request containing all options for renewing the instance with fixed duration.@Deprecated public ListInstanceSpecsResponse listInstanceSpecs()
Listing all of specification for instance resource to buy.
See more detail on BCE API doc
@Deprecated public ListInstanceSpecsResponse listInstanceSpecs(ListInstanceSpecsRequest request)
Listing all of specification for instance resource to buy.
See more detail on BCE API doc
request - The request containing all options for Listing all of specification for instance resource.public CreateVolumeResponse createVolume(CreateVolumeRequest request)
You can use this method to create a new empty volume by specified options or you can create a new volume from customized volume snapshot but not system disk snapshot. By using the cdsSizeInGB parameter you can create a newly empty volume. By using snapshotId parameter to create a volume form specific snapshot.
request - The request containing all options for creating a volume.public CreateVolumeResponse syncCreateVolume(CreateVolumeRequest request)
You can use this method to create a new empty volume by specified options
request - The request containing all options for creating a volume.public ListVolumesResponse listVolumes()
public ListVolumesResponse listVolumes(ListVolumesRequest request)
request - The request containing all options for listing volumes owned by the authenticated user.public GetVolumeResponse getVolume(String volumeId)
volumeId - The id of the volume.public GetVolumeResponse getVolume(GetVolumeRequest request)
request - The request containing all options for getting the detail information of specified volume.public AttachVolumeResponse attachVolume(String volumeId, String instanceId)
You can attach the specified volume to a specified instance only
when the volume is Available and the instance is Running or Stopped ,
otherwise,it's will get 409 errorCode.
volumeId - The id of the volume which will be attached to specified instance.instanceId - The id of the instance which will be attached with a volume.public AttachVolumeResponse attachVolume(AttachVolumeRequest request)
You can attach the specified volume to a specified instance only
when the volume is Available and the instance is Running or Stopped ,
otherwise,it's will get 409 errorCode.
request - The request containing all options for attaching the specified volume to a specified instance.public void detachVolume(String volumeId, String instanceId)
You can detach the specified volume from a specified instance only
when the instance is Running or Stopped ,
otherwise,it's will get 409 errorCode.
volumeId - The id of the volume which has been attached to specified instance.instanceId - The id of the instance which will be detached a volume.public void detachVolume(DetachVolumeRequest request)
You can detach the specified volume from a specified instance only
when the instance is Running or Stopped ,
otherwise,it's will get 409 errorCode.
request - The request containing all options for detaching the specified volume from a specified instance.public DescribeRegionsResponse describeRegions(DescribeRegionsRequest request)
You can get specified region's endpoint information by specified region,
if the region is not exist, it's will get 409 errorCode.
Use global endpoint bcc.baidubce.com to get BCC's endpoint.(PS:endpoint of CDS and
ReservedInstance is the same with BCC)
request - The request for getting endpoint of different regions.public void releaseVolume(String volumeId)
You can release the specified volume only
when the instance is among state of Available/Expired/Error,
otherwise,it's will get 409 errorCode.
volumeId - The id of the volume which will be released.public void releaseVolume(ReleaseVolumeRequest request)
You can release the specified volume only
when the volume is Available/Expired/Error,
otherwise,it's will get 409 errorCode.
request - The request containing all options for releasing the specified volume.public void modifyVolumeChargeType(ModifyVolumeChargeRequest request)
request - The request containing all options for modifying the billing method of the specified volume.public void modifyVolumeChargeType(ModifyVolumeChargeTypeRequest request)
request - public ResizeVolumeResponse resizeVolume(String volumeId, int newCdsSizeInGB)
You can resize the specified volume only when the volume is Available,
otherwise,it's will get 409 errorCode.
The prepaid volume can not be downgrade.
This is an asynchronous interface,
you can get the latest status by invoke getVolume(String)
volumeId - The id of volume which you want to resize.newCdsSizeInGB - The new volume size you want to resize in GB.public ResizeVolumeResponse resizeVolume(ResizeVolumeRequest request)
You can resize the specified volume only when the volume is Available,
otherwise,it's will get 409 errorCode.
The prepaid volume can not be downgrade.
This is an asynchronous interface,
you can get the latest status by invoke getVolume(String)
request - The request containing all options for resize the specified volume.public void rollbackVolume(String volumeId, String snapshotId)
You can rollback the specified volume only when the volume is Available,
otherwise,it's will get 409 errorCode.
The snapshot used to rollback must be created by the volume,
otherwise,it's will get 404 errorCode.
If rolling back the system volume,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.After rolling back the
volume,all the system disk data will erase.
volumeId - The id of volume which will be rollback.snapshotId - The id of snapshot which will be used to rollback the volume.public void rollbackVolume(RollbackVolumeRequest request)
You can rollback the specified volume only when the volume is Available,
otherwise,it's will get 409 errorCode.
The snapshot used to rollback must be created by the volume,
otherwise,it's will get 404 errorCode.
If rolling back the system volume,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.After rolling back the
volume,all the system disk data will erase.
request - The request containing all options for rolling back the specified volume.public void purchaseReservedVolume(String volumeId, int reservationLength, String reservationTimeUnit)
You can not purchaseReserved the instance which is resizing.
This is an asynchronous interface,
you can get the latest status by invoke getVolume(String)
volumeId - The id of volume which will be renew.reservationLength - The fixed duration to renew,available is [1,2,3,4,5,6,7,8,9,12,24,36]reservationTimeUnit - The timeUnit to renew the instance,only support "month" now.public void purchaseReservedVolume(PurchaseReservedVolumeRequest request)
You can not purchaseReserved the instance which is resizing.
This is an asynchronous interface,
you can get the latest status by invoke getVolume(String)
request - The request containing all options for renew the specified volume.public void autoRenewVolume(AutoRenewVolumeRequest request)
request - The request containing all options for renew the specified volume.public void cancelAutoRenewVolume(CancelAutoRenewVolumeRequest request)
request - The request containing all options for disable auto renew the specified volume.public void renameVolume(RenameVolumeRequest request)
request - The request containing all options for rename the specified volume.public void modifyCdsAttribute(ModifyCdsAttrRequest modifyCdsAttrRequest)
modifyCdsAttrRequest - public CreateImageResponse createImageFromInstance(String imageName, String instanceId)
While creating an image from an instance,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getImage(GetImageRequest)
imageName - The name of image that will be created.instanceId - The id of instance which will be used to create image.public CreateImageResponse createImageFromInstanceWithRelateCds(String imageName, String instanceId, boolean relateCds)
While creating an image from an instance,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getImage(GetImageRequest)
imageName - The name of image that will be created.instanceId - The id of instance which will be used to create image.relateCds - Whether the image is related with cds.
If true, it means the image is related with cds.public CreateImageResponse createImageFromSnapshot(String imageName, String snapshotId)
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.
This is an asynchronous interface,
you can get the latest status by invoke getImage(GetImageRequest)
imageName - The name of image that will be created.snapshotId - The id of snapshot which will be used to create image.public CreateImageResponse createImage(CreateImageRequest 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.
This is an asynchronous interface,
you can get the latest status by invoke getImage(GetImageRequest)
request - The request containing all options for creating a new image.public ListImagesResponse listImages()
public ListImagesResponse listImages(ListImagesRequest request)
request - The request containing all options for listing images owned by user.public GetImageResponse getImage(String imageId)
imageId - The id of image.public GetImageResponse getImage(GetImageRequest request)
request - The request containing all options for getting the detail information of specified image.public void deleteImage(String imageId)
Only the customized image can be deleted,
otherwise,it's will get 403 errorCode.
imageId - The id of 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 void shareImage(ShareImageRequest request)
Only the customized image can be shared,
otherwise,it's will get 403 errorCode.
request - The request containing all options for sharing the specified image.public void unShareImage(UnShareImageRequest request)
Only the customized and shared image can be unshared,
otherwise,it's will get 403 errorCode.
request - The request containing all options for unsharing the specified image.public ListSharedUserResponse listSharedUser(String imageId)
public ListSharedUserResponse listSharedUser(ListSharedUserRequest request)
request - The request containing all options for Listing sharedUsers.public void remoteCopyImage(RemoteCopyImageRequest request)
request - The request containing all options for remote copy image.public void cancelRemoteCopyImage(String imageId)
imageId - The id of image.public void cancelRemoteCopyImage(CancelRemoteCopyImageRequest request)
request - The request containing all options for cancel remote copy image.public ListOsResponse listOs(ListOsRequest request)
request - The request containing instanceIds which to query.public CreateSnapshotResponse createSnapshot(String volumeId, String snapshotName)
You can create snapshot from system volume and CDS volume.
While creating snapshot from system volume,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.
While creating snapshot from CDS volume,,the volume must be InUse or Available,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getSnapshot(GetSnapshotRequest)
volumeId - The id of volume which will be used to create snapshot.snapshotName - The name of snapshot will be created.public CreateSnapshotResponse createSnapshot(String volumeId, String snapshotName, String desc)
You can create snapshot from system volume and CDS volume.
While creating snapshot from system volume,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.
While creating snapshot from CDS volume,,the volume must be InUs or Available,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getSnapshot(GetSnapshotRequest)
volumeId - The id of volume which will be used to create snapshot.snapshotName - The name of snapshot will be created.desc - The optional parameter to describe the newly created snapshot.public CreateSnapshotResponse createSnapshot(CreateSnapshotRequest request)
You can create snapshot from system volume and CDS volume.
While creating snapshot from system volume,the instance must be Running or Stopped,
otherwise,it's will get 409 errorCode.
While creating snapshot from CDS volume,,the volume must be InUs or Available,
otherwise,it's will get 409 errorCode.
This is an asynchronous interface,
you can get the latest status by invoke getSnapshot(GetSnapshotRequest)
request - The request containing all options for creating a new snapshot.public ListSnapshotsResponse listSnapshots(ListSnapshotsRequest request)
request - The request containing all options for listing snapshot.public GetSnapshotResponse getSnapshot(String snapshotId)
snapshotId - The id of snapshot.public GetSnapshotResponse getSnapshot(GetSnapshotRequest request)
request - The request containing all options for getting the detail information of specified snapshot.public void deleteSnapshot(String snapshotId)
Only when the snapshot is CreatedFailed or Available,the specified snapshot can be deleted.
otherwise,it's will get 403 errorCode.
snapshotId - The id of snapshot.public void deleteSnapshot(DeleteSnapshotRequest request)
Only when the snapshot is CreatedFailed or Available,the specified snapshot can be deleted.
otherwise,it's will get 403 errorCode.
request - The request containing all options for deleting the specified snapshot.public ListSnapchainResponse listSnapchain(ListSnapchainRequest request)
request - The request containing all options for querying the specified snapshot chain.public CreateAspResponse createAsp(CreateAspRequest request)
request - contains params for creating a new asppublic void deleteAsp(DeleteAspRequest request)
request - contains the id of asp for deletingpublic void deleteAsp(String aspId)
aspId - for deletingpublic void attachAsp(AttachAspRequest request)
request - The request containing all options for attaching the specified asp to specified volumes.public void detachAsp(DetachAspRequest request)
request - The request containing all options for detaching the specified asp to specified volumes.public ListAspsResponse listAsps(ListAspsRequest request)
request - The request containing all options for listing asps owned by user.public GetAspResponse getAsp(GetAspRequest request)
request - The request containing all options for getting the detail information of specified asp.public GetAspResponse getAsp(String aspId)
aspId - The id of asp.public void updateAsp(UpdateAspRequest request)
request - contains params for creating a new asppublic ListSecurityGroupsResponse listSecurityGroups(ListSecurityGroupsRequest request)
request - The request containing all options for listing SecurityGroup owned by user.public CreateSecurityGroupResponse createSecurityGroup(CreateSecurityGroupRequest request)
request - The request containing all options for creating a new SecurityGroup.public void authorizeSecurityGroupRule(SecurityGroupRuleOperateRequest request)
request - The request containing all options for authorizing security group rulepublic void revokeSecurityGroupRule(SecurityGroupRuleOperateRequest request)
request - The request containing all options for revoking security group rulepublic void deleteSecurityGroup(String securityGroupId)
securityGroupId - The id of SecurityGroup that will be deleted.public void deleteSecurityGroup(DeleteSecurityGroupRequest request)
request - The request containing all options for deleting the specified SecurityGroup owned by user.public ListZonesResponse listZones()
public ListZonesResponse listZones(AbstractBceRequest request)
request - use withRequestCredentialspublic KeypairModel createKeypair(KeypairCreateRequest request)
request - you can specify name and description in the requestpublic KeypairModel importKeypair(KeypairImportRequest request)
request - KeypairImportRequestpublic void attachKeypair(KeypairAttachRequest request)
request - KeypairAttachRequestpublic void detachKeypair(KeypairDetachRequest request)
request - KeypairDetachRequestpublic void deleteKeypair(KeypairDeleteRequest request)
request - KeypairDeleteRequestpublic KeypairModel keypairDetail(KeypairDetailRequest request)
request - KeypairDetailRequestpublic KeypairListResponse listKeypair(KeypairListRequest request)
request - The request containing all options for querying the keypair list.public void renameKeypair(KeypairRenameRequest request)
request - The request containing all options for renaming the specified keypair.public void updateKeypairDescription(KeypairUpdateDescRequest request)
request - The request containing all options for updating the description of the keypair.public ListDeploySetResponse listDeploySet()
public CreateDeploySetResponse createDeploySet(CreateDeploySetRequest request)
request - The request containing all options for creating a deploy set.public void deleteDeploySet(DeleteDeploySetRequest request)
request - The request containing all options for deleting the specified deploy set.public void updateDeploySet(UpdateDeploySetRequest request)
request - The request containing all options for updating the specified deploy set.public void deleteSecurityGroupRule(String securityGroupRuleId)
securityGroupRuleId - the security group rule id to be deletedpublic void deleteSecurityGroupRule(DeleteSecurityGroupRuleRequest request)
request - the request for deleteSecurityGroupRulepublic void updateSecurityGroupRule(UpdateSecurityGroupRuleRequest request)
request - the request for updateSecurityGroupRulepublic CreateVolumeClusterResponse createVolumeCluster(CreateVolumeClusterRequest request)
request - The request containing all options for creating a volume cluster.public ListVolumeClustersResponse listVolumeClusters()
public ListVolumeClustersResponse listVolumeClusters(ListVolumeClustersRequest request)
request - The request containing all options for listing Clusters owned by the authenticated user.public GetVolumeClusterResponse getVolumeCluster(String clusterId)
clusterId - The id of the volume.public GetVolumeClusterResponse getVolumeCluster(GetVolumeClusterRequest request)
request - The request containing all options for getting the detail information of specified cluster.public void resizeVolumeCluster(String clusterId, int newClusterSizeInGB)
clusterId - The id of cluster which you want to resize.newClusterSizeInGB - The new cluster size you want to resize in GB.public void resizeVolumeCluster(ResizeVolumeClusterRequest request)
request - The request containing all options for resize the specified cluster.public void purchaseReservedVolumeCluster(String clusterId, int reservationLength, String reservationTimeUnit)
clusterId - The id of cluster which will be renew.reservationLength - The fixed duration to renew,available is [6,12,24,36,60]reservationTimeUnit - The timeUnit to renew the instance, support "month" now.public void purchaseReservedVolumeCluster(PurchaseReservedVolumeClusterRequest request)
You can not purchaseReserved the cluster which is resizing.
request - The request containing all options for renew the specified cluster.public void autoRenewVolumeCluster(String clusterId, int renewTime, String renewTimeUnit)
public void autoRenewVolumeCluster(AutoRenewVolumeClusterRequest request)
request - The request containing all options for renew the specified cluster.public void cancelAutoRenewVolumeCluster(CancelAutoRenewVolumeClusterRequest request)
request - The request containing all options for disable auto renew the specified cluster.public void refundVolumeCluster(String clusterId)
clusterId - The id of the volume.public BatchRefundResourceResponse batchRefundResource(BatchRefundResourceRequest request)
public void delIpv6(InstanceIpv6Request request)
public InstanceAddIpv6Response addIpv6(InstanceIpv6Request request)
public void batchDeleteIp(BatchDeleteIpRequest request)
public BatchAddIpResponse batchAddIp(BatchAddIpRequest request)
public GetAvailableImagesBySpecResponse getAvailableImagesBySpec(GetAvailableImagesBySpecRequest request)
public CreateReservedInstanceResponse createReservedInstances(CreateReservedInstancesRequest request)
public ModifyReservedInstancesResponse modifyReservedInstances(ModifyReservedInstancesRequest request)
public void bindReservedInstanceToTags(ReservedTagsRequest request)
public void unbindReservedInstanceFromTags(ReservedTagsRequest request)
public void bindTagsBatchByResourceType(TagsOperationRequest request)
public VolumePriceResponse getCdsPrice(VolumePriceRequest request)
public void createAutoRenewRule(BccAutoRenewRequest request)
public void unbindTagsBatchByResourceType(TagsOperationRequest request)
public void deleteAutoRenewRule(BccAutoRenewRequest request)
public BatchChangeToPrepaidResponse batchChangeToPrepaid(BatchChangeToPrepaidRequest request)
public ListRecycleInstanceResponse listRecycleInstance(ListRecycleInstanceRequest request)
public ListAvailableResizeSpecResponse listAvailableResizeSpec(ListAvailableResizeSpecRequest request)
public AbstractBceResponse changeVpc(ChangeVpcRequest request)
public ListInstanceEnisResponse listInstanceEnis(ListInstanceEnisRequest request)
public CreateEhcClusterResponse createEhcCluster(CreateEhcClusterRequest request)
public DescribeEhcClusterListResponse ehcClusterList(DescribeEhcClusterListRequest request)
public void modifyEhcCluster(ModifyEhcClusterRequest request)
public void deleteEhcCluster(DeleteEhcClusterRequest request)
Copyright © 2024. All rights reserved.