Documentation ¶
Overview ¶
Package bbc defines the BBC services of BCE. The supported APIs are all defined in sub-package
Package bbc defines all APIs supported by the BBC service of BCE.
Package defines all APIs supported by the BBC service of BCE.
Package bbc defines all APIs supported by the BBC service of BCE.
Package bbc defines all APIs supported by the BBC service of BCE.
Package bbc defines all APIs supported by the BBC service of BCE.
Package bbc defines all APIs supported by the BBC service of BCE.
- Copyright (C) 2020 Baidu, Inc. All Rights Reserved.
Package bbc defines all APIs supported by the BBC service of BCE.
util.go - define the utilities for api package of BBC service
Index ¶
- Constants
- func Aes128EncryptUseSecreteKey(sk string, data string) (string, error)
- func AuthorizeRepairTask(cli bce.Client, reqBody *bce.Body) error
- func BatchCreateAutoRenewRules(cli bce.Client, reqBody *bce.Body) error
- func BatchDelIp(cli bce.Client, args *BatchDelIpArgs, reqBody *bce.Body) error
- func BatchDeleteAutoRenewRules(cli bce.Client, reqBody *bce.Body) error
- func BindSecurityGroups(cli bce.Client, reqBody *bce.Body) error
- func BindTags(cli bce.Client, instanceId string, reqBody *bce.Body) error
- func ConfirmRepairTask(cli bce.Client, reqBody *bce.Body) error
- func DeleteDeploySet(cli bce.Client, deploySetId string) error
- func DeleteImage(cli bce.Client, imageId string) error
- func DeleteInstance(cli bce.Client, instanceId string) error
- func DeleteInstances(cli bce.Client, reqBody *bce.Body) error
- func DeleteRule(cli bce.Client, reqBody *bce.Body) error
- func DisConfirmRepairTask(cli bce.Client, reqBody *bce.Body) error
- func DisableRule(cli bce.Client, reqBody *bce.Body) error
- func EnableRule(cli bce.Client, reqBody *bce.Body) error
- func InstanceChangeSubnet(cli bce.Client, reqBody *bce.Body) error
- func InstanceChangeVpc(cli bce.Client, reqBody *bce.Body) error
- func ModifyInstanceDesc(cli bce.Client, instanceId string, clientToken string, reqBody *bce.Body) error
- func ModifyInstanceName(cli bce.Client, instanceId string, reqBody *bce.Body) error
- func ModifyInstancePassword(cli bce.Client, instanceId string, reqBody *bce.Body) error
- func RebootInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error
- func RebuildInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error
- func RecoveryInstances(cli bce.Client, reqBody *bce.Body) error
- func ShareImage(cli bce.Client, imageId string, args *SharedUser) error
- func StartInstance(cli bce.Client, instanceId string) error
- func StopInstance(cli bce.Client, instanceId string, reqBody *bce.Body) error
- func UnAuthorizeRepairTask(cli bce.Client, reqBody *bce.Body) error
- func UnBindSecurityGroups(cli bce.Client, reqBody *bce.Body) error
- func UnShareImage(cli bce.Client, imageId string, args *SharedUser) error
- func UnbindTags(cli bce.Client, instanceId string, reqBody *bce.Body) error
- type AutoSnapshotPolicyModel
- type AzIntstanceStatis
- type AzIntstanceStatisDetail
- type BatchAddIpArgs
- type BatchAddIpCrossSubnetArgs
- type BatchAddIpResponse
- type BatchDelIpArgs
- type BatchRebuild
- type BatchRebuildResponse
- type BbcCreateAutoRenewArgs
- type BbcDeleteAutoRenewArgs
- type BbcFlavorInfo
- type BbcNetworkModel
- type Billing
- type BindSecurityGroupsArgs
- type BindTagsArgs
- type Client
- func (c *Client) AuthorizeRepairTask(args *TaskIdArgs) error
- func (c *Client) BatchAddIP(args *BatchAddIpArgs) (*BatchAddIpResponse, error)
- func (c *Client) BatchAddIPCrossSubnet(args *BatchAddIpCrossSubnetArgs) (*BatchAddIpResponse, error)
- func (c *Client) BatchCreateAutoRenewRules(args *BbcCreateAutoRenewArgs) error
- func (c *Client) BatchDelIP(args *BatchDelIpArgs) error
- func (c *Client) BatchDeleteAutoRenewRules(args *BbcDeleteAutoRenewArgs) error
- func (c *Client) BatchRebuildInstances(args *RebuildBatchInstanceArgs) (*BatchRebuildResponse, error)
- func (c *Client) BindSecurityGroups(args *BindSecurityGroupsArgs) error
- func (c *Client) BindTags(instanceId string, args *BindTagsArgs) error
- func (c *Client) ConfirmRepairTask(args *TaskIdArgs) error
- func (c *Client) CreateDeploySet(args *CreateDeploySetArgs) (*CreateDeploySetResult, error)
- func (c *Client) CreateImageFromInstanceId(args *CreateImageArgs) (*CreateImageResult, error)
- func (c *Client) CreateInstance(args *CreateInstanceArgs) (*CreateInstanceResult, error)
- func (c *Client) CreateRule(args *CreateRuleArgs) (*CreateRuleResult, error)
- func (c *Client) DeleteDeploySet(deploySetId string) error
- func (c *Client) DeleteImage(imageId string) error
- func (c *Client) DeleteInstance(instanceId string) error
- func (c *Client) DeleteInstanceIngorePayment(args *DeleteInstanceIngorePaymentArgs) (*DeleteInstanceResult, error)
- func (c *Client) DeleteInstances(args *DeleteInstanceArgs) error
- func (c *Client) DeleteRule(args *DeleteRuleArgs) error
- func (c *Client) DisConfirmRepairTask(args *DisconfirmTaskArgs) error
- func (c *Client) DisableRule(args *DisableRuleArgs) error
- func (c *Client) EnableRule(args *EnableRuleArgs) error
- func (c *Client) GetCommonImage(args *GetFlavorImageArgs) (*GetImagesResult, error)
- func (c *Client) GetCustomImage(args *GetFlavorImageArgs) (*GetImagesResult, error)
- func (c *Client) GetDeploySet(deploySetId string) (*DeploySetResult, error)
- func (c *Client) GetFlavorDetail(flavorId string) (*GetFlavorDetailResult, error)
- func (c *Client) GetFlavorRaid(flavorId string) (*GetFlavorRaidResult, error)
- func (c *Client) GetImageDetail(imageId string) (*GetImageDetailResult, error)
- func (c *Client) GetInstanceCreateStock(args *CreateInstanceStockArgs) (*InstanceStockResult, error)
- func (c *Client) GetInstanceDetail(instanceId string) (*InstanceModel, error)
- func (c *Client) GetInstanceDetailWithDeploySet(instanceId string, isDeploySet bool) (*InstanceModel, error)
- func (c *Client) GetInstanceDetailWithDeploySetAndFailed(instanceId string, isDeploySet bool, containsFailed bool) (*InstanceModel, error)
- func (c *Client) GetInstanceEni(instanceId string) (*GetInstanceEniResult, error)
- func (c *Client) GetInstancePirce(args *InstancePirceArgs) (*InstancePirceResult, error)
- func (c *Client) GetInstanceVNC(instanceId string) (*GetInstanceVNCResult, error)
- func (c *Client) GetOperationLog(args *GetOperationLogArgs) (*GetOperationLogResult, error)
- func (c *Client) GetRepairTaskDetail(taskId string) (*GetRepairTaskResult, error)
- func (c *Client) GetRepairTaskRecord(args *TaskIdArgs) (*GetRepairRecords, error)
- func (c *Client) GetRuleDetail(ruleId string) (*Rule, error)
- func (c *Client) GetSimpleFlavor(args *GetSimpleFlavorArgs) (*SimpleFlavorResult, error)
- func (c *Client) GetVpcSubnet(args *GetVpcSubnetArgs) (*GetVpcSubnetResult, error)
- func (c *Client) InstanceChangeSubnet(args *InstanceChangeSubnetArgs) error
- func (c *Client) InstanceChangeVpc(args *InstanceChangeVpcArgs) error
- func (c *Client) ListCDSVolume(queryArgs *ListCDSVolumeArgs) (*ListCDSVolumeResult, error)
- func (c *Client) ListClosedRepairTasks(args *ListClosedRepairTaskArgs) (*ListClosedRepairTaskResult, error)
- func (c *Client) ListDeploySets() (*ListDeploySetsResult, error)
- func (c *Client) ListDeploySetsPage(args *ListDeploySetsArgs) (*ListDeploySetsResult, error)
- func (c *Client) ListFlavorZones(args *ListFlavorZonesArgs) (*ListZonesResult, error)
- func (c *Client) ListFlavors() (*ListFlavorsResult, error)
- func (c *Client) ListImage(args *ListImageArgs) (*ListImageResult, error)
- func (c *Client) ListInstances(args *ListInstancesArgs) (*ListInstancesResult, error)
- func (c *Client) ListRecycledInstances(args *ListRecycledInstancesArgs) (*ListRecycledInstancesResult, error)
- func (c *Client) ListRepairTasks(args *ListRepairTaskArgs) (*ListRepairTaskResult, error)
- func (c *Client) ListRule(args *ListRuleArgs) (*ListRuleResult, error)
- func (c *Client) ListZoneFlavors(args *ListZoneFlavorsArgs) (*ListFlavorInfosResult, error)
- func (c *Client) ModifyInstanceDesc(instanceId string, args *ModifyInstanceDescArgs) error
- func (c *Client) ModifyInstanceName(instanceId string, args *ModifyInstanceNameArgs) error
- func (c *Client) ModifyInstancePassword(instanceId string, args *ModifyInstancePasswordArgs) error
- func (c *Client) RebootInstance(instanceId string, forceStop bool) error
- func (c *Client) RebuildInstance(instanceId string, isPreserveData bool, args *RebuildInstanceArgs) error
- func (c *Client) RecoveryInstances(args *RecoveryInstancesArgs) error
- func (c *Client) ShareImage(imageId string, args *SharedUser) error
- func (c *Client) StartInstance(instanceId string) error
- func (c *Client) StopInstance(instanceId string, forceStop bool) error
- func (c *Client) UnAuthorizeRepairTask(args *TaskIdArgs) error
- func (c *Client) UnBindSecurityGroups(args *UnBindSecurityGroupsArgs) error
- func (c *Client) UnShareImage(imageId string, args *SharedUser) error
- func (c *Client) UnbindTags(instanceId string, args *UnbindTagsArgs) error
- type ClosedRepairTask
- type CreateDeploySetArgs
- type CreateDeploySetResult
- type CreateImageArgs
- type CreateImageResult
- type CreateInstanceArgs
- type CreateInstanceResult
- type CreateInstanceStockArgs
- type CreateRuleArgs
- type CreateRuleResult
- type DeleteInstanceArgs
- type DeleteInstanceIngorePaymentArgs
- type DeleteInstanceModel
- type DeleteInstanceResult
- type DeleteRuleArgs
- type DeploySetModel
- type DeploySetResult
- type DisableRuleArgs
- type DisconfirmTaskArgs
- type DiskInfo
- type EnableRuleArgs
- type FlavorImageModel
- type FlavorModel
- type GetDeploySetResult
- type GetFlavorDetailResult
- type GetFlavorImageArgs
- type GetFlavorRaidResult
- type GetImageDetailResult
- type GetImagesResult
- type GetInstanceEniResult
- type GetInstanceVNCResult
- type GetOperationLogArgs
- type GetOperationLogResult
- type GetRepairRecords
- type GetRepairTaskResult
- type GetSimpleFlavorArgs
- type GetVpcSubnetArgs
- type GetVpcSubnetResult
- type ImageModel
- type ImageStatus
- type ImageType
- type InstanceChangeSubnetArgs
- type InstanceChangeVpcArgs
- type InstanceModel
- func GetInstanceDetail(cli bce.Client, instanceId string) (*InstanceModel, error)
- func GetInstanceDetailWithDeploySet(cli bce.Client, instanceId string, isDeploySet bool) (*InstanceModel, error)
- func GetInstanceDetailWithDeploySetAndFailed(cli bce.Client, instanceId string, isDeploySet bool, containsFailed bool) (*InstanceModel, error)
- type InstancePirceArgs
- type InstancePirceResult
- type InstanceStatus
- type InstanceStockResult
- type IpAndSubnet
- type ListCDSVolumeArgs
- type ListCDSVolumeResult
- type ListClosedRepairTaskArgs
- type ListClosedRepairTaskResult
- type ListDeploySetsArgs
- type ListDeploySetsResult
- type ListFlavorInfosResult
- type ListFlavorZonesArgs
- type ListFlavorsResult
- type ListImageArgs
- type ListImageResult
- type ListInstancesArgs
- type ListInstancesResult
- type ListRecycledInstancesArgs
- type ListRecycledInstancesResult
- type ListRepairTaskArgs
- type ListRepairTaskResult
- type ListRuleArgs
- type ListRuleResult
- type ListZoneFlavorsArgs
- type ListZonesResult
- type ModifyInstanceDescArgs
- type ModifyInstanceHostnameArgs
- type ModifyInstanceNameArgs
- type ModifyInstancePasswordArgs
- type OperationLogModel
- type PaymentTimingType
- type PrivateIP
- type RaidModel
- type RebuildBatchInstanceArgs
- type RebuildInstanceArgs
- type RecoveryInstancesArgs
- type RecycledInstancesModel
- type RepairRecord
- type RepairTask
- type Reservation
- type Rule
- type SharedUser
- type SimpleFlavorModel
- type SimpleFlavorResult
- type SingleEniAndSubentIp
- type StopInstanceArgs
- type StorageType
- type SubnetModel
- type TaskIdArgs
- type UnBindSecurityGroupsArgs
- type UnbindTagsArgs
- type VolumeAttachmentModel
- type VolumeModel
- type VolumeStatus
- type VolumeType
- type VpcModel
Constants ¶
const ( URI_PREFIX_V1 = bce.URI_PREFIX + "v1" URI_PREFIX_V2 = bce.URI_PREFIX + "v2" REQUEST_INSTANCE_URI = "/instance" REQUEST_BATCH_DELETE_URI = "/batchDelete" REQUEST_RECYCLE_URI = "/recycle" REQUEST_RECOVERY_URI = "/recovery" REQUEST_SUBNET_URI = "/vpcSubnet" REQUEST_VPC_URI = "/vpc" SECURITY_GROUP_URI = "/securitygroup" REQUEST_IMAGE_URI = "/image" REQUEST_BATCHADDIP_URI = "/batchAddIp" REQUEST_BATCHADDIPCROSSSUBNET_URI = "/batchAddIpCrossSubnet" REQUEST_BATCHDELIP_URI = "/batchDelIp" REQUEST_BATCH_CREATE_AUTORENEW_RULES_URI = "/batchCreateAutoRenewRules" REQUEST_BATCH_Delete_AUTORENEW_RULES_URI = "/batchDeleteAutoRenewRules" REQUEST_BATCH_REBUILD_INSTANCE_URI = "/batchRebuild" REQUEST_FLAVOR_URI = "/flavor" REQUEST_FLAVOR_RAID_URI = "/flavorRaid" REQUEST_COMMON_IMAGE_URI = "/flavor/image" REQUEST_CUSTOM_IMAGE_URI = "/customFlavor/image" REQUEST_FLAVOR_ZONE_URI = "/order/flavorZone" REQUEST_FLAVORS_URI = "/order/flavor" REQUEST_OPERATION_LOG_URI = "/operationLog" REQUEST_DEPLOY_SET_URI = "/deployset" REQUEST_INSTANCE_PORT_URI = "/vpcPort" REQUEST_REPAIR_TASK_URI = "/task" REQUEST_REPAIR_CLOSED_TASK_URI = "/closedTask" REQUEST_RULE_URI = "/rule" REQUEST_CREATE_URI = "/create" REQUEST_DELETE_URI = "/delete" REQUEST_DISABLE_URI = "/disable" REQUEST_ENABLE_URI = "/enable" REQUEST_VOLUME_URI = "/volume" )
const DEFAULT_SERVICE_DOMAIN = "bbc." + bce.DEFAULT_REGION + ".baidubce.com"
Variables ¶
This section is empty.
Functions ¶
func Aes128EncryptUseSecreteKey ¶ added in v0.9.8
func AuthorizeRepairTask ¶ added in v0.9.18
func BatchCreateAutoRenewRules ¶ added in v0.9.21
BatchCreateAutoRenewRules - Batch Create AutoRenew Rules
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func BatchDelIp ¶ added in v0.9.8
BatchDelIp - Delete ips of instance
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func BatchDeleteAutoRenewRules ¶ added in v0.9.21
BatchDeleteAutoRenewRules - Batch Delete AutoRenew Rules
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func BindSecurityGroups ¶ added in v0.9.18
BindSecurityGroups - Bind Security Groups
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func BindTags ¶ added in v0.9.18
bindTags - bind a bbc instance tags
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func ConfirmRepairTask ¶ added in v0.9.18
func DeleteDeploySet ¶ added in v0.9.8
DeleteDeploySet - delete a deploy set
PARAMS:
- cli: the client agent which can perform sending request
- deploySetId: the id of the deploy set
RETURNS:
- error: nil if success otherwise the specific error
func DeleteImage ¶ added in v0.9.8
DeleteImage - delete an image
PARAMS:
- cli: the client agent which can perform sending request
- imageId: the specific image ID
RETURNS:
- error: nil if success otherwise the specific error
func DeleteInstance ¶ added in v0.9.8
DeleteInstance - delete a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
RETURNS:
- error: nil if success otherwise the specific error
func DeleteInstances ¶ added in v0.9.34
DeleteInstance - delete a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
RETURNS:
- error: nil if success otherwise the specific error
func DeleteRule ¶ added in v0.9.18
DeleteRule - delete the repair plat rule
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func DisConfirmRepairTask ¶ added in v0.9.18
func DisableRule ¶ added in v0.9.18
DisableRule - disable the repair plat rule
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func EnableRule ¶ added in v0.9.18
EnableRule - enable the repair plat rule
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func InstanceChangeSubnet ¶ added in v0.9.72
InstanceChangeVpc - change the subnet to which the instance belongs
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: request body to change subnet of instance
RETURNS:
- error: nil if success otherwise the specific error
func InstanceChangeVpc ¶ added in v0.9.58
InstanceChangeVpc - change the vpc to which the instance belongs
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: request body to change vpc of instance
RETURNS:
- error: nil if success otherwise the specific error
func ModifyInstanceDesc ¶ added in v0.9.8
func ModifyInstanceDesc(cli bce.Client, instanceId string, clientToken string, reqBody *bce.Body) error
ModifyInstanceDesc - modify a bbc instance desc
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func ModifyInstanceName ¶ added in v0.9.8
ModifyInstanceName - modify a bbc instance name
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func ModifyInstancePassword ¶ added in v0.9.8
ModifyInstancePassword - modify a bbc instance password
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func RebootInstance ¶ added in v0.9.8
RebootInstance - reboot a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func RebuildInstance ¶ added in v0.9.8
RebuildInstance - rebuild a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func RecoveryInstances ¶ added in v0.9.34
func ShareImage ¶ added in v0.9.22
func ShareImage(cli bce.Client, imageId string, args *SharedUser) error
ShareImage - share a specified custom image
PARAMS:
- cli: the client agent which can perform sending request
- imageId: id of the image to be shared
- args: the arguments to share image
RETURNS:
- error: nil if success otherwise the specific error
func StartInstance ¶ added in v0.9.8
StartInstance - start a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
RETURNS:
- error: nil if success otherwise the specific error
func StopInstance ¶ added in v0.9.8
StopInstance - stop a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func UnAuthorizeRepairTask ¶ added in v0.9.18
func UnBindSecurityGroups ¶ added in v0.9.18
UnBindSecurityGroups - UnBind Security Groups
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func UnShareImage ¶ added in v0.9.22
func UnShareImage(cli bce.Client, imageId string, args *SharedUser) error
UnShareImage - unshare a specified image
PARAMS:
- cli: the client agent which can perform sending request
- imageId: id of the image to be unshared
- args: the arguments to unshare image
RETURNS:
- error: nil if success otherwise the specific error
func UnbindTags ¶ added in v0.9.8
UnbindTags - unbind a bbc instance tags
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
Types ¶
type AutoSnapshotPolicyModel ¶ added in v0.9.30
type AutoSnapshotPolicyModel struct { CreatedTime string `json:"createdTime"` Id string `json:"id"` Status string `json:"status"` RetentionDays int `json:"retentionDays"` UpdatedTime string `json:"updatedTime"` DeletedTime string `json:"deletedTime"` LastExecuteTime string `json:"lastExecuteTime"` VolumeCount int `json:"volumeCount"` Name string `json:"name"` TimePoints []int `json:"timePoints"` RepeatWeekdays []int `json:"repeatWeekdays"` }
type AzIntstanceStatis ¶ added in v0.9.18
type AzIntstanceStatisDetail ¶ added in v0.9.18
type AzIntstanceStatisDetail struct { ZoneName string `json:"zoneName"` Count int `json:"instanceCount"` BccCount int `json:"bccInstanceCnt"` BbcCount int `json:"bbcInstanceCnt"` Total int `json:"instanceTotal"` InstanceIds []string `json:"instanceIds"` BccInstanceIds []string `json:"bccInstanceIds"` BbcInstanceIds []string `json:"bbcInstanceIds"` }
type BatchAddIpArgs ¶ added in v0.9.8
type BatchAddIpCrossSubnetArgs ¶ added in v0.9.68
type BatchAddIpCrossSubnetArgs struct { InstanceId string `json:"instanceId"` SingleEniAndSubentIps []SingleEniAndSubentIp `json:"singleEniAndSubentIps"` ClientToken string `json:"-"` }
type BatchAddIpResponse ¶ added in v0.9.18
type BatchAddIpResponse struct {
PrivateIps []string `json:"privateIps"`
}
func BatchAddIp ¶ added in v0.9.8
func BatchAddIp(cli bce.Client, args *BatchAddIpArgs, reqBody *bce.Body) (*BatchAddIpResponse, error)
BatchAddIp - Add ips to instance
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
func BatchAddIpCrossSubnet ¶ added in v0.9.68
func BatchAddIpCrossSubnet(cli bce.Client, args *BatchAddIpCrossSubnetArgs, reqBody *bce.Body) (*BatchAddIpResponse, error)
BatchAddIp - Add ips to instance
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- error: nil if success otherwise the specific error
type BatchDelIpArgs ¶ added in v0.9.8
type BatchRebuild ¶ added in v0.9.29
type BatchRebuildResponse ¶ added in v0.9.29
type BatchRebuildResponse struct {
Result []BatchRebuild `json:"result"`
}
func BatchRebuildInstances ¶ added in v0.9.29
BatchRebuildInstances - batch rebuild instances
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: the request body to rebuild instance
RETURNS:
- *BatchRebuildResponse: result of batch rebuild instances
- error: nil if success otherwise the specific error
type BbcCreateAutoRenewArgs ¶ added in v0.9.21
type BbcDeleteAutoRenewArgs ¶ added in v0.9.21
type BbcDeleteAutoRenewArgs struct {
InstanceId string `json:"instanceId"`
}
type BbcFlavorInfo ¶ added in v0.9.18
type BbcNetworkModel ¶ added in v0.9.8
type BbcNetworkModel struct { BbcId string `json:"bbcId"` Vpc VpcModel `json:"vpc"` Subnet SubnetModel `json:"subnet"` }
type Billing ¶ added in v0.9.8
type Billing struct { PaymentTiming PaymentTimingType `json:"paymentTiming,omitempty"` Reservation Reservation `json:"reservation,omitempty"` }
type BindSecurityGroupsArgs ¶ added in v0.9.18
type BindTagsArgs ¶ added in v0.9.18
type Client ¶
Client of BBC service is a kind of BceClient, so derived from BceClient
func NewClient ¶
NewClient make the BBC service client with default configuration. Use `cli.Config.xxx` to access the config or change it to non-default value.
func (*Client) AuthorizeRepairTask ¶ added in v0.9.18
func (c *Client) AuthorizeRepairTask(args *TaskIdArgs) error
func (*Client) BatchAddIP ¶ added in v0.9.8
func (c *Client) BatchAddIP(args *BatchAddIpArgs) (*BatchAddIpResponse, error)
BatchAddIP - Add ips to instance
PARAMS:
- args: the arguments to add ips to bbc instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BatchAddIPCrossSubnet ¶ added in v0.9.68
func (c *Client) BatchAddIPCrossSubnet(args *BatchAddIpCrossSubnetArgs) (*BatchAddIpResponse, error)
BatchAddIPCrossSubnet - Add ips to instance cross subnet
PARAMS:
- args: the arguments to add ips to bbc instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BatchCreateAutoRenewRules ¶ added in v0.9.21
func (c *Client) BatchCreateAutoRenewRules(args *BbcCreateAutoRenewArgs) error
BatchCreateAutoRenewRules - Batch Create AutoRenew Rules
PARAMS:
- args: the arguments to batch create autorenew rules
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BatchDelIP ¶ added in v0.9.8
func (c *Client) BatchDelIP(args *BatchDelIpArgs) error
BatchDelIP - Delete ips of instance
PARAMS:
- args: the arguments to add ips to bbc instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BatchDeleteAutoRenewRules ¶ added in v0.9.21
func (c *Client) BatchDeleteAutoRenewRules(args *BbcDeleteAutoRenewArgs) error
BatchDeleteAutoRenewRules - Batch Delete AutoRenew Rules
PARAMS:
- args: the arguments to batch delete autorenew rules
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BatchRebuildInstances ¶ added in v0.9.29
func (c *Client) BatchRebuildInstances(args *RebuildBatchInstanceArgs) (*BatchRebuildResponse, error)
RebuildBatchInstance - batch rebuild instances
PARAMS:
- args: the arguments to batch rebuild instances
RETURNS:
- *BatchRebuildResponse: the result of batch rebuild the instances
- error: nil if success otherwise the specific error
func (*Client) BindSecurityGroups ¶ added in v0.9.18
func (c *Client) BindSecurityGroups(args *BindSecurityGroupsArgs) error
BindSecurityGroups - Bind Security Groups
PARAMS:
- args: the arguments of bind security groups
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BindTags ¶ added in v0.9.18
func (c *Client) BindTags(instanceId string, args *BindTagsArgs) error
BindTags - bind an instance tags
PARAMS:
- instanceId: the id of the instance
- args: tags of an instance to bind
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ConfirmRepairTask ¶ added in v0.9.18
func (c *Client) ConfirmRepairTask(args *TaskIdArgs) error
func (*Client) CreateDeploySet ¶
func (c *Client) CreateDeploySet(args *CreateDeploySetArgs) (*CreateDeploySetResult, error)
CreateDeploySet - create a deploy set
PARAMS:
- args: the arguments to create a deploy set
RETURNS:
- *CreateDeploySetResult: results of creating a deploy set
- error: nil if success otherwise the specific error
func (*Client) CreateImageFromInstanceId ¶
func (c *Client) CreateImageFromInstanceId(args *CreateImageArgs) (*CreateImageResult, error)
CreateImageFromInstanceId - create image from specified instance
PARAMS:
- args: the arguments to create image
RETURNS:
- *CreateImageResult: the result of create Image
- error: nil if success otherwise the specific error
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(args *CreateInstanceArgs) (*CreateInstanceResult, error)
CreateInstance - create an instance with the specific parameters
PARAMS:
- args: the arguments to create instance
RETURNS:
- *CreateInstanceResult: the result of create Instance, contains new Instance ID
- error: nil if success otherwise the specific error
func (*Client) CreateRule ¶ added in v0.9.18
func (c *Client) CreateRule(args *CreateRuleArgs) (*CreateRuleResult, error)
CreateRule - create the repair plat rule
PARAMS:
- args: the arguments of creating the repair plat rule
RETURNS:
- *CreateRuleResult: results of the id of the repair plat rule which is created
- error: nil if success otherwise the specific error
func (*Client) DeleteDeploySet ¶
DeleteDeploySet - delete a deploy set
PARAMS:
- deploySetId: the id of the deploy set
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteImage ¶
DeleteImage - delete an image
PARAMS:
- imageId: the specific image ID
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteInstance ¶ added in v0.9.8
DeleteInstance - delete an instance
PARAMS:
- instanceId: the specific instance ID
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteInstanceIngorePayment ¶ added in v0.9.21
func (c *Client) DeleteInstanceIngorePayment(args *DeleteInstanceIngorePaymentArgs) (*DeleteInstanceResult, error)
func (*Client) DeleteInstances ¶ added in v0.9.34
func (c *Client) DeleteInstances(args *DeleteInstanceArgs) error
DeleteInstance - delete an instance
PARAMS:
- instanceId: the specific instance ID
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteRule ¶ added in v0.9.18
func (c *Client) DeleteRule(args *DeleteRuleArgs) error
DeleteRule - delete the repair plat rule
PARAMS:
- args: the arguments of deleting the repair plat rule
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DisConfirmRepairTask ¶ added in v0.9.18
func (c *Client) DisConfirmRepairTask(args *DisconfirmTaskArgs) error
func (*Client) DisableRule ¶ added in v0.9.18
func (c *Client) DisableRule(args *DisableRuleArgs) error
DisableRule - disable the repair plat rule
PARAMS:
- args: the arguments of disabling the repair plat rule
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) EnableRule ¶ added in v0.9.18
func (c *Client) EnableRule(args *EnableRuleArgs) error
EnableRule - enable the repair plat rule
PARAMS:
- args: the arguments of enabling the repair plat rule
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetCommonImage ¶ added in v0.9.18
func (c *Client) GetCommonImage(args *GetFlavorImageArgs) (*GetImagesResult, error)
GetCommonImage - get common flavor image list
PARAMS:
- cli: the client agent which can perform sending request
- flavorIds: the specific flavorIds, can be nil
RETURNS:
- *GetImageDetailResult: the result of get image's detail
- error: nil if success otherwise the specific error
func (*Client) GetCustomImage ¶ added in v0.9.18
func (c *Client) GetCustomImage(args *GetFlavorImageArgs) (*GetImagesResult, error)
GetCustomImage - get user onwer flavor image list
PARAMS:
- cli: the client agent which can perform sending request
- flavorIds: the specific flavorIds, can be nil
RETURNS:
- *GetImageDetailResult: the result of get image's detail
- error: nil if success otherwise the specific error
func (*Client) GetDeploySet ¶
func (c *Client) GetDeploySet(deploySetId string) (*DeploySetResult, error)
GetDeploySet - get details of the deploy set
PARAMS:
- deploySetId: the id of the deploy set
RETURNS:
- *GetDeploySetResult: the detail of the deploy set
- error: nil if success otherwise the specific error
func (*Client) GetFlavorDetail ¶
func (c *Client) GetFlavorDetail(flavorId string) (*GetFlavorDetailResult, error)
GetFlavorDetail - get details of the specified flavor
PARAMS:
- flavorId: the id of the flavor
RETURNS:
- *GetFlavorDetailResult: the detail of the specified flavor
- error: nil if success otherwise the specific error
func (*Client) GetFlavorRaid ¶
func (c *Client) GetFlavorRaid(flavorId string) (*GetFlavorRaidResult, error)
GetFlavorRaid - get the RAID detail and disk size of the specified flavor
PARAMS:
- flavorId: the id of the flavor
RETURNS:
- *GetFlavorRaidResult: the detail of the raid of the specified flavor
- error: nil if success otherwise the specific error
func (*Client) GetImageDetail ¶
func (c *Client) GetImageDetail(imageId string) (*GetImageDetailResult, error)
GetImageDetail - get an image's detail info
PARAMS:
- imageId: the specific image ID
RETURNS:
- *GetImageDetailResult: the result of get image's detail
- error: nil if success otherwise the specific error
func (*Client) GetInstanceCreateStock ¶ added in v0.9.18
func (c *Client) GetInstanceCreateStock(args *CreateInstanceStockArgs) (*InstanceStockResult, error)
func (*Client) GetInstanceDetail ¶
func (c *Client) GetInstanceDetail(instanceId string) (*InstanceModel, error)
GetInstanceDetail - get a specific instance detail info
PARAMS:
- instanceId: the specific instance ID
RETURNS:
- *GetInstanceDetailResult: the result of get instance detail info
- error: nil if success otherwise the specific error
func (*Client) GetInstanceDetailWithDeploySet ¶ added in v0.9.18
func (c *Client) GetInstanceDetailWithDeploySet(instanceId string, isDeploySet bool) (*InstanceModel, error)
func (*Client) GetInstanceDetailWithDeploySetAndFailed ¶ added in v0.9.34
func (*Client) GetInstanceEni ¶ added in v0.9.18
func (c *Client) GetInstanceEni(instanceId string) (*GetInstanceEniResult, error)
func (*Client) GetInstancePirce ¶ added in v0.9.18
func (c *Client) GetInstancePirce(args *InstancePirceArgs) (*InstancePirceResult, error)
func (*Client) GetInstanceVNC ¶ added in v0.9.38
func (c *Client) GetInstanceVNC(instanceId string) (*GetInstanceVNCResult, error)
GetInstanceVNC - get an instance's VNC url
PARAMS:
- instanceId: the specific instance ID
RETURNS:
- *api.GetInstanceVNCResult: the result of get instance's VNC url
- error: nil if success otherwise the specific error
func (*Client) GetOperationLog ¶
func (c *Client) GetOperationLog(args *GetOperationLogArgs) (*GetOperationLogResult, error)
GetOperationLog - get operation log
PARAMS:
- args: the arguments to get operation log
RETURNS:
- *GetOperationLogResult: results of getting operation log
- error: nil if success otherwise the specific error
func (*Client) GetRepairTaskDetail ¶ added in v0.9.18
func (c *Client) GetRepairTaskDetail(taskId string) (*GetRepairTaskResult, error)
func (*Client) GetRepairTaskRecord ¶ added in v0.9.18
func (c *Client) GetRepairTaskRecord(args *TaskIdArgs) (*GetRepairRecords, error)
func (*Client) GetRuleDetail ¶ added in v0.9.18
GetRuleDetail - list the repair plat rules
PARAMS:
- ruleId: the specified rule id
RETURNS:
- *Rule: results of the specified repair plat rule
- error: nil if success otherwise the specific error
func (*Client) GetSimpleFlavor ¶ added in v0.9.18
func (c *Client) GetSimpleFlavor(args *GetSimpleFlavorArgs) (*SimpleFlavorResult, error)
func (*Client) GetVpcSubnet ¶
func (c *Client) GetVpcSubnet(args *GetVpcSubnetArgs) (*GetVpcSubnetResult, error)
GetVpcSubnet - get multi instances vpc and subnet
PARAMS:
- args: the instanceId of bbc instances
RETURNS:
- *GetVpcSubnetResult: result of vpc and subnet
- error: nil if success otherwise the specific error
func (*Client) InstanceChangeSubnet ¶ added in v0.9.72
func (c *Client) InstanceChangeSubnet(args *InstanceChangeSubnetArgs) error
InstanceChangeSubnet - change an instance's subnet
PARAMS:
- args: the arguments to change an instance's subnet
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) InstanceChangeVpc ¶ added in v0.9.58
func (c *Client) InstanceChangeVpc(args *InstanceChangeVpcArgs) error
InstanceChangeVpc - change an instance's vpc
PARAMS:
- args: the arguments to change an instance's vpc
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ListCDSVolume ¶ added in v0.9.30
func (c *Client) ListCDSVolume(queryArgs *ListCDSVolumeArgs) (*ListCDSVolumeResult, error)
ListCDSVolume - list all cds volume with the specific parameters
PARAMS:
- args: the arguments to list all cds
RETURNS:
- *api.ListCDSVolumeResult: the result of list all CDS volume
- error: nil if success otherwise the specific error
func (*Client) ListClosedRepairTasks ¶ added in v0.9.18
func (c *Client) ListClosedRepairTasks(args *ListClosedRepairTaskArgs) (*ListClosedRepairTaskResult, error)
func (*Client) ListDeploySets ¶
func (c *Client) ListDeploySets() (*ListDeploySetsResult, error)
ListDeploySets - list all deploy sets
RETURNS:
- *ListDeploySetsResult: the result of list all deploy sets
- error: nil if success otherwise the specific error
func (*Client) ListDeploySetsPage ¶ added in v0.9.24
func (c *Client) ListDeploySetsPage(args *ListDeploySetsArgs) (*ListDeploySetsResult, error)
ListDeploySets - list all deploy sets PARAMS:
- args: the arguments to filter
RETURNS:
- *ListDeploySetsResult: the result of list all deploy sets
- error: nil if success otherwise the specific error
func (*Client) ListFlavorZones ¶ added in v0.9.18
func (c *Client) ListFlavorZones(args *ListFlavorZonesArgs) (*ListZonesResult, error)
ListFlavorZones - get the zone list of the specified flavor which can buy
PARAMS:
- cli: the client agent which can perform sending request
- flavorId: the id of the flavor
RETURNS:
- *ListZonesResult: the list of zone names
- error: nil if success otherwise the specific error
func (*Client) ListFlavors ¶
func (c *Client) ListFlavors() (*ListFlavorsResult, error)
ListFlavors - list all available flavors
RETURNS:
- *ListFlavorsResult: the result of list all flavors
- error: nil if success otherwise the specific error
func (*Client) ListImage ¶
func (c *Client) ListImage(args *ListImageArgs) (*ListImageResult, error)
ListImage - list all images
PARAMS:
- args: the arguments to list all images
RETURNS:
- *ListImageResult: the result of list all images
- error: nil if success otherwise the specific error
func (*Client) ListInstances ¶
func (c *Client) ListInstances(args *ListInstancesArgs) (*ListInstancesResult, error)
ListInstances - list all instance with the specific parameters
PARAMS:
- args: the arguments to list all instance
RETURNS:
- *ListInstanceResult: the result of list Instance
- error: nil if success otherwise the specific error
func (*Client) ListRecycledInstances ¶ added in v0.9.34
func (c *Client) ListRecycledInstances(args *ListRecycledInstancesArgs) (*ListRecycledInstancesResult, error)
ListInstances - list all instance with the specific parameters
PARAMS:
- args: the arguments to list all instance
RETURNS:
- *ListInstanceResult: the result of list Instance
- error: nil if success otherwise the specific error
func (*Client) ListRepairTasks ¶ added in v0.9.18
func (c *Client) ListRepairTasks(args *ListRepairTaskArgs) (*ListRepairTaskResult, error)
func (*Client) ListRule ¶ added in v0.9.18
func (c *Client) ListRule(args *ListRuleArgs) (*ListRuleResult, error)
ListRule - list the repair plat rules
PARAMS:
- args: the arguments of listing the repair plat rules
RETURNS:
- *ListRuleResult: results of listing the repair plat rules
- error: nil if success otherwise the specific error
func (*Client) ListZoneFlavors ¶ added in v0.9.18
func (c *Client) ListZoneFlavors(args *ListZoneFlavorsArgs) (*ListFlavorInfosResult, error)
ListZoneFlavors - get the flavor detail of the specific zone
PARAMS:
- cli: the client agent which can perform sending request
- zoneName: the zone name
RETURNS:
- *ListZoneResult: flavor detail of the specific zone
- error: nil if success otherwise the specific error
func (*Client) ModifyInstanceDesc ¶
func (c *Client) ModifyInstanceDesc(instanceId string, args *ModifyInstanceDescArgs) error
ModifyInstanceDesc - modify an instance's description
PARAMS:
- instanceId: the specific instance ID
- args: the arguments of now instance's description
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyInstanceName ¶
func (c *Client) ModifyInstanceName(instanceId string, args *ModifyInstanceNameArgs) error
ModifyInstanceName - modify an instance's name
PARAMS:
- instanceId: the specific instance ID
- args: the arguments of now instance's name
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyInstancePassword ¶
func (c *Client) ModifyInstancePassword(instanceId string, args *ModifyInstancePasswordArgs) error
ModifyInstancePassword - modify an instance's password
PARAMS:
- instanceId: the specific instance ID
- args: the arguments of now instance's password
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RebootInstance ¶
RebootInstance - restart an instance
PARAMS:
- instanceId: the specific instance ID
- forceStop: choose to force stop an instance or not
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RebuildInstance ¶
func (c *Client) RebuildInstance(instanceId string, isPreserveData bool, args *RebuildInstanceArgs) error
RebuildInstance - rebuild an instance
PARAMS:
- instanceId: the specific instance ID
- isPreserveData: choose to preserve data or not
- args: the arguments to rebuild an instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RecoveryInstances ¶ added in v0.9.34
func (c *Client) RecoveryInstances(args *RecoveryInstancesArgs) error
ListInstances - list all instance with the specific parameters
PARAMS:
- args: the arguments to list all instance
RETURNS:
- *ListInstanceResult: the result of list Instance
- error: nil if success otherwise the specific error
func (*Client) ShareImage ¶ added in v0.9.22
func (c *Client) ShareImage(imageId string, args *SharedUser) error
ShareImage - share an image
PARAMS:
- imageId: the specific image ID
- args: the arguments to share an image
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) StartInstance ¶
StartInstance - start an instance
PARAMS:
- instanceId: the specific instance ID
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) StopInstance ¶
StopInstance - stop an instance
PARAMS:
- instanceId: the specific instance ID
- forceStop: choose to force stop an instance or not
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UnAuthorizeRepairTask ¶ added in v0.9.18
func (c *Client) UnAuthorizeRepairTask(args *TaskIdArgs) error
func (*Client) UnBindSecurityGroups ¶ added in v0.9.18
func (c *Client) UnBindSecurityGroups(args *UnBindSecurityGroupsArgs) error
UnBindSecurityGroups - UnBind Security Groups
PARAMS:
- args: the arguments of bind security groups
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UnShareImage ¶ added in v0.9.22
func (c *Client) UnShareImage(imageId string, args *SharedUser) error
UnShareImage - cancel share an image
PARAMS:
- imageId: the specific image ID
- args: the arguments to cancel share an image
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UnbindTags ¶
func (c *Client) UnbindTags(instanceId string, args *UnbindTagsArgs) error
UnbindTags - unbind an instance tags
PARAMS:
- instanceId: the id of the instance
- args: tags of an instance to unbind
RETURNS:
- error: nil if success otherwise the specific error
type ClosedRepairTask ¶ added in v0.9.18
type CreateDeploySetArgs ¶ added in v0.9.8
type CreateDeploySetResult ¶ added in v0.9.8
type CreateDeploySetResult struct {
DeploySetId string `json:"deploySetId"`
}
func CreateDeploySet ¶ added in v0.9.8
func CreateDeploySet(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateDeploySetResult, error)
CreateDeploySet - create a deploy set
PARAMS:
- cli: the client agent which can perform sending request
- clientToken: idempotent token, an ASCII string no longer than 64 bits
- reqBody: http request body
RETURNS:
- *CreateDeploySetResult: results of creating a deploy set
- error: nil if success otherwise the specific error
type CreateImageArgs ¶ added in v0.9.8
type CreateImageResult ¶ added in v0.9.8
type CreateImageResult struct {
ImageId string `json:"imageId"`
}
func CreateImageFromInstanceId ¶ added in v0.9.8
func CreateImageFromInstanceId(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateImageResult, error)
CreateImageFromInstanceId - create image from specified instance
PARAMS:
- cli: the client agent which can perform sending request
- clientToken: idempotent token, an ASCII string no longer than 64 bits
- reqBody: http request body
RETURNS:
- *CreateImageResult: the result of create Image
- error: nil if success otherwise the specific error
type CreateInstanceArgs ¶ added in v0.9.8
type CreateInstanceArgs struct { FlavorId string `json:"flavorId"` ImageId string `json:"imageId"` RaidId string `json:"raidId"` RootDiskSizeInGb int `json:"rootDiskSizeInGb"` PurchaseCount int `json:"purchaseCount"` ZoneName string `json:"zoneName"` SubnetId string `json:"subnetId"` AutoRenewTimeUnit string `json:"autoRenewTimeUnit,omitempty"` AutoRenewTime int `json:"autoRenewTime,omitempty"` Billing Billing `json:"billing"` Name string `json:"name,omitempty"` Hostname string `json:"hostname,omitempty"` AdminPass string `json:"adminPass,omitempty"` DeploySetId string `json:"deploySetId,omitempty"` ClientToken string `json:"-"` SecurityGroupId string `json:"securityGroupId,omitempty"` Tags []model.TagModel `json:"tags,omitempty"` InternalIps []string `json:"internalIps,omitempty"` RequestToken string `json:"requestToken"` EnableNuma bool `json:"enableNuma"` }
type CreateInstanceResult ¶ added in v0.9.8
type CreateInstanceResult struct {
InstanceIds []string `json:"instanceIds"`
}
func CreateInstance ¶ added in v0.9.8
func CreateInstance(cli bce.Client, args *CreateInstanceArgs, reqBody *bce.Body) (*CreateInstanceResult, error)
CreateInstance - create a bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- clientToken: idempotent token, an ASCII string no longer than 64 bits
- reqBody: http request body
RETURNS:
- *CreateInstanceResult: results of creating a bbc instance
- error: nil if success otherwise the specific error
type CreateInstanceStockArgs ¶ added in v0.9.18
type CreateRuleArgs ¶ added in v0.9.18
type CreateRuleResult ¶ added in v0.9.18
type CreateRuleResult struct {
RuleId string `json:"ruleId"`
}
func CreateRule ¶ added in v0.9.18
CreateRule - create the repair plat rule
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- *CreateRuleResult: results of the id of the repair plat rule which is created
- error: nil if success otherwise the specific error
type DeleteInstanceArgs ¶ added in v0.9.34
type DeleteInstanceIngorePaymentArgs ¶ added in v0.9.21
type DeleteInstanceModel ¶ added in v0.9.21
type DeleteInstanceResult ¶ added in v0.9.21
type DeleteInstanceResult struct { SuccessResources *DeleteInstanceModel `json:"successResources"` FailResources *DeleteInstanceModel `json:"failResources"` }
func DeleteBbcIngorePayment ¶ added in v0.9.21
func DeleteBbcIngorePayment(cli bce.Client, args *DeleteInstanceIngorePaymentArgs) (*DeleteInstanceResult, error)
type DeleteRuleArgs ¶ added in v0.9.18
type DeleteRuleArgs struct {
RuleId string `json:"ruleId"`
}
type DeploySetModel ¶ added in v0.9.8
type DeploySetResult ¶ added in v0.9.18
type DeploySetResult struct { Strategy string `json:"strategy"` Name string `json:"name"` Desc string `json:"desc"` DeploySetId string `json:"deploySetId"` InstanceList []AzIntstanceStatisDetail `json:"azIntstanceStatisList"` Concurrency int `json:"concurrency"` }
func GetDeploySet ¶ added in v0.9.8
func GetDeploySet(cli bce.Client, deploySetId string) (*DeploySetResult, error)
GetDeploySet - get details of the deploy set
PARAMS:
- cli: the client agent which can perform sending request
- deploySetId: the id of the deploy set
RETURNS:
- *GetDeploySetResult: the detail of the deploy set
- error: nil if success otherwise the specific error
type DisableRuleArgs ¶ added in v0.9.18
type DisableRuleArgs struct {
RuleId string `json:"ruleId"`
}
type DisconfirmTaskArgs ¶ added in v0.9.18
type EnableRuleArgs ¶ added in v0.9.18
type EnableRuleArgs struct {
RuleId string `json:"ruleId"`
}
type FlavorImageModel ¶ added in v0.9.18
type FlavorImageModel struct { FlavorId string `json:"flavorId"` Images []ImageModel `json:"images"` }
type FlavorModel ¶ added in v0.9.8
type GetDeploySetResult ¶ added in v0.9.8
type GetDeploySetResult struct {
DeploySetModel
}
type GetFlavorDetailResult ¶ added in v0.9.8
type GetFlavorDetailResult struct {
FlavorModel
}
func GetFlavorDetail ¶ added in v0.9.8
func GetFlavorDetail(cli bce.Client, flavorId string) (*GetFlavorDetailResult, error)
GetFlavorDetail - get details of the specified flavor
PARAMS:
- cli: the client agent which can perform sending request
- flavorId: the id of the flavor
RETURNS:
- *GetFlavorDetailResult: the detail of the specified flavor
- error: nil if success otherwise the specific error
type GetFlavorImageArgs ¶ added in v0.9.18
type GetFlavorRaidResult ¶ added in v0.9.8
type GetFlavorRaidResult struct { FlavorId string `json:"flavorId"` Raids []RaidModel `json:"raids"` }
func GetFlavorRaid ¶ added in v0.9.8
func GetFlavorRaid(cli bce.Client, flavorId string) (*GetFlavorRaidResult, error)
GetFlavorRaid - get the RAID detail and disk size of the specified flavor
PARAMS:
- cli: the client agent which can perform sending request
- flavorId: the id of the flavor
RETURNS:
- *GetFlavorRaidResult: the detail of the raid of the specified flavor
- error: nil if success otherwise the specific error
type GetImageDetailResult ¶ added in v0.9.8
type GetImageDetailResult struct {
Result *ImageModel `json:"image"`
}
func GetImageDetail ¶ added in v0.9.8
func GetImageDetail(cli bce.Client, imageId string) (*GetImageDetailResult, error)
GetImageDetail - get an image's detail info
PARAMS:
- cli: the client agent which can perform sending request
- imageId: the specific image ID
RETURNS:
- *GetImageDetailResult: the result of get image's detail
- error: nil if success otherwise the specific error
type GetImagesResult ¶ added in v0.9.18
type GetImagesResult struct {
Result []FlavorImageModel `json:"result"`
}
func GetCommonImage ¶ added in v0.9.18
GetCommonImage - get common flavor image list
PARAMS:
- cli: the client agent which can perform sending request
- flavorIds: the specific flavorIds, can be nil
RETURNS:
- *GetImageDetailResult: the result of get image's detail
- error: nil if success otherwise the specific error
func GetCustomImage ¶ added in v0.9.18
GetCustomImage - get user onwer flavor image list
PARAMS:
- cli: the client agent which can perform sending request
- flavorIds: the specific flavorIds, can be nil
RETURNS:
- *GetImageDetailResult: the result of get image's detail
- error: nil if success otherwise the specific error
type GetInstanceEniResult ¶ added in v0.9.18
type GetInstanceEniResult struct { Id string `json:"eniId"` Name string `json:"name"` ZoneName string `json:"zoneName"` Description string `json:"description"` InstanceId string `json:"instanceId"` MacAddress string `json:"macAddress"` VpcId string `json:"vpcId"` SubnetId string `json:"subnetId"` Status string `json:"status"` PrivateIpSet []PrivateIP `json:"privateIpSet"` }
func GetInstanceEni ¶ added in v0.9.18
func GetInstanceEni(cli bce.Client, instanceId string) (*GetInstanceEniResult, error)
GetInstanceEni - get the eni of the bbc instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the bbc instance id
RETURNS:
- error: nil if success otherwise the specific error
type GetInstanceVNCResult ¶ added in v0.9.38
type GetInstanceVNCResult struct {
VNCUrl string `json:"vncUrl"`
}
func GetInstanceVNC ¶ added in v0.9.38
func GetInstanceVNC(cli bce.Client, instanceId string) (*GetInstanceVNCResult, error)
GetInstanceVNC - get VNC address of the specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
RETURNS:
- *GetInstanceVNCResult: result of the VNC address of the instance
- error: nil if success otherwise the specific error
type GetOperationLogArgs ¶ added in v0.9.8
type GetOperationLogResult ¶ added in v0.9.8
type GetOperationLogResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` OperationLogs []OperationLogModel `json:"operationLogs"` }
func GetOperationLog ¶ added in v0.9.8
func GetOperationLog(cli bce.Client, args *GetOperationLogArgs) (*GetOperationLogResult, error)
GetOperationLog - get operation log
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to get operation log
RETURNS:
- *GetOperationLogResult: results of getting operation log
- error: nil if success otherwise the specific error
type GetRepairRecords ¶ added in v0.9.18
type GetRepairRecords struct {
RepairRecords []RepairRecord `json:"RepairRecord"`
}
func GetRepairTaskReocrd ¶ added in v0.9.18
type GetRepairTaskResult ¶ added in v0.9.18
type GetRepairTaskResult struct { TaskId string `json:"taskId"` InstanceId string `json:"instanceId"` InstanceName string `json:"instanceName"` ErrResult string `json:"errResult"` Status string `json:"status"` ServerStatus string `json:"serverStatus"` Region string `json:"region"` InternalIp string `json:"internalIp"` FloatingIp string `json:"floatingIp"` }
func GetTaskDetail ¶ added in v0.9.18
func GetTaskDetail(cli bce.Client, instanceId string) (*GetRepairTaskResult, error)
type GetSimpleFlavorArgs ¶ added in v0.9.18
type GetSimpleFlavorArgs struct {
InstanceIds []string `json:"instanceIds"`
}
type GetVpcSubnetArgs ¶ added in v0.9.8
type GetVpcSubnetArgs struct {
BbcIds []string `json:"bbcIds"`
}
type GetVpcSubnetResult ¶ added in v0.9.8
type GetVpcSubnetResult struct {
NetworkInfo []BbcNetworkModel `json:"networkInfo"`
}
func GetVpcSubnet ¶ added in v0.9.8
GetVpcSubnet - get multi instances vpc and subnet
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: http request body
RETURNS:
- *GetVpcSubnetResult: result of vpc and subnet
- error: nil if success otherwise the specific error
type ImageModel ¶ added in v0.9.8
type ImageModel struct { OsVersion string `json:"osVersion"` OsArch string `json:"osArch"` Status ImageStatus `json:"status"` Desc string `json:"desc"` Id string `json:"id"` Name string `json:"name"` OsName string `json:"osName"` OsBuild string `json:"osBuild"` CreateTime string `json:"createTime"` Type ImageType `json:"type"` OsType string `json:"osType"` SpecialVersion string `json:"specialVersion"` }
type ImageStatus ¶ added in v0.9.8
type ImageStatus string
const ( ImageStatusCreating ImageStatus = "Creating" ImageStatusCreateFailed ImageStatus = "CreateFailed" ImageStatusAvailable ImageStatus = "Available" ImageStatusNotAvailable ImageStatus = "NotAvailable" ImageStatusError ImageStatus = "Error" )
type InstanceChangeSubnetArgs ¶ added in v0.9.72
type InstanceChangeVpcArgs ¶ added in v0.9.58
type InstanceModel ¶ added in v0.9.8
type InstanceModel struct { Id string `json:"id"` Name string `json:"name"` Hostname string `json:"hostname"` Uuid string `json:"uuid"` Desc string `json:"desc"` Status InstanceStatus `json:"status"` PaymentTiming string `json:"paymentTiming"` CreateTime string `json:"createTime"` ExpireTime string `json:"expireTime"` PublicIp string `json:"publicIp"` InternalIp string `json:"internalIp"` RdmaIp string `json:"rdmaIp"` ImageId string `json:"imageId"` FlavorId string `json:"flavorId"` Zone string `json:"zone"` Region string `json:"region"` HasAlive int `json:"hasAlive"` Tags []model.TagModel `json:"tags"` SwitchId string `json:"switchId"` HostId string `json:"hostId"` DeploysetId string `json:"deploysetId"` NetworkCapacityInMbps int `json:"networkCapacityInMbps"` RackId string `json:"rackId"` }
func GetInstanceDetail ¶ added in v0.9.8
func GetInstanceDetail(cli bce.Client, instanceId string) (*InstanceModel, error)
func GetInstanceDetailWithDeploySet ¶ added in v0.9.18
func GetInstanceDetailWithDeploySet(cli bce.Client, instanceId string, isDeploySet bool) (*InstanceModel, error)
GetInstanceDetail - get a bbc instance detail msg
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
RETURNS:
- *InstanceModel: instance detail msg
- error: nil if success otherwise the specific error
func GetInstanceDetailWithDeploySetAndFailed ¶ added in v0.9.34
func GetInstanceDetailWithDeploySetAndFailed(cli bce.Client, instanceId string, isDeploySet bool, containsFailed bool) (*InstanceModel, error)
GetInstanceDetail - get a bbc instance detail msg
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: the id of the instance
RETURNS:
- *InstanceModel: instance detail msg
- error: nil if success otherwise the specific error
type InstancePirceArgs ¶ added in v0.9.18
type InstancePirceResult ¶ added in v0.9.18
type InstancePirceResult struct {
Pirce string `json:"price"`
}
func GetInstancePirce ¶ added in v0.9.18
func GetInstancePirce(cli bce.Client, args *InstancePirceArgs) (*InstancePirceResult, error)
type InstanceStatus ¶ added in v0.9.8
type InstanceStatus string
const ( InstanceStatusRunning InstanceStatus = "Running" InstanceStatusStarting InstanceStatus = "Starting" InstanceStatusStopping InstanceStatus = "Stopping" InstanceStatusStopped InstanceStatus = "Stopped" InstanceStatusDeleted InstanceStatus = "Deleted" InstanceStatusExpired InstanceStatus = "Expired" InstanceStatusError InstanceStatus = "Error" InstanceStatusImageProcessing InstanceStatus = "ImageProcessing" InstanceStatusChangeVpcProcessing InstanceStatus = "ChangeVpc" )
type InstanceStockResult ¶ added in v0.9.18
func GetInstanceCreateStock ¶ added in v0.9.18
func GetInstanceCreateStock(cli bce.Client, args *CreateInstanceStockArgs) (*InstanceStockResult, error)
type IpAndSubnet ¶ added in v0.9.68
type ListCDSVolumeArgs ¶ added in v0.9.30
type ListCDSVolumeResult ¶ added in v0.9.30
type ListCDSVolumeResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` Volumes []VolumeModel `json:"volumes"` }
func ListCDSVolume ¶ added in v0.9.30
func ListCDSVolume(cli bce.Client, queryArgs *ListCDSVolumeArgs) (*ListCDSVolumeResult, error)
ListCDSVolume - list all cds volumes with the given parameters
PARAMS:
- cli: the client agent which can perform sending request
- queryArgs: the optional arguments to list cds volumes
RETURNS:
- *ListCDSVolumeResult: the result of cds volume list
- error: nil if success otherwise the specific error
type ListClosedRepairTaskArgs ¶ added in v0.9.18
type ListClosedRepairTaskResult ¶ added in v0.9.18
type ListClosedRepairTaskResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` RepairTasks []ClosedRepairTask `json:"RepairTask"` }
func ListClosedRepairTasks ¶ added in v0.9.18
func ListClosedRepairTasks(cli bce.Client, args *ListClosedRepairTaskArgs) (*ListClosedRepairTaskResult, error)
type ListDeploySetsArgs ¶ added in v0.9.24
type ListDeploySetsResult ¶ added in v0.9.8
type ListDeploySetsResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` DeploySetList []DeploySetModel `json:"deploySetList"` }
func ListDeploySets ¶ added in v0.9.8
func ListDeploySets(cli bce.Client) (*ListDeploySetsResult, error)
ListDeploySets - list all deploy sets PARAMS:
- cli: the client agent which can perform sending request
RETURNS:
- *ListDeploySetsResult: the result of list all deploy sets
- error: nil if success otherwise the specific error
func ListDeploySetsPage ¶ added in v0.9.24
func ListDeploySetsPage(cli bce.Client, args *ListDeploySetsArgs) (*ListDeploySetsResult, error)
ListDeploySets - list all deploy sets PARAMS:
- cli: the client agent which can perform sending request
- args: the filter of deployset
RETURNS:
- *ListDeploySetsResult: the result of list all deploy sets
- error: nil if success otherwise the specific error
type ListFlavorInfosResult ¶ added in v0.9.18
type ListFlavorInfosResult struct {
BbcFlavorInfoList []BbcFlavorInfo `json:"bbcFlavorInfoList"`
}
func ListZoneFlavors ¶ added in v0.9.18
ListZoneFlavors - get the flavor detail of the specific zone
PARAMS:
- cli: the client agent which can perform sending request
- zoneName: the zone name
RETURNS:
- *ListZoneResult: flavor detail of the specific zone
- error: nil if success otherwise the specific error
type ListFlavorZonesArgs ¶ added in v0.9.18
type ListFlavorZonesArgs struct { FlavorId string `json:"flavorId"` ProductType PaymentTimingType `json:"productType"` }
type ListFlavorsResult ¶ added in v0.9.8
type ListFlavorsResult struct {
Flavors []FlavorModel `json:"flavors"`
}
func ListFlavors ¶ added in v0.9.8
func ListFlavors(cli bce.Client) (*ListFlavorsResult, error)
ListFlavors - list all available flavors
PARAMS:
- cli: the client agent which can perform sending request
RETURNS:
- *ListFlavorsResult: the result of list all flavors
- error: nil if success otherwise the specific error
type ListImageArgs ¶ added in v0.9.8
type ListImageResult ¶ added in v0.9.8
type ListImageResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` Images []ImageModel `json:"images"` }
func ListImage ¶ added in v0.9.8
func ListImage(cli bce.Client, queryArgs *ListImageArgs) (*ListImageResult, error)
ListImage - list all images
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to list all images
RETURNS:
- *ListImageResult: the result of list all images
- error: nil if success otherwise the specific error
type ListInstancesArgs ¶ added in v0.9.8
type ListInstancesResult ¶ added in v0.9.8
type ListInstancesResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` Instances []InstanceModel `json:"instances"` }
func ListInstances ¶ added in v0.9.8
func ListInstances(cli bce.Client, args *ListInstancesArgs) (*ListInstancesResult, error)
ListInstances - list all bbc instances
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to list bbc instances
RETURNS:
- *ListInstanceResult: results of list bbc instances
- error: nil if success otherwise the specific error
type ListRecycledInstancesArgs ¶ added in v0.9.34
type ListRecycledInstancesArgs struct { Marker string `json:"marker,omitempty"` MaxKeys int `json:"maxKeys,omitempty"` InstanceId string `json:"instanceId,omitempty"` Name string `json:"name,omitempty"` PaymentTiming string `json:"paymentTiming,omitempty"` RecycleBegin string `json:"recycleBegin,omitempty"` RecycleEnd string `json:"recycleEnd,omitempty"` }
type ListRecycledInstancesResult ¶ added in v0.9.34
type ListRecycledInstancesResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` RecycledInstances []RecycledInstancesModel `json:"instances"` }
func ListRecycledInstances ¶ added in v0.9.34
ListInstances - list all bbc instances
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to list bbc instances
RETURNS:
- *ListInstanceResult: results of list bbc instances
- error: nil if success otherwise the specific error
type ListRepairTaskArgs ¶ added in v0.9.18
type ListRepairTaskResult ¶ added in v0.9.18
type ListRepairTaskResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` RepairTasks []RepairTask `json:"RepairTask"` }
func ListRepairTasks ¶ added in v0.9.18
func ListRepairTasks(cli bce.Client, args *ListRepairTaskArgs) (*ListRepairTaskResult, error)
type ListRuleArgs ¶ added in v0.9.18
type ListRuleResult ¶ added in v0.9.18
type ListRuleResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` RuleList []Rule `json:"RuleList"` }
type ListZoneFlavorsArgs ¶ added in v0.9.18
type ListZoneFlavorsArgs struct { ZoneName string `json:"zoneName"` ProductType PaymentTimingType `json:"productType"` }
type ListZonesResult ¶ added in v0.9.18
type ListZonesResult struct {
ZoneNames []string `json:"zoneNames"`
}
func ListFlavorZones ¶ added in v0.9.18
ListFlavorZones - get the zone list of the specified flavor which can buy
PARAMS:
- cli: the client agent which can perform sending request
- flavorId: the id of the flavor
RETURNS:
- *ListZonesResult: the list of zone names
- error: nil if success otherwise the specific error
type ModifyInstanceDescArgs ¶ added in v0.9.8
type ModifyInstanceHostnameArgs ¶ added in v0.9.34
type ModifyInstanceNameArgs ¶ added in v0.9.8
type ModifyInstanceNameArgs struct {
Name string `json:"name"`
}
type ModifyInstancePasswordArgs ¶ added in v0.9.8
type ModifyInstancePasswordArgs struct {
AdminPass string `json:"adminPass"`
}
type OperationLogModel ¶ added in v0.9.8
type PaymentTimingType ¶ added in v0.9.8
type PaymentTimingType string
const ( PaymentTimingPrePaid PaymentTimingType = "Prepaid" PaymentTimingPostPaid PaymentTimingType = "Postpaid" )
type RebuildBatchInstanceArgs ¶ added in v0.9.29
type RebuildInstanceArgs ¶ added in v0.9.8
type RecoveryInstancesArgs ¶ added in v0.9.34
type RecoveryInstancesArgs struct {
InstanceIds []string `json:"instanceIds"`
}
type RecycledInstancesModel ¶ added in v0.9.34
type RecycledInstancesModel struct { ServiceType string `json:"serviceType"` ServiceName string `json:"serviceName"` Name string `json:"name"` Id string `json:"id"` SerialNumber string `json:"serialNumber"` RecycleTime string `json:"recycleTime"` DeleteTime string `json:"deleteTime"` PaymentTiming string `json:"paymentTiming"` ConfigItems []string `json:"configItems"` }
type RepairRecord ¶ added in v0.9.18
type RepairTask ¶ added in v0.9.18
type Reservation ¶ added in v0.9.8
type Rule ¶ added in v0.9.18
type Rule struct { RuleId string `json:"ruleId"` RuleName string `json:"ruleName"` TagCount int `json:"tagCount"` AssociateBbcNum int `json:"associateBbcNum"` ErrorBbcNum int `json:"errorBbcNum"` ErrResult string `json:"errResult"` Limit int `json:"limit"` Status string `json:"status"` AssociateBbcList []string `json:"associateBbcList"` Tags []model.TagModel `json:"tags"` }
func GetRuleDetail ¶ added in v0.9.18
GetRuleDetail - get the repair plat rule detail
PARAMS:
- cli: the client agent which can perform sending request
- ruleId: the specified rule id
RETURNS:
- *Rule: results of listing the repair plat rules
- error: nil if success otherwise the specific error
type SharedUser ¶ added in v0.9.22
type SharedUser struct {}
type SimpleFlavorModel ¶ added in v0.9.18
type SimpleFlavorModel struct { GpuCard string `json:"gpuCard"` DiskDescription string `json:"diskDescription"` InstanceId string `json:"instanceId"` MemDescription string `json:"memDescription"` NicDescription string `json:"nicDescription"` RamType string `json:"ramType"` RamRate string `json:"ramRate"` CpuDescription string `json:"cpuDescription"` RaidDescription string `json:"raidDescription"` }
type SimpleFlavorResult ¶ added in v0.9.18
type SimpleFlavorResult struct {
SimpleFlavorModel []SimpleFlavorModel `json:"flavorInfo"`
}
func GetSimpleFlavor ¶ added in v0.9.18
func GetSimpleFlavor(cli bce.Client, args *GetSimpleFlavorArgs) (*SimpleFlavorResult, error)
type SingleEniAndSubentIp ¶ added in v0.9.68
type SingleEniAndSubentIp struct { EniId string `json:"eniId"` SubnetId string `json:"subnetId"` SecondaryPrivateIpAddressCount int `json:"secondaryPrivateIpAddressCount"` IpAndSubnets []IpAndSubnet `json:"ipAndSubnets"` }
type StopInstanceArgs ¶ added in v0.9.8
type StopInstanceArgs struct {
ForceStop bool `json:"forceStop,omitempty"`
}
type StorageType ¶ added in v0.9.30
type StorageType string
const ( StorageTypeStd1 StorageType = "std1" StorageTypeHP1 StorageType = "hp1" StorageTypeCloudHP1 StorageType = "cloud_hp1" StorageTypeLocal StorageType = "local" StorageTypeSATA StorageType = "sata" StorageTypeSSD StorageType = "ssd" StorageTypeHDDThroughput StorageType = "HDD_Throughput" StorageTypeHdd StorageType = "hdd" )
type SubnetModel ¶ added in v0.9.8
type TaskIdArgs ¶ added in v0.9.18
type TaskIdArgs struct {
TaskId string `json:"taskId"`
}
type UnBindSecurityGroupsArgs ¶ added in v0.9.18
type UnbindTagsArgs ¶ added in v0.9.8
type VolumeAttachmentModel ¶ added in v0.9.30
type VolumeModel ¶ added in v0.9.30
type VolumeModel struct { Type VolumeType `json:"type"` StorageType StorageType `json:"storageType"` Id string `json:"id"` Name string `json:"name"` DiskSizeInGB int `json:"diskSizeInGB"` PaymentTiming string `json:"paymentTiming"` ExpireTime string `json:"expireTime"` Status VolumeStatus `json:"status"` Desc string `json:"desc"` Attachments []VolumeAttachmentModel `json:"attachments"` ZoneName string `json:"zoneName"` AutoSnapshotPolicy *AutoSnapshotPolicyModel `json:"autoSnapshotPolicy"` CreateTime string `json:"createTime"` IsSystemVolume bool `json:"isSystemVolume"` RegionId string `json:"regionId"` SourceSnapshotId string `json:"sourceSnapshotId"` SnapshotNum string `json:"snapshotNum"` Tags []model.TagModel `json:"tags"` Encrypted bool `json:"encrypted"` }
type VolumeStatus ¶ added in v0.9.30
type VolumeStatus string
const ( VolumeStatusAVAILABLE VolumeStatus = "Available" VolumeStatusINUSE VolumeStatus = "InUse" VolumeStatusSNAPSHOTPROCESSING VolumeStatus = "SnapshotProcessing" VolumeStatusRECHARGING VolumeStatus = "Recharging" VolumeStatusDETACHING VolumeStatus = "Detaching" VolumeStatusDELETING VolumeStatus = "Deleting" VolumeStatusEXPIRED VolumeStatus = "Expired" VolumeStatusNOTAVAILABLE VolumeStatus = "NotAvailable" VolumeStatusDELETED VolumeStatus = "Deleted" VolumeStatusSCALING VolumeStatus = "Scaling" VolumeStatusIMAGEPROCESSING VolumeStatus = "ImageProcessing" VolumeStatusCREATING VolumeStatus = "Creating" VolumeStatusATTACHING VolumeStatus = "Attaching" VolumeStatusERROR VolumeStatus = "Error" )
type VolumeType ¶ added in v0.9.30
type VolumeType string
const ( VolumeTypeSYSTEM VolumeType = "System" VolumeTypeEPHEMERAL VolumeType = "Ephemeral" VolumeTypeCDS VolumeType = "Cds" )