Documentation
¶
Overview ¶
Package ucompshare include resources of ucloud ucompshare product
See also
- API: https://docs.ucloud.cn/api/ucompshare-api/index
- Product: https://www.ucloud.cn/site/product/ucompshare.html
for detail.
Index ¶
- type Bundle
- type CompShareInstanceSet
- type CreateCompShareInstanceParamDisks
- type CreateCompShareInstanceRequest
- type CreateCompShareInstanceResponse
- type CreateULHostInstanceRequest
- type CreateULHostInstanceResponse
- type DescribeCompShareInstanceRequest
- type DescribeCompShareInstanceResponse
- type DescribeULHostBundlesRequest
- type DescribeULHostBundlesResponse
- type DescribeULHostInstanceRequest
- type DescribeULHostInstanceResponse
- type ExclusiveUTPInfo
- type GetULHostInstancePriceRequest
- type GetULHostInstancePriceResponse
- type GetULHostRenewPriceRequest
- type GetULHostRenewPriceResponse
- type GraphicsMemory
- type ModifyULHostAttributeRequest
- type ModifyULHostAttributeResponse
- type PoweroffULHostInstanceRequest
- type PoweroffULHostInstanceResponse
- type RebootCompShareInstanceRequest
- type RebootCompShareInstanceResponse
- type RebootULHostInstanceRequest
- type RebootULHostInstanceResponse
- type ReinstallCompShareInstanceRequest
- type ReinstallCompShareInstanceResponse
- type ReinstallULHostInstanceRequest
- type ReinstallULHostInstanceResponse
- type ResetCompShareInstancePasswordRequest
- type ResetCompShareInstancePasswordResponse
- type ResetULHostInstancePasswordRequest
- type ResetULHostInstancePasswordResponse
- type SoftwareAddr
- type StartCompShareInstanceRequest
- type StartCompShareInstanceResponse
- type StartULHostInstanceRequest
- type StartULHostInstanceResponse
- type StopCompShareInstanceRequest
- type StopCompShareInstanceResponse
- type StopULHostInstanceRequest
- type StopULHostInstanceResponse
- type TerminateCompShareInstanceRequest
- type TerminateCompShareInstanceResponse
- type TerminateULHostInstanceRequest
- type TerminateULHostInstanceResponse
- type UCompShareClient
- func (c *UCompShareClient) CreateCompShareInstance(req *CreateCompShareInstanceRequest) (*CreateCompShareInstanceResponse, error)
- func (c *UCompShareClient) CreateULHostInstance(req *CreateULHostInstanceRequest) (*CreateULHostInstanceResponse, error)
- func (c *UCompShareClient) DescribeCompShareInstance(req *DescribeCompShareInstanceRequest) (*DescribeCompShareInstanceResponse, error)
- func (c *UCompShareClient) DescribeULHostBundles(req *DescribeULHostBundlesRequest) (*DescribeULHostBundlesResponse, error)
- func (c *UCompShareClient) DescribeULHostInstance(req *DescribeULHostInstanceRequest) (*DescribeULHostInstanceResponse, error)
- func (c *UCompShareClient) GetULHostInstancePrice(req *GetULHostInstancePriceRequest) (*GetULHostInstancePriceResponse, error)
- func (c *UCompShareClient) GetULHostRenewPrice(req *GetULHostRenewPriceRequest) (*GetULHostRenewPriceResponse, error)
- func (c *UCompShareClient) ModifyULHostAttribute(req *ModifyULHostAttributeRequest) (*ModifyULHostAttributeResponse, error)
- func (c *UCompShareClient) NewCreateCompShareInstanceRequest() *CreateCompShareInstanceRequest
- func (c *UCompShareClient) NewCreateULHostInstanceRequest() *CreateULHostInstanceRequest
- func (c *UCompShareClient) NewDescribeCompShareInstanceRequest() *DescribeCompShareInstanceRequest
- func (c *UCompShareClient) NewDescribeULHostBundlesRequest() *DescribeULHostBundlesRequest
- func (c *UCompShareClient) NewDescribeULHostInstanceRequest() *DescribeULHostInstanceRequest
- func (c *UCompShareClient) NewGetULHostInstancePriceRequest() *GetULHostInstancePriceRequest
- func (c *UCompShareClient) NewGetULHostRenewPriceRequest() *GetULHostRenewPriceRequest
- func (c *UCompShareClient) NewModifyULHostAttributeRequest() *ModifyULHostAttributeRequest
- func (c *UCompShareClient) NewPoweroffULHostInstanceRequest() *PoweroffULHostInstanceRequest
- func (c *UCompShareClient) NewRebootCompShareInstanceRequest() *RebootCompShareInstanceRequest
- func (c *UCompShareClient) NewRebootULHostInstanceRequest() *RebootULHostInstanceRequest
- func (c *UCompShareClient) NewReinstallCompShareInstanceRequest() *ReinstallCompShareInstanceRequest
- func (c *UCompShareClient) NewReinstallULHostInstanceRequest() *ReinstallULHostInstanceRequest
- func (c *UCompShareClient) NewResetCompShareInstancePasswordRequest() *ResetCompShareInstancePasswordRequest
- func (c *UCompShareClient) NewResetULHostInstancePasswordRequest() *ResetULHostInstancePasswordRequest
- func (c *UCompShareClient) NewStartCompShareInstanceRequest() *StartCompShareInstanceRequest
- func (c *UCompShareClient) NewStartULHostInstanceRequest() *StartULHostInstanceRequest
- func (c *UCompShareClient) NewStopCompShareInstanceRequest() *StopCompShareInstanceRequest
- func (c *UCompShareClient) NewStopULHostInstanceRequest() *StopULHostInstanceRequest
- func (c *UCompShareClient) NewTerminateCompShareInstanceRequest() *TerminateCompShareInstanceRequest
- func (c *UCompShareClient) NewTerminateULHostInstanceRequest() *TerminateULHostInstanceRequest
- func (c *UCompShareClient) PoweroffULHostInstance(req *PoweroffULHostInstanceRequest) (*PoweroffULHostInstanceResponse, error)
- func (c *UCompShareClient) RebootCompShareInstance(req *RebootCompShareInstanceRequest) (*RebootCompShareInstanceResponse, error)
- func (c *UCompShareClient) RebootULHostInstance(req *RebootULHostInstanceRequest) (*RebootULHostInstanceResponse, error)
- func (c *UCompShareClient) ReinstallCompShareInstance(req *ReinstallCompShareInstanceRequest) (*ReinstallCompShareInstanceResponse, error)
- func (c *UCompShareClient) ReinstallULHostInstance(req *ReinstallULHostInstanceRequest) (*ReinstallULHostInstanceResponse, error)
- func (c *UCompShareClient) ResetCompShareInstancePassword(req *ResetCompShareInstancePasswordRequest) (*ResetCompShareInstancePasswordResponse, error)
- func (c *UCompShareClient) ResetULHostInstancePassword(req *ResetULHostInstancePasswordRequest) (*ResetULHostInstancePasswordResponse, error)
- func (c *UCompShareClient) StartCompShareInstance(req *StartCompShareInstanceRequest) (*StartCompShareInstanceResponse, error)
- func (c *UCompShareClient) StartULHostInstance(req *StartULHostInstanceRequest) (*StartULHostInstanceResponse, error)
- func (c *UCompShareClient) StopCompShareInstance(req *StopCompShareInstanceRequest) (*StopCompShareInstanceResponse, error)
- func (c *UCompShareClient) StopULHostInstance(req *StopULHostInstanceRequest) (*StopULHostInstanceResponse, error)
- func (c *UCompShareClient) TerminateCompShareInstance(req *TerminateCompShareInstanceRequest) (*TerminateCompShareInstanceResponse, error)
- func (c *UCompShareClient) TerminateULHostInstance(req *TerminateULHostInstanceRequest) (*TerminateULHostInstanceResponse, error)
- type UHostDiskSet
- type UHostIPSet
- type ULHostDiskSet
- type ULHostInstanceSet
- type ULHostPriceSet
- type WithoutGpuSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// 外网带宽。单位:Mbps。
Bandwidth int
// 套餐ID。
BundleId string
// CPU核数。
CPU int
// 内存大小。单位:MB。
Memory int
// 系统盘大小。单位:GB。
SysDiskSpace int
// 流量包大小。单位:GB。
TrafficPacket int
}
Bundle - 轻量应用云主机套餐
type CompShareInstanceSet ¶ added in v0.22.42
type CompShareInstanceSet struct {
AutoRenew string
CPU int
ChargeType string
CompShareImageBillId string
CompShareImageId string
CompShareImageName string
CompShareImageOwnerAlias string
CompShareImagePrice float64
CompShareImageStatus string
CompShareImageType string
CpuArch string
CpuPlatform string
CreateTime int
DiskSet []UHostDiskSet
ExpireTime int
GPU int
GpuType string
GraphicsMemory GraphicsMemory
IPSet []UHostIPSet
InstancePrice float64
InstanceType string
IsExpire string
MachineType string
Memory int
Name string
OsName string
OsType string
Password string
Remark string
Softwares []SoftwareAddr
SshLoginCommand string
State string
SupportWithoutGpuStart bool
Tag string
TotalDiskSpace int
UHostId string
WithoutGpuSpec WithoutGpuSpec
Zone string
}
CompShareInstanceSet - 算力平台实例详情
type CreateCompShareInstanceParamDisks ¶ added in v0.22.42
type CreateCompShareInstanceParamDisks struct {
IsBoot *bool `required:"true"`
Size *int `required:"true"`
Type *string `required:"true"`
}
CreateCompShareInstanceParamDisks is request schema for complex param
type CreateCompShareInstanceRequest ¶ added in v0.22.42
type CreateCompShareInstanceRequest struct {
CPU *int `required:"true"`
ChargeType *string `required:"false"`
CompShareImageId *string `required:"true"`
Disks []CreateCompShareInstanceParamDisks `required:"false"`
GPU *int `required:"true"`
GpuType *string `required:"true"`
LoginMode *string `required:"false"`
MachineType *string `required:"true"`
Memory *int `required:"true"`
MinimalCpuPlatform *string `required:"false"`
Name *string `required:"false"`
Password *string `required:"false"`
Quantity *int `required:"false"`
SecurityGroupId *string `required:"false"`
}
CreateCompShareInstanceRequest is request schema for CreateCompShareInstance action
type CreateCompShareInstanceResponse ¶ added in v0.22.42
type CreateCompShareInstanceResponse struct {
UHostIds []string
}
CreateCompShareInstanceResponse is response schema for CreateCompShareInstance action
type CreateULHostInstanceRequest ¶
type CreateULHostInstanceRequest struct {
request.CommonBase
// 套餐ID。如:"ulh.c1m1s40b30t800"
BundleId *string `required:"true"`
// 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;默认:Month
ChargeType *string `required:"false"`
// 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看
CouponId *string `required:"false"`
// 镜像ID。 请通过 [DescribeImage](describe_image.html)获取
ImageId *string `required:"true"`
// 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。
Name *string `required:"false"`
// ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64
Password *string `required:"true"`
// 购买时长。默认:1。不支持购买到月末
Quantity *int `required:"false"`
// 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。
SecurityGroupId *string `required:"false"`
// 子网 ID。默认为当前地域的默认子网。
SubnetId *string `required:"false"`
// VPC ID。默认为当前地域的默认VPC。
VPCId *string `required:"false"`
}
CreateULHostInstanceRequest is request schema for CreateULHostInstance action
type CreateULHostInstanceResponse ¶
type CreateULHostInstanceResponse struct {
response.CommonBase
// 错误信息
Message string
// 实例ID
ULHostId string
}
CreateULHostInstanceResponse is response schema for CreateULHostInstance action
type DescribeCompShareInstanceRequest ¶ added in v0.22.42
type DescribeCompShareInstanceRequest struct {
Limit *int `required:"false"`
Offset *int `required:"false"`
UHostIds []string `required:"false"`
WithoutGpu *bool `required:"false"`
}
DescribeCompShareInstanceRequest is request schema for DescribeCompShareInstance action
type DescribeCompShareInstanceResponse ¶ added in v0.22.42
type DescribeCompShareInstanceResponse struct {
TotalCount int
UHostSet []CompShareInstanceSet
}
DescribeCompShareInstanceResponse is response schema for DescribeCompShareInstance action
type DescribeULHostBundlesRequest ¶
type DescribeULHostBundlesRequest struct {
request.CommonBase
}
DescribeULHostBundlesRequest is request schema for DescribeULHostBundles action
type DescribeULHostBundlesResponse ¶
type DescribeULHostBundlesResponse struct {
response.CommonBase
// 套餐列表
Bundles []Bundle
// 错误信息
Message string
}
DescribeULHostBundlesResponse is response schema for DescribeULHostBundles action
type DescribeULHostInstanceRequest ¶
type DescribeULHostInstanceRequest struct {
request.CommonBase
// 返回数据长度,默认为20,最大100
Limit *int `required:"false"`
// 列表起始位置偏移量,默认为0
Offset *int `required:"false"`
// 【数组】轻量应用云主机ID。
ULHostIds []string `required:"false"`
}
DescribeULHostInstanceRequest is request schema for DescribeULHostInstance action
type DescribeULHostInstanceResponse ¶
type DescribeULHostInstanceResponse struct {
response.CommonBase
// 错误信息
Message string
// 实例列表
ULHostInstanceSets []ULHostInstanceSet
}
DescribeULHostInstanceResponse is response schema for DescribeULHostInstance action
type ExclusiveUTPInfo ¶ added in v0.22.42
type ExclusiveUTPInfo struct {
// 当前周期剩余流量
AvailableSize int
// 创建时间
CreateTime int
// 当前周期超出限额的流量
ExcessSize int
// 上次重置时间
LastResetTime int
// 下次重置时间
NextResetTime int
// 当前周期总流量
TotalSize int
// 当前周期已使用流量
UsedSize int
}
ExclusiveUTPInfo - 流量包详情
type GetULHostInstancePriceRequest ¶
type GetULHostInstancePriceRequest struct {
request.CommonBase
// 套餐ID
BundleId *string `required:"true"`
// 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格
ChargeType *string `required:"false"`
// 购买台数,范围[1,5]。默认:1
Count *int `required:"false"`
// 购买时长。默认: 1。不支持购买到月末
Quantity *int `required:"false"`
}
GetULHostInstancePriceRequest is request schema for GetULHostInstancePrice action
type GetULHostInstancePriceResponse ¶
type GetULHostInstancePriceResponse struct {
response.CommonBase
// 错误信息
Message string
//
PriceSet []ULHostPriceSet
}
GetULHostInstancePriceResponse is response schema for GetULHostInstancePrice action
type GetULHostRenewPriceRequest ¶
type GetULHostRenewPriceRequest struct {
request.CommonBase
// 计费类型。支持:Year/Month;默认:Month
ChargeType *string `required:"false"`
// ULHost实例ID
ULHostId *string `required:"true"`
}
GetULHostRenewPriceRequest is request schema for GetULHostRenewPrice action
type GetULHostRenewPriceResponse ¶
type GetULHostRenewPriceResponse struct {
response.CommonBase
//
PriceSet []ULHostPriceSet
}
GetULHostRenewPriceResponse is response schema for GetULHostRenewPrice action
type GraphicsMemory ¶ added in v0.22.42
GraphicsMemory - GPU的显存指标
type ModifyULHostAttributeRequest ¶
type ModifyULHostAttributeRequest struct {
request.CommonBase
// 名称。和Remark至少选择一个进行修改
Name *string `required:"false"`
// 备注。和Name至少选择一个进行修改
Remark *string `required:"false"`
// ULHost实例Id
ULHostId *string `required:"true"`
}
ModifyULHostAttributeRequest is request schema for ModifyULHostAttribute action
type ModifyULHostAttributeResponse ¶
type ModifyULHostAttributeResponse struct {
response.CommonBase
// 错误信息
Message string
// ULHost实例Id
ULHostId string
}
ModifyULHostAttributeResponse is response schema for ModifyULHostAttribute action
type PoweroffULHostInstanceRequest ¶
type PoweroffULHostInstanceRequest struct {
request.CommonBase
// ULHost实例ID
ULHostId *string `required:"true"`
}
PoweroffULHostInstanceRequest is request schema for PoweroffULHostInstance action
type PoweroffULHostInstanceResponse ¶
type PoweroffULHostInstanceResponse struct {
response.CommonBase
// ULHost实例ID
ULHostId string
}
PoweroffULHostInstanceResponse is response schema for PoweroffULHostInstance action
type RebootCompShareInstanceRequest ¶ added in v0.22.42
type RebootCompShareInstanceRequest struct {
UHostId *string `required:"true"`
}
RebootCompShareInstanceRequest is request schema for RebootCompShareInstance action
type RebootCompShareInstanceResponse ¶ added in v0.22.42
type RebootCompShareInstanceResponse struct {
UHostId string
}
RebootCompShareInstanceResponse is response schema for RebootCompShareInstance action
type RebootULHostInstanceRequest ¶
type RebootULHostInstanceRequest struct {
request.CommonBase
// ULHost实例ID
ULHostId *string `required:"true"`
}
RebootULHostInstanceRequest is request schema for RebootULHostInstance action
type RebootULHostInstanceResponse ¶
type RebootULHostInstanceResponse struct {
response.CommonBase
// ULHost实例ID
ULHostId string
}
RebootULHostInstanceResponse is response schema for RebootULHostInstance action
type ReinstallCompShareInstanceRequest ¶ added in v0.22.42
type ReinstallCompShareInstanceRequest struct {
CompShareImageId *string `required:"true"`
Password *string `required:"false"`
UHostId *string `required:"true"`
}
ReinstallCompShareInstanceRequest is request schema for ReinstallCompShareInstance action
type ReinstallCompShareInstanceResponse ¶ added in v0.22.42
type ReinstallCompShareInstanceResponse struct {
UHostId string
}
ReinstallCompShareInstanceResponse is response schema for ReinstallCompShareInstance action
type ReinstallULHostInstanceRequest ¶
type ReinstallULHostInstanceRequest struct {
request.CommonBase
// 镜像Id。暂不支持使用自定义镜像重装
ImageId *string `required:"true"`
// 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx
Password *string `required:"true"`
// 实例Id
ULHostId *string `required:"true"`
}
ReinstallULHostInstanceRequest is request schema for ReinstallULHostInstance action
type ReinstallULHostInstanceResponse ¶
type ReinstallULHostInstanceResponse struct {
response.CommonBase
// 错误信息
Message string
// 实例Id
ULHostId string
}
ReinstallULHostInstanceResponse is response schema for ReinstallULHostInstance action
type ResetCompShareInstancePasswordRequest ¶ added in v0.22.42
type ResetCompShareInstancePasswordRequest struct {
Password *string `required:"true"`
UHostId *string `required:"true"`
}
ResetCompShareInstancePasswordRequest is request schema for ResetCompShareInstancePassword action
type ResetCompShareInstancePasswordResponse ¶ added in v0.22.42
type ResetCompShareInstancePasswordResponse struct {
UHostId string
}
ResetCompShareInstancePasswordResponse is response schema for ResetCompShareInstancePassword action
type ResetULHostInstancePasswordRequest ¶
type ResetULHostInstancePasswordRequest struct {
request.CommonBase
// ULHost新密码(密码格式使用BASE64编码)
Password *string `required:"true"`
// ULHost实例ID
ULHostId *string `required:"true"`
}
ResetULHostInstancePasswordRequest is request schema for ResetULHostInstancePassword action
type ResetULHostInstancePasswordResponse ¶
type ResetULHostInstancePasswordResponse struct {
response.CommonBase
// ULHost实例ID
ULHostId string
}
ResetULHostInstancePasswordResponse is response schema for ResetULHostInstancePassword action
type SoftwareAddr ¶ added in v0.22.42
SoftwareAddr -
type StartCompShareInstanceRequest ¶ added in v0.22.42
type StartCompShareInstanceRequest struct {
UHostId *string `required:"true"`
}
StartCompShareInstanceRequest is request schema for StartCompShareInstance action
type StartCompShareInstanceResponse ¶ added in v0.22.42
type StartCompShareInstanceResponse struct {
UHostId string
}
StartCompShareInstanceResponse is response schema for StartCompShareInstance action
type StartULHostInstanceRequest ¶
type StartULHostInstanceRequest struct {
request.CommonBase
// ULHost实例ID
ULHostId *string `required:"true"`
}
StartULHostInstanceRequest is request schema for StartULHostInstance action
type StartULHostInstanceResponse ¶
type StartULHostInstanceResponse struct {
response.CommonBase
// ULHost实例ID
ULHostId string
}
StartULHostInstanceResponse is response schema for StartULHostInstance action
type StopCompShareInstanceRequest ¶ added in v0.22.42
type StopCompShareInstanceRequest struct {
UHostId *string `required:"true"`
}
StopCompShareInstanceRequest is request schema for StopCompShareInstance action
type StopCompShareInstanceResponse ¶ added in v0.22.42
type StopCompShareInstanceResponse struct {
UHostId string
}
StopCompShareInstanceResponse is response schema for StopCompShareInstance action
type StopULHostInstanceRequest ¶
type StopULHostInstanceRequest struct {
request.CommonBase
// ULHost实例ID。
ULHostId *string `required:"true"`
}
StopULHostInstanceRequest is request schema for StopULHostInstance action
type StopULHostInstanceResponse ¶
type StopULHostInstanceResponse struct {
response.CommonBase
// ULHost实例ID
ULHostId string
}
StopULHostInstanceResponse is response schema for StopULHostInstance action
type TerminateCompShareInstanceRequest ¶ added in v0.22.42
type TerminateCompShareInstanceRequest struct {
UHostId *string `required:"true"`
}
TerminateCompShareInstanceRequest is request schema for TerminateCompShareInstance action
type TerminateCompShareInstanceResponse ¶ added in v0.22.42
type TerminateCompShareInstanceResponse struct {
UHostId string
}
TerminateCompShareInstanceResponse is response schema for TerminateCompShareInstance action
type TerminateULHostInstanceRequest ¶
type TerminateULHostInstanceRequest struct {
request.CommonBase
// 删除主机时是否同时删除挂载的数据盘。默认为false。
ReleaseUDisk *bool `required:"false"`
// ULHost资源Id
ULHostId *string `required:"true"`
}
TerminateULHostInstanceRequest is request schema for TerminateULHostInstance action
type TerminateULHostInstanceResponse ¶
type TerminateULHostInstanceResponse struct {
response.CommonBase
// 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。
InRecycle string
// ULHost 实例 Id
ULHostId string
}
TerminateULHostInstanceResponse is response schema for TerminateULHostInstance action
type UCompShareClient ¶
type UCompShareClient struct {
}
UCompShareClient is the client of UCompShare
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UCompShareClient
NewClient will return a instance of UCompShareClient
func (*UCompShareClient) CreateCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) CreateCompShareInstance(req *CreateCompShareInstanceRequest) (*CreateCompShareInstanceResponse, error)
API: CreateCompShareInstance
创建轻量级算力平台主机资源
func (*UCompShareClient) CreateULHostInstance ¶
func (c *UCompShareClient) CreateULHostInstance(req *CreateULHostInstanceRequest) (*CreateULHostInstanceResponse, error)
API: CreateULHostInstance
创建轻量应用云主机
func (*UCompShareClient) DescribeCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) DescribeCompShareInstance(req *DescribeCompShareInstanceRequest) (*DescribeCompShareInstanceResponse, error)
API: DescribeCompShareInstance
获取用户所有地域下主机资源信息列表
func (*UCompShareClient) DescribeULHostBundles ¶
func (c *UCompShareClient) DescribeULHostBundles(req *DescribeULHostBundlesRequest) (*DescribeULHostBundlesResponse, error)
API: DescribeULHostBundles
获取轻量应用云主机套餐列表
func (*UCompShareClient) DescribeULHostInstance ¶
func (c *UCompShareClient) DescribeULHostInstance(req *DescribeULHostInstanceRequest) (*DescribeULHostInstanceResponse, error)
API: DescribeULHostInstance
获取轻量应用云主机列表
func (*UCompShareClient) GetULHostInstancePrice ¶
func (c *UCompShareClient) GetULHostInstancePrice(req *GetULHostInstancePriceRequest) (*GetULHostInstancePriceResponse, error)
API: GetULHostInstancePrice
获取轻量应用云主机套餐价格
func (*UCompShareClient) GetULHostRenewPrice ¶
func (c *UCompShareClient) GetULHostRenewPrice(req *GetULHostRenewPriceRequest) (*GetULHostRenewPriceResponse, error)
API: GetULHostRenewPrice
获取主机续费价格
func (*UCompShareClient) ModifyULHostAttribute ¶
func (c *UCompShareClient) ModifyULHostAttribute(req *ModifyULHostAttributeRequest) (*ModifyULHostAttributeResponse, error)
API: ModifyULHostAttribute
修改指定ULHost实例属性信息,包含名称和备注
func (*UCompShareClient) NewCreateCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewCreateCompShareInstanceRequest() *CreateCompShareInstanceRequest
NewCreateCompShareInstanceRequest will create request of CreateCompShareInstance action.
func (*UCompShareClient) NewCreateULHostInstanceRequest ¶
func (c *UCompShareClient) NewCreateULHostInstanceRequest() *CreateULHostInstanceRequest
NewCreateULHostInstanceRequest will create request of CreateULHostInstance action.
func (*UCompShareClient) NewDescribeCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewDescribeCompShareInstanceRequest() *DescribeCompShareInstanceRequest
NewDescribeCompShareInstanceRequest will create request of DescribeCompShareInstance action.
func (*UCompShareClient) NewDescribeULHostBundlesRequest ¶
func (c *UCompShareClient) NewDescribeULHostBundlesRequest() *DescribeULHostBundlesRequest
NewDescribeULHostBundlesRequest will create request of DescribeULHostBundles action.
func (*UCompShareClient) NewDescribeULHostInstanceRequest ¶
func (c *UCompShareClient) NewDescribeULHostInstanceRequest() *DescribeULHostInstanceRequest
NewDescribeULHostInstanceRequest will create request of DescribeULHostInstance action.
func (*UCompShareClient) NewGetULHostInstancePriceRequest ¶
func (c *UCompShareClient) NewGetULHostInstancePriceRequest() *GetULHostInstancePriceRequest
NewGetULHostInstancePriceRequest will create request of GetULHostInstancePrice action.
func (*UCompShareClient) NewGetULHostRenewPriceRequest ¶
func (c *UCompShareClient) NewGetULHostRenewPriceRequest() *GetULHostRenewPriceRequest
NewGetULHostRenewPriceRequest will create request of GetULHostRenewPrice action.
func (*UCompShareClient) NewModifyULHostAttributeRequest ¶
func (c *UCompShareClient) NewModifyULHostAttributeRequest() *ModifyULHostAttributeRequest
NewModifyULHostAttributeRequest will create request of ModifyULHostAttribute action.
func (*UCompShareClient) NewPoweroffULHostInstanceRequest ¶
func (c *UCompShareClient) NewPoweroffULHostInstanceRequest() *PoweroffULHostInstanceRequest
NewPoweroffULHostInstanceRequest will create request of PoweroffULHostInstance action.
func (*UCompShareClient) NewRebootCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewRebootCompShareInstanceRequest() *RebootCompShareInstanceRequest
NewRebootCompShareInstanceRequest will create request of RebootCompShareInstance action.
func (*UCompShareClient) NewRebootULHostInstanceRequest ¶
func (c *UCompShareClient) NewRebootULHostInstanceRequest() *RebootULHostInstanceRequest
NewRebootULHostInstanceRequest will create request of RebootULHostInstance action.
func (*UCompShareClient) NewReinstallCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewReinstallCompShareInstanceRequest() *ReinstallCompShareInstanceRequest
NewReinstallCompShareInstanceRequest will create request of ReinstallCompShareInstance action.
func (*UCompShareClient) NewReinstallULHostInstanceRequest ¶
func (c *UCompShareClient) NewReinstallULHostInstanceRequest() *ReinstallULHostInstanceRequest
NewReinstallULHostInstanceRequest will create request of ReinstallULHostInstance action.
func (*UCompShareClient) NewResetCompShareInstancePasswordRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewResetCompShareInstancePasswordRequest() *ResetCompShareInstancePasswordRequest
NewResetCompShareInstancePasswordRequest will create request of ResetCompShareInstancePassword action.
func (*UCompShareClient) NewResetULHostInstancePasswordRequest ¶
func (c *UCompShareClient) NewResetULHostInstancePasswordRequest() *ResetULHostInstancePasswordRequest
NewResetULHostInstancePasswordRequest will create request of ResetULHostInstancePassword action.
func (*UCompShareClient) NewStartCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewStartCompShareInstanceRequest() *StartCompShareInstanceRequest
NewStartCompShareInstanceRequest will create request of StartCompShareInstance action.
func (*UCompShareClient) NewStartULHostInstanceRequest ¶
func (c *UCompShareClient) NewStartULHostInstanceRequest() *StartULHostInstanceRequest
NewStartULHostInstanceRequest will create request of StartULHostInstance action.
func (*UCompShareClient) NewStopCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewStopCompShareInstanceRequest() *StopCompShareInstanceRequest
NewStopCompShareInstanceRequest will create request of StopCompShareInstance action.
func (*UCompShareClient) NewStopULHostInstanceRequest ¶
func (c *UCompShareClient) NewStopULHostInstanceRequest() *StopULHostInstanceRequest
NewStopULHostInstanceRequest will create request of StopULHostInstance action.
func (*UCompShareClient) NewTerminateCompShareInstanceRequest ¶ added in v0.22.42
func (c *UCompShareClient) NewTerminateCompShareInstanceRequest() *TerminateCompShareInstanceRequest
NewTerminateCompShareInstanceRequest will create request of TerminateCompShareInstance action.
func (*UCompShareClient) NewTerminateULHostInstanceRequest ¶
func (c *UCompShareClient) NewTerminateULHostInstanceRequest() *TerminateULHostInstanceRequest
NewTerminateULHostInstanceRequest will create request of TerminateULHostInstance action.
func (*UCompShareClient) PoweroffULHostInstance ¶
func (c *UCompShareClient) PoweroffULHostInstance(req *PoweroffULHostInstanceRequest) (*PoweroffULHostInstanceResponse, error)
API: PoweroffULHostInstance
直接关闭UHost实例电源,无需等待实例正常关闭。
func (*UCompShareClient) RebootCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) RebootCompShareInstance(req *RebootCompShareInstanceRequest) (*RebootCompShareInstanceResponse, error)
API: RebootCompShareInstance
重启轻量算力平台实例
func (*UCompShareClient) RebootULHostInstance ¶
func (c *UCompShareClient) RebootULHostInstance(req *RebootULHostInstanceRequest) (*RebootULHostInstanceResponse, error)
API: RebootULHostInstance
重新启动UHost实例。
func (*UCompShareClient) ReinstallCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) ReinstallCompShareInstance(req *ReinstallCompShareInstanceRequest) (*ReinstallCompShareInstanceResponse, error)
API: ReinstallCompShareInstance
重装算力平台实例
func (*UCompShareClient) ReinstallULHostInstance ¶
func (c *UCompShareClient) ReinstallULHostInstance(req *ReinstallULHostInstanceRequest) (*ReinstallULHostInstanceResponse, error)
API: ReinstallULHostInstance
重装轻量应用云主机
func (*UCompShareClient) ResetCompShareInstancePassword ¶ added in v0.22.42
func (c *UCompShareClient) ResetCompShareInstancePassword(req *ResetCompShareInstancePasswordRequest) (*ResetCompShareInstancePasswordResponse, error)
API: ResetCompShareInstancePassword
重置算力平台实例密码
func (*UCompShareClient) ResetULHostInstancePassword ¶
func (c *UCompShareClient) ResetULHostInstancePassword(req *ResetULHostInstancePasswordRequest) (*ResetULHostInstancePasswordResponse, error)
API: ResetULHostInstancePassword
重置轻量应用云主机管理员密码。
func (*UCompShareClient) StartCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) StartCompShareInstance(req *StartCompShareInstanceRequest) (*StartCompShareInstanceResponse, error)
API: StartCompShareInstance
启动算力平台实例
func (*UCompShareClient) StartULHostInstance ¶
func (c *UCompShareClient) StartULHostInstance(req *StartULHostInstanceRequest) (*StartULHostInstanceResponse, error)
API: StartULHostInstance
启动处于关闭状态的UHost实例。
func (*UCompShareClient) StopCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) StopCompShareInstance(req *StopCompShareInstanceRequest) (*StopCompShareInstanceResponse, error)
API: StopCompShareInstance
关闭算力平台实例
func (*UCompShareClient) StopULHostInstance ¶
func (c *UCompShareClient) StopULHostInstance(req *StopULHostInstanceRequest) (*StopULHostInstanceResponse, error)
API: StopULHostInstance
指停止处于运行状态的ULHost实例
func (*UCompShareClient) TerminateCompShareInstance ¶ added in v0.22.42
func (c *UCompShareClient) TerminateCompShareInstance(req *TerminateCompShareInstanceRequest) (*TerminateCompShareInstanceResponse, error)
API: TerminateCompShareInstance
删除轻量算力共享平台虚机实例
func (*UCompShareClient) TerminateULHostInstance ¶
func (c *UCompShareClient) TerminateULHostInstance(req *TerminateULHostInstanceRequest) (*TerminateULHostInstanceResponse, error)
API: TerminateULHostInstance
删除指定数据中心的ULHost实例。
type UHostDiskSet ¶ added in v0.22.42
type UHostDiskSet struct {
// 磁盘ID
DiskId string
// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
DiskType string
// 磁盘盘符
Drive string
// "true": 加密盘 "false":非加密盘
Encrypted string
// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
IsBoot string
// UDisk名字(仅当磁盘是UDisk时返回)
Name string
// 磁盘大小,单位: GB
Size int
// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
Type string
}
UHostDiskSet -
type UHostIPSet ¶
type UHostIPSet struct {
// IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
Bandwidth int
// 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
Default string
// IP地址
IP string
// 外网IP资源ID 。(内网IP无对应的资源ID)
IPId string
// IPv4/IPv6;
IPMode string
// 内网 Private 类型下,当前网卡的Mac。
Mac string
// 弹性网卡为默认网卡时,返回对应的 ID 值
NetworkInterfaceId string
// IP地址对应的子网 ID。(北京一不支持,字段返回为空)
SubnetId string
// 国际: Internation,BGP: Bgp,内网: Private
Type string
// IP地址对应的VPC ID。(北京一不支持,字段返回为空)
VPCId string
// 当前EIP的权重。权重最大的为当前的出口IP。
Weight int
}
UHostIPSet -
type ULHostDiskSet ¶
type ULHostDiskSet struct {
// 磁盘Id
DiskId string
// 磁盘类型。如:"CLOUD_RSSD"、"CLOUD_SSD"
DiskType string
// 磁盘盘符。系统盘:"vda"
Drive string
// 是否为系统盘。是:"True";否:"False"
IsBoot string
// 磁盘大小。单位:GB
Size int
// 磁盘类型。系统盘:"Boot";数据盘:"Data"
Type string
}
ULHostDiskSet - 轻量应用主机的磁盘信息
type ULHostInstanceSet ¶
type ULHostInstanceSet struct {
// 【数组】镜像包含的应用列表。
Apps []string
// 是否自动续费。枚举值:Yes/No
AutoRenew string
// CPU核数。
CPU int
// 计费模式。枚举值:Month/Year
ChargeType string
// 创建时间。Unix时间戳
CreateTime int
// 磁盘信息
DiskSet []ULHostDiskSet
// 流量包详情信息
EIPExclusiveUTPInfo ExclusiveUTPInfo
// 过期时间。Unix时间戳
ExpireTime int
// IP信息
IPSet []UHostIPSet
// 镜像Id。
ImageId string
// 镜像名称。
ImageName string
// 是否过期。枚举值:Yes/No
IsExpire string
// 内存。单位:MB
Memory int
// 实例名称。默认套餐Id
Name string
// 备注。
Remark string
// 实例状态。枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):""
State string
// 业务组。
Tag string
// 实例Id。
ULHostId string
// 可用区。
Zone string
}
ULHostInstanceSet - 轻量应用云主机详情
type ULHostPriceSet ¶
type ULHostPriceSet struct {
// 计费模式
ChargeType string
// 原价
OriginalPrice float64
// 价格
Price float64
}
ULHostPriceSet - 轻量应用主机价格详情
type WithoutGpuSpec ¶ added in v0.22.42
WithoutGpuSpec - 无卡云主机规格信息