Documentation
¶
Index ¶
- type DescribePHostMachineTypeRequest
- type DescribePHostMachineTypeResponse
- type DescribePHostResourceInfoRequest
- type DescribePHostResourceInfoResponse
- type GetPHostKVMInfoRequest
- type GetPHostKVMInfoResponse
- type PHostCPUSet
- type PHostClusterSet
- type PHostComponentSet
- type PHostDiskSet
- type PHostMachineTypeSet
- type ResourceInfo
- type StopPHostRequest
- type StopPHostResponse
- type UPHostClient
- func (c *UPHostClient) DescribePHostMachineType(req *DescribePHostMachineTypeRequest) (*DescribePHostMachineTypeResponse, error)
- func (c *UPHostClient) DescribePHostResourceInfo(req *DescribePHostResourceInfoRequest) (*DescribePHostResourceInfoResponse, error)
- func (c *UPHostClient) GetPHostKVMInfo(req *GetPHostKVMInfoRequest) (*GetPHostKVMInfoResponse, error)
- func (c *UPHostClient) NewDescribePHostMachineTypeRequest() *DescribePHostMachineTypeRequest
- func (c *UPHostClient) NewDescribePHostResourceInfoRequest() *DescribePHostResourceInfoRequest
- func (c *UPHostClient) NewGetPHostKVMInfoRequest() *GetPHostKVMInfoRequest
- func (c *UPHostClient) NewStopPHostRequest() *StopPHostRequest
- func (c *UPHostClient) StopPHost(req *StopPHostRequest) (*StopPHostResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescribePHostMachineTypeRequest ¶
type DescribePHostMachineTypeRequest struct {
request.CommonBase
// 具体机型。若不填写,则返回全部机型
Type *string `required:"false"`
}
DescribePHostMachineTypeRequest is request schema for DescribePHostMachineType action
type DescribePHostMachineTypeResponse ¶
type DescribePHostMachineTypeResponse struct {
response.CommonBase
// 机型列表,模型:PHostMachineTypeSet
MachineTypes []PHostMachineTypeSet
}
DescribePHostMachineTypeResponse is response schema for DescribePHostMachineType action
type DescribePHostResourceInfoRequest ¶
type DescribePHostResourceInfoRequest struct {
request.CommonBase
// 可用区。参见 [可用区列表](../summary/regionlist.html)
Zone *string `required:"true"`
}
DescribePHostResourceInfoRequest is request schema for DescribePHostResourceInfo action
type DescribePHostResourceInfoResponse ¶
type DescribePHostResourceInfoResponse struct {
response.CommonBase
// 返回码
RetCode int
// 操作名称
Action string
// 资源信息
ResourceInfo []ResourceInfo
}
DescribePHostResourceInfoResponse is response schema for DescribePHostResourceInfo action
type GetPHostKVMInfoRequest ¶
type GetPHostKVMInfoRequest struct {
request.CommonBase
// 可用区。参见 [可用区列表](../summary/regionlist.html)
Zone *string `required:"false"`
// PHost资源ID
PHostId *string `required:"true"`
}
GetPHostKVMInfoRequest is request schema for GetPHostKVMInfo action
type GetPHostKVMInfoResponse ¶
type GetPHostKVMInfoResponse struct {
response.CommonBase
// 资源id
PHostId string
// kvm配置文件
PHostKVMConf string
// 配置文件类型
PHostConfType string
// 代理ip
ProxyIP string
}
GetPHostKVMInfoResponse is response schema for GetPHostKVMInfo action
type PHostCPUSet ¶
type PHostCPUSet struct {
// CPU型号
Model string
// CPU主频
Frequence float64
// CPU个数
Count int
// CPU核数
CoreCount int
}
PHostCPUSet - DescribePHost
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type PHostClusterSet ¶
type PHostClusterSet struct {
// 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G
Name string
// 库存状态。枚举值:有库存:Available;无库存:SoldOut
StockStatus string
}
PHostClusterSet - 物理云主机集群库存信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type PHostComponentSet ¶
PHostComponentSet - GetPHostTypeInfo
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type PHostDiskSet ¶
type PHostDiskSet struct {
// 单盘大小,单位GB
Space int
// 磁盘数量
Count int
// 磁盘属性
Type string
// 磁盘名称,sys/data
Name string
// 磁盘IO性能,单位MB/s(待废弃)
IOCap int
}
PHostDiskSet - GetPHostTypeInfo
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type PHostMachineTypeSet ¶
type PHostMachineTypeSet struct {
// 机型名
Name string
// 物理云主机机型别名,全网唯一。
Type string
// CPU信息
CPU PHostCPUSet
// 内存大小,单位GB
Memory int
// 磁盘信息
Disks []PHostDiskSet
// 其他组件信息
Components PHostComponentSet
// 集群库存信息
Clusters []PHostClusterSet
// 是否支持Raid。枚举值:支持:YES;不支持:NO
RaidSupported string
}
PHostMachineTypeSet - 物理云主机机型列表
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type ResourceInfo ¶
ResourceInfo - 资源信息剩余信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type StopPHostRequest ¶
type StopPHostRequest struct {
request.CommonBase
// 可用区。参见 [可用区列表](../summary/regionlist.html)
Zone *string `required:"false"`
// PHost资源ID
PHostId *string `required:"true"`
}
StopPHostRequest is request schema for StopPHost action
type StopPHostResponse ¶
type StopPHostResponse struct {
response.CommonBase
// PHost 的资源ID
PHostId string
}
StopPHostResponse is response schema for StopPHost action
type UPHostClient ¶
UPHostClient is the client of UPHost
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UPHostClient
NewClient will return a instance of UPHostClient
func (*UPHostClient) DescribePHostMachineType ¶
func (c *UPHostClient) DescribePHostMachineType(req *DescribePHostMachineTypeRequest) (*DescribePHostMachineTypeResponse, error)
DescribePHostMachineType - 获取物理云机型的详细描述信息
func (*UPHostClient) DescribePHostResourceInfo ¶
func (c *UPHostClient) DescribePHostResourceInfo(req *DescribePHostResourceInfoRequest) (*DescribePHostResourceInfoResponse, error)
DescribePHostResourceInfo - 获取物理云资源剩余信息
func (*UPHostClient) GetPHostKVMInfo ¶
func (c *UPHostClient) GetPHostKVMInfo(req *GetPHostKVMInfoRequest) (*GetPHostKVMInfoResponse, error)
GetPHostKVMInfo - 控制台紧急登录功能
func (*UPHostClient) NewDescribePHostMachineTypeRequest ¶
func (c *UPHostClient) NewDescribePHostMachineTypeRequest() *DescribePHostMachineTypeRequest
NewDescribePHostMachineTypeRequest will create request of DescribePHostMachineType action.
func (*UPHostClient) NewDescribePHostResourceInfoRequest ¶
func (c *UPHostClient) NewDescribePHostResourceInfoRequest() *DescribePHostResourceInfoRequest
NewDescribePHostResourceInfoRequest will create request of DescribePHostResourceInfo action.
func (*UPHostClient) NewGetPHostKVMInfoRequest ¶
func (c *UPHostClient) NewGetPHostKVMInfoRequest() *GetPHostKVMInfoRequest
NewGetPHostKVMInfoRequest will create request of GetPHostKVMInfo action.
func (*UPHostClient) NewStopPHostRequest ¶
func (c *UPHostClient) NewStopPHostRequest() *StopPHostRequest
NewStopPHostRequest will create request of StopPHost action.
func (*UPHostClient) StopPHost ¶
func (c *UPHostClient) StopPHost(req *StopPHostRequest) (*StopPHostResponse, error)
StopPHost - 关闭物理机