Documentation
¶
Index ¶
- func AttachDisk(diskID, resourceID, resourceType string)
- func BindAlarmTemplate(resourceID, resourceType, alarmTemplateID string)
- func BindEIP(eipID, resourceID, resourceType string)
- func CloneDisk(srcID string)
- func CreateDisk()
- func CreateEIP()
- func CreateSecurityGroup()
- func CreateSecurityGroupRule(sgID string)
- func CreateSubnet(vpcID string)
- func CreateUser(email, password string)
- func CreateVM(name string)
- func CreateVPC()
- func DeleteDisk(diskID string)
- func DeleteSecurityGroup(sgID string)
- func DeleteSecurityGroupRule(sgID, sgRuleID string)
- func DeleteSubnet(subnetID string)
- func DeleteVM(vmID string)
- func DeleteVPC(vpcID string)
- func DescribeDisk(diskID string)
- func DescribeEIP(eipID string)
- func DescribeMetric(resourceID, resourceType, metricName string)
- func DescribeSecurityGroup(sgID string)
- func DescribeSubnet(vpcID string)
- func DescribeUser(userID int)
- func DescribeVM(vmID string)
- func DescribeVPC(vpcID string)
- func DetachDisk(diskID, resourceID string)
- func GetDiskPrice()
- func GetEIPPrice()
- func GetVMInstancePrice()
- func LoadUcloudStackConfig() (*ucloud.Config, *auth.Credential)
- func ModifyEIPBandwidth(eipID string, bandwidth int)
- func ModifyNameAndRemark(resourceID, name, remark string)
- func Recharge(userID int, serialNo string)
- func ReinstallVMInstance(vmID, imageID string)
- func ReleaseEIP(eipID string)
- func ResetVMInstancePassword(vmID, password string)
- func ResizeVMConfig(vmID string, cpu, memory int)
- func RestartVMInstance(vmID string)
- func StartVM(vmID string)
- func StopVM(vmID string)
- func UnBindEIP(eipID, resourceID, resourceType string)
- func UnbindAlarmTemplate(resourceID, resourceType string)
- func UpdateSecurityGroupRule(sgID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAlarmTemplate ¶
func BindAlarmTemplate(resourceID, resourceType, alarmTemplateID string)
BindAlarmTemplate 绑定告警模板
func CreateSecurityGroupRule ¶
func CreateSecurityGroupRule(sgID string)
CreateSecurityGroupRule 创建安全组规则
func DeleteSecurityGroupRule ¶
func DeleteSecurityGroupRule(sgID, sgRuleID string)
DeleteSecurityGroupRule 删除安全组规则
func DescribeMetric ¶
func DescribeMetric(resourceID, resourceType, metricName string)
DescribeMetric 查询监控信息
func LoadUcloudStackConfig ¶
func LoadUcloudStackConfig() (*ucloud.Config, *auth.Credential)
LoadUcloudStackConfig 加载配置
func ModifyEIPBandwidth ¶
ModifyEIPBandwidth 调整外网IP带宽
func ModifyNameAndRemark ¶
func ModifyNameAndRemark(resourceID, name, remark string)
ModifyNameAndRemark 修改资源名称和说明
func ResetVMInstancePassword ¶
func ResetVMInstancePassword(vmID, password string)
ResetVMInstancePassword 重置密码
func UnbindAlarmTemplate ¶
func UnbindAlarmTemplate(resourceID, resourceType string)
UnbindAlarmTemplate 解绑告警模板
func UpdateSecurityGroupRule ¶
func UpdateSecurityGroupRule(sgID string)
UpdateSecurityGroupRule 修改安全组规则
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.