Documentation ¶
Overview ¶
Package ucloudstack include resources of ucloud ucloudstack product
See also
- API: https://docs.ucloud.cn/api/ucloudstack-api/index
- Product: https://www.ucloud.cn/site/product/ucloudstack.html
for detail.
Index ¶
- type AllocateEIPRequest
- type AllocateEIPResponse
- type AttachDiskRequest
- type AttachDiskResponse
- type BindAlarmTemplateRequest
- type BindAlarmTemplateResponse
- type BindEIPRequest
- type BindEIPResponse
- type BindPhysicalIPRequest
- type BindPhysicalIPResponse
- type BindSecurityGroupRequest
- type BindSecurityGroupResponse
- type BindVSInfo
- type CertificateInfo
- type CloneDiskRequest
- type CloneDiskResponse
- type CreateCertificateRequest
- type CreateCertificateResponse
- type CreateCustomImageRequest
- type CreateCustomImageResponse
- type CreateDiskRequest
- type CreateDiskResponse
- type CreateLBRequest
- type CreateLBResponse
- type CreateNATGWRequest
- type CreateNATGWResponse
- type CreateNATGWRuleRequest
- type CreateNATGWRuleResponse
- type CreatePhysicalIPRequest
- type CreatePhysicalIPResponse
- type CreateRSRequest
- type CreateRSResponse
- type CreateSecurityGroupRequest
- type CreateSecurityGroupResponse
- type CreateSecurityGroupRuleRequest
- type CreateSecurityGroupRuleResponse
- type CreateSnapshotRequest
- type CreateSnapshotResponse
- type CreateSubnetRequest
- type CreateSubnetResponse
- type CreateUserRequest
- type CreateUserResponse
- type CreateVMInstanceRequest
- type CreateVMInstanceResponse
- type CreateVPCRequest
- type CreateVPCResponse
- type CreateVSPolicyRequest
- type CreateVSPolicyResponse
- type CreateVSRequest
- type CreateVSResponse
- type DeleteCertificateRequest
- type DeleteCertificateResponse
- type DeleteCustomImageRequest
- type DeleteCustomImageResponse
- type DeleteDiskRequest
- type DeleteDiskResponse
- type DeleteLBRequest
- type DeleteLBResponse
- type DeleteNATGWRequest
- type DeleteNATGWResponse
- type DeleteNATGWRuleRequest
- type DeleteNATGWRuleResponse
- type DeletePhysicalIPRequest
- type DeletePhysicalIPResponse
- type DeleteRSRequest
- type DeleteRSResponse
- type DeleteSecurityGroupRequest
- type DeleteSecurityGroupResponse
- type DeleteSecurityGroupRuleRequest
- type DeleteSecurityGroupRuleResponse
- type DeleteSnapshotRequest
- type DeleteSnapshotResponse
- type DeleteSubnetRequest
- type DeleteSubnetResponse
- type DeleteVMInstanceRequest
- type DeleteVMInstanceResponse
- type DeleteVPCRequest
- type DeleteVPCResponse
- type DeleteVSPolicyRequest
- type DeleteVSPolicyResponse
- type DeleteVSRequest
- type DeleteVSResponse
- type DescribeCertificateRequest
- type DescribeCertificateResponse
- type DescribeDiskRequest
- type DescribeDiskResponse
- type DescribeEIPRequest
- type DescribeEIPResponse
- type DescribeImageRequest
- type DescribeImageResponse
- type DescribeLBRequest
- type DescribeLBResponse
- type DescribeMetricRequest
- type DescribeMetricResponse
- type DescribeNATGWRequest
- type DescribeNATGWResponse
- type DescribeNATGWRuleRequest
- type DescribeNATGWRuleResponse
- type DescribeOPLogsRequest
- type DescribeOPLogsResponse
- type DescribePhysicalIPRequest
- type DescribePhysicalIPResponse
- type DescribeRSRequest
- type DescribeRSResponse
- type DescribeRecycledResourceRequest
- type DescribeRecycledResourceResponse
- type DescribeSecurityGroupRequest
- type DescribeSecurityGroupResponse
- type DescribeStorageTypeRequest
- type DescribeStorageTypeResponse
- type DescribeSubnetRequest
- type DescribeSubnetResponse
- type DescribeUserRequest
- type DescribeUserResponse
- type DescribeVMInstanceRequest
- type DescribeVMInstanceResponse
- type DescribeVMTypeRequest
- type DescribeVMTypeResponse
- type DescribeVPCRequest
- type DescribeVPCResponse
- type DescribeVSPolicyRequest
- type DescribeVSPolicyResponse
- type DescribeVSRequest
- type DescribeVSResponse
- type DetachDiskRequest
- type DetachDiskResponse
- type DisableRSRequest
- type DisableRSResponse
- type DiskInfo
- type EIPInfo
- type EnableRSRequest
- type EnableRSResponse
- type GetDiskPriceRequest
- type GetDiskPriceResponse
- type GetEIPPriceRequest
- type GetEIPPriceResponse
- type GetVMInstancePriceRequest
- type GetVMInstancePriceResponse
- type ImageInfo
- type LBInfo
- type MetricInfo
- type MetricSet
- type ModifyEIPBandwidthRequest
- type ModifyEIPBandwidthResponse
- type ModifyNameAndRemarkRequest
- type ModifyNameAndRemarkResponse
- type NATGWInfo
- type NATGWRuleInfo
- type OPLogInfo
- type PhysicalIPInfo
- type PoweroffVMInstanceRequest
- type PoweroffVMInstanceResponse
- type PriceInfo
- type RSInfo
- type RechargeRequest
- type RechargeResponse
- type RecycledResourceInfo
- type ReinstallVMInstanceRequest
- type ReinstallVMInstanceResponse
- type ReleaseEIPRequest
- type ReleaseEIPResponse
- type RenewResourceRequest
- type RenewResourceResponse
- type ResetVMInstancePasswordRequest
- type ResetVMInstancePasswordResponse
- type ResizeVMConfigRequest
- type ResizeVMConfigResponse
- type RestartVMInstanceRequest
- type RestartVMInstanceResponse
- type RollbackResourceRequest
- type RollbackResourceResponse
- type RollbackSnapshotRequest
- type RollbackSnapshotResponse
- type SGInfo
- type SGRuleInfo
- type StartVMInstanceRequest
- type StartVMInstanceResponse
- type StopVMInstanceRequest
- type StopVMInstanceResponse
- type StorageTypeInfo
- type SubnetInfo
- type TerminateResourceRequest
- type TerminateResourceResponse
- type UCloudStackClient
- func (c *UCloudStackClient) AllocateEIP(req *AllocateEIPRequest) (*AllocateEIPResponse, error)
- func (c *UCloudStackClient) AttachDisk(req *AttachDiskRequest) (*AttachDiskResponse, error)
- func (c *UCloudStackClient) BindAlarmTemplate(req *BindAlarmTemplateRequest) (*BindAlarmTemplateResponse, error)
- func (c *UCloudStackClient) BindEIP(req *BindEIPRequest) (*BindEIPResponse, error)
- func (c *UCloudStackClient) BindPhysicalIP(req *BindPhysicalIPRequest) (*BindPhysicalIPResponse, error)
- func (c *UCloudStackClient) BindSecurityGroup(req *BindSecurityGroupRequest) (*BindSecurityGroupResponse, error)
- func (c *UCloudStackClient) CloneDisk(req *CloneDiskRequest) (*CloneDiskResponse, error)
- func (c *UCloudStackClient) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error)
- func (c *UCloudStackClient) CreateCustomImage(req *CreateCustomImageRequest) (*CreateCustomImageResponse, error)
- func (c *UCloudStackClient) CreateDisk(req *CreateDiskRequest) (*CreateDiskResponse, error)
- func (c *UCloudStackClient) CreateLB(req *CreateLBRequest) (*CreateLBResponse, error)
- func (c *UCloudStackClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
- func (c *UCloudStackClient) CreateNATGWRule(req *CreateNATGWRuleRequest) (*CreateNATGWRuleResponse, error)
- func (c *UCloudStackClient) CreatePhysicalIP(req *CreatePhysicalIPRequest) (*CreatePhysicalIPResponse, error)
- func (c *UCloudStackClient) CreateRS(req *CreateRSRequest) (*CreateRSResponse, error)
- func (c *UCloudStackClient) CreateSecurityGroup(req *CreateSecurityGroupRequest) (*CreateSecurityGroupResponse, error)
- func (c *UCloudStackClient) CreateSecurityGroupRule(req *CreateSecurityGroupRuleRequest) (*CreateSecurityGroupRuleResponse, error)
- func (c *UCloudStackClient) CreateSnapshot(req *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
- func (c *UCloudStackClient) CreateSubnet(req *CreateSubnetRequest) (*CreateSubnetResponse, error)
- func (c *UCloudStackClient) CreateUser(req *CreateUserRequest) (*CreateUserResponse, error)
- func (c *UCloudStackClient) CreateVMInstance(req *CreateVMInstanceRequest) (*CreateVMInstanceResponse, error)
- func (c *UCloudStackClient) CreateVPC(req *CreateVPCRequest) (*CreateVPCResponse, error)
- func (c *UCloudStackClient) CreateVS(req *CreateVSRequest) (*CreateVSResponse, error)
- func (c *UCloudStackClient) CreateVSPolicy(req *CreateVSPolicyRequest) (*CreateVSPolicyResponse, error)
- func (c *UCloudStackClient) DeleteCertificate(req *DeleteCertificateRequest) (*DeleteCertificateResponse, error)
- func (c *UCloudStackClient) DeleteCustomImage(req *DeleteCustomImageRequest) (*DeleteCustomImageResponse, error)
- func (c *UCloudStackClient) DeleteDisk(req *DeleteDiskRequest) (*DeleteDiskResponse, error)
- func (c *UCloudStackClient) DeleteLB(req *DeleteLBRequest) (*DeleteLBResponse, error)
- func (c *UCloudStackClient) DeleteNATGW(req *DeleteNATGWRequest) (*DeleteNATGWResponse, error)
- func (c *UCloudStackClient) DeleteNATGWRule(req *DeleteNATGWRuleRequest) (*DeleteNATGWRuleResponse, error)
- func (c *UCloudStackClient) DeletePhysicalIP(req *DeletePhysicalIPRequest) (*DeletePhysicalIPResponse, error)
- func (c *UCloudStackClient) DeleteRS(req *DeleteRSRequest) (*DeleteRSResponse, error)
- func (c *UCloudStackClient) DeleteSecurityGroup(req *DeleteSecurityGroupRequest) (*DeleteSecurityGroupResponse, error)
- func (c *UCloudStackClient) DeleteSecurityGroupRule(req *DeleteSecurityGroupRuleRequest) (*DeleteSecurityGroupRuleResponse, error)
- func (c *UCloudStackClient) DeleteSnapshot(req *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error)
- func (c *UCloudStackClient) DeleteSubnet(req *DeleteSubnetRequest) (*DeleteSubnetResponse, error)
- func (c *UCloudStackClient) DeleteVMInstance(req *DeleteVMInstanceRequest) (*DeleteVMInstanceResponse, error)
- func (c *UCloudStackClient) DeleteVPC(req *DeleteVPCRequest) (*DeleteVPCResponse, error)
- func (c *UCloudStackClient) DeleteVS(req *DeleteVSRequest) (*DeleteVSResponse, error)
- func (c *UCloudStackClient) DeleteVSPolicy(req *DeleteVSPolicyRequest) (*DeleteVSPolicyResponse, error)
- func (c *UCloudStackClient) DescribeCertificate(req *DescribeCertificateRequest) (*DescribeCertificateResponse, error)
- func (c *UCloudStackClient) DescribeDisk(req *DescribeDiskRequest) (*DescribeDiskResponse, error)
- func (c *UCloudStackClient) DescribeEIP(req *DescribeEIPRequest) (*DescribeEIPResponse, error)
- func (c *UCloudStackClient) DescribeImage(req *DescribeImageRequest) (*DescribeImageResponse, error)
- func (c *UCloudStackClient) DescribeLB(req *DescribeLBRequest) (*DescribeLBResponse, error)
- func (c *UCloudStackClient) DescribeMetric(req *DescribeMetricRequest) (*DescribeMetricResponse, error)
- func (c *UCloudStackClient) DescribeNATGW(req *DescribeNATGWRequest) (*DescribeNATGWResponse, error)
- func (c *UCloudStackClient) DescribeNATGWRule(req *DescribeNATGWRuleRequest) (*DescribeNATGWRuleResponse, error)
- func (c *UCloudStackClient) DescribeOPLogs(req *DescribeOPLogsRequest) (*DescribeOPLogsResponse, error)
- func (c *UCloudStackClient) DescribePhysicalIP(req *DescribePhysicalIPRequest) (*DescribePhysicalIPResponse, error)
- func (c *UCloudStackClient) DescribeRS(req *DescribeRSRequest) (*DescribeRSResponse, error)
- func (c *UCloudStackClient) DescribeRecycledResource(req *DescribeRecycledResourceRequest) (*DescribeRecycledResourceResponse, error)
- func (c *UCloudStackClient) DescribeSecurityGroup(req *DescribeSecurityGroupRequest) (*DescribeSecurityGroupResponse, error)
- func (c *UCloudStackClient) DescribeStorageType(req *DescribeStorageTypeRequest) (*DescribeStorageTypeResponse, error)
- func (c *UCloudStackClient) DescribeSubnet(req *DescribeSubnetRequest) (*DescribeSubnetResponse, error)
- func (c *UCloudStackClient) DescribeUser(req *DescribeUserRequest) (*DescribeUserResponse, error)
- func (c *UCloudStackClient) DescribeVMInstance(req *DescribeVMInstanceRequest) (*DescribeVMInstanceResponse, error)
- func (c *UCloudStackClient) DescribeVMType(req *DescribeVMTypeRequest) (*DescribeVMTypeResponse, error)
- func (c *UCloudStackClient) DescribeVPC(req *DescribeVPCRequest) (*DescribeVPCResponse, error)
- func (c *UCloudStackClient) DescribeVS(req *DescribeVSRequest) (*DescribeVSResponse, error)
- func (c *UCloudStackClient) DescribeVSPolicy(req *DescribeVSPolicyRequest) (*DescribeVSPolicyResponse, error)
- func (c *UCloudStackClient) DetachDisk(req *DetachDiskRequest) (*DetachDiskResponse, error)
- func (c *UCloudStackClient) DisableRS(req *DisableRSRequest) (*DisableRSResponse, error)
- func (c *UCloudStackClient) EnableRS(req *EnableRSRequest) (*EnableRSResponse, error)
- func (c *UCloudStackClient) GetDiskPrice(req *GetDiskPriceRequest) (*GetDiskPriceResponse, error)
- func (c *UCloudStackClient) GetEIPPrice(req *GetEIPPriceRequest) (*GetEIPPriceResponse, error)
- func (c *UCloudStackClient) GetVMInstancePrice(req *GetVMInstancePriceRequest) (*GetVMInstancePriceResponse, error)
- func (c *UCloudStackClient) ModifyEIPBandwidth(req *ModifyEIPBandwidthRequest) (*ModifyEIPBandwidthResponse, error)
- func (c *UCloudStackClient) ModifyNameAndRemark(req *ModifyNameAndRemarkRequest) (*ModifyNameAndRemarkResponse, error)
- func (c *UCloudStackClient) NewAllocateEIPRequest() *AllocateEIPRequest
- func (c *UCloudStackClient) NewAttachDiskRequest() *AttachDiskRequest
- func (c *UCloudStackClient) NewBindAlarmTemplateRequest() *BindAlarmTemplateRequest
- func (c *UCloudStackClient) NewBindEIPRequest() *BindEIPRequest
- func (c *UCloudStackClient) NewBindPhysicalIPRequest() *BindPhysicalIPRequest
- func (c *UCloudStackClient) NewBindSecurityGroupRequest() *BindSecurityGroupRequest
- func (c *UCloudStackClient) NewCloneDiskRequest() *CloneDiskRequest
- func (c *UCloudStackClient) NewCreateCertificateRequest() *CreateCertificateRequest
- func (c *UCloudStackClient) NewCreateCustomImageRequest() *CreateCustomImageRequest
- func (c *UCloudStackClient) NewCreateDiskRequest() *CreateDiskRequest
- func (c *UCloudStackClient) NewCreateLBRequest() *CreateLBRequest
- func (c *UCloudStackClient) NewCreateNATGWRequest() *CreateNATGWRequest
- func (c *UCloudStackClient) NewCreateNATGWRuleRequest() *CreateNATGWRuleRequest
- func (c *UCloudStackClient) NewCreatePhysicalIPRequest() *CreatePhysicalIPRequest
- func (c *UCloudStackClient) NewCreateRSRequest() *CreateRSRequest
- func (c *UCloudStackClient) NewCreateSecurityGroupRequest() *CreateSecurityGroupRequest
- func (c *UCloudStackClient) NewCreateSecurityGroupRuleRequest() *CreateSecurityGroupRuleRequest
- func (c *UCloudStackClient) NewCreateSnapshotRequest() *CreateSnapshotRequest
- func (c *UCloudStackClient) NewCreateSubnetRequest() *CreateSubnetRequest
- func (c *UCloudStackClient) NewCreateUserRequest() *CreateUserRequest
- func (c *UCloudStackClient) NewCreateVMInstanceRequest() *CreateVMInstanceRequest
- func (c *UCloudStackClient) NewCreateVPCRequest() *CreateVPCRequest
- func (c *UCloudStackClient) NewCreateVSPolicyRequest() *CreateVSPolicyRequest
- func (c *UCloudStackClient) NewCreateVSRequest() *CreateVSRequest
- func (c *UCloudStackClient) NewDeleteCertificateRequest() *DeleteCertificateRequest
- func (c *UCloudStackClient) NewDeleteCustomImageRequest() *DeleteCustomImageRequest
- func (c *UCloudStackClient) NewDeleteDiskRequest() *DeleteDiskRequest
- func (c *UCloudStackClient) NewDeleteLBRequest() *DeleteLBRequest
- func (c *UCloudStackClient) NewDeleteNATGWRequest() *DeleteNATGWRequest
- func (c *UCloudStackClient) NewDeleteNATGWRuleRequest() *DeleteNATGWRuleRequest
- func (c *UCloudStackClient) NewDeletePhysicalIPRequest() *DeletePhysicalIPRequest
- func (c *UCloudStackClient) NewDeleteRSRequest() *DeleteRSRequest
- func (c *UCloudStackClient) NewDeleteSecurityGroupRequest() *DeleteSecurityGroupRequest
- func (c *UCloudStackClient) NewDeleteSecurityGroupRuleRequest() *DeleteSecurityGroupRuleRequest
- func (c *UCloudStackClient) NewDeleteSnapshotRequest() *DeleteSnapshotRequest
- func (c *UCloudStackClient) NewDeleteSubnetRequest() *DeleteSubnetRequest
- func (c *UCloudStackClient) NewDeleteVMInstanceRequest() *DeleteVMInstanceRequest
- func (c *UCloudStackClient) NewDeleteVPCRequest() *DeleteVPCRequest
- func (c *UCloudStackClient) NewDeleteVSPolicyRequest() *DeleteVSPolicyRequest
- func (c *UCloudStackClient) NewDeleteVSRequest() *DeleteVSRequest
- func (c *UCloudStackClient) NewDescribeCertificateRequest() *DescribeCertificateRequest
- func (c *UCloudStackClient) NewDescribeDiskRequest() *DescribeDiskRequest
- func (c *UCloudStackClient) NewDescribeEIPRequest() *DescribeEIPRequest
- func (c *UCloudStackClient) NewDescribeImageRequest() *DescribeImageRequest
- func (c *UCloudStackClient) NewDescribeLBRequest() *DescribeLBRequest
- func (c *UCloudStackClient) NewDescribeMetricRequest() *DescribeMetricRequest
- func (c *UCloudStackClient) NewDescribeNATGWRequest() *DescribeNATGWRequest
- func (c *UCloudStackClient) NewDescribeNATGWRuleRequest() *DescribeNATGWRuleRequest
- func (c *UCloudStackClient) NewDescribeOPLogsRequest() *DescribeOPLogsRequest
- func (c *UCloudStackClient) NewDescribePhysicalIPRequest() *DescribePhysicalIPRequest
- func (c *UCloudStackClient) NewDescribeRSRequest() *DescribeRSRequest
- func (c *UCloudStackClient) NewDescribeRecycledResourceRequest() *DescribeRecycledResourceRequest
- func (c *UCloudStackClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest
- func (c *UCloudStackClient) NewDescribeStorageTypeRequest() *DescribeStorageTypeRequest
- func (c *UCloudStackClient) NewDescribeSubnetRequest() *DescribeSubnetRequest
- func (c *UCloudStackClient) NewDescribeUserRequest() *DescribeUserRequest
- func (c *UCloudStackClient) NewDescribeVMInstanceRequest() *DescribeVMInstanceRequest
- func (c *UCloudStackClient) NewDescribeVMTypeRequest() *DescribeVMTypeRequest
- func (c *UCloudStackClient) NewDescribeVPCRequest() *DescribeVPCRequest
- func (c *UCloudStackClient) NewDescribeVSPolicyRequest() *DescribeVSPolicyRequest
- func (c *UCloudStackClient) NewDescribeVSRequest() *DescribeVSRequest
- func (c *UCloudStackClient) NewDetachDiskRequest() *DetachDiskRequest
- func (c *UCloudStackClient) NewDisableRSRequest() *DisableRSRequest
- func (c *UCloudStackClient) NewEnableRSRequest() *EnableRSRequest
- func (c *UCloudStackClient) NewGetDiskPriceRequest() *GetDiskPriceRequest
- func (c *UCloudStackClient) NewGetEIPPriceRequest() *GetEIPPriceRequest
- func (c *UCloudStackClient) NewGetVMInstancePriceRequest() *GetVMInstancePriceRequest
- func (c *UCloudStackClient) NewModifyEIPBandwidthRequest() *ModifyEIPBandwidthRequest
- func (c *UCloudStackClient) NewModifyNameAndRemarkRequest() *ModifyNameAndRemarkRequest
- func (c *UCloudStackClient) NewPoweroffVMInstanceRequest() *PoweroffVMInstanceRequest
- func (c *UCloudStackClient) NewRechargeRequest() *RechargeRequest
- func (c *UCloudStackClient) NewReinstallVMInstanceRequest() *ReinstallVMInstanceRequest
- func (c *UCloudStackClient) NewReleaseEIPRequest() *ReleaseEIPRequest
- func (c *UCloudStackClient) NewRenewResourceRequest() *RenewResourceRequest
- func (c *UCloudStackClient) NewResetVMInstancePasswordRequest() *ResetVMInstancePasswordRequest
- func (c *UCloudStackClient) NewResizeVMConfigRequest() *ResizeVMConfigRequest
- func (c *UCloudStackClient) NewRestartVMInstanceRequest() *RestartVMInstanceRequest
- func (c *UCloudStackClient) NewRollbackResourceRequest() *RollbackResourceRequest
- func (c *UCloudStackClient) NewRollbackSnapshotRequest() *RollbackSnapshotRequest
- func (c *UCloudStackClient) NewStartVMInstanceRequest() *StartVMInstanceRequest
- func (c *UCloudStackClient) NewStopVMInstanceRequest() *StopVMInstanceRequest
- func (c *UCloudStackClient) NewTerminateResourceRequest() *TerminateResourceRequest
- func (c *UCloudStackClient) NewUnBindEIPRequest() *UnBindEIPRequest
- func (c *UCloudStackClient) NewUnBindSecurityGroupRequest() *UnBindSecurityGroupRequest
- func (c *UCloudStackClient) NewUnbindAlarmTemplateRequest() *UnbindAlarmTemplateRequest
- func (c *UCloudStackClient) NewUnbindPhysicalIPRequest() *UnbindPhysicalIPRequest
- func (c *UCloudStackClient) NewUpdateAlarmTemplateRuleRequest() *UpdateAlarmTemplateRuleRequest
- func (c *UCloudStackClient) NewUpdateRSRequest() *UpdateRSRequest
- func (c *UCloudStackClient) NewUpdateSecurityGroupRuleRequest() *UpdateSecurityGroupRuleRequest
- func (c *UCloudStackClient) NewUpdateVSPolicyRequest() *UpdateVSPolicyRequest
- func (c *UCloudStackClient) NewUpdateVSRequest() *UpdateVSRequest
- func (c *UCloudStackClient) NewUpgradeDiskRequest() *UpgradeDiskRequest
- func (c *UCloudStackClient) PoweroffVMInstance(req *PoweroffVMInstanceRequest) (*PoweroffVMInstanceResponse, error)
- func (c *UCloudStackClient) Recharge(req *RechargeRequest) (*RechargeResponse, error)
- func (c *UCloudStackClient) ReinstallVMInstance(req *ReinstallVMInstanceRequest) (*ReinstallVMInstanceResponse, error)
- func (c *UCloudStackClient) ReleaseEIP(req *ReleaseEIPRequest) (*ReleaseEIPResponse, error)
- func (c *UCloudStackClient) RenewResource(req *RenewResourceRequest) (*RenewResourceResponse, error)
- func (c *UCloudStackClient) ResetVMInstancePassword(req *ResetVMInstancePasswordRequest) (*ResetVMInstancePasswordResponse, error)
- func (c *UCloudStackClient) ResizeVMConfig(req *ResizeVMConfigRequest) (*ResizeVMConfigResponse, error)
- func (c *UCloudStackClient) RestartVMInstance(req *RestartVMInstanceRequest) (*RestartVMInstanceResponse, error)
- func (c *UCloudStackClient) RollbackResource(req *RollbackResourceRequest) (*RollbackResourceResponse, error)
- func (c *UCloudStackClient) RollbackSnapshot(req *RollbackSnapshotRequest) (*RollbackSnapshotResponse, error)
- func (c *UCloudStackClient) StartVMInstance(req *StartVMInstanceRequest) (*StartVMInstanceResponse, error)
- func (c *UCloudStackClient) StopVMInstance(req *StopVMInstanceRequest) (*StopVMInstanceResponse, error)
- func (c *UCloudStackClient) TerminateResource(req *TerminateResourceRequest) (*TerminateResourceResponse, error)
- func (c *UCloudStackClient) UnBindEIP(req *UnBindEIPRequest) (*UnBindEIPResponse, error)
- func (c *UCloudStackClient) UnBindSecurityGroup(req *UnBindSecurityGroupRequest) (*UnBindSecurityGroupResponse, error)
- func (c *UCloudStackClient) UnbindAlarmTemplate(req *UnbindAlarmTemplateRequest) (*UnbindAlarmTemplateResponse, error)
- func (c *UCloudStackClient) UnbindPhysicalIP(req *UnbindPhysicalIPRequest) (*UnbindPhysicalIPResponse, error)
- func (c *UCloudStackClient) UpdateAlarmTemplateRule(req *UpdateAlarmTemplateRuleRequest) (*UpdateAlarmTemplateRuleResponse, error)
- func (c *UCloudStackClient) UpdateRS(req *UpdateRSRequest) (*UpdateRSResponse, error)
- func (c *UCloudStackClient) UpdateSecurityGroupRule(req *UpdateSecurityGroupRuleRequest) (*UpdateSecurityGroupRuleResponse, error)
- func (c *UCloudStackClient) UpdateVS(req *UpdateVSRequest) (*UpdateVSResponse, error)
- func (c *UCloudStackClient) UpdateVSPolicy(req *UpdateVSPolicyRequest) (*UpdateVSPolicyResponse, error)
- func (c *UCloudStackClient) UpgradeDisk(req *UpgradeDiskRequest) (*UpgradeDiskResponse, error)
- type UnBindEIPRequest
- type UnBindEIPResponse
- type UnBindSecurityGroupRequest
- type UnBindSecurityGroupResponse
- type UnbindAlarmTemplateRequest
- type UnbindAlarmTemplateResponse
- type UnbindPhysicalIPRequest
- type UnbindPhysicalIPResponse
- type UpdateAlarmTemplateRuleRequest
- type UpdateAlarmTemplateRuleResponse
- type UpdateRSRequest
- type UpdateRSResponse
- type UpdateSecurityGroupRuleRequest
- type UpdateSecurityGroupRuleResponse
- type UpdateVSPolicyRequest
- type UpdateVSPolicyResponse
- type UpdateVSRequest
- type UpdateVSResponse
- type UpgradeDiskRequest
- type UpgradeDiskResponse
- type UserInfo
- type VMDiskInfo
- type VMIPInfo
- type VMInstanceInfo
- type VMTypeInfo
- type VPCInfo
- type VSInfo
- type VSPolicyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocateEIPRequest ¶
type AllocateEIPRequest struct { request.CommonBase // 带宽,默认值1,默认范围1~100 Bandwidth *int `required:"true"` // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 名称 Name *string `required:"true"` // 线路。目前支持Bgp OperatorName *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` }
AllocateEIPRequest is request schema for AllocateEIP action
type AllocateEIPResponse ¶
type AllocateEIPResponse struct { response.CommonBase // 申请的EIP的ID EIPID string // 返回信息描述。 Message string }
AllocateEIPResponse is response schema for AllocateEIP action
type AttachDiskRequest ¶
type AttachDiskRequest struct { request.CommonBase // 硬盘ID DiskID *string `required:"true"` // 绑定的资源ID ResourceID *string `required:"true"` // 绑定的资源类型,枚举值:VM,标识虚拟机 ResourceType *string `required:"true"` }
AttachDiskRequest is request schema for AttachDisk action
type AttachDiskResponse ¶
type AttachDiskResponse struct { response.CommonBase // 返回信息描述。 Message string }
AttachDiskResponse is response schema for AttachDisk action
type BindAlarmTemplateRequest ¶
type BindAlarmTemplateRequest struct { request.CommonBase // 告警模板ID AlarmTemplateID *string `required:"true"` // 【数组】告警模板ID。调用方式举例:ResourceIDs.0=“one-id”、ResourceIDs.1=“two-id”。 ResourceIDs []string `required:"true"` // 资源类型。VM:虚拟机, LB:负载均衡, NATGW:nat网关;EIP:弹性IP ResourceType *string `required:"true"` }
BindAlarmTemplateRequest is request schema for BindAlarmTemplate action
type BindAlarmTemplateResponse ¶
type BindAlarmTemplateResponse struct { response.CommonBase // 返回信息描述 Message string }
BindAlarmTemplateResponse is response schema for BindAlarmTemplate action
type BindEIPRequest ¶
type BindEIPRequest struct { request.CommonBase // 外网IP的ID EIPID *string `required:"true"` // 资源ID ResourceID *string `required:"true"` // 资源类型。VM:虚拟机, LB:负载均衡, NATGW:nat网关 ResourceType *string `required:"true"` }
BindEIPRequest is request schema for BindEIP action
type BindEIPResponse ¶
type BindEIPResponse struct { response.CommonBase // 返回描述 Message string }
BindEIPResponse is response schema for BindEIP action
type BindPhysicalIPRequest ¶
type BindPhysicalIPRequest struct { request.CommonBase // 物理IP的ID PhysicalIPID *string `required:"true"` // 资源ID ResourceID *string `required:"true"` // 资源类型。VM:虚拟机 ResourceType *string `required:"true"` }
BindPhysicalIPRequest is request schema for BindPhysicalIP action
type BindPhysicalIPResponse ¶
type BindPhysicalIPResponse struct { response.CommonBase // 返回描述 Message string }
BindPhysicalIPResponse is response schema for BindPhysicalIP action
type BindSecurityGroupRequest ¶
type BindSecurityGroupRequest struct { request.CommonBase // 网卡ID NICID *string `required:"false"` // 绑定的资源ID。调用方式举例:ResourceID=“one-id”。 ResourceID *string `required:"true"` // 安全组ID SGID *string `required:"true"` }
BindSecurityGroupRequest is request schema for BindSecurityGroup action
type BindSecurityGroupResponse ¶
type BindSecurityGroupResponse struct { response.CommonBase // 返回信息描述 Message string }
BindSecurityGroupResponse is response schema for BindSecurityGroup action
type BindVSInfo ¶
type BindVSInfo struct { // LB ID LBID string // LB名称 LBName string // VS的端口 Port int // VS的协议 Protocol string // VS ID VSID string }
BindVSInfo - 证书绑定的vs信息
type CertificateInfo ¶
type CertificateInfo struct { // 证书内容 CertificateContent string // 证书ID CertificateID string // 证书类型,枚举值["ServerCrt","CACrt"] CertificateType string // 主域名 CommonName string // 创建时间(平台创建时间) CreateTime int // 证书内容的过期时间 ExpireTime int // 证书指纹 Fingerprint string // 证书名 Name string // 私钥内容 Privatekey string // 地域 Region string // 证书描述 Remark string // 备域名 SubjectAlternativeNames []string // 关联的vs的信息 VSInfos []BindVSInfo // 可用区 Zone string }
CertificateInfo - 证书信息
type CloneDiskRequest ¶
type CloneDiskRequest struct { request.CommonBase // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 名称 Name *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 源硬盘ID SrcID *string `required:"true"` }
CloneDiskRequest is request schema for CloneDisk action
type CloneDiskResponse ¶
type CloneDiskResponse struct { response.CommonBase // 克隆出的硬盘ID DiskID string // 返回信息描述。 Message string }
CloneDiskResponse is response schema for CloneDisk action
type CreateCertificateRequest ¶
type CreateCertificateRequest struct { request.CommonBase // 证书内容 Certificate *string `required:"true"` // 证书类型,枚举值["ServerCrt","CACrt"]。分别表示服务器证书和CA证书。只有在双向认证的时候才需要CA证书 CertificateType *string `required:"true"` // 证书名称 Name *string `required:"true"` // 私钥内容,服务器证书必传,CA证书不用传递 PrivateKey *string `required:"false"` // 证书描述 Remark *string `required:"false"` }
CreateCertificateRequest is request schema for CreateCertificate action
type CreateCertificateResponse ¶
type CreateCertificateResponse struct { response.CommonBase // 证书ID CertificateID string // 错误描述 Message string }
CreateCertificateResponse is response schema for CreateCertificate action
type CreateCustomImageRequest ¶
type CreateCustomImageRequest struct { request.CommonBase // 镜像描述。 ImageDescription *string `required:"false"` // 镜像名称 ImageName *string `required:"true"` // 虚拟机ID VMID *string `required:"true"` }
CreateCustomImageRequest is request schema for CreateCustomImage action
type CreateCustomImageResponse ¶
type CreateCustomImageResponse struct { response.CommonBase // 创建的自制镜像ID ImageID string // 返回信息描述。 Message string }
CreateCustomImageResponse is response schema for CreateCustomImage action
type CreateDiskRequest ¶
type CreateDiskRequest struct { request.CommonBase // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 磁盘大小 DiskSpace *int `required:"true"` // 磁盘名称 Name *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 磁盘类型。例如:Normal,SSD SetType *string `required:"true"` }
CreateDiskRequest is request schema for CreateDisk action
type CreateDiskResponse ¶
type CreateDiskResponse struct { response.CommonBase // 创建的磁盘ID DiskID string // 返回信息描述。 Message string }
CreateDiskResponse is response schema for CreateDisk action
type CreateLBRequest ¶
type CreateLBRequest struct { request.CommonBase // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 外网IP的ID,创建外网LB时为必需 EIPID *string `required:"false"` // 枚举值。LAN:内网,WAN:外网 LBType *string `required:"true"` // 名称。 Name *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 描述。 Remark *string `required:"false"` // 安全组ID,创建外网LB时为必需 SGID *string `required:"false"` // LB 实例所在的子网 ID 。 SubnetID *string `required:"true"` // 运行负载均衡实例的主机机型。枚举值:如 Normal ,表示普通机型; SSD,表示 SSD 机型。(机型由平台管理员修改和指定,可参考获取主机机型接口) VMType *string `required:"true"` // LB实例所在的 VPC ID 。 VPCID *string `required:"true"` }
CreateLBRequest is request schema for CreateLB action
type CreateLBResponse ¶
type CreateLBResponse struct { response.CommonBase // 返回创建的负载均衡ID LBID string // 返回信息描述。 Message string }
CreateLBResponse is response schema for CreateLB action
type CreateNATGWRequest ¶
type CreateNATGWRequest struct { request.CommonBase // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 外网IP的ID EIPID *string `required:"true"` // 名称。 Name *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 描述 Remark *string `required:"false"` // 安全组ID SGID *string `required:"true"` // NAT网关实例所在的子网 ID SubnetID *string `required:"true"` // 运行NAT网关实例的主机机型。枚举值:如 Normal ,表示普通机型; SSD,表示 SSD 机型。(机型由平台管理员修改和指定,可参考获取主机机型接口) VMType *string `required:"true"` // NAT网关实例所在的 VPC ID VPCID *string `required:"true"` }
CreateNATGWRequest is request schema for CreateNATGW action
type CreateNATGWResponse ¶
type CreateNATGWResponse struct { response.CommonBase // 返回信息描述。 Message string // 返回创建的NAT网关ID NATGWID string }
CreateNATGWResponse is response schema for CreateNATGW action
type CreateNATGWRuleRequest ¶
type CreateNATGWRuleRequest struct { request.CommonBase // 绑定的虚拟机资源ID BindResourceID *string `required:"true"` // NAT网关ID NATGWID *string `required:"true"` // NAT的类型。枚举值:SNAT,DNAT NATGWType *string `required:"true"` }
CreateNATGWRuleRequest is request schema for CreateNATGWRule action
type CreateNATGWRuleResponse ¶
type CreateNATGWRuleResponse struct { response.CommonBase // 返回信息描述。 Message string // 白名单ID RuleID string }
CreateNATGWRuleResponse is response schema for CreateNATGWRule action
type CreatePhysicalIPRequest ¶
type CreatePhysicalIPRequest struct { request.CommonBase // 物理IP名称,限制字符长度30 Name *string `required:"true"` // 物理IP线路 OperatorName *string `required:"true"` // 描述 Remark *string `required:"false"` }
CreatePhysicalIPRequest is request schema for CreatePhysicalIP action
type CreatePhysicalIPResponse ¶
type CreatePhysicalIPResponse struct { response.CommonBase // 返回信息描述 Message string // 返回创建的物理IP的ID PhysicalIPID string }
CreatePhysicalIPResponse is response schema for CreatePhysicalIP action
type CreateRSRequest ¶
type CreateRSRequest struct { request.CommonBase // 服务节点的资源 ID ,仅支持添加与 LB 相同 VPC 的虚拟机资源 BindResourceID *string `required:"true"` // 负载均衡ID LBID *string `required:"true"` // 服务节点暴露的服务端口号 Port *int `required:"true"` // VServer的ID VSID *string `required:"true"` // 服务节点的权重 Weight *int `required:"true"` }
CreateRSRequest is request schema for CreateRS action
type CreateRSResponse ¶
type CreateRSResponse struct { response.CommonBase // 返回信息描述。 Message string // 返回创建的RSID RSID string }
CreateRSResponse is response schema for CreateRS action
type CreateSecurityGroupRequest ¶
type CreateSecurityGroupRequest struct { request.CommonBase // 名称; Name *string `required:"true"` // 描述; Remark *string `required:"false"` // 【数组】安全组规则。输入有效的规则,调用方式举例:Rule.0=“TCP|23|0.0.0.0/0|ACCEPT|HIGH|1”、Rule.1=“TCP|55|0.0.0.0/0|ACCEPT|HIGH|1” Rule []string `required:"true"` }
CreateSecurityGroupRequest is request schema for CreateSecurityGroup action
type CreateSecurityGroupResponse ¶
type CreateSecurityGroupResponse struct { response.CommonBase // 返回信息描述; Message string // 创建的安全组ID SGID string }
CreateSecurityGroupResponse is response schema for CreateSecurityGroup action
type CreateSecurityGroupRuleRequest ¶
type CreateSecurityGroupRuleRequest struct { request.CommonBase // 【数组】安全组规则。输入有效的规则,调用方式举例:Rule.0=“TCP|23|0.0.0.0/0|ACCEPT|HIGH|1”、Rule.1=“TCP|55|0.0.0.0/0|ACCEPT|HIGH|1” Rules []string `required:"true"` // 安全组ID SGID *string `required:"true"` }
CreateSecurityGroupRuleRequest is request schema for CreateSecurityGroupRule action
type CreateSecurityGroupRuleResponse ¶
type CreateSecurityGroupRuleResponse struct { response.CommonBase // 返回信息描述; Message string // 创建的安全组规则ID SGRuleID string }
CreateSecurityGroupRuleResponse is response schema for CreateSecurityGroupRule action
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct { request.CommonBase // 硬盘ID,输入“有效”状态的ID DiskID *string `required:"true"` // 快照名称,限制字符长度30 Name *string `required:"true"` // 描述,限制字符长度100 Remark *string `required:"false"` }
CreateSnapshotRequest is request schema for CreateSnapshot action
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct { response.CommonBase // 返回信息描述 Message string // 创建的快照ID SnapshotID string }
CreateSnapshotResponse is response schema for CreateSnapshot action
type CreateSubnetRequest ¶
type CreateSubnetRequest struct { request.CommonBase // 名称; Name *string `required:"true"` // 网段。列如:10.0.0.0/16; Network *string `required:"true"` // 描述; Remark *string `required:"false"` // 所属VPCID VPCID *string `required:"true"` }
CreateSubnetRequest is request schema for CreateSubnet action
type CreateSubnetResponse ¶
type CreateSubnetResponse struct { response.CommonBase // 返回信息描述; Message string // 创建Subnet的ID; SubnetID string }
CreateSubnetResponse is response schema for CreateSubnet action
type CreateUserRequest ¶
type CreateUserRequest struct { request.CommonBase // 账号密码。 PassWord *string `required:"true"` // 账号邮箱。 UserEmail *string `required:"true"` }
CreateUserRequest is request schema for CreateUser action
type CreateUserResponse ¶
type CreateUserResponse struct { response.CommonBase // 返回信息描述。 Message string // 账户ID UserID int }
CreateUserResponse is response schema for CreateUser action
type CreateVMInstanceRequest ¶
type CreateVMInstanceRequest struct { request.CommonBase // 带宽 Bandwidth *string `required:"false"` // 系统盘类型。枚举值:Normal,表示普通;SSD,表示SSD; BootDiskSetType *string `required:"true"` // CPU个数,如1,2,4,8,16,32,64等。 CPU *int `required:"true"` // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 数据盘类型。枚举值:Normal,表示普通;SSD,表示SSD; DataDiskSetType *string `required:"true"` // 数据盘大小,单位 GB。默认值为0。范围:【0,8000】,步长10。 DataDiskSpace *int `required:"false"` // GPU 卡核心的占用个数。枚举值:【1,2,4】。GPU与CPU、内存大小关系:CPU个数>=4*GPU个数,同时内存与CPU规格匹配. GPU *int `required:"false"` // 外网IP版本,默认IPv4 IPVersion *string `required:"false"` // 镜像 ID。基础镜像 ID 或者自制镜像 ID。如:cn-image-centos-74。 ImageID *string `required:"true"` // 指定内网IP。输入有效的指定内网 IP。默认为系统自动分配内网 IP。 InternalIP *string `required:"false"` // 指定外网IP InternetIP *string `required:"false"` // 内网安全组 ID。输入“有效”状态的安全组的ID。 LANSGID *string `required:"false"` // 内存容量,如1024,2048,4096,8192,16384,32768,65535等。 Memory *int `required:"true"` // 虚拟机名称。可输入如:myVM。名称只能包含中英文、数字以及- _ .且1-30个字符。 Name *string `required:"true"` // 线路 OperatorName *string `required:"false"` // 密码。可输入如:ucloud.cn。密码长度限6-30个字符;需要同时包含两项或以上(大写字母/小写字母/数字/特殊符号);windows不能包含用户名(administrator)中超过2个连续字符的部分。 Password *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 子网 ID。 SubnetID *string `required:"true"` // 机型。枚举值:Normal,表示普通;SSD,表示SSD; VMType *string `required:"true"` // VPC ID。 VPCID *string `required:"true"` // 外网安全组 ID。输入“有效”状态的安全组的ID。 WANSGID *string `required:"true"` }
CreateVMInstanceRequest is request schema for CreateVMInstance action
type CreateVMInstanceResponse ¶
type CreateVMInstanceResponse struct { response.CommonBase // 返回创建数据盘的 ID DiskID string // 返回创建外网IP的 ID EIPID string // 返回信息描述。 Message string // 返回创建虚拟机的 ID VMID string }
CreateVMInstanceResponse is response schema for CreateVMInstance action
type CreateVPCRequest ¶
type CreateVPCRequest struct { request.CommonBase // 名称; Name *string `required:"true"` // 网段。例如:10.0.0.0/16; Network *string `required:"true"` // 描述; Remark *string `required:"false"` }
CreateVPCRequest is request schema for CreateVPC action
type CreateVPCResponse ¶
type CreateVPCResponse struct { response.CommonBase // 返回信息描述; Message string // 创建的VPCID; VPCID string }
CreateVPCResponse is response schema for CreateVPC action
type CreateVSPolicyRequest ¶
type CreateVSPolicyRequest struct { request.CommonBase // 内容转发规则关联的请求域名,值可为空,即代表仅匹配路径。域名和路径至少需要指定一项,且域名和路径的组合在一个 VServer 中必须唯一。 Domain *string `required:"false"` // 负载均衡ID LBID *string `required:"true"` // 内容转发规则关联的请求访问路径,如 "/" 。域名和路径至少需要指定一项,且域名和路径的组合在一个 VServer 中必须唯一。 Path *string `required:"false"` // 【数组】内容转发规则应用的服务节点的 ID,来源于 VServer 中添加的服务节点。调用方式举例:RSIDs.0=“one-id”、RSIDs.1=“two-id”。 RSIDs []string `required:"true"` // VServer的ID VSID *string `required:"true"` }
CreateVSPolicyRequest is request schema for CreateVSPolicy action
type CreateVSPolicyResponse ¶
type CreateVSPolicyResponse struct { response.CommonBase // 返回信息描述。 Message string // 返回创建的内容转发规则ID PolicyID string }
CreateVSPolicyResponse is response schema for CreateVSPolicy action
type CreateVSRequest ¶
type CreateVSRequest struct { request.CommonBase // CA证书ID,用于验证客户端证书的签名,仅当VServer监听协议为 HTTPS 且 SSLMode 为双向认证时有效。 CACertificateID *string `required:"false"` // HTTP 健康检查时校验请求的 HOST 字段中的域名。当健康检查类型为端口检查时,该值为空。 Domain *string `required:"false"` // 健康检查类型,枚举值,Port:端口,Path:域名。TCP和UDP协议只支持Port类型。 HealthcheckType *string `required:"true"` // 负载均衡的连接空闲超时时间,单位为秒,默认值为 60s 。 KeepaliveTimeout *int `required:"false"` // 负载均衡ID LBID *string `required:"true"` // HTTP 健康检查的路径,健康检查类型为 HTTP 检查时为必填项。当健康检查类型为端口检查时,该值为空。 Path *string `required:"false"` // 会话保持KEY,会话保持类型为Manual时为必填项,仅当 VServer 协议为 HTTP 时有效。 PersistenceKey *string `required:"false"` // 会话保持类型。枚举值:None:关闭;Auto:自动生成;Manual:手动生成 。当协议为 TCP 时,该值不生效,会话保持和选择的调度算法相关;当协议为 UDP 时 Auto 表示开启会话保持 。 PersistenceType *string `required:"false"` // VServer 的监听端口。端口范围为 1~65535 ,其中 323、9102、9103、9104、9105、60909、60910 被系统占用。 Port *int `required:"true"` // VServer 的监听协议。枚举值:支持 TCP、UDP、HTTP、HTTPS 四种协议转发。 Protocol *string `required:"true"` // SSL认证模式,HTTPS协议下必传,取值范围["simplex","duplex"]分别表示单向认证和双向认证。 SSLMode *string `required:"false"` // 负载均衡的调度算法。枚举值:wrr:加权轮训;least_conn:最小连接数;hash:原地址,四层lb使用。ip_hash:七层lb使用 Scheduler *string `required:"true"` // 服务器证书ID,用于证明服务器的身份,仅当 VServer监听协议为 HTTPS时有效。 ServerCertificateID *string `required:"false"` }
CreateVSRequest is request schema for CreateVS action
type CreateVSResponse ¶
type CreateVSResponse struct { response.CommonBase // 返回信息描述。 Message string // 返回创建的VSID VSID string }
CreateVSResponse is response schema for CreateVS action
type DeleteCertificateRequest ¶
type DeleteCertificateRequest struct { request.CommonBase // 证书ID CertificateID *string `required:"true"` }
DeleteCertificateRequest is request schema for DeleteCertificate action
type DeleteCertificateResponse ¶
type DeleteCertificateResponse struct { response.CommonBase // 返回信息描述 Message string }
DeleteCertificateResponse is response schema for DeleteCertificate action
type DeleteCustomImageRequest ¶
type DeleteCustomImageRequest struct { request.CommonBase // 自制镜像ID ImageID *string `required:"true"` }
DeleteCustomImageRequest is request schema for DeleteCustomImage action
type DeleteCustomImageResponse ¶
type DeleteCustomImageResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteCustomImageResponse is response schema for DeleteCustomImage action
type DeleteDiskRequest ¶
type DeleteDiskRequest struct { request.CommonBase // 被删除的硬盘ID DiskID *string `required:"true"` }
DeleteDiskRequest is request schema for DeleteDisk action
type DeleteDiskResponse ¶
type DeleteDiskResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteDiskResponse is response schema for DeleteDisk action
type DeleteLBRequest ¶
type DeleteLBRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` }
DeleteLBRequest is request schema for DeleteLB action
type DeleteLBResponse ¶
type DeleteLBResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteLBResponse is response schema for DeleteLB action
type DeleteNATGWRequest ¶
type DeleteNATGWRequest struct { request.CommonBase // NAT网关ID NATGWID *string `required:"true"` }
DeleteNATGWRequest is request schema for DeleteNATGW action
type DeleteNATGWResponse ¶
type DeleteNATGWResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteNATGWResponse is response schema for DeleteNATGW action
type DeleteNATGWRuleRequest ¶
type DeleteNATGWRuleRequest struct { request.CommonBase // nat网关ID NATGWID *string `required:"true"` // 白名单ID RuleID *string `required:"true"` }
DeleteNATGWRuleRequest is request schema for DeleteNATGWRule action
type DeleteNATGWRuleResponse ¶
type DeleteNATGWRuleResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteNATGWRuleResponse is response schema for DeleteNATGWRule action
type DeletePhysicalIPRequest ¶
type DeletePhysicalIPRequest struct { request.CommonBase // 物理IP的ID PhysicalIPID *string `required:"true"` }
DeletePhysicalIPRequest is request schema for DeletePhysicalIP action
type DeletePhysicalIPResponse ¶
type DeletePhysicalIPResponse struct { response.CommonBase // 返回状态描述 Message string }
DeletePhysicalIPResponse is response schema for DeletePhysicalIP action
type DeleteRSRequest ¶
type DeleteRSRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // RServer的ID RSID *string `required:"true"` // VServer的ID VSID *string `required:"true"` }
DeleteRSRequest is request schema for DeleteRS action
type DeleteRSResponse ¶
type DeleteRSResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteRSResponse is response schema for DeleteRS action
type DeleteSecurityGroupRequest ¶
type DeleteSecurityGroupRequest struct { request.CommonBase // 安全组ID SGID *string `required:"true"` }
DeleteSecurityGroupRequest is request schema for DeleteSecurityGroup action
type DeleteSecurityGroupResponse ¶
type DeleteSecurityGroupResponse struct { response.CommonBase // 返回信息描述; Message string }
DeleteSecurityGroupResponse is response schema for DeleteSecurityGroup action
type DeleteSecurityGroupRuleRequest ¶
type DeleteSecurityGroupRuleRequest struct { request.CommonBase // 安全组ID SGID *string `required:"true"` // 安全组规则ID SGRuleID *string `required:"true"` }
DeleteSecurityGroupRuleRequest is request schema for DeleteSecurityGroupRule action
type DeleteSecurityGroupRuleResponse ¶
type DeleteSecurityGroupRuleResponse struct { response.CommonBase // 返回信息描述; Message string }
DeleteSecurityGroupRuleResponse is response schema for DeleteSecurityGroupRule action
type DeleteSnapshotRequest ¶
type DeleteSnapshotRequest struct { request.CommonBase // 快照ID SnapshotID *string `required:"true"` }
DeleteSnapshotRequest is request schema for DeleteSnapshot action
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct { response.CommonBase // 返回信息描述 Message string }
DeleteSnapshotResponse is response schema for DeleteSnapshot action
type DeleteSubnetRequest ¶
type DeleteSubnetRequest struct { request.CommonBase // SubnetID SubnetID *string `required:"true"` }
DeleteSubnetRequest is request schema for DeleteSubnet action
type DeleteSubnetResponse ¶
type DeleteSubnetResponse struct { response.CommonBase // 返回信息描述; Message string }
DeleteSubnetResponse is response schema for DeleteSubnet action
type DeleteVMInstanceRequest ¶
type DeleteVMInstanceRequest struct { request.CommonBase // 虚拟机 ID。输入有效的虚拟机 ID。 VMID *string `required:"true"` }
DeleteVMInstanceRequest is request schema for DeleteVMInstance action
type DeleteVMInstanceResponse ¶
type DeleteVMInstanceResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteVMInstanceResponse is response schema for DeleteVMInstance action
type DeleteVPCRequest ¶
type DeleteVPCRequest struct { request.CommonBase // ID VPCID *string `required:"true"` }
DeleteVPCRequest is request schema for DeleteVPC action
type DeleteVPCResponse ¶
type DeleteVPCResponse struct { response.CommonBase // 返回信息描述; Message string }
DeleteVPCResponse is response schema for DeleteVPC action
type DeleteVSPolicyRequest ¶
type DeleteVSPolicyRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // 内容转发规则ID PolicyID *string `required:"true"` // VServer的ID VSID *string `required:"true"` }
DeleteVSPolicyRequest is request schema for DeleteVSPolicy action
type DeleteVSPolicyResponse ¶
type DeleteVSPolicyResponse struct { response.CommonBase // 【该字段已废弃,请谨慎使用】 Action string `deprecated:"true"` // 返回信息描述。 Message string // 【该字段已废弃,请谨慎使用】 RetCode int `deprecated:"true"` }
DeleteVSPolicyResponse is response schema for DeleteVSPolicy action
type DeleteVSRequest ¶
type DeleteVSRequest struct { request.CommonBase // VServer 监听器所属的负载均衡 ID LBID *string `required:"true"` // 负载均衡VServer监听器ID VSID *string `required:"true"` }
DeleteVSRequest is request schema for DeleteVS action
type DeleteVSResponse ¶
type DeleteVSResponse struct { response.CommonBase // 返回信息描述。 Message string }
DeleteVSResponse is response schema for DeleteVS action
type DescribeCertificateRequest ¶
type DescribeCertificateRequest struct { request.CommonBase // 证书ID列表 CertificateIDs []string `required:"false"` // 证书类型,枚举值["ServerCrt","CACrt"]。分别表示服务器证书和CA证书。 CertificateType *string `required:"false"` // 返回数据长度,默认为20,最大100 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` }
DescribeCertificateRequest is request schema for DescribeCertificate action
type DescribeCertificateResponse ¶
type DescribeCertificateResponse struct { response.CommonBase // [数组]证书对象数组 Infos []CertificateInfo // 返回信息描述 Message string // 证书总个数 TotalCount int }
DescribeCertificateResponse is response schema for DescribeCertificate action
type DescribeDiskRequest ¶
type DescribeDiskRequest struct { request.CommonBase // 【数组】磁盘的 ID。输入有效的 ID。调用方式举例:DiskIDs.0=“one-id”、DiskIDs.1=“two-id”。 DiskIDs []string `required:"false"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` }
DescribeDiskRequest is request schema for DescribeDisk action
type DescribeDiskResponse ¶
type DescribeDiskResponse struct { response.CommonBase // 【数组】返回磁盘对象数组 Infos []DiskInfo // 返回信息描述。 Message string // 返回磁盘总个数。 TotalCount int }
DescribeDiskResponse is response schema for DescribeDisk action
type DescribeEIPRequest ¶
type DescribeEIPRequest struct { request.CommonBase // 【数组】外网的 ID。输入有效的 ID。调用方式举例:EIPIDs.0=“one-id”、EIPIDs.1=“two-id” EIPIDs []string `required:"false"` // 返回数据长度,默认为20,最大100。 Limit *string `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *string `required:"false"` }
DescribeEIPRequest is request schema for DescribeEIP action
type DescribeEIPResponse ¶
type DescribeEIPResponse struct { response.CommonBase // 外网IP数组 Infos []EIPInfo // 返回信息描述 Message string // 返回现有外网IP总数 Totalcount int }
DescribeEIPResponse is response schema for DescribeEIP action
type DescribeImageRequest ¶
type DescribeImageRequest struct { request.CommonBase // 【数组】镜像的 ID。输入有效的 ID。调用方式举例:ImageIDs.0=“one-id”、ImageIDs.1=“two-id”。 ImageIDs []string `required:"false"` // 镜像类型。枚举值:Base(基础镜像,平台默认提供的镜像),Custom(自制镜像,通过虚拟机导出的镜像) 。若该值为空,默认查询所有镜像。 ImageType *string `required:"false"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` }
DescribeImageRequest is request schema for DescribeImage action
type DescribeImageResponse ¶
type DescribeImageResponse struct { response.CommonBase // 操作名称 Action string // 【数组】返回镜像对象数组 Infos []ImageInfo // 返回信息描述。 Message string // 返回码 RetCode int // 返回镜像的总个数。 TotalCount int }
DescribeImageResponse is response schema for DescribeImage action
type DescribeLBRequest ¶
type DescribeLBRequest struct { request.CommonBase // 【数组】负载均衡的 ID。调用方式举例:LBIDs.0=“one-id”、LBIDs.1=“two-id”。 LBIDs []string `required:"false"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 子网ID SubnetID *string `required:"false"` // VPCID VPCID *string `required:"false"` }
DescribeLBRequest is request schema for DescribeLB action
type DescribeLBResponse ¶
type DescribeLBResponse struct { response.CommonBase // 【数组】返回负载均衡对象数组 Infos []LBInfo // 返回信息描述。 Message string // 返回负载均衡总个数。 TotalCount int }
DescribeLBResponse is response schema for DescribeLB action
type DescribeMetricRequest ¶
type DescribeMetricRequest struct { request.CommonBase // 开始时间。使用unix时间戳 BeginTime *string `required:"true"` // 结束时间。使用Unix时间戳 EndTime *string `required:"true"` // 监控指标。1. 获取虚拟机监控信息调用举例,MetricName.0="CPUUtilization"、MetricName.0="MemUsage"。虚拟机监控指标枚举值:BlockProcessCount,表示阻塞进程数;CPUUtilization,表示CPU使用率;DiskReadOps,表示磁盘读次数;DiskWriteOps,表示磁盘写次数;IORead,表示磁盘读吞吐;IOWrite,表示磁盘写吞吐;LoadAvg,表示平均负载1分钟;MemUsage,表示内存使用率;NetPacketIn,表示网卡入包量;NetPacketOut,表示网卡出包量;NICIn,表示网卡入带宽;NICOut,表示网卡出带宽;SpaceUsage,表示空间使用率;TCPConnectCount,表示TCP连接数;2. EIP监控指标:NetPacketIn:入包量;NetPacketOut:出包量;NICIn:入带宽;NICOut:出带宽;NICOutUsage:出带宽使用率; MetricName []string `required:"true"` // 资源ID ResourceID *string `required:"true"` // 资源类型。VM:虚拟机;EIP:弹性IP ResourceType *string `required:"true"` }
DescribeMetricRequest is request schema for DescribeMetric action
type DescribeMetricResponse ¶
type DescribeMetricResponse struct { response.CommonBase // 返回信息列表 Infos []MetricInfo // 返回信息描述 Message string // 返回监控信息条数 TotalCount int }
DescribeMetricResponse is response schema for DescribeMetric action
type DescribeNATGWRequest ¶
type DescribeNATGWRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 【数组】NAT网关的 ID。调用方式举例:NATGWIDs.0=“one-id”、NATGWIDs.1=“two-id”。 NATGWIDs []string `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` }
DescribeNATGWRequest is request schema for DescribeNATGW action
type DescribeNATGWResponse ¶
type DescribeNATGWResponse struct { response.CommonBase // 【数组】返回nat网关对象数组 Infos []NATGWInfo // 返回信息描述。 Message string // 返回NAT网关总个数 TotalCount int }
DescribeNATGWResponse is response schema for DescribeNATGW action
type DescribeNATGWRuleRequest ¶
type DescribeNATGWRuleRequest struct { request.CommonBase // 【数组】NAT网关白名单资源ID。调用方式举例:NATGWRules.0=“one-id”、NATGWRules.1=“two-id”。 BindResourceIDs []string `required:"false"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // NAT网关ID NATGWID *string `required:"true"` // NAT类型。枚举值:SNAT,DNAT NATGWType *string `required:"true"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】NAT网关白名单ID。调用方式举例:NATGWRules.0=“one-id”、NATGWRules.1=“two-id”。 RuleIDs []string `required:"false"` }
DescribeNATGWRuleRequest is request schema for DescribeNATGWRule action
type DescribeNATGWRuleResponse ¶
type DescribeNATGWRuleResponse struct { response.CommonBase // 【数组】返回nat网关白名单对象数组 Infos []NATGWRuleInfo // 返回信息描述。 Message string // 返回NAT网关白名单资源总个数。 TotalCount int }
DescribeNATGWRuleResponse is response schema for DescribeNATGWRule action
type DescribeOPLogsRequest ¶
type DescribeOPLogsRequest struct { request.CommonBase // 开始时间 BeginTime *int `required:"true"` // 结束时间 EndTime *int `required:"true"` // 是否操作成功 IsSuccess *string `required:"false"` // Limit *int `required:"false"` // Offset *int `required:"false"` // 资源ID ResourceID *string `required:"false"` // 资源类型 ResourceType *string `required:"false"` }
DescribeOPLogsRequest is request schema for DescribeOPLogs action
type DescribeOPLogsResponse ¶
type DescribeOPLogsResponse struct { response.CommonBase // Infos []OPLogInfo // 错误信息 Message string // 总数 TotalCount int }
DescribeOPLogsResponse is response schema for DescribeOPLogs action
type DescribePhysicalIPRequest ¶
type DescribePhysicalIPRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *string `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *string `required:"false"` // 【数组】物理IP的 ID。输入有效的 ID。调用方式举例:PhysicalIPIDs.0=“one-id”、PhysicalIPIDs.1=“two-id” PhysicalIPIDs []string `required:"false"` }
DescribePhysicalIPRequest is request schema for DescribePhysicalIP action
type DescribePhysicalIPResponse ¶
type DescribePhysicalIPResponse struct { response.CommonBase // 物理IP数组 Infos []PhysicalIPInfo // 返回信息描述 Message string // 返回现有物理IP总数 TotalCount int }
DescribePhysicalIPResponse is response schema for DescribePhysicalIP action
type DescribeRSRequest ¶
type DescribeRSRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】RServer的 ID。调用方式举例:RSIDs.0=“one-id”、RSIDs.1=“two-id”。 RSIDs []string `required:"false"` // VServer的ID VSID *string `required:"false"` }
DescribeRSRequest is request schema for DescribeRS action
type DescribeRSResponse ¶
type DescribeRSResponse struct { response.CommonBase // 【数组】返回VServer对象数组 Infos []RSInfo // 返回信息描述。 Message string // 返回该负载均衡下VServer的总个数。 TotalCount int }
DescribeRSResponse is response schema for DescribeRS action
type DescribeRecycledResourceRequest ¶
type DescribeRecycledResourceRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】资源ID,输入“有效”的ID。调用方式举例:ResourceIDs.0=“one-id”、ResourceIDs.1=“two-id”。 ResourceIDs []string `required:"false"` }
DescribeRecycledResourceRequest is request schema for DescribeRecycledResource action
type DescribeRecycledResourceResponse ¶
type DescribeRecycledResourceResponse struct { response.CommonBase // 【数组】返回资源对象数组 Infos []RecycledResourceInfo // 返回回收站资源的总个数 TotalCount int }
DescribeRecycledResourceResponse is response schema for DescribeRecycledResource action
type DescribeSecurityGroupRequest ¶
type DescribeSecurityGroupRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】安全组的 ID。输入有效的 ID。调用方式举例:SGIDs.0=“one-id”、SGIDs.1=“two-id” SGIDs []string `required:"false"` }
DescribeSecurityGroupRequest is request schema for DescribeSecurityGroup action
type DescribeSecurityGroupResponse ¶
type DescribeSecurityGroupResponse struct { response.CommonBase // 安全组信息列表 Infos []SGInfo // 返回信息描述; Message string // 安全组的总数 TotalCount int }
DescribeSecurityGroupResponse is response schema for DescribeSecurityGroup action
type DescribeStorageTypeRequest ¶
type DescribeStorageTypeRequest struct {
request.CommonBase
}
DescribeStorageTypeRequest is request schema for DescribeStorageType action
type DescribeStorageTypeResponse ¶
type DescribeStorageTypeResponse struct { response.CommonBase // 存储类型的信息列表 Infos []StorageTypeInfo // 返回信息描述; Message string // 存储类型的总数 TotalCount int }
DescribeStorageTypeResponse is response schema for DescribeStorageType action
type DescribeSubnetRequest ¶
type DescribeSubnetRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】子网 ID。调用方式举例:SubnetIDs.0=“one-id”、SubnetIDs.1=“two-id” SubnetIDs []string `required:"false"` // VPCID VPCID *string `required:"false"` }
DescribeSubnetRequest is request schema for DescribeSubnet action
type DescribeSubnetResponse ¶
type DescribeSubnetResponse struct { response.CommonBase // 子网信息列表 Infos []SubnetInfo // 返回信息描述; Message string // 子网的总数 TotalCount int }
DescribeSubnetResponse is response schema for DescribeSubnet action
type DescribeUserRequest ¶
type DescribeUserRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】租户的 ID。输入有效的 ID。调用方式举例:UserIDs.0=123”、UserIDs.1=456 UserIDs []int `required:"false"` }
DescribeUserRequest is request schema for DescribeUser action
type DescribeUserResponse ¶
type DescribeUserResponse struct { response.CommonBase // 【数组】返回租户对象数组 Infos []UserInfo // 返回信息描述 Message string // 返回现有租户总数 TotalCount int }
DescribeUserResponse is response schema for DescribeUser action
type DescribeVMInstanceRequest ¶
type DescribeVMInstanceRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *string `required:"false"` // 子网 ID。输入“有效”状态的子网 ID。 SubnetID *string `required:"false"` // 【数组】虚拟机的 ID。输入有效的 ID。调用方式举例:PrivateIp.0=“one-id”、PrivateIp.1=“two-id”。 VMIDs []string `required:"false"` // VPC ID。输入“有效”状态的VPC ID。 VPCID *string `required:"false"` }
DescribeVMInstanceRequest is request schema for DescribeVMInstance action
type DescribeVMInstanceResponse ¶
type DescribeVMInstanceResponse struct { response.CommonBase // 【数组】返回虚拟机对象数组 Infos []VMInstanceInfo // 返回信息描述 Message string // 返回虚拟机总个数 TotalCount int }
DescribeVMInstanceResponse is response schema for DescribeVMInstance action
type DescribeVMTypeRequest ¶
type DescribeVMTypeRequest struct {
request.CommonBase
}
DescribeVMTypeRequest is request schema for DescribeVMType action
type DescribeVMTypeResponse ¶
type DescribeVMTypeResponse struct { response.CommonBase // 主机机型的信息列表 Infos []VMTypeInfo // 返回信息描述; Message string // 主机机型的总数 TotalCount int }
DescribeVMTypeResponse is response schema for DescribeVMType action
type DescribeVPCRequest ¶
type DescribeVPCRequest struct { request.CommonBase // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】VPC的 ID。调用方式举例:VPCIDs.0=“one-id”、VPCIDs.1=“two-id” VPCIDs []string `required:"false"` }
DescribeVPCRequest is request schema for DescribeVPC action
type DescribeVPCResponse ¶
type DescribeVPCResponse struct { response.CommonBase // VPC信息列表 Infos []VPCInfo // 返回信息描述; Message string // VPC的总数 TotalCount int }
DescribeVPCResponse is response schema for DescribeVPC action
type DescribeVSPolicyRequest ¶
type DescribeVSPolicyRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】七层负载均衡内容转发规则的 ID。调用方式举例:PolicyIDs.0=“one-id”、PolicyIDs.1=“two-id” PolicyIDs []string `required:"false"` // VServerID VSID *string `required:"false"` }
DescribeVSPolicyRequest is request schema for DescribeVSPolicy action
type DescribeVSPolicyResponse ¶
type DescribeVSPolicyResponse struct { response.CommonBase // 【数组】返回内容分转发规则对象数组 Infos []VSPolicyInfo // 返回信息描述。 Message string // 返回内容转发规则的总个数。 TotalCount int }
DescribeVSPolicyResponse is response schema for DescribeVSPolicy action
type DescribeVSRequest ¶
type DescribeVSRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // 返回数据长度,默认为20,最大100。 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。 Offset *int `required:"false"` // 【数组】VServer的 ID。调用方式举例:VSIDs.0=“one-id”、VSIDs.1=“two-id”。 VSIDs []string `required:"false"` }
DescribeVSRequest is request schema for DescribeVS action
type DescribeVSResponse ¶
type DescribeVSResponse struct { response.CommonBase // 【数组】返回VServer对象数组 Infos []VSInfo // 返回信息描述。 Message string // 返回当前负载均衡 VServer 总个数。 TotalCount int }
DescribeVSResponse is response schema for DescribeVS action
type DetachDiskRequest ¶
type DetachDiskRequest struct { request.CommonBase // 硬盘ID DiskID *string `required:"true"` // 绑定的资源ID ResourceID *string `required:"true"` }
DetachDiskRequest is request schema for DetachDisk action
type DetachDiskResponse ¶
type DetachDiskResponse struct { response.CommonBase // 返回信息描述。 Message string }
DetachDiskResponse is response schema for DetachDisk action
type DisableRSRequest ¶
type DisableRSRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // RServer的ID RSID *string `required:"true"` // VServer的ID VSID *string `required:"true"` }
DisableRSRequest is request schema for DisableRS action
type DisableRSResponse ¶
type DisableRSResponse struct { response.CommonBase // 返回信息描述。 Message string }
DisableRSResponse is response schema for DisableRS action
type DiskInfo ¶
type DiskInfo struct { // 绑定资源ID AttachResourceID string // 硬盘计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType string // 创建时间。时间戳 CreateTime int // 硬盘ID DiskID string // 硬盘状态。Creating:创建中,BeingCloned:正在被克隆中,Unbound:已解绑,Unbounding:解绑中,Bounding:绑定中,Bound:已绑定,Upgrading:升级中,Deleting:删除中,Deleted:已删除,Releasing:销毁中,Released:已销毁 DiskStatus string // 过期时间。时间戳 ExpireTime int // 名称 Name string // 地域 Region string // 备注 Remark string // 磁盘类型。例如:Normal,SSD SetType string // 大小。单位GB Size int // 可用区 Zone string }
DiskInfo - 磁盘信息
type EIPInfo ¶
type EIPInfo struct { // 带宽大小 Bandwidth int // 绑定资源ID BindResourceID string // 绑定资源类型 BindResourceType string // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType string // 创建时间。时间戳 CreateTime int // ID EIPID string // 过期时间。时间戳 ExpireTime int // 外网IP IP string // 名称 Name string // 线路 OperatorName string // 地域 Region string // 备注 Remark string // 状态。Allocating:申请中,Free:未绑定,Bounding:绑定中,Bound:已绑定,Unbounding:解绑中,Deleted:已删除,Releasing:销毁中,Released:已销毁,BandwidthChanging:带宽修改中 Status string // 可用区 Zone string }
EIPInfo - 外网IP信息
type EnableRSRequest ¶
type EnableRSRequest struct { request.CommonBase // 负载均衡ID LBID *string `required:"true"` // RServer的ID RSID *string `required:"true"` // VServer的ID VSID *string `required:"true"` }
EnableRSRequest is request schema for EnableRS action
type EnableRSResponse ¶
type EnableRSResponse struct { response.CommonBase // 返回信息描述。 Message string }
EnableRSResponse is response schema for EnableRS action
type GetDiskPriceRequest ¶
type GetDiskPriceRequest struct { request.CommonBase // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 磁盘大小 DiskSpace *int `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 磁盘类型 SetType *string `required:"true"` }
GetDiskPriceRequest is request schema for GetDiskPrice action
type GetDiskPriceResponse ¶
type GetDiskPriceResponse struct { response.CommonBase // 价格信息 Infos []PriceInfo // 返回信息描述。 Message string }
GetDiskPriceResponse is response schema for GetDiskPrice action
type GetEIPPriceRequest ¶
type GetEIPPriceRequest struct { request.CommonBase // 带宽,默认值1,默认范围1~100 Bandwidth *int `required:"true"` // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 线路。目前支持Bgp OpertatorName *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` }
GetEIPPriceRequest is request schema for GetEIPPrice action
type GetEIPPriceResponse ¶
type GetEIPPriceResponse struct { response.CommonBase // 返回的价格信息 Infos []PriceInfo // 返回信息描述 Message string }
GetEIPPriceResponse is response schema for GetEIPPrice action
type GetVMInstancePriceRequest ¶
type GetVMInstancePriceRequest struct { request.CommonBase // 系统盘类型。枚举值:Normal,表示普通;SSD,表示SSD; BootDiskSetType *string `required:"true"` // CPU 个数,目前只能输入数据库配置指定规格参数,如:1核2048M、2核4096M、4核8192M、8核16384M、16核32768M。 CPU *int `required:"true"` // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType *string `required:"true"` // 数据盘类型。枚举值:Normal,表示普通;SSD,表示SSD; DataDiskSetType *string `required:"true"` // 数据盘大小,单位 GB。默认值为0。范围:【0,8000】,步长10。 DataDiskSpace *int `required:"true"` // GPU 卡核心的占用个数。枚举值:【1,2,4】。GPU与CPU、内存大小关系:CPU个数>=4*GPU个数,同时内存与CPU规格匹配. GPU *int `required:"false"` // 镜像 ID。基础镜像 ID 或者自制镜像 ID。如:cn-image-centos-74。 ImageID *string `required:"true"` // 内存大小,单位 M。目前只能输入数据库配置指定规格参数,如:1核2048M、2核4096M、4核8192M、8核16384M、16核32768M。 Memory *int `required:"true"` // 系统类型。 OSType *string `required:"true"` // 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。 Quantity *int `required:"false"` // 机型。枚举值:Normal,表示普通;SSD,表示SSD; VMType *string `required:"true"` }
GetVMInstancePriceRequest is request schema for GetVMInstancePrice action
type GetVMInstancePriceResponse ¶
type GetVMInstancePriceResponse struct { response.CommonBase // 返回的价格信息 Infos []PriceInfo // 返回信息描述。 Message string }
GetVMInstancePriceResponse is response schema for GetVMInstancePrice action
type ImageInfo ¶
type ImageInfo struct { // 创建时间。时间戳。 CreateTime int // 镜像ID ImageID string // 镜像状态。枚举类型:Making(创建中),Available(可用),Unavailable(不可用),Terminating(销毁中),Used(被使用中),Deleting(删除中),Deleted(已删除), Uploading(导入中) ImageStatus string // 镜像类型。枚举类型:Base(基础镜像),Custom(自制镜像)。 ImageType string // 镜像名称 Name string // 镜像系统发行版本。例如:Centos, Ubuntu, Windows等 OSDistribution string // 系统名称。例如:CentOS 7.4 x86_64 OSName string // 系统类型。例如:Linux, Windows,Kylin OSType string // 地域 Region string // 架构名称。例如:x86_64 SetArch string // 可用区 Zone string }
ImageInfo - 镜像信息
type LBInfo ¶
type LBInfo struct { // 告警模板ID AlarmTemplateID string // 虚拟机计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType string // 创建时间,时间戳 CreateTime int // 过期时间,时间戳 ExpireTime int // 负载均衡ID LBID string // 状态。Creating:创建中,Running:运行中,Deleting:删除中,Deleted:已删除 LBStatus string // 负载均衡类型,枚举值,WAN:外网负载均衡,LAN:内网负载均衡。 LBType string // 名称 Name string // 负载均衡的内网 IP 地址,当LB为外网类型时,该值为空。 PrivateIP string // 负载均衡的外网 IP 地址,当LB为内网类型时,该值为空。 PublicIP string // 地域 Region string // 描述 Remark string // 安全组 ID ,当LB为内网类型时,该值为空。 SGID string // 子网ID SubnetID string // VPCID VPCID string // VServer的数量 VSCount int // 可用区 Zone string }
LBInfo - 负载均衡信息
type MetricInfo ¶
type MetricInfo struct { // 监控值信息 Infos []MetricSet // 监控指标。虚拟机的监控指标枚举值为:BlockProcessCount,表示阻塞进程数;CPUUtilization,表示CPU使用率;DiskReadOps,表示磁盘读次数;DiskWriteOps,表示磁盘写次数;IORead,表示磁盘读吞吐;IOWrite,表示磁盘写吞吐;LoadAvg,表示平均负载1分钟;MemUsage,表示内存使用率;NetPacketIn,表示网卡入包量;NetPacketOut,表示网卡出包量;NICIn,表示网卡入带宽;NICOut,表示网卡出带宽;SpaceUsage,表示空间使用率;TCPConnectCount,表示TCP连接数; MetricName string }
MetricInfo - 监控信息
type ModifyEIPBandwidthRequest ¶
type ModifyEIPBandwidthRequest struct { request.CommonBase // 调整后的带宽 Bandwidth *int `required:"true"` // 外网IP的ID EIPID *string `required:"true"` }
ModifyEIPBandwidthRequest is request schema for ModifyEIPBandwidth action
type ModifyEIPBandwidthResponse ¶
type ModifyEIPBandwidthResponse struct { response.CommonBase // 返回信息描述; Message string }
ModifyEIPBandwidthResponse is response schema for ModifyEIPBandwidth action
type ModifyNameAndRemarkRequest ¶
type ModifyNameAndRemarkRequest struct { request.CommonBase // 名称; Name *string `required:"true"` // 描述; Remark *string `required:"false"` // 资源ID; ResourceID *string `required:"true"` }
ModifyNameAndRemarkRequest is request schema for ModifyNameAndRemark action
type ModifyNameAndRemarkResponse ¶
type ModifyNameAndRemarkResponse struct { response.CommonBase // 返回信息描述 Message string }
ModifyNameAndRemarkResponse is response schema for ModifyNameAndRemark action
type NATGWInfo ¶
type NATGWInfo struct { // 告警模板ID AlarmTemplateID string // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType string // 创建时间,时间戳 CreateTime int // 虚拟IP EIP string // 过期时间,时间戳 ExpireTime int // NAT网关ID NATGWID string // 状态。Creating:创建中, Running:运行中, Deleting:删除中, Deleted:已删除 NATGWStatus string // 名称 Name string // 地域 Region string // 备注 Remark string // NAT网关绑定的安全组ID SGID string // NAT网关实例所在的子网 ID SubnetID string // NAT网关实例所在的 VPC ID VPCID string // 可用区 Zone string }
NATGWInfo - NAT网关信息
type NATGWRuleInfo ¶
type NATGWRuleInfo struct { // 绑定的资源ID BindResourceID string // 绑定资源的类型 BindResourceType string // 创建时间,时间戳。 CreateTime int // 白名单资源的内网IP地址 IP string // NAT网关ID NATGWID string // nat网关类型 NATGWType string // 添加的白名单资源名称 Name string // 白名单ID RuleID string // 状态。Bounding:绑定中,Bound:已绑定,Unbounding:解绑中,Unbound:已解绑 RuleStatus string }
NATGWRuleInfo - NAT网关关联的白名单资源信息
type OPLogInfo ¶
type OPLogInfo struct { // 创建时间 CreateTime int // 是否操作成功, Yes, No IsSuccess string // 日志ID OPLogsID string // API OPName string // 操作时间 OPTime int // 错误信息 OpMessage string // Region string // 资源ID ResourceID string // 资源类型 ResourceType int // 状态码 RetCode int // 账号邮箱 UserEmail string // Zone string }
OPLogInfo - 操作日志
type PhysicalIPInfo ¶
type PhysicalIPInfo struct { // 绑定资源ID BindResourceID string // 绑定资源类型 BindResourceType string // 创建时间。时间戳 CreateTime int // 物理IP IP string // 名称 Name string // 线路 OperatorName string // 物理IP的ID PhysicalIPID string // 地域 Region string // 备注 Remark string // 状态。Allocating:申请中,Free:未绑定,Bounding:绑定中,Bound:已绑定,Unbounding:解绑中,Deleted:已删除,Releasing:销毁中,Released:已销毁 Status string // 过期时间。时间戳 UpdateTime int // 可用区 Zone string }
PhysicalIPInfo - 物理IP信息
type PoweroffVMInstanceRequest ¶
type PoweroffVMInstanceRequest struct { request.CommonBase // 虚拟机ID VMID *string `required:"true"` }
PoweroffVMInstanceRequest is request schema for PoweroffVMInstance action
type PoweroffVMInstanceResponse ¶
type PoweroffVMInstanceResponse struct { response.CommonBase // 返回信息描述 Message string }
PoweroffVMInstanceResponse is response schema for PoweroffVMInstance action
type PriceInfo ¶
type PriceInfo struct { // 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType string // 价格 Price float64 }
PriceInfo - 价格信息
type RSInfo ¶
type RSInfo struct { // 绑定的资源ID BindResourceID string // 创建时间,时间戳 CreateTime int // 服务节点的内网 IP 地址 IP string // 服务节点所属的负载均衡 ID LBID string // 服务节点的资源名称 Name string // 服务节点暴露的服务端口号 Port int // 服务节点的 ID RSID string // 节点模式。枚举值,Enabling:开启中,Enable:已启用,Disabling:禁用中,Disable:已禁用 RSMode string // RSStatus 的描述修改为:状态,枚举值,Creating:创建中,Inactive:无效,Active:有效,Updating:更新中,Deleting:删除中,Deleted:已删除。其中有效代表节点服务健康,无效代表节点服务异常。 RSStatus string // 更新时间,时间戳 UpdateTime int // 服务节点所属的 VServer ID VSID string // 服务节点的权重 Weight int }
RSInfo - 转发规则关联的服务节点信息
type RechargeRequest ¶
type RechargeRequest struct { request.CommonBase // 充值金额。最少100,最大500000 Amount *int `required:"true"` // 充值来源。INPOUR_FROM_ALIPAY:支付宝,INPOUR_FROM_OFFLINE:银行转账,INPOUR_FROM_SINPAY:新浪支付,INPOUR_FROM_WECHAT_PAY:微信转账。 FromType *string `required:"true"` // 充值单号。充值方式为“账户余额”时为必要参数。 SerialNo *string `required:"true"` // 租户的账户ID。 UserID *int `required:"true"` }
RechargeRequest is request schema for Recharge action
type RechargeResponse ¶
type RechargeResponse struct { response.CommonBase // 返回信息描述。 Message string }
RechargeResponse is response schema for Recharge action
type RecycledResourceInfo ¶
type RecycledResourceInfo struct { // 创建时间 CreateTime int // 删除时间 DeleteTime int // 描述 Description string // 过期时间 ExpireTime int // 是否自动销户 IsAutoTerminated bool // 名称 Name string // 地域 Region string // 资源ID ResourceID string // 资源类型:VM:虚拟机,Disk:硬盘,EIP:外网IP,PIP:物理IP,MySQL:数据库,Redis:缓存 ResourceType string // 资源状态 Status string // 销毁时间 WillTerminateTime int // 可用区 Zone string }
RecycledResourceInfo - 回收站资源信息
type ReinstallVMInstanceRequest ¶
type ReinstallVMInstanceRequest struct { request.CommonBase // 镜像ID ImageID *string `required:"true"` // 虚拟机ID VMID *string `required:"true"` }
ReinstallVMInstanceRequest is request schema for ReinstallVMInstance action
type ReinstallVMInstanceResponse ¶
type ReinstallVMInstanceResponse struct { response.CommonBase // 返回信息描述 Message string }
ReinstallVMInstanceResponse is response schema for ReinstallVMInstance action
type ReleaseEIPRequest ¶
type ReleaseEIPRequest struct { request.CommonBase // 外网IP的ID EIPID *string `required:"true"` }
ReleaseEIPRequest is request schema for ReleaseEIP action
type ReleaseEIPResponse ¶
type ReleaseEIPResponse struct { response.CommonBase // 返回状态描述 Message string }
ReleaseEIPResponse is response schema for ReleaseEIP action
type RenewResourceRequest ¶
type RenewResourceRequest struct { request.CommonBase // 购买时长,默认为 1。按小时(Dynamic)付费的资源无需此参数,按月付费的资源传 0 时,代表购买至月末。 Quantity *int `required:"false"` // 待续续的资源ID ResourceID *string `required:"true"` }
RenewResourceRequest is request schema for RenewResource action
type RenewResourceResponse ¶
type RenewResourceResponse struct { response.CommonBase // 返回描述信息 Message string }
RenewResourceResponse is response schema for RenewResource action
type ResetVMInstancePasswordRequest ¶
type ResetVMInstancePasswordRequest struct { request.CommonBase // 密码 Password *string `required:"true"` // 虚拟机ID VMID *string `required:"true"` }
ResetVMInstancePasswordRequest is request schema for ResetVMInstancePassword action
type ResetVMInstancePasswordResponse ¶
type ResetVMInstancePasswordResponse struct { response.CommonBase // 返回信息描述 Message string }
ResetVMInstancePasswordResponse is response schema for ResetVMInstancePassword action
type ResizeVMConfigRequest ¶
type ResizeVMConfigRequest struct { request.CommonBase // CPU 个数,如 1、2、4、8、16、32、64。 CPU *int `required:"true"` // 内存容量,如 2048、4096、8192、16384、32768、65536、131072。 Memory *int `required:"true"` // 虚拟机ID VMID *string `required:"true"` }
ResizeVMConfigRequest is request schema for ResizeVMConfig action
type ResizeVMConfigResponse ¶
type ResizeVMConfigResponse struct { response.CommonBase // 返回信息描述 Message string }
ResizeVMConfigResponse is response schema for ResizeVMConfig action
type RestartVMInstanceRequest ¶
type RestartVMInstanceRequest struct { request.CommonBase // 虚拟机ID; VMID *string `required:"true"` }
RestartVMInstanceRequest is request schema for RestartVMInstance action
type RestartVMInstanceResponse ¶
type RestartVMInstanceResponse struct { response.CommonBase // 返回信息描述 Message string }
RestartVMInstanceResponse is response schema for RestartVMInstance action
type RollbackResourceRequest ¶
type RollbackResourceRequest struct { request.CommonBase // 待恢复的资源ID ResourceID *string `required:"true"` }
RollbackResourceRequest is request schema for RollbackResource action
type RollbackResourceResponse ¶
type RollbackResourceResponse struct { response.CommonBase // 返回描述信息 Message string }
RollbackResourceResponse is response schema for RollbackResource action
type RollbackSnapshotRequest ¶
type RollbackSnapshotRequest struct { request.CommonBase // 对应的云硬盘 ID; DiskID *string `required:"true"` // 快照ID SnapshotID *string `required:"true"` }
RollbackSnapshotRequest is request schema for RollbackSnapshot action
type RollbackSnapshotResponse ¶
type RollbackSnapshotResponse struct { response.CommonBase // 返回信息描述 Message string }
RollbackSnapshotResponse is response schema for RollbackSnapshot action
type SGInfo ¶
type SGInfo struct { // 创建时间,时间戳 CreateTime int // 名称 Name string // 地域 Region string // 描述 Remark string // 资源绑定数量 ResourceCount int // 安全组规则。 Rule []SGRuleInfo // 规则数量 RuleCount int // 安全组ID SGID string // 状态。Creating:创建中,Updating:更新中,Available:有效,Deleted:已删除,Terminating:销毁中,Terminated:已销毁 Status string // 更新时间,时间戳 UpdateTime int // 可用区 Zone string }
SGInfo - 安全组信息
type SGRuleInfo ¶
type SGRuleInfo struct { // 端口号 DstPort string // 方向。1:入,0:出 IsIn string // 优先级。HIGH:高,MEDIUM:中,LOW:低 Priority string // 协议 ProtocolType string // 动作。ACCEPT:接受,DROP:拒绝 RuleAction string // 规则ID RuleID string // IP或者掩码/段形式。10.0.0.2,10.0.10.10/16 SrcIP string }
SGRuleInfo - 安全组规则信息
type StartVMInstanceRequest ¶
type StartVMInstanceRequest struct { request.CommonBase // 虚拟机 ID VMID *string `required:"true"` }
StartVMInstanceRequest is request schema for StartVMInstance action
type StartVMInstanceResponse ¶
type StartVMInstanceResponse struct { response.CommonBase // 返回信息描述 Message string }
StartVMInstanceResponse is response schema for StartVMInstance action
type StopVMInstanceRequest ¶
type StopVMInstanceRequest struct { request.CommonBase // 虚拟机 ID VMID *string `required:"true"` }
StopVMInstanceRequest is request schema for StopVMInstance action
type StopVMInstanceResponse ¶
type StopVMInstanceResponse struct { response.CommonBase // 返回信息描述 Message string // 虚拟机 ID VMID string }
StopVMInstanceResponse is response schema for StopVMInstance action
type StorageTypeInfo ¶
type StorageTypeInfo struct { // 地域 Region string // 架构 SetArch string // 存储类型 StorageType string // 存储类型别名 StorageTypeAlias string // 可用区 Zone string }
StorageTypeInfo - 存储类型信息
type SubnetInfo ¶
type SubnetInfo struct { // 创建时间,时间戳 CreateTime int // 名称 Name string // 网段 Network string // 地域 Region string // 描述 Remark string // 状态;Allocating:申请中,Available:有效,Deleting:删除中,Deleted:已删除 State string // ID SubnetID string // 更新时间,时间戳 UpdateTime int // 可用区 Zone string }
SubnetInfo - 子网信息
type TerminateResourceRequest ¶
type TerminateResourceRequest struct { request.CommonBase // 资源id ResourceID *string `required:"true"` }
TerminateResourceRequest is request schema for TerminateResource action
type TerminateResourceResponse ¶
type TerminateResourceResponse struct { response.CommonBase // 返回描述信息 Message string }
TerminateResourceResponse is response schema for TerminateResource action
type UCloudStackClient ¶
UCloudStackClient is the client of UCloudStack
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UCloudStackClient
NewClient will return a instance of UCloudStackClient
func (*UCloudStackClient) AllocateEIP ¶
func (c *UCloudStackClient) AllocateEIP(req *AllocateEIPRequest) (*AllocateEIPResponse, error)
API: AllocateEIP
申请外网IP
func (*UCloudStackClient) AttachDisk ¶
func (c *UCloudStackClient) AttachDisk(req *AttachDiskRequest) (*AttachDiskResponse, error)
API: AttachDisk
绑定硬盘
func (*UCloudStackClient) BindAlarmTemplate ¶
func (c *UCloudStackClient) BindAlarmTemplate(req *BindAlarmTemplateRequest) (*BindAlarmTemplateResponse, error)
API: BindAlarmTemplate
绑定告警模板
func (*UCloudStackClient) BindEIP ¶
func (c *UCloudStackClient) BindEIP(req *BindEIPRequest) (*BindEIPResponse, error)
API: BindEIP
绑定UCoudStack外网IP
func (*UCloudStackClient) BindPhysicalIP ¶
func (c *UCloudStackClient) BindPhysicalIP(req *BindPhysicalIPRequest) (*BindPhysicalIPResponse, error)
API: BindPhysicalIP
绑定物理 IP ,被绑定的资源必须处于运行中或有效状态。
func (*UCloudStackClient) BindSecurityGroup ¶
func (c *UCloudStackClient) BindSecurityGroup(req *BindSecurityGroupRequest) (*BindSecurityGroupResponse, error)
API: BindSecurityGroup
绑定安全组
func (*UCloudStackClient) CloneDisk ¶
func (c *UCloudStackClient) CloneDisk(req *CloneDiskRequest) (*CloneDiskResponse, error)
API: CloneDisk
克隆硬盘
func (*UCloudStackClient) CreateCertificate ¶
func (c *UCloudStackClient) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error)
API: CreateCertificate
创建证书
func (*UCloudStackClient) CreateCustomImage ¶
func (c *UCloudStackClient) CreateCustomImage(req *CreateCustomImageRequest) (*CreateCustomImageResponse, error)
API: CreateCustomImage
创建自制镜像
func (*UCloudStackClient) CreateDisk ¶
func (c *UCloudStackClient) CreateDisk(req *CreateDiskRequest) (*CreateDiskResponse, error)
API: CreateDisk
创建硬盘
func (*UCloudStackClient) CreateLB ¶
func (c *UCloudStackClient) CreateLB(req *CreateLBRequest) (*CreateLBResponse, error)
API: CreateLB
创建负载均衡
func (*UCloudStackClient) CreateNATGW ¶
func (c *UCloudStackClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
API: CreateNATGW
创建NAT网关
func (*UCloudStackClient) CreateNATGWRule ¶
func (c *UCloudStackClient) CreateNATGWRule(req *CreateNATGWRuleRequest) (*CreateNATGWRuleResponse, error)
API: CreateNATGWRule
添加NAT网关白名单
func (*UCloudStackClient) CreatePhysicalIP ¶
func (c *UCloudStackClient) CreatePhysicalIP(req *CreatePhysicalIPRequest) (*CreatePhysicalIPResponse, error)
API: CreatePhysicalIP
创建物理 IP ,需确保平台已配置物理 IP 线路相关信息及物理网络联通性。
func (*UCloudStackClient) CreateRS ¶
func (c *UCloudStackClient) CreateRS(req *CreateRSRequest) (*CreateRSResponse, error)
API: CreateRS
为负载均衡的 VServer 添加后端服务节点。
func (*UCloudStackClient) CreateSecurityGroup ¶
func (c *UCloudStackClient) CreateSecurityGroup(req *CreateSecurityGroupRequest) (*CreateSecurityGroupResponse, error)
API: CreateSecurityGroup
创建安全组
func (*UCloudStackClient) CreateSecurityGroupRule ¶
func (c *UCloudStackClient) CreateSecurityGroupRule(req *CreateSecurityGroupRuleRequest) (*CreateSecurityGroupRuleResponse, error)
API: CreateSecurityGroupRule
创建安全组规则
func (*UCloudStackClient) CreateSnapshot ¶
func (c *UCloudStackClient) CreateSnapshot(req *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
API: CreateSnapshot
创建硬盘快照
func (*UCloudStackClient) CreateSubnet ¶
func (c *UCloudStackClient) CreateSubnet(req *CreateSubnetRequest) (*CreateSubnetResponse, error)
API: CreateSubnet
创建子网
func (*UCloudStackClient) CreateUser ¶
func (c *UCloudStackClient) CreateUser(req *CreateUserRequest) (*CreateUserResponse, error)
API: CreateUser
管理员添加账号
func (*UCloudStackClient) CreateVMInstance ¶
func (c *UCloudStackClient) CreateVMInstance(req *CreateVMInstanceRequest) (*CreateVMInstanceResponse, error)
API: CreateVMInstance
创建虚拟机
func (*UCloudStackClient) CreateVPC ¶
func (c *UCloudStackClient) CreateVPC(req *CreateVPCRequest) (*CreateVPCResponse, error)
API: CreateVPC
创建VPC
func (*UCloudStackClient) CreateVS ¶
func (c *UCloudStackClient) CreateVS(req *CreateVSRequest) (*CreateVSResponse, error)
API: CreateVS
创建负载均衡VServer
func (*UCloudStackClient) CreateVSPolicy ¶
func (c *UCloudStackClient) CreateVSPolicy(req *CreateVSPolicyRequest) (*CreateVSPolicyResponse, error)
API: CreateVSPolicy
创建七层负载均衡内容转发规则,仅当 VServer 的监听协议为 HTTP 时有效。
func (*UCloudStackClient) DeleteCertificate ¶
func (c *UCloudStackClient) DeleteCertificate(req *DeleteCertificateRequest) (*DeleteCertificateResponse, error)
API: DeleteCertificate
删除证书
func (*UCloudStackClient) DeleteCustomImage ¶
func (c *UCloudStackClient) DeleteCustomImage(req *DeleteCustomImageRequest) (*DeleteCustomImageResponse, error)
API: DeleteCustomImage
删除自制镜像
func (*UCloudStackClient) DeleteDisk ¶
func (c *UCloudStackClient) DeleteDisk(req *DeleteDiskRequest) (*DeleteDiskResponse, error)
API: DeleteDisk
删除硬盘
func (*UCloudStackClient) DeleteLB ¶
func (c *UCloudStackClient) DeleteLB(req *DeleteLBRequest) (*DeleteLBResponse, error)
API: DeleteLB
删除负载均衡
func (*UCloudStackClient) DeleteNATGW ¶
func (c *UCloudStackClient) DeleteNATGW(req *DeleteNATGWRequest) (*DeleteNATGWResponse, error)
API: DeleteNATGW
删除NAT网关
func (*UCloudStackClient) DeleteNATGWRule ¶
func (c *UCloudStackClient) DeleteNATGWRule(req *DeleteNATGWRuleRequest) (*DeleteNATGWRuleResponse, error)
API: DeleteNATGWRule
删除NAT网关白名单
func (*UCloudStackClient) DeletePhysicalIP ¶
func (c *UCloudStackClient) DeletePhysicalIP(req *DeletePhysicalIPRequest) (*DeletePhysicalIPResponse, error)
API: DeletePhysicalIP
删除物理IP
func (*UCloudStackClient) DeleteRS ¶
func (c *UCloudStackClient) DeleteRS(req *DeleteRSRequest) (*DeleteRSResponse, error)
API: DeleteRS
移除负载均衡的单个服务节点
func (*UCloudStackClient) DeleteSecurityGroup ¶
func (c *UCloudStackClient) DeleteSecurityGroup(req *DeleteSecurityGroupRequest) (*DeleteSecurityGroupResponse, error)
API: DeleteSecurityGroup
删除安全组
func (*UCloudStackClient) DeleteSecurityGroupRule ¶
func (c *UCloudStackClient) DeleteSecurityGroupRule(req *DeleteSecurityGroupRuleRequest) (*DeleteSecurityGroupRuleResponse, error)
API: DeleteSecurityGroupRule
删除安全组规则
func (*UCloudStackClient) DeleteSnapshot ¶
func (c *UCloudStackClient) DeleteSnapshot(req *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error)
API: DeleteSnapshot
删除快照,仅支持状态为正常的快照进行删除操作。
func (*UCloudStackClient) DeleteSubnet ¶
func (c *UCloudStackClient) DeleteSubnet(req *DeleteSubnetRequest) (*DeleteSubnetResponse, error)
API: DeleteSubnet
删除子网
func (*UCloudStackClient) DeleteVMInstance ¶
func (c *UCloudStackClient) DeleteVMInstance(req *DeleteVMInstanceRequest) (*DeleteVMInstanceResponse, error)
API: DeleteVMInstance
删除虚拟机
func (*UCloudStackClient) DeleteVPC ¶
func (c *UCloudStackClient) DeleteVPC(req *DeleteVPCRequest) (*DeleteVPCResponse, error)
API: DeleteVPC
删除VPC
func (*UCloudStackClient) DeleteVS ¶
func (c *UCloudStackClient) DeleteVS(req *DeleteVSRequest) (*DeleteVSResponse, error)
API: DeleteVS
删除VServer
func (*UCloudStackClient) DeleteVSPolicy ¶
func (c *UCloudStackClient) DeleteVSPolicy(req *DeleteVSPolicyRequest) (*DeleteVSPolicyResponse, error)
API: DeleteVSPolicy
删除七层负载均衡内容转发规则,仅当 VServer 的监听协议为 HTTP 时有效。
func (*UCloudStackClient) DescribeCertificate ¶
func (c *UCloudStackClient) DescribeCertificate(req *DescribeCertificateRequest) (*DescribeCertificateResponse, error)
API: DescribeCertificate
查询证书
func (*UCloudStackClient) DescribeDisk ¶
func (c *UCloudStackClient) DescribeDisk(req *DescribeDiskRequest) (*DescribeDiskResponse, error)
API: DescribeDisk
获取硬盘信息
func (*UCloudStackClient) DescribeEIP ¶
func (c *UCloudStackClient) DescribeEIP(req *DescribeEIPRequest) (*DescribeEIPResponse, error)
API: DescribeEIP
获取外网IP的信息
func (*UCloudStackClient) DescribeImage ¶
func (c *UCloudStackClient) DescribeImage(req *DescribeImageRequest) (*DescribeImageResponse, error)
API: DescribeImage
获取镜像信息,包括默认镜像和自制镜像。
func (*UCloudStackClient) DescribeLB ¶
func (c *UCloudStackClient) DescribeLB(req *DescribeLBRequest) (*DescribeLBResponse, error)
API: DescribeLB
获取负载均衡信息
func (*UCloudStackClient) DescribeMetric ¶
func (c *UCloudStackClient) DescribeMetric(req *DescribeMetricRequest) (*DescribeMetricResponse, error)
API: DescribeMetric
获取资源监控信息
func (*UCloudStackClient) DescribeNATGW ¶
func (c *UCloudStackClient) DescribeNATGW(req *DescribeNATGWRequest) (*DescribeNATGWResponse, error)
API: DescribeNATGW
获取NAT网关信息
func (*UCloudStackClient) DescribeNATGWRule ¶
func (c *UCloudStackClient) DescribeNATGWRule(req *DescribeNATGWRuleRequest) (*DescribeNATGWRuleResponse, error)
API: DescribeNATGWRule
获取NAT网关白名单信息
func (*UCloudStackClient) DescribeOPLogs ¶
func (c *UCloudStackClient) DescribeOPLogs(req *DescribeOPLogsRequest) (*DescribeOPLogsResponse, error)
API: DescribeOPLogs
查询操作日志
func (*UCloudStackClient) DescribePhysicalIP ¶
func (c *UCloudStackClient) DescribePhysicalIP(req *DescribePhysicalIPRequest) (*DescribePhysicalIPResponse, error)
API: DescribePhysicalIP
获取物理IP信息
func (*UCloudStackClient) DescribeRS ¶
func (c *UCloudStackClient) DescribeRS(req *DescribeRSRequest) (*DescribeRSResponse, error)
API: DescribeRS
获取负载均衡服务的服务节点信息
func (*UCloudStackClient) DescribeRecycledResource ¶
func (c *UCloudStackClient) DescribeRecycledResource(req *DescribeRecycledResourceRequest) (*DescribeRecycledResourceResponse, error)
API: DescribeRecycledResource
查询回收站资源
func (*UCloudStackClient) DescribeSecurityGroup ¶
func (c *UCloudStackClient) DescribeSecurityGroup(req *DescribeSecurityGroupRequest) (*DescribeSecurityGroupResponse, error)
API: DescribeSecurityGroup
查询安全组信息
func (*UCloudStackClient) DescribeStorageType ¶
func (c *UCloudStackClient) DescribeStorageType(req *DescribeStorageTypeRequest) (*DescribeStorageTypeResponse, error)
API: DescribeStorageType
查询存储类型
func (*UCloudStackClient) DescribeSubnet ¶
func (c *UCloudStackClient) DescribeSubnet(req *DescribeSubnetRequest) (*DescribeSubnetResponse, error)
API: DescribeSubnet
查询子网信息
func (*UCloudStackClient) DescribeUser ¶
func (c *UCloudStackClient) DescribeUser(req *DescribeUserRequest) (*DescribeUserResponse, error)
API: DescribeUser
查询租户信息
func (*UCloudStackClient) DescribeVMInstance ¶
func (c *UCloudStackClient) DescribeVMInstance(req *DescribeVMInstanceRequest) (*DescribeVMInstanceResponse, error)
API: DescribeVMInstance
查询虚拟机
func (*UCloudStackClient) DescribeVMType ¶
func (c *UCloudStackClient) DescribeVMType(req *DescribeVMTypeRequest) (*DescribeVMTypeResponse, error)
API: DescribeVMType
查询主机机型
func (*UCloudStackClient) DescribeVPC ¶
func (c *UCloudStackClient) DescribeVPC(req *DescribeVPCRequest) (*DescribeVPCResponse, error)
API: DescribeVPC
查询VPC信息
func (*UCloudStackClient) DescribeVS ¶
func (c *UCloudStackClient) DescribeVS(req *DescribeVSRequest) (*DescribeVSResponse, error)
API: DescribeVS
获取负载均衡 VServer 信息
func (*UCloudStackClient) DescribeVSPolicy ¶
func (c *UCloudStackClient) DescribeVSPolicy(req *DescribeVSPolicyRequest) (*DescribeVSPolicyResponse, error)
API: DescribeVSPolicy
获取七层负载均衡内容转发规则信息,仅当 VServer 的监听协议为 HTTP 时有效。
func (*UCloudStackClient) DetachDisk ¶
func (c *UCloudStackClient) DetachDisk(req *DetachDiskRequest) (*DetachDiskResponse, error)
API: DetachDisk
解绑UClouStack硬盘
func (*UCloudStackClient) DisableRS ¶
func (c *UCloudStackClient) DisableRS(req *DisableRSRequest) (*DisableRSResponse, error)
API: DisableRS
禁用负载均衡的单个服务节点
func (*UCloudStackClient) EnableRS ¶
func (c *UCloudStackClient) EnableRS(req *EnableRSRequest) (*EnableRSResponse, error)
API: EnableRS
启用负载均衡的单个服务节点
func (*UCloudStackClient) GetDiskPrice ¶
func (c *UCloudStackClient) GetDiskPrice(req *GetDiskPriceRequest) (*GetDiskPriceResponse, error)
API: GetDiskPrice
获取硬盘价格
func (*UCloudStackClient) GetEIPPrice ¶
func (c *UCloudStackClient) GetEIPPrice(req *GetEIPPriceRequest) (*GetEIPPriceResponse, error)
API: GetEIPPrice
获取外网IP价格
func (*UCloudStackClient) GetVMInstancePrice ¶
func (c *UCloudStackClient) GetVMInstancePrice(req *GetVMInstancePriceRequest) (*GetVMInstancePriceResponse, error)
API: GetVMInstancePrice
获取虚拟机价格
func (*UCloudStackClient) ModifyEIPBandwidth ¶
func (c *UCloudStackClient) ModifyEIPBandwidth(req *ModifyEIPBandwidthRequest) (*ModifyEIPBandwidthResponse, error)
API: ModifyEIPBandwidth
调整外网IP带宽
func (*UCloudStackClient) ModifyNameAndRemark ¶
func (c *UCloudStackClient) ModifyNameAndRemark(req *ModifyNameAndRemarkRequest) (*ModifyNameAndRemarkResponse, error)
API: ModifyNameAndRemark
修改资源名称和备注
func (*UCloudStackClient) NewAllocateEIPRequest ¶
func (c *UCloudStackClient) NewAllocateEIPRequest() *AllocateEIPRequest
NewAllocateEIPRequest will create request of AllocateEIP action.
func (*UCloudStackClient) NewAttachDiskRequest ¶
func (c *UCloudStackClient) NewAttachDiskRequest() *AttachDiskRequest
NewAttachDiskRequest will create request of AttachDisk action.
func (*UCloudStackClient) NewBindAlarmTemplateRequest ¶
func (c *UCloudStackClient) NewBindAlarmTemplateRequest() *BindAlarmTemplateRequest
NewBindAlarmTemplateRequest will create request of BindAlarmTemplate action.
func (*UCloudStackClient) NewBindEIPRequest ¶
func (c *UCloudStackClient) NewBindEIPRequest() *BindEIPRequest
NewBindEIPRequest will create request of BindEIP action.
func (*UCloudStackClient) NewBindPhysicalIPRequest ¶
func (c *UCloudStackClient) NewBindPhysicalIPRequest() *BindPhysicalIPRequest
NewBindPhysicalIPRequest will create request of BindPhysicalIP action.
func (*UCloudStackClient) NewBindSecurityGroupRequest ¶
func (c *UCloudStackClient) NewBindSecurityGroupRequest() *BindSecurityGroupRequest
NewBindSecurityGroupRequest will create request of BindSecurityGroup action.
func (*UCloudStackClient) NewCloneDiskRequest ¶
func (c *UCloudStackClient) NewCloneDiskRequest() *CloneDiskRequest
NewCloneDiskRequest will create request of CloneDisk action.
func (*UCloudStackClient) NewCreateCertificateRequest ¶
func (c *UCloudStackClient) NewCreateCertificateRequest() *CreateCertificateRequest
NewCreateCertificateRequest will create request of CreateCertificate action.
func (*UCloudStackClient) NewCreateCustomImageRequest ¶
func (c *UCloudStackClient) NewCreateCustomImageRequest() *CreateCustomImageRequest
NewCreateCustomImageRequest will create request of CreateCustomImage action.
func (*UCloudStackClient) NewCreateDiskRequest ¶
func (c *UCloudStackClient) NewCreateDiskRequest() *CreateDiskRequest
NewCreateDiskRequest will create request of CreateDisk action.
func (*UCloudStackClient) NewCreateLBRequest ¶
func (c *UCloudStackClient) NewCreateLBRequest() *CreateLBRequest
NewCreateLBRequest will create request of CreateLB action.
func (*UCloudStackClient) NewCreateNATGWRequest ¶
func (c *UCloudStackClient) NewCreateNATGWRequest() *CreateNATGWRequest
NewCreateNATGWRequest will create request of CreateNATGW action.
func (*UCloudStackClient) NewCreateNATGWRuleRequest ¶
func (c *UCloudStackClient) NewCreateNATGWRuleRequest() *CreateNATGWRuleRequest
NewCreateNATGWRuleRequest will create request of CreateNATGWRule action.
func (*UCloudStackClient) NewCreatePhysicalIPRequest ¶
func (c *UCloudStackClient) NewCreatePhysicalIPRequest() *CreatePhysicalIPRequest
NewCreatePhysicalIPRequest will create request of CreatePhysicalIP action.
func (*UCloudStackClient) NewCreateRSRequest ¶
func (c *UCloudStackClient) NewCreateRSRequest() *CreateRSRequest
NewCreateRSRequest will create request of CreateRS action.
func (*UCloudStackClient) NewCreateSecurityGroupRequest ¶
func (c *UCloudStackClient) NewCreateSecurityGroupRequest() *CreateSecurityGroupRequest
NewCreateSecurityGroupRequest will create request of CreateSecurityGroup action.
func (*UCloudStackClient) NewCreateSecurityGroupRuleRequest ¶
func (c *UCloudStackClient) NewCreateSecurityGroupRuleRequest() *CreateSecurityGroupRuleRequest
NewCreateSecurityGroupRuleRequest will create request of CreateSecurityGroupRule action.
func (*UCloudStackClient) NewCreateSnapshotRequest ¶
func (c *UCloudStackClient) NewCreateSnapshotRequest() *CreateSnapshotRequest
NewCreateSnapshotRequest will create request of CreateSnapshot action.
func (*UCloudStackClient) NewCreateSubnetRequest ¶
func (c *UCloudStackClient) NewCreateSubnetRequest() *CreateSubnetRequest
NewCreateSubnetRequest will create request of CreateSubnet action.
func (*UCloudStackClient) NewCreateUserRequest ¶
func (c *UCloudStackClient) NewCreateUserRequest() *CreateUserRequest
NewCreateUserRequest will create request of CreateUser action.
func (*UCloudStackClient) NewCreateVMInstanceRequest ¶
func (c *UCloudStackClient) NewCreateVMInstanceRequest() *CreateVMInstanceRequest
NewCreateVMInstanceRequest will create request of CreateVMInstance action.
func (*UCloudStackClient) NewCreateVPCRequest ¶
func (c *UCloudStackClient) NewCreateVPCRequest() *CreateVPCRequest
NewCreateVPCRequest will create request of CreateVPC action.
func (*UCloudStackClient) NewCreateVSPolicyRequest ¶
func (c *UCloudStackClient) NewCreateVSPolicyRequest() *CreateVSPolicyRequest
NewCreateVSPolicyRequest will create request of CreateVSPolicy action.
func (*UCloudStackClient) NewCreateVSRequest ¶
func (c *UCloudStackClient) NewCreateVSRequest() *CreateVSRequest
NewCreateVSRequest will create request of CreateVS action.
func (*UCloudStackClient) NewDeleteCertificateRequest ¶
func (c *UCloudStackClient) NewDeleteCertificateRequest() *DeleteCertificateRequest
NewDeleteCertificateRequest will create request of DeleteCertificate action.
func (*UCloudStackClient) NewDeleteCustomImageRequest ¶
func (c *UCloudStackClient) NewDeleteCustomImageRequest() *DeleteCustomImageRequest
NewDeleteCustomImageRequest will create request of DeleteCustomImage action.
func (*UCloudStackClient) NewDeleteDiskRequest ¶
func (c *UCloudStackClient) NewDeleteDiskRequest() *DeleteDiskRequest
NewDeleteDiskRequest will create request of DeleteDisk action.
func (*UCloudStackClient) NewDeleteLBRequest ¶
func (c *UCloudStackClient) NewDeleteLBRequest() *DeleteLBRequest
NewDeleteLBRequest will create request of DeleteLB action.
func (*UCloudStackClient) NewDeleteNATGWRequest ¶
func (c *UCloudStackClient) NewDeleteNATGWRequest() *DeleteNATGWRequest
NewDeleteNATGWRequest will create request of DeleteNATGW action.
func (*UCloudStackClient) NewDeleteNATGWRuleRequest ¶
func (c *UCloudStackClient) NewDeleteNATGWRuleRequest() *DeleteNATGWRuleRequest
NewDeleteNATGWRuleRequest will create request of DeleteNATGWRule action.
func (*UCloudStackClient) NewDeletePhysicalIPRequest ¶
func (c *UCloudStackClient) NewDeletePhysicalIPRequest() *DeletePhysicalIPRequest
NewDeletePhysicalIPRequest will create request of DeletePhysicalIP action.
func (*UCloudStackClient) NewDeleteRSRequest ¶
func (c *UCloudStackClient) NewDeleteRSRequest() *DeleteRSRequest
NewDeleteRSRequest will create request of DeleteRS action.
func (*UCloudStackClient) NewDeleteSecurityGroupRequest ¶
func (c *UCloudStackClient) NewDeleteSecurityGroupRequest() *DeleteSecurityGroupRequest
NewDeleteSecurityGroupRequest will create request of DeleteSecurityGroup action.
func (*UCloudStackClient) NewDeleteSecurityGroupRuleRequest ¶
func (c *UCloudStackClient) NewDeleteSecurityGroupRuleRequest() *DeleteSecurityGroupRuleRequest
NewDeleteSecurityGroupRuleRequest will create request of DeleteSecurityGroupRule action.
func (*UCloudStackClient) NewDeleteSnapshotRequest ¶
func (c *UCloudStackClient) NewDeleteSnapshotRequest() *DeleteSnapshotRequest
NewDeleteSnapshotRequest will create request of DeleteSnapshot action.
func (*UCloudStackClient) NewDeleteSubnetRequest ¶
func (c *UCloudStackClient) NewDeleteSubnetRequest() *DeleteSubnetRequest
NewDeleteSubnetRequest will create request of DeleteSubnet action.
func (*UCloudStackClient) NewDeleteVMInstanceRequest ¶
func (c *UCloudStackClient) NewDeleteVMInstanceRequest() *DeleteVMInstanceRequest
NewDeleteVMInstanceRequest will create request of DeleteVMInstance action.
func (*UCloudStackClient) NewDeleteVPCRequest ¶
func (c *UCloudStackClient) NewDeleteVPCRequest() *DeleteVPCRequest
NewDeleteVPCRequest will create request of DeleteVPC action.
func (*UCloudStackClient) NewDeleteVSPolicyRequest ¶
func (c *UCloudStackClient) NewDeleteVSPolicyRequest() *DeleteVSPolicyRequest
NewDeleteVSPolicyRequest will create request of DeleteVSPolicy action.
func (*UCloudStackClient) NewDeleteVSRequest ¶
func (c *UCloudStackClient) NewDeleteVSRequest() *DeleteVSRequest
NewDeleteVSRequest will create request of DeleteVS action.
func (*UCloudStackClient) NewDescribeCertificateRequest ¶
func (c *UCloudStackClient) NewDescribeCertificateRequest() *DescribeCertificateRequest
NewDescribeCertificateRequest will create request of DescribeCertificate action.
func (*UCloudStackClient) NewDescribeDiskRequest ¶
func (c *UCloudStackClient) NewDescribeDiskRequest() *DescribeDiskRequest
NewDescribeDiskRequest will create request of DescribeDisk action.
func (*UCloudStackClient) NewDescribeEIPRequest ¶
func (c *UCloudStackClient) NewDescribeEIPRequest() *DescribeEIPRequest
NewDescribeEIPRequest will create request of DescribeEIP action.
func (*UCloudStackClient) NewDescribeImageRequest ¶
func (c *UCloudStackClient) NewDescribeImageRequest() *DescribeImageRequest
NewDescribeImageRequest will create request of DescribeImage action.
func (*UCloudStackClient) NewDescribeLBRequest ¶
func (c *UCloudStackClient) NewDescribeLBRequest() *DescribeLBRequest
NewDescribeLBRequest will create request of DescribeLB action.
func (*UCloudStackClient) NewDescribeMetricRequest ¶
func (c *UCloudStackClient) NewDescribeMetricRequest() *DescribeMetricRequest
NewDescribeMetricRequest will create request of DescribeMetric action.
func (*UCloudStackClient) NewDescribeNATGWRequest ¶
func (c *UCloudStackClient) NewDescribeNATGWRequest() *DescribeNATGWRequest
NewDescribeNATGWRequest will create request of DescribeNATGW action.
func (*UCloudStackClient) NewDescribeNATGWRuleRequest ¶
func (c *UCloudStackClient) NewDescribeNATGWRuleRequest() *DescribeNATGWRuleRequest
NewDescribeNATGWRuleRequest will create request of DescribeNATGWRule action.
func (*UCloudStackClient) NewDescribeOPLogsRequest ¶
func (c *UCloudStackClient) NewDescribeOPLogsRequest() *DescribeOPLogsRequest
NewDescribeOPLogsRequest will create request of DescribeOPLogs action.
func (*UCloudStackClient) NewDescribePhysicalIPRequest ¶
func (c *UCloudStackClient) NewDescribePhysicalIPRequest() *DescribePhysicalIPRequest
NewDescribePhysicalIPRequest will create request of DescribePhysicalIP action.
func (*UCloudStackClient) NewDescribeRSRequest ¶
func (c *UCloudStackClient) NewDescribeRSRequest() *DescribeRSRequest
NewDescribeRSRequest will create request of DescribeRS action.
func (*UCloudStackClient) NewDescribeRecycledResourceRequest ¶
func (c *UCloudStackClient) NewDescribeRecycledResourceRequest() *DescribeRecycledResourceRequest
NewDescribeRecycledResourceRequest will create request of DescribeRecycledResource action.
func (*UCloudStackClient) NewDescribeSecurityGroupRequest ¶
func (c *UCloudStackClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest
NewDescribeSecurityGroupRequest will create request of DescribeSecurityGroup action.
func (*UCloudStackClient) NewDescribeStorageTypeRequest ¶
func (c *UCloudStackClient) NewDescribeStorageTypeRequest() *DescribeStorageTypeRequest
NewDescribeStorageTypeRequest will create request of DescribeStorageType action.
func (*UCloudStackClient) NewDescribeSubnetRequest ¶
func (c *UCloudStackClient) NewDescribeSubnetRequest() *DescribeSubnetRequest
NewDescribeSubnetRequest will create request of DescribeSubnet action.
func (*UCloudStackClient) NewDescribeUserRequest ¶
func (c *UCloudStackClient) NewDescribeUserRequest() *DescribeUserRequest
NewDescribeUserRequest will create request of DescribeUser action.
func (*UCloudStackClient) NewDescribeVMInstanceRequest ¶
func (c *UCloudStackClient) NewDescribeVMInstanceRequest() *DescribeVMInstanceRequest
NewDescribeVMInstanceRequest will create request of DescribeVMInstance action.
func (*UCloudStackClient) NewDescribeVMTypeRequest ¶
func (c *UCloudStackClient) NewDescribeVMTypeRequest() *DescribeVMTypeRequest
NewDescribeVMTypeRequest will create request of DescribeVMType action.
func (*UCloudStackClient) NewDescribeVPCRequest ¶
func (c *UCloudStackClient) NewDescribeVPCRequest() *DescribeVPCRequest
NewDescribeVPCRequest will create request of DescribeVPC action.
func (*UCloudStackClient) NewDescribeVSPolicyRequest ¶
func (c *UCloudStackClient) NewDescribeVSPolicyRequest() *DescribeVSPolicyRequest
NewDescribeVSPolicyRequest will create request of DescribeVSPolicy action.
func (*UCloudStackClient) NewDescribeVSRequest ¶
func (c *UCloudStackClient) NewDescribeVSRequest() *DescribeVSRequest
NewDescribeVSRequest will create request of DescribeVS action.
func (*UCloudStackClient) NewDetachDiskRequest ¶
func (c *UCloudStackClient) NewDetachDiskRequest() *DetachDiskRequest
NewDetachDiskRequest will create request of DetachDisk action.
func (*UCloudStackClient) NewDisableRSRequest ¶
func (c *UCloudStackClient) NewDisableRSRequest() *DisableRSRequest
NewDisableRSRequest will create request of DisableRS action.
func (*UCloudStackClient) NewEnableRSRequest ¶
func (c *UCloudStackClient) NewEnableRSRequest() *EnableRSRequest
NewEnableRSRequest will create request of EnableRS action.
func (*UCloudStackClient) NewGetDiskPriceRequest ¶
func (c *UCloudStackClient) NewGetDiskPriceRequest() *GetDiskPriceRequest
NewGetDiskPriceRequest will create request of GetDiskPrice action.
func (*UCloudStackClient) NewGetEIPPriceRequest ¶
func (c *UCloudStackClient) NewGetEIPPriceRequest() *GetEIPPriceRequest
NewGetEIPPriceRequest will create request of GetEIPPrice action.
func (*UCloudStackClient) NewGetVMInstancePriceRequest ¶
func (c *UCloudStackClient) NewGetVMInstancePriceRequest() *GetVMInstancePriceRequest
NewGetVMInstancePriceRequest will create request of GetVMInstancePrice action.
func (*UCloudStackClient) NewModifyEIPBandwidthRequest ¶
func (c *UCloudStackClient) NewModifyEIPBandwidthRequest() *ModifyEIPBandwidthRequest
NewModifyEIPBandwidthRequest will create request of ModifyEIPBandwidth action.
func (*UCloudStackClient) NewModifyNameAndRemarkRequest ¶
func (c *UCloudStackClient) NewModifyNameAndRemarkRequest() *ModifyNameAndRemarkRequest
NewModifyNameAndRemarkRequest will create request of ModifyNameAndRemark action.
func (*UCloudStackClient) NewPoweroffVMInstanceRequest ¶
func (c *UCloudStackClient) NewPoweroffVMInstanceRequest() *PoweroffVMInstanceRequest
NewPoweroffVMInstanceRequest will create request of PoweroffVMInstance action.
func (*UCloudStackClient) NewRechargeRequest ¶
func (c *UCloudStackClient) NewRechargeRequest() *RechargeRequest
NewRechargeRequest will create request of Recharge action.
func (*UCloudStackClient) NewReinstallVMInstanceRequest ¶
func (c *UCloudStackClient) NewReinstallVMInstanceRequest() *ReinstallVMInstanceRequest
NewReinstallVMInstanceRequest will create request of ReinstallVMInstance action.
func (*UCloudStackClient) NewReleaseEIPRequest ¶
func (c *UCloudStackClient) NewReleaseEIPRequest() *ReleaseEIPRequest
NewReleaseEIPRequest will create request of ReleaseEIP action.
func (*UCloudStackClient) NewRenewResourceRequest ¶
func (c *UCloudStackClient) NewRenewResourceRequest() *RenewResourceRequest
NewRenewResourceRequest will create request of RenewResource action.
func (*UCloudStackClient) NewResetVMInstancePasswordRequest ¶
func (c *UCloudStackClient) NewResetVMInstancePasswordRequest() *ResetVMInstancePasswordRequest
NewResetVMInstancePasswordRequest will create request of ResetVMInstancePassword action.
func (*UCloudStackClient) NewResizeVMConfigRequest ¶
func (c *UCloudStackClient) NewResizeVMConfigRequest() *ResizeVMConfigRequest
NewResizeVMConfigRequest will create request of ResizeVMConfig action.
func (*UCloudStackClient) NewRestartVMInstanceRequest ¶
func (c *UCloudStackClient) NewRestartVMInstanceRequest() *RestartVMInstanceRequest
NewRestartVMInstanceRequest will create request of RestartVMInstance action.
func (*UCloudStackClient) NewRollbackResourceRequest ¶
func (c *UCloudStackClient) NewRollbackResourceRequest() *RollbackResourceRequest
NewRollbackResourceRequest will create request of RollbackResource action.
func (*UCloudStackClient) NewRollbackSnapshotRequest ¶
func (c *UCloudStackClient) NewRollbackSnapshotRequest() *RollbackSnapshotRequest
NewRollbackSnapshotRequest will create request of RollbackSnapshot action.
func (*UCloudStackClient) NewStartVMInstanceRequest ¶
func (c *UCloudStackClient) NewStartVMInstanceRequest() *StartVMInstanceRequest
NewStartVMInstanceRequest will create request of StartVMInstance action.
func (*UCloudStackClient) NewStopVMInstanceRequest ¶
func (c *UCloudStackClient) NewStopVMInstanceRequest() *StopVMInstanceRequest
NewStopVMInstanceRequest will create request of StopVMInstance action.
func (*UCloudStackClient) NewTerminateResourceRequest ¶
func (c *UCloudStackClient) NewTerminateResourceRequest() *TerminateResourceRequest
NewTerminateResourceRequest will create request of TerminateResource action.
func (*UCloudStackClient) NewUnBindEIPRequest ¶
func (c *UCloudStackClient) NewUnBindEIPRequest() *UnBindEIPRequest
NewUnBindEIPRequest will create request of UnBindEIP action.
func (*UCloudStackClient) NewUnBindSecurityGroupRequest ¶
func (c *UCloudStackClient) NewUnBindSecurityGroupRequest() *UnBindSecurityGroupRequest
NewUnBindSecurityGroupRequest will create request of UnBindSecurityGroup action.
func (*UCloudStackClient) NewUnbindAlarmTemplateRequest ¶
func (c *UCloudStackClient) NewUnbindAlarmTemplateRequest() *UnbindAlarmTemplateRequest
NewUnbindAlarmTemplateRequest will create request of UnbindAlarmTemplate action.
func (*UCloudStackClient) NewUnbindPhysicalIPRequest ¶
func (c *UCloudStackClient) NewUnbindPhysicalIPRequest() *UnbindPhysicalIPRequest
NewUnbindPhysicalIPRequest will create request of UnbindPhysicalIP action.
func (*UCloudStackClient) NewUpdateAlarmTemplateRuleRequest ¶
func (c *UCloudStackClient) NewUpdateAlarmTemplateRuleRequest() *UpdateAlarmTemplateRuleRequest
NewUpdateAlarmTemplateRuleRequest will create request of UpdateAlarmTemplateRule action.
func (*UCloudStackClient) NewUpdateRSRequest ¶
func (c *UCloudStackClient) NewUpdateRSRequest() *UpdateRSRequest
NewUpdateRSRequest will create request of UpdateRS action.
func (*UCloudStackClient) NewUpdateSecurityGroupRuleRequest ¶
func (c *UCloudStackClient) NewUpdateSecurityGroupRuleRequest() *UpdateSecurityGroupRuleRequest
NewUpdateSecurityGroupRuleRequest will create request of UpdateSecurityGroupRule action.
func (*UCloudStackClient) NewUpdateVSPolicyRequest ¶
func (c *UCloudStackClient) NewUpdateVSPolicyRequest() *UpdateVSPolicyRequest
NewUpdateVSPolicyRequest will create request of UpdateVSPolicy action.
func (*UCloudStackClient) NewUpdateVSRequest ¶
func (c *UCloudStackClient) NewUpdateVSRequest() *UpdateVSRequest
NewUpdateVSRequest will create request of UpdateVS action.
func (*UCloudStackClient) NewUpgradeDiskRequest ¶
func (c *UCloudStackClient) NewUpgradeDiskRequest() *UpgradeDiskRequest
NewUpgradeDiskRequest will create request of UpgradeDisk action.
func (*UCloudStackClient) PoweroffVMInstance ¶
func (c *UCloudStackClient) PoweroffVMInstance(req *PoweroffVMInstanceRequest) (*PoweroffVMInstanceResponse, error)
API: PoweroffVMInstance
断电虚拟机,可能导致丢失数据甚至损坏操作系统,仅适用于虚拟机死机及级端测试场景。
func (*UCloudStackClient) Recharge ¶
func (c *UCloudStackClient) Recharge(req *RechargeRequest) (*RechargeResponse, error)
API: Recharge
管理员给租户充值
func (*UCloudStackClient) ReinstallVMInstance ¶
func (c *UCloudStackClient) ReinstallVMInstance(req *ReinstallVMInstanceRequest) (*ReinstallVMInstanceResponse, error)
API: ReinstallVMInstance
重装系统,关机的虚拟机才可以重装系统
func (*UCloudStackClient) ReleaseEIP ¶
func (c *UCloudStackClient) ReleaseEIP(req *ReleaseEIPRequest) (*ReleaseEIPResponse, error)
API: ReleaseEIP
删除外网IP
func (*UCloudStackClient) RenewResource ¶
func (c *UCloudStackClient) RenewResource(req *RenewResourceRequest) (*RenewResourceResponse, error)
API: RenewResource
续费回收站资源
func (*UCloudStackClient) ResetVMInstancePassword ¶
func (c *UCloudStackClient) ResetVMInstancePassword(req *ResetVMInstancePasswordRequest) (*ResetVMInstancePasswordResponse, error)
API: ResetVMInstancePassword
重置虚拟机密码,主机必须开机才可以重置密码
func (*UCloudStackClient) ResizeVMConfig ¶
func (c *UCloudStackClient) ResizeVMConfig(req *ResizeVMConfigRequest) (*ResizeVMConfigResponse, error)
API: ResizeVMConfig
修改虚拟机配置
func (*UCloudStackClient) RestartVMInstance ¶
func (c *UCloudStackClient) RestartVMInstance(req *RestartVMInstanceRequest) (*RestartVMInstanceResponse, error)
API: RestartVMInstance
重启虚拟机
func (*UCloudStackClient) RollbackResource ¶
func (c *UCloudStackClient) RollbackResource(req *RollbackResourceRequest) (*RollbackResourceResponse, error)
API: RollbackResource
恢复回收站资源
func (*UCloudStackClient) RollbackSnapshot ¶
func (c *UCloudStackClient) RollbackSnapshot(req *RollbackSnapshotRequest) (*RollbackSnapshotResponse, error)
API: RollbackSnapshot
将某个快照内的数据回滚到原云硬盘,仅支持正常状态的快照进行回滚操作,回滚时硬盘必须处于未绑定或其挂载的主机为关机状态。
func (*UCloudStackClient) StartVMInstance ¶
func (c *UCloudStackClient) StartVMInstance(req *StartVMInstanceRequest) (*StartVMInstanceResponse, error)
API: StartVMInstance
开启虚拟机
func (*UCloudStackClient) StopVMInstance ¶
func (c *UCloudStackClient) StopVMInstance(req *StopVMInstanceRequest) (*StopVMInstanceResponse, error)
API: StopVMInstance
关闭虚拟机
func (*UCloudStackClient) TerminateResource ¶
func (c *UCloudStackClient) TerminateResource(req *TerminateResourceRequest) (*TerminateResourceResponse, error)
API: TerminateResource
销毁资源
func (*UCloudStackClient) UnBindEIP ¶
func (c *UCloudStackClient) UnBindEIP(req *UnBindEIPRequest) (*UnBindEIPResponse, error)
API: UnBindEIP
解绑外网IP
func (*UCloudStackClient) UnBindSecurityGroup ¶
func (c *UCloudStackClient) UnBindSecurityGroup(req *UnBindSecurityGroupRequest) (*UnBindSecurityGroupResponse, error)
API: UnBindSecurityGroup
解绑安全组
func (*UCloudStackClient) UnbindAlarmTemplate ¶
func (c *UCloudStackClient) UnbindAlarmTemplate(req *UnbindAlarmTemplateRequest) (*UnbindAlarmTemplateResponse, error)
API: UnbindAlarmTemplate
解绑告警模板
func (*UCloudStackClient) UnbindPhysicalIP ¶
func (c *UCloudStackClient) UnbindPhysicalIP(req *UnbindPhysicalIPRequest) (*UnbindPhysicalIPResponse, error)
API: UnbindPhysicalIP
解绑物理IP
func (*UCloudStackClient) UpdateAlarmTemplateRule ¶
func (c *UCloudStackClient) UpdateAlarmTemplateRule(req *UpdateAlarmTemplateRuleRequest) (*UpdateAlarmTemplateRuleResponse, error)
API: UpdateAlarmTemplateRule
更新告警模板规则
func (*UCloudStackClient) UpdateRS ¶
func (c *UCloudStackClient) UpdateRS(req *UpdateRSRequest) (*UpdateRSResponse, error)
API: UpdateRS
修改负载均衡的服务节点
func (*UCloudStackClient) UpdateSecurityGroupRule ¶
func (c *UCloudStackClient) UpdateSecurityGroupRule(req *UpdateSecurityGroupRuleRequest) (*UpdateSecurityGroupRuleResponse, error)
API: UpdateSecurityGroupRule
修改安全组规则
func (*UCloudStackClient) UpdateVS ¶
func (c *UCloudStackClient) UpdateVS(req *UpdateVSRequest) (*UpdateVSResponse, error)
API: UpdateVS
修改负载均衡VServer
func (*UCloudStackClient) UpdateVSPolicy ¶
func (c *UCloudStackClient) UpdateVSPolicy(req *UpdateVSPolicyRequest) (*UpdateVSPolicyResponse, error)
API: UpdateVSPolicy
更新七层负载均衡内容转发规则,仅当 VServer 的监听协议为 HTTP 时有效。
func (*UCloudStackClient) UpgradeDisk ¶
func (c *UCloudStackClient) UpgradeDisk(req *UpgradeDiskRequest) (*UpgradeDiskResponse, error)
API: UpgradeDisk
升级硬盘
type UnBindEIPRequest ¶
type UnBindEIPRequest struct { request.CommonBase // 外网IP的ID EIPID *string `required:"true"` // 资源ID ResourceID *string `required:"true"` // 资源类型。VM:虚拟机, LB:负载均衡, NATGW:nat网关 ResourceType *string `required:"true"` }
UnBindEIPRequest is request schema for UnBindEIP action
type UnBindEIPResponse ¶
type UnBindEIPResponse struct { response.CommonBase // 返回信息描述。 Message string }
UnBindEIPResponse is response schema for UnBindEIP action
type UnBindSecurityGroupRequest ¶
type UnBindSecurityGroupRequest struct { request.CommonBase // 解绑的资源ID。调用方式举例:ResourceID=“one-id”。 ResourceID *string `required:"true"` // 安全组ID SGID *string `required:"true"` }
UnBindSecurityGroupRequest is request schema for UnBindSecurityGroup action
type UnBindSecurityGroupResponse ¶
type UnBindSecurityGroupResponse struct { response.CommonBase // 返回信息描述 Message string }
UnBindSecurityGroupResponse is response schema for UnBindSecurityGroup action
type UnbindAlarmTemplateRequest ¶
type UnbindAlarmTemplateRequest struct { request.CommonBase // 告警模板ID AlarmTemplateID *string `required:"true"` // 【数组】资源的 ID。调用方式举例:ResourceIDs.0=“one-id”、ResourceIDs.1=“two-id”。 ResourceIDs []string `required:"true"` // 资源类型。VM:虚拟机, LB:负载均衡, NATGW:nat网关;EIP:弹性网卡 ResourceType *string `required:"true"` }
UnbindAlarmTemplateRequest is request schema for UnbindAlarmTemplate action
type UnbindAlarmTemplateResponse ¶
type UnbindAlarmTemplateResponse struct { response.CommonBase // 返回信息描述 Message string }
UnbindAlarmTemplateResponse is response schema for UnbindAlarmTemplate action
type UnbindPhysicalIPRequest ¶
type UnbindPhysicalIPRequest struct { request.CommonBase // 物理IP的ID PhysicalIPID *string `required:"true"` // 资源ID ResourceID *string `required:"true"` // 资源类型。VM:虚拟机 ResourceType *string `required:"true"` }
UnbindPhysicalIPRequest is request schema for UnbindPhysicalIP action
type UnbindPhysicalIPResponse ¶
type UnbindPhysicalIPResponse struct { response.CommonBase // 返回信息描述。 Message string }
UnbindPhysicalIPResponse is response schema for UnbindPhysicalIP action
type UpdateAlarmTemplateRuleRequest ¶
type UpdateAlarmTemplateRuleRequest struct { request.CommonBase // 瘦脸策略 AlarmStrategy *string `required:"true"` // 告警模板ID AlarmTemplateID *string `required:"true"` // 告警规则ID AlarmTemplateRuleID *string `required:"true"` // 对比方式 Compare *string `required:"true"` // 通知组ID ContactGroupID *string `required:"true"` // 监控指标名称 MetricName *string `required:"true"` // 资源类型 ResourceType *string `required:"true"` // 告警阈值 Threshold *string `required:"true"` // 连续触发次数 TriggerCount *string `required:"true"` }
UpdateAlarmTemplateRuleRequest is request schema for UpdateAlarmTemplateRule action
type UpdateAlarmTemplateRuleResponse ¶
type UpdateAlarmTemplateRuleResponse struct { response.CommonBase // 返回描述信息 Message string }
UpdateAlarmTemplateRuleResponse is response schema for UpdateAlarmTemplateRule action
type UpdateRSRequest ¶
type UpdateRSRequest struct { request.CommonBase // VServer 监听器所属的负载均衡 ID LBID *string `required:"true"` // 端口号 Port *int `required:"false"` // RServer的ID RSID *string `required:"true"` // RServer所属的VServer的ID VSID *string `required:"true"` // 权重 Weight *int `required:"false"` }
UpdateRSRequest is request schema for UpdateRS action
type UpdateRSResponse ¶
type UpdateRSResponse struct { response.CommonBase // 【该字段已废弃,请谨慎使用】 Action string `deprecated:"true"` // 返回信息描述。 Message string // 【该字段已废弃,请谨慎使用】 RetCode int `deprecated:"true"` }
UpdateRSResponse is response schema for UpdateRS action
type UpdateSecurityGroupRuleRequest ¶
type UpdateSecurityGroupRuleRequest struct { request.CommonBase // 【数组】规则。输入有效的 规则。调用方式举例:Rules.0=“TCP|23|0.0.0.0/0|ACCEPT|HIGH|1”、Rules.1=“TCP|55|0.0.0.0/0|ACCEPT|HIGH|1” Rules []string `required:"true"` // 安全组ID SGID *string `required:"true"` }
UpdateSecurityGroupRuleRequest is request schema for UpdateSecurityGroupRule action
type UpdateSecurityGroupRuleResponse ¶
type UpdateSecurityGroupRuleResponse struct { response.CommonBase // 返回信息描述; Message string }
UpdateSecurityGroupRuleResponse is response schema for UpdateSecurityGroupRule action
type UpdateVSPolicyRequest ¶
type UpdateVSPolicyRequest struct { request.CommonBase // 内容转发规则关联的请求域名,值可为空,即代表仅匹配路径。 Domain *string `required:"false"` // 负载均衡ID LBID *string `required:"true"` // 内容转发规则关联的请求访问路径,如 "/" 。 Path *string `required:"false"` // 内容转发规则ID PolicyID *string `required:"true"` // 【数组】RServer的 ID。调用方式举例:RSIDs.0=“one-id”、RSIDs.1=“two-id”。 RSIDs []string `required:"false"` // VServer的ID VSID *string `required:"true"` }
UpdateVSPolicyRequest is request schema for UpdateVSPolicy action
type UpdateVSPolicyResponse ¶
type UpdateVSPolicyResponse struct { response.CommonBase // 返回信息描述。 Message string }
UpdateVSPolicyResponse is response schema for UpdateVSPolicy action
type UpdateVSRequest ¶
type UpdateVSRequest struct { request.CommonBase // CA证书ID,用于验证客户端证书的签名,仅当VServer监听协议为 HTTPS 且 SSLMode 为双向认证时有效。 CACertificateID *string `required:"false"` // HTTP 健康检查时校验请求的 HOST 字段中的域名。当健康检查类型为端口检查时,该值为空。 Domain *string `required:"false"` // 负载均衡的健康检查类型。枚举值:Port:端口检查;Path: HTTP检查 。仅当 VServer 协议类型为 HTTP 时,才可进行 HTTP 检查。 HealthcheckType *string `required:"false"` // 负载均衡的连接空闲超时时间,单位为秒,默认值为 60s 。当 VServer 协议为 UDP 时,该值为空。 KeepaliveTimeout *int `required:"false"` // VServer 监听器所属的负载均衡 ID LBID *string `required:"true"` // HTTP 健康检查的路径,健康检查类型为 HTTP 检查时为必填项。当健康检查类型为端口检查时,该值为空。 Path *string `required:"false"` // 会话保持KEY,会话保持类型为Manual时为必填项,仅当 VServer 协议为 HTTP 时有效。 PersistenceKey *string `required:"false"` // 会话保持类型。枚举值:None:关闭;Auto:自动生成;Manual:手动生成 。当协议为 TCP 时,该值不生效,会话保持和选择的调度算法相关;当协议为 UDP 时 Auto 表示开启会话保持 。 PersistenceType *string `required:"false"` // VServer 监听端口 Port *int `required:"false"` // SSL认证模式,HTTPS协议下必传,取值范围["simplex","duplex"]分别表示单向认证和双向认证。 SSLMode *string `required:"false"` // 负载均衡的调度算法。枚举值:wrr:加权轮训;least_conn:最小连接数;hash:原地址,四层lb使用。ip_hash:七层lb使用 Scheduler *string `required:"false"` // 服务器证书ID,用于证明服务器的身份,仅当 VServer监听协议为 HTTPS 时有效。 ServerCertificateID *string `required:"false"` // 需要更新的VSID VSID *string `required:"true"` }
UpdateVSRequest is request schema for UpdateVS action
type UpdateVSResponse ¶
type UpdateVSResponse struct { response.CommonBase // 【该字段已废弃,请谨慎使用】 Action string `deprecated:"true"` // 返回信息描述。 Message string // 【该字段已废弃,请谨慎使用】 RetCode int `deprecated:"true"` }
UpdateVSResponse is response schema for UpdateVS action
type UpgradeDiskRequest ¶
type UpgradeDiskRequest struct { request.CommonBase // 硬盘ID DiskID *string `required:"true"` // 硬盘升级后的容量, 不能小于原硬盘容量,单位为 GB 。 DiskSpace *int `required:"true"` }
UpgradeDiskRequest is request schema for UpgradeDisk action
type UpgradeDiskResponse ¶
type UpgradeDiskResponse struct { response.CommonBase // 返回信息描述。 Message string }
UpgradeDiskResponse is response schema for UpgradeDisk action
type UserInfo ¶
type UserInfo struct { // 账户余额 Amount float64 // 账户创建时间。时间戳 CreateTime int // 租户名称 Email string // 私钥 PrivateKey string // 公钥 PublicKey string // 用户状态。USER_STATUS_AVAILABLE:正常,USER_STATUS_FREEZE:冻结 Status string // 更新时间。时间戳 UpdateTime int // 租户ID. UserID int }
UserInfo - 租户信息
type VMDiskInfo ¶
type VMDiskInfo struct { // 磁盘 ID DiskID string // 磁盘盘符 Drive string // 是否是弹性磁盘。枚举值为:Y,表示是;N,表示否; IsElastic string // 磁盘名称 Name string // 磁盘大小,单位 GB Size int // 磁盘类型。枚举值:Boot,表示系统盘;Data,表示数据盘; Type string }
VMDiskInfo - UCloudStack虚拟机磁盘信息
type VMIPInfo ¶
type VMIPInfo struct { // IP 值 IP string // IP版本,支持值:IPv4\IPv6 IPVersion string // 网卡 ID InterfaceID string // 是否是弹性网卡。枚举值:Y,表示是;N,表示否; IsElastic string // MAC 地址值 MAC string // 安全组 ID SGID string // 安全组名称 SGName string // 子网 ID SubnetID string // 子网名称 SubnetName string // IP 类型。枚举值:Private,表示内网;Public,表示外网;Physical,表示物理网; Type string // VPC ID VPCID string // VPC 名称 VPCName string }
VMIPInfo - UCloudStack虚拟机IP信息
type VMInstanceInfo ¶
type VMInstanceInfo struct { // CPU 个数 CPU int // 虚拟机计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年; ChargeType string // 虚拟机创建时间 CreateTime int // 磁盘信息 DiskInfos []VMDiskInfo // 虚拟机过期时间 ExpireTime int // IP 信息 IPInfos []VMIPInfo // 镜像 ID ImageID string // 内存大小,单位 M Memory int // 虚拟机名称 Name string // 操作系统名称 OSName string // 操作系统类型 OSType string // Region Region string // Region 别名 RegionAlias string // 备注 Remark string // 虚拟机状态。枚举值:Initializing,表示初始化;Starting,表示启动中;Restarting,表示重启中;Running,表示运行;Stopping,表示关机中;Stopped,表示关机;Deleted,表示已删除;Resizing,表示修改配置中;Terminating,表示销毁中;Terminated,表示已销毁;Migrating,表示迁移中;WaitReinstall,表示等待重装系统;Reinstalling,表示重装中;Poweroffing,表示断电中;ChangeSGing,表示修改防火墙中; State string // 子网 ID SubnetID string // 子网 名称 SubnetName string // 虚拟机 ID VMID string // 虚拟机类型 VMType string // 虚拟机类型别名 VMTypeAlias string // VPC ID VPCID string // VPC 名称 VPCName string // Zone Zone string // Zone 别名 ZoneAlias string }
VMInstanceInfo - UCloudStack虚拟机信息
type VMTypeInfo ¶
type VMTypeInfo struct { // 地域 Region string // 架构 SetArch string // 机型 VMType string // 机型别名 VMTypeAlias string // 可用区 Zone string }
VMTypeInfo - 主机机型信息
type VPCInfo ¶
type VPCInfo struct { // 创建时间,时间戳 CreateTime int // 名称 Name string // 网段,比如10.0.0.0/16 Network string // 地域。 Region string // 描述 Remark string // 状态;Allocating:申请中,Available:有效,Terminating:销毁中,Terminated:已销毁 State string // 该VPC下拥有的子网数目 SubnetCount int // 该VPC下子网信息。 SubnetInfos []SubnetInfo // 修改时间,时间戳 UpdateTime int // VPC的ID VPCID string // 可用区 Zone string }
VPCInfo - VPC信息
type VSInfo ¶
type VSInfo struct { // 告警模板ID AlarmTemplateID string // 创建时间,时间戳 CreateTime int // HTTP 健康检查时校验请求的 HOST 字段中的域名。当健康检查类型为端口检查时,该值为空。 Domain string // 负载均衡的健康检查类型。枚举值:Port:端口检查;Path: HTTP检查 。 HealthcheckType string // 负载均衡的连接空闲超时时间,单位为秒,默认值为 60s 。当 VServer 协议为 UDP 时,该值为空。 KeepaliveTimeout int // VServer 所属的负载均衡 ID LBID string // HTTP 健康检查的路径。当健康检查类型为端口检查时,该值为空。 Path string // 会话保持KEY,仅当 VServer 协议为 HTTP 且会话保持为手动时有效。 PersistenceKey string // 会话保持类型。枚举值:None:关闭;Auto:自动生成;Manual:手动生成 。当协议为 TCP 时,该值为空;当协议为 UDP 时 Auto 表示开启会话保持 。 PersistenceType string // 端口 Port int // 协议 Protocol string // 健康检查状态,枚举值,Empty:全部异常,Parts:部分异常,All:正常 RSHealthStatus string // 前 VServer 中已添加的服务节点信息。 RSInfos []RSInfo // 更新时间,时间戳 UpdateTime int // VServer的ID VSID string // 转发规则 Policy 的规则信息 VSPolicyInfos []VSPolicyInfo // VServer 的资源状态。枚举值,Available:可用,Updating:更新中,Deleted:已删除 。 VSStatus string }
VSInfo - RServer信息
type VSPolicyInfo ¶
type VSPolicyInfo struct { // 创建时间,时间戳 CreateTime int // 内容转发规则关联的请求域名,值可为空,即代表仅匹配路径。 Domain string // 负载均衡ID LBID string // 内容转发规则关联的请求访问路径,如 "/" 。 Path string // 内容转发规则ID PolicyID string // 状态,枚举值,Available:有效,Deleted:已删除 PolicyStatus string // 转发规则关联的服务节点信息 RSInfos []RSInfo // 更新时间,时间戳 UpdateTime int // VServerID VSID string }
VSPolicyInfo - 内容转发规则信息