Documentation
¶
Overview ¶
Package uec include resources of ucloud uec product
See also
for detail.
Index ¶
- type BindUEcFirewallRequest
- type BindUEcFirewallResponse
- type CfgDictList
- type CreateUEcFirewallParamRule
- type CreateUEcFirewallRequest
- type CreateUEcFirewallResponse
- type CreateUEcHolderParamImage
- type CreateUEcHolderParamPack
- type CreateUEcHolderParamStorage
- type CreateUEcHolderRequest
- type CreateUEcHolderResponse
- type CreateUEcSubnetRequest
- type CreateUEcSubnetResponse
- type CreateUEcVHostRequest
- type CreateUEcVHostResponse
- type DataSet
- type DeleteUEcCustomImageRequest
- type DeleteUEcCustomImageResponse
- type DeleteUEcHolderRequest
- type DeleteUEcHolderResponse
- type DeleteUEcSubnetRequest
- type DeleteUEcSubnetResponse
- type DeleteUEcVHostRequest
- type DeleteUEcVHostResponse
- type DeployImageInfo
- type DescribeUEcFirewallRequest
- type DescribeUEcFirewallResourceRequest
- type DescribeUEcFirewallResourceResponse
- type DescribeUEcFirewallResponse
- type DescribeUEcHolderIDCRequest
- type DescribeUEcHolderIDCResponse
- type DescribeUEcHolderRequest
- type DescribeUEcHolderResponse
- type DescribeUEcIDCRequest
- type DescribeUEcIDCResponse
- type DescribeUEcSubnetRequest
- type DescribeUEcSubnetResponse
- type DescribeUEcVHostISPRequest
- type DescribeUEcVHostISPResponse
- type DescribeUEcVHostRequest
- type DescribeUEcVHostResponse
- type DockerInfo
- type EnvList
- type FirewallInfo
- type GetUEcHolderLogRequest
- type GetUEcHolderLogResponse
- type GetUEcHolderMetricsRequest
- type GetUEcHolderMetricsResponse
- type GetUEcIDCCutInfoRequest
- type GetUEcIDCCutInfoResponse
- type GetUEcIDCVHostDataRequest
- type GetUEcIDCVHostDataResponse
- type GetUEcImageRequest
- type GetUEcImageResponse
- type GetUEcPodPriceRequest
- type GetUEcPodPriceResponse
- type GetUEcUpgradePriceRequest
- type GetUEcUpgradePriceResponse
- type GetUEcVHostDataRequest
- type GetUEcVHostDataResponse
- type GetUEcVHostPriceRequest
- type GetUEcVHostPriceResponse
- type HolderList
- type IDCCutInfo
- type IdcInfo
- type ImageInfo
- type ImageList
- type ImportUEcCustomImageRequest
- type ImportUEcCustomImageResponse
- type IpList
- type LoginUEcDockerRequest
- type LoginUEcDockerResponse
- type MetricisDataSet
- type ModifyUEcBandwidthRequest
- type ModifyUEcBandwidthResponse
- type ModifyUEcHolderNameRequest
- type ModifyUEcHolderNameResponse
- type ModifyUEcImageNameRequest
- type ModifyUEcImageNameResponse
- type MonitorInfo
- type NodeInfo
- type NodeIpList
- type NodeIspList
- type NodeList
- type PoweroffUEcVHostRequest
- type PoweroffUEcVHostResponse
- type ReinstallUEcVHostRequest
- type ReinstallUEcVHostResponse
- type ResourceInfo
- type ResourceSet
- type RestartUEcHolderRequest
- type RestartUEcHolderResponse
- type RestartUEcVHostRequest
- type RestartUEcVHostResponse
- type RuleInfo
- type StartUEcVHostRequest
- type StartUEcVHostResponse
- type StopUEcVHostRequest
- type StopUEcVHostResponse
- type StorVolumeInfo
- type SubnetInfo
- type UECClient
- func (c *UECClient) BindUEcFirewall(req *BindUEcFirewallRequest) (*BindUEcFirewallResponse, error)
- func (c *UECClient) CreateUEcFirewall(req *CreateUEcFirewallRequest) (*CreateUEcFirewallResponse, error)
- func (c *UECClient) CreateUEcHolder(req *CreateUEcHolderRequest) (*CreateUEcHolderResponse, error)
- func (c *UECClient) CreateUEcSubnet(req *CreateUEcSubnetRequest) (*CreateUEcSubnetResponse, error)
- func (c *UECClient) CreateUEcVHost(req *CreateUEcVHostRequest) (*CreateUEcVHostResponse, error)
- func (c *UECClient) DeleteUEcCustomImage(req *DeleteUEcCustomImageRequest) (*DeleteUEcCustomImageResponse, error)
- func (c *UECClient) DeleteUEcHolder(req *DeleteUEcHolderRequest) (*DeleteUEcHolderResponse, error)
- func (c *UECClient) DeleteUEcSubnet(req *DeleteUEcSubnetRequest) (*DeleteUEcSubnetResponse, error)
- func (c *UECClient) DeleteUEcVHost(req *DeleteUEcVHostRequest) (*DeleteUEcVHostResponse, error)
- func (c *UECClient) DescribeUEcFirewall(req *DescribeUEcFirewallRequest) (*DescribeUEcFirewallResponse, error)
- func (c *UECClient) DescribeUEcFirewallResource(req *DescribeUEcFirewallResourceRequest) (*DescribeUEcFirewallResourceResponse, error)
- func (c *UECClient) DescribeUEcHolder(req *DescribeUEcHolderRequest) (*DescribeUEcHolderResponse, error)
- func (c *UECClient) DescribeUEcHolderIDC(req *DescribeUEcHolderIDCRequest) (*DescribeUEcHolderIDCResponse, error)
- func (c *UECClient) DescribeUEcIDC(req *DescribeUEcIDCRequest) (*DescribeUEcIDCResponse, error)
- func (c *UECClient) DescribeUEcSubnet(req *DescribeUEcSubnetRequest) (*DescribeUEcSubnetResponse, error)
- func (c *UECClient) DescribeUEcVHost(req *DescribeUEcVHostRequest) (*DescribeUEcVHostResponse, error)
- func (c *UECClient) DescribeUEcVHostISP(req *DescribeUEcVHostISPRequest) (*DescribeUEcVHostISPResponse, error)
- func (c *UECClient) GetUEcHolderLog(req *GetUEcHolderLogRequest) (*GetUEcHolderLogResponse, error)
- func (c *UECClient) GetUEcHolderMetrics(req *GetUEcHolderMetricsRequest) (*GetUEcHolderMetricsResponse, error)
- func (c *UECClient) GetUEcIDCCutInfo(req *GetUEcIDCCutInfoRequest) (*GetUEcIDCCutInfoResponse, error)
- func (c *UECClient) GetUEcIDCVHostData(req *GetUEcIDCVHostDataRequest) (*GetUEcIDCVHostDataResponse, error)
- func (c *UECClient) GetUEcImage(req *GetUEcImageRequest) (*GetUEcImageResponse, error)
- func (c *UECClient) GetUEcPodPrice(req *GetUEcPodPriceRequest) (*GetUEcPodPriceResponse, error)
- func (c *UECClient) GetUEcUpgradePrice(req *GetUEcUpgradePriceRequest) (*GetUEcUpgradePriceResponse, error)
- func (c *UECClient) GetUEcVHostData(req *GetUEcVHostDataRequest) (*GetUEcVHostDataResponse, error)
- func (c *UECClient) GetUEcVHostPrice(req *GetUEcVHostPriceRequest) (*GetUEcVHostPriceResponse, error)
- func (c *UECClient) ImportUEcCustomImage(req *ImportUEcCustomImageRequest) (*ImportUEcCustomImageResponse, error)
- func (c *UECClient) LoginUEcDocker(req *LoginUEcDockerRequest) (*LoginUEcDockerResponse, error)
- func (c *UECClient) ModifyUEcBandwidth(req *ModifyUEcBandwidthRequest) (*ModifyUEcBandwidthResponse, error)
- func (c *UECClient) ModifyUEcHolderName(req *ModifyUEcHolderNameRequest) (*ModifyUEcHolderNameResponse, error)
- func (c *UECClient) ModifyUEcImageName(req *ModifyUEcImageNameRequest) (*ModifyUEcImageNameResponse, error)
- func (c *UECClient) NewBindUEcFirewallRequest() *BindUEcFirewallRequest
- func (c *UECClient) NewCreateUEcFirewallRequest() *CreateUEcFirewallRequest
- func (c *UECClient) NewCreateUEcHolderRequest() *CreateUEcHolderRequest
- func (c *UECClient) NewCreateUEcSubnetRequest() *CreateUEcSubnetRequest
- func (c *UECClient) NewCreateUEcVHostRequest() *CreateUEcVHostRequest
- func (c *UECClient) NewDeleteUEcCustomImageRequest() *DeleteUEcCustomImageRequest
- func (c *UECClient) NewDeleteUEcHolderRequest() *DeleteUEcHolderRequest
- func (c *UECClient) NewDeleteUEcSubnetRequest() *DeleteUEcSubnetRequest
- func (c *UECClient) NewDeleteUEcVHostRequest() *DeleteUEcVHostRequest
- func (c *UECClient) NewDescribeUEcFirewallRequest() *DescribeUEcFirewallRequest
- func (c *UECClient) NewDescribeUEcFirewallResourceRequest() *DescribeUEcFirewallResourceRequest
- func (c *UECClient) NewDescribeUEcHolderIDCRequest() *DescribeUEcHolderIDCRequest
- func (c *UECClient) NewDescribeUEcHolderRequest() *DescribeUEcHolderRequest
- func (c *UECClient) NewDescribeUEcIDCRequest() *DescribeUEcIDCRequest
- func (c *UECClient) NewDescribeUEcSubnetRequest() *DescribeUEcSubnetRequest
- func (c *UECClient) NewDescribeUEcVHostISPRequest() *DescribeUEcVHostISPRequest
- func (c *UECClient) NewDescribeUEcVHostRequest() *DescribeUEcVHostRequest
- func (c *UECClient) NewGetUEcHolderLogRequest() *GetUEcHolderLogRequest
- func (c *UECClient) NewGetUEcHolderMetricsRequest() *GetUEcHolderMetricsRequest
- func (c *UECClient) NewGetUEcIDCCutInfoRequest() *GetUEcIDCCutInfoRequest
- func (c *UECClient) NewGetUEcIDCVHostDataRequest() *GetUEcIDCVHostDataRequest
- func (c *UECClient) NewGetUEcImageRequest() *GetUEcImageRequest
- func (c *UECClient) NewGetUEcPodPriceRequest() *GetUEcPodPriceRequest
- func (c *UECClient) NewGetUEcUpgradePriceRequest() *GetUEcUpgradePriceRequest
- func (c *UECClient) NewGetUEcVHostDataRequest() *GetUEcVHostDataRequest
- func (c *UECClient) NewGetUEcVHostPriceRequest() *GetUEcVHostPriceRequest
- func (c *UECClient) NewImportUEcCustomImageRequest() *ImportUEcCustomImageRequest
- func (c *UECClient) NewLoginUEcDockerRequest() *LoginUEcDockerRequest
- func (c *UECClient) NewModifyUEcBandwidthRequest() *ModifyUEcBandwidthRequest
- func (c *UECClient) NewModifyUEcHolderNameRequest() *ModifyUEcHolderNameRequest
- func (c *UECClient) NewModifyUEcImageNameRequest() *ModifyUEcImageNameRequest
- func (c *UECClient) NewPoweroffUEcVHostRequest() *PoweroffUEcVHostRequest
- func (c *UECClient) NewReinstallUEcVHostRequest() *ReinstallUEcVHostRequest
- func (c *UECClient) NewRestartUEcHolderRequest() *RestartUEcHolderRequest
- func (c *UECClient) NewRestartUEcVHostRequest() *RestartUEcVHostRequest
- func (c *UECClient) NewStartUEcVHostRequest() *StartUEcVHostRequest
- func (c *UECClient) NewStopUEcVHostRequest() *StopUEcVHostRequest
- func (c *UECClient) NewUnBindUEcFirewallRequest() *UnBindUEcFirewallRequest
- func (c *UECClient) NewUpdateUEcFirewallAttributeRequest() *UpdateUEcFirewallAttributeRequest
- func (c *UECClient) NewUpdateUEcFirewallRequest() *UpdateUEcFirewallRequest
- func (c *UECClient) NewUpdateUEcSubnetRequest() *UpdateUEcSubnetRequest
- func (c *UECClient) PoweroffUEcVHost(req *PoweroffUEcVHostRequest) (*PoweroffUEcVHostResponse, error)
- func (c *UECClient) ReinstallUEcVHost(req *ReinstallUEcVHostRequest) (*ReinstallUEcVHostResponse, error)
- func (c *UECClient) RestartUEcHolder(req *RestartUEcHolderRequest) (*RestartUEcHolderResponse, error)
- func (c *UECClient) RestartUEcVHost(req *RestartUEcVHostRequest) (*RestartUEcVHostResponse, error)
- func (c *UECClient) StartUEcVHost(req *StartUEcVHostRequest) (*StartUEcVHostResponse, error)
- func (c *UECClient) StopUEcVHost(req *StopUEcVHostRequest) (*StopUEcVHostResponse, error)
- func (c *UECClient) UnBindUEcFirewall(req *UnBindUEcFirewallRequest) (*UnBindUEcFirewallResponse, error)
- func (c *UECClient) UpdateUEcFirewall(req *UpdateUEcFirewallRequest) (*UpdateUEcFirewallResponse, error)
- func (c *UECClient) UpdateUEcFirewallAttribute(req *UpdateUEcFirewallAttributeRequest) (*UpdateUEcFirewallAttributeResponse, error)
- func (c *UECClient) UpdateUEcSubnet(req *UpdateUEcSubnetRequest) (*UpdateUEcSubnetResponse, error)
- type UnBindUEcFirewallRequest
- type UnBindUEcFirewallResponse
- type UpdateUEcFirewallAttributeRequest
- type UpdateUEcFirewallAttributeResponse
- type UpdateUEcFirewallParamRule
- type UpdateUEcFirewallRequest
- type UpdateUEcFirewallResponse
- type UpdateUEcSubnetRequest
- type UpdateUEcSubnetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindUEcFirewallRequest ¶
type BindUEcFirewallRequest struct { request.CommonBase // 防火墙Id FirewallId *string `required:"true"` // 虚拟机资源Id或容器组资源id ResourceId *string `required:"true"` }
BindUEcFirewallRequest is request schema for BindUEcFirewall action
type BindUEcFirewallResponse ¶
type BindUEcFirewallResponse struct {
response.CommonBase
}
BindUEcFirewallResponse is response schema for BindUEcFirewall action
type CfgDictList ¶
CfgDictList - 容器配置字典列表
type CreateUEcFirewallParamRule ¶
type CreateUEcFirewallParamRule struct { // ACCEPT(接受)和DROP(拒绝) Action *string `required:"true"` // 端口,范围用"-"符号分隔,如:1-65535 Port *string `required:"true"` // 优先级:HIGH(高),MEDIUM(中),LOW(低) Priority *string `required:"true"` // 协议,可选值:TCP,UDP,ICMP ProtocolType *string `required:"true"` // 备注 Remark *string `required:"false"` // 源ip SrcIp *string `required:"true"` }
CreateUEcFirewallParamRule is request schema for complex param
type CreateUEcFirewallRequest ¶
type CreateUEcFirewallRequest struct { request.CommonBase // 防火墙名称 Name *string `required:"true"` // 描述 Remark *string `required:"false"` // Rule []CreateUEcFirewallParamRule `required:"false"` }
CreateUEcFirewallRequest is request schema for CreateUEcFirewall action
type CreateUEcFirewallResponse ¶
type CreateUEcFirewallResponse struct { response.CommonBase // 防火墙Id FirewallId string }
CreateUEcFirewallResponse is response schema for CreateUEcFirewall action
type CreateUEcHolderParamImage ¶
type CreateUEcHolderParamImage struct { // 镜像用户名和密码(如镜像名:密码) Message *string `required:"false"` // 镜像仓库地址 StoreAddress *string `required:"false"` }
CreateUEcHolderParamImage is request schema for complex param
type CreateUEcHolderParamPack ¶
type CreateUEcHolderParamPack struct { // 容器参数(多个用;隔开) Args *string `required:"false"` // 开启容器的命令 Cmd *string `required:"false"` // 容器配置字典(多个用;隔开,如:/data1:resId1;/data2:resId2) ConfigDict *string `required:"false"` // 容器Cpu核数 CpuCore *float64 `required:"false"` // 容器环境变量(多个用;隔开,如:key1:value1;key2:value2) Environment *string `required:"false"` // 容器镜像名称 ImageName *string `required:"false"` // 容器内存,单位MB MemSize *int `required:"false"` // 容器名称 Name *string `required:"false"` // 容器工作目录 WorkDir *string `required:"false"` }
CreateUEcHolderParamPack is request schema for complex param
type CreateUEcHolderParamStorage ¶
type CreateUEcHolderParamStorage struct { // 存储卷挂载路径 Path *string `required:"false"` // 存储卷资源id ResourceId *string `required:"false"` }
CreateUEcHolderParamStorage is request schema for complex param
type CreateUEcHolderRequest ¶
type CreateUEcHolderRequest struct { request.CommonBase // 外网绑定的带宽(单位M,默认0,只有当ElasticIp为yes时,默认1) Bandwidth *int `required:"false"` // 月数或者年数(默认值:1,当为按月计费时,0表示计费到月底,默认值为0) ChargeQuantity *int `required:"false"` // 付费方式(2按月、3按年。默认2,默认月付) ChargeType *int `required:"false"` // 容器组Cpu总核数 CpuCore *float64 `required:"true"` // 绑定外网ip(yes-绑定,no-不绑定,默认no) ElasticIp *string `required:"false"` // 防火墙ID FirewallId *string `required:"false"` // 机房id IdcId *string `required:"true"` // Image []CreateUEcHolderParamImage `required:"false"` // 容器组总内存,单位MB MemSize *int `required:"true"` // 容器组名称(默认default) Name *string `required:"false"` // Pack []CreateUEcHolderParamPack `required:"false"` // 机型(normal-标准型,hf-高性能型,默认normal) ProductType *string `required:"false"` // 重启策略(0总是,1失败是,2永不,默认0) RestartStrategy *int `required:"false"` // Storage []CreateUEcHolderParamStorage `required:"false"` // 子网ID SubnetId *string `required:"true"` }
CreateUEcHolderRequest is request schema for CreateUEcHolder action
type CreateUEcHolderResponse ¶
type CreateUEcHolderResponse struct { response.CommonBase // 容器组资源id ResourceId string }
CreateUEcHolderResponse is response schema for CreateUEcHolder action
type CreateUEcSubnetRequest ¶
type CreateUEcSubnetRequest struct { request.CommonBase // 子网cidr CIDR *string `required:"true"` // 备注 Comment *string `required:"false"` // 机房ID IdcId *string `required:"true"` // 子网名称 SubnetName *string `required:"false"` }
CreateUEcSubnetRequest is request schema for CreateUEcSubnet action
type CreateUEcSubnetResponse ¶
type CreateUEcSubnetResponse struct { response.CommonBase // 子网ID SubnetId string }
CreateUEcSubnetResponse is response schema for CreateUEcSubnet action
type CreateUEcVHostRequest ¶
type CreateUEcVHostRequest struct { request.CommonBase // 账户名,默认root AccountName *string `required:"false"` // 月数或者年数,0计费到月底, 默认0 ChargeQuantity *int `required:"false"` // 付费方式,1按时,2按月,3按年,默认2 ChargeType *int `required:"false"` // cpu核心数 CpuCore *int `required:"true"` // 数据盘大小,单位GB DiskSize *int `required:"true"` // 外网防护墙规则组,默认 FirewallId *string `required:"false"` // 机房id IdcId *string `required:"true"` // 镜像ID ImageId *string `required:"true"` // (已废弃)是否需要外网ip(yes-是,no-否) IsNeedOuterIp *string `required:"false"` // 运营商(1-电信,2-联通,4移动) Isp []int `required:"false"` // 内存大小,单位GB MemSize *int `required:"true"` // 节点带宽限制,单位Mbs NetLimit *int `required:"true"` // 创建节点数量,默认1 NodeCount *int `required:"false"` // 节点名称 NodeName *string `required:"false"` // 密码 PassWord *string `required:"false"` // 产品类型:normal(标准型),hf(高频型) ProductType *string `required:"false"` // 子网ID SubnetId *string `required:"false"` // 系统盘大小,单位GB, 默认20GB SysDiskSize *int `required:"false"` }
CreateUEcVHostRequest is request schema for CreateUEcVHost action
type CreateUEcVHostResponse ¶
type CreateUEcVHostResponse struct { response.CommonBase // 节点id(详情参考NodeList) NodeList []NodeList }
CreateUEcVHostResponse is response schema for CreateUEcVHost action
type DataSet ¶
type DataSet struct { // cpu使用率 CPUUtilization []MonitorInfo // 磁盘读取次数 DiskReadOps []MonitorInfo // 磁盘写入次数 DiskWriteOps []MonitorInfo // 磁盘读取量 IORead []MonitorInfo // 磁盘写入量 IOWrite []MonitorInfo // 内存使用率 MemUtilization []MonitorInfo // 网卡入带宽 NICIn []MonitorInfo // 网卡出带宽 NICOut []MonitorInfo // 网卡入包量 NetPacketIn []MonitorInfo // 网卡出包量 NetPacketOut []MonitorInfo }
DataSet - 监控信息集合
type DeleteUEcCustomImageRequest ¶
type DeleteUEcCustomImageRequest struct { request.CommonBase // 机房ID,带机房ID表示只删除指定机房镜像 IdcId *string `required:"false"` // 镜像ID ImageId *string `required:"true"` }
DeleteUEcCustomImageRequest is request schema for DeleteUEcCustomImage action
type DeleteUEcCustomImageResponse ¶
type DeleteUEcCustomImageResponse struct { response.CommonBase // 镜像ID ImageId int }
DeleteUEcCustomImageResponse is response schema for DeleteUEcCustomImage action
type DeleteUEcHolderRequest ¶
type DeleteUEcHolderRequest struct { request.CommonBase // 容器组资源id,n为0,1,2... HolderId []string `required:"true"` }
DeleteUEcHolderRequest is request schema for DeleteUEcHolder action
type DeleteUEcHolderResponse ¶
type DeleteUEcHolderResponse struct {
response.CommonBase
}
DeleteUEcHolderResponse is response schema for DeleteUEcHolder action
type DeleteUEcSubnetRequest ¶
type DeleteUEcSubnetRequest struct { request.CommonBase // 子网ID SubnetId *string `required:"true"` }
DeleteUEcSubnetRequest is request schema for DeleteUEcSubnet action
type DeleteUEcSubnetResponse ¶
type DeleteUEcSubnetResponse struct {
response.CommonBase
}
DeleteUEcSubnetResponse is response schema for DeleteUEcSubnet action
type DeleteUEcVHostRequest ¶
type DeleteUEcVHostRequest struct { request.CommonBase // 节点id NodeId []string `required:"true"` }
DeleteUEcVHostRequest is request schema for DeleteUEcVHost action
type DeleteUEcVHostResponse ¶
type DeleteUEcVHostResponse struct {
response.CommonBase
}
DeleteUEcVHostResponse is response schema for DeleteUEcVHost action
type DeployImageInfo ¶
type DeployImageInfo struct { // 机房ID IdcId string // 镜像状态 1-可用, 2-不可用, 3-获取中, 4-转换中, 5-部署中 State int }
DeployImageInfo - 镜像部署信息
type DescribeUEcFirewallRequest ¶
type DescribeUEcFirewallRequest struct { request.CommonBase // 防火墙ID,默认为返回所有防火墙 FirewallId *string `required:"false"` // 返回数据长度,默认为20 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` // 绑定防火墙组的虚拟机资源ID ResourceId *string `required:"false"` }
DescribeUEcFirewallRequest is request schema for DescribeUEcFirewall action
type DescribeUEcFirewallResourceRequest ¶
type DescribeUEcFirewallResourceRequest struct { request.CommonBase // 防火墙Id FirewallId *string `required:"true"` }
DescribeUEcFirewallResourceRequest is request schema for DescribeUEcFirewallResource action
type DescribeUEcFirewallResourceResponse ¶
type DescribeUEcFirewallResourceResponse struct { response.CommonBase // 资源列表,详情参见ResourceInfo ResourceSet []ResourceInfo // 资源总数 TotalCount int }
DescribeUEcFirewallResourceResponse is response schema for DescribeUEcFirewallResource action
type DescribeUEcFirewallResponse ¶
type DescribeUEcFirewallResponse struct { response.CommonBase // 防火墙组详细信息,参见 FirewallInfo FirewallSet []FirewallInfo // 满足条件的节点总数 TotalCount int }
DescribeUEcFirewallResponse is response schema for DescribeUEcFirewall action
type DescribeUEcHolderIDCRequest ¶
type DescribeUEcHolderIDCRequest struct { request.CommonBase // 容器组Cpu核数 Cpu *float64 `required:"true"` // Idc机房id。默认全部机房 IdcId []string `required:"false"` // 容器组内存大小(单位MB) Memory *int `required:"true"` // 产品类型,normal标准型,hf高性能型 ProductType *string `required:"false"` // 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 Type *int `required:"false"` }
DescribeUEcHolderIDCRequest is request schema for DescribeUEcHolderIDC action
type DescribeUEcHolderIDCResponse ¶
type DescribeUEcHolderIDCResponse struct { response.CommonBase // 机房列表,具体参考下面IdcInfo IdcList []IdcInfo }
DescribeUEcHolderIDCResponse is response schema for DescribeUEcHolderIDC action
type DescribeUEcHolderRequest ¶
type DescribeUEcHolderRequest struct { request.CommonBase // 容器组资源id HolderId []string `required:"false"` // 返回数据长度,默认为20,非负整数 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0。非负整数 Offset *int `required:"false"` }
DescribeUEcHolderRequest is request schema for DescribeUEcHolder action
type DescribeUEcHolderResponse ¶
type DescribeUEcHolderResponse struct { response.CommonBase // 容器组列表(详情参考HolderList) HolderList []HolderList // 满足条件的容器组总数 TotalCount int }
DescribeUEcHolderResponse is response schema for DescribeUEcHolder action
type DescribeUEcIDCRequest ¶
type DescribeUEcIDCRequest struct { request.CommonBase // 节点cpu核数 Cpu *int `required:"true"` // Idc机房id。默认全部机房 IdcId []string `required:"false"` // 节点内存大小, 单位GB Memory *int `required:"true"` // 产品类型:normal(通用型),hf(高主频型) ProductType *string `required:"false"` // 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 Type *int `required:"false"` }
DescribeUEcIDCRequest is request schema for DescribeUEcIDC action
type DescribeUEcIDCResponse ¶
type DescribeUEcIDCResponse struct { response.CommonBase // 操作名称 Action string // 获取的机房信息,具体参考下面IdcInfo IdcList []IdcInfo // 返回码 RetCode int }
DescribeUEcIDCResponse is response schema for DescribeUEcIDC action
type DescribeUEcSubnetRequest ¶
type DescribeUEcSubnetRequest struct { request.CommonBase // 机房ID IdcId *string `required:"false"` // 子网ID SubnetId *string `required:"false"` }
DescribeUEcSubnetRequest is request schema for DescribeUEcSubnet action
type DescribeUEcSubnetResponse ¶
type DescribeUEcSubnetResponse struct { response.CommonBase // 子网信息列表 SubnetList []SubnetInfo }
DescribeUEcSubnetResponse is response schema for DescribeUEcSubnet action
type DescribeUEcVHostISPRequest ¶
type DescribeUEcVHostISPRequest struct { request.CommonBase // 城市 City *string `required:"false"` // 运营商名称 IspName *string `required:"false"` // 省份 Province *string `required:"false"` }
DescribeUEcVHostISPRequest is request schema for DescribeUEcVHostISP action
type DescribeUEcVHostISPResponse ¶
type DescribeUEcVHostISPResponse struct { response.CommonBase // 节点运营商列表 NodeIspList []NodeIspList }
DescribeUEcVHostISPResponse is response schema for DescribeUEcVHostISP action
type DescribeUEcVHostRequest ¶
type DescribeUEcVHostRequest struct { request.CommonBase // Idc机房id。默认全部机房 IdcId []string `required:"false"` // 返回数据长度, 默认20,非负整数 Limit *int `required:"false"` // 节点id,创建节点时生成的id。默认全部节点 NodeId []string `required:"false"` // 数据偏移量,默认0,非负整数 Offset *int `required:"false"` }
DescribeUEcVHostRequest is request schema for DescribeUEcVHost action
type DescribeUEcVHostResponse ¶
type DescribeUEcVHostResponse struct { response.CommonBase // 节点列表 NodeList []NodeInfo // 满足条件的节点总数 TotalCount int }
DescribeUEcVHostResponse is response schema for DescribeUEcVHost action
type DockerInfo ¶
type DockerInfo struct { // 参数 Args string // 容器配置字典(详情参考CfgDictList) CfgDictList []CfgDictList // 命令 Command string // CPU核数(/核)精度0.1核 CpuCores float64 // 环境变量(详情参考EnvList) EnvList []EnvList // 镜像名称 ImageName string // 内存大小(Gi) MemSize float64 // 容器名称 Name string // 容器状态,0:初始化;1:拉取镜像;2:拉取镜像失败;3:启动中;4:运行中;5:正在停止;6:已停止;7:已删除;8:镜像拉取成功;9:启动失败;99:异常 State int // 工作目录 WorkDir string }
DockerInfo - 容器信息
type FirewallInfo ¶
type FirewallInfo struct { // 创建时间 CreateTime int // 防火墙Id FirewallId string // 防火墙名称 Name string // 描述 Remark string // 防火墙绑定资源数量 ResourceCount int // 防火墙规则组,详情参见RuleInfo Rule []RuleInfo // 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", 默认非Web防火墙 Type string }
FirewallInfo - 防火墙信息
type GetUEcHolderLogRequest ¶
type GetUEcHolderLogRequest struct { request.CommonBase // 容器名称 PackName *string `required:"true"` // 容器组资源id ResourceId *string `required:"true"` }
GetUEcHolderLogRequest is request schema for GetUEcHolderLog action
type GetUEcHolderLogResponse ¶
type GetUEcHolderLogResponse struct { response.CommonBase // 返回的日志数据 Data string }
GetUEcHolderLogResponse is response schema for GetUEcHolderLog action
type GetUEcHolderMetricsRequest ¶
type GetUEcHolderMetricsRequest struct { request.CommonBase // 结束时间 EndTime *int `required:"false"` // 容器名称 PackName *string `required:"true"` // 容器组资源id ResourceId *string `required:"true"` // 开始时间 StartTime *int `required:"false"` // n为0 CPU利用率, 1内存使用率, 2网卡出带宽, 3网卡入带宽, 4网卡出包数, 5网卡入包数 Type []string `required:"true"` }
GetUEcHolderMetricsRequest is request schema for GetUEcHolderMetrics action
type GetUEcHolderMetricsResponse ¶
type GetUEcHolderMetricsResponse struct { response.CommonBase // 获得的监控数据(详情参考MetricisDataSet) DataSets MetricisDataSet }
GetUEcHolderMetricsResponse is response schema for GetUEcHolderMetrics action
type GetUEcIDCCutInfoRequest ¶
type GetUEcIDCCutInfoRequest struct {
request.CommonBase
}
GetUEcIDCCutInfoRequest is request schema for GetUEcIDCCutInfo action
type GetUEcIDCCutInfoResponse ¶
type GetUEcIDCCutInfoResponse struct { response.CommonBase // 机房割接信息 IDCCutInfo []IDCCutInfo // 满足条件的机房总数 TotalCount int }
GetUEcIDCCutInfoResponse is response schema for GetUEcIDCCutInfo action
type GetUEcIDCVHostDataRequest ¶
type GetUEcIDCVHostDataRequest struct { request.CommonBase // 开始时间戳 BeginTime *int `required:"false"` // 结束时间戳 EndTime *int `required:"false"` // 节点资源id;n为0,1,2... NodeId []string `required:"true"` // 监控数据类型;n为0,1,2,3,4...,9 Type []string `required:"true"` }
GetUEcIDCVHostDataRequest is request schema for GetUEcIDCVHostData action
type GetUEcIDCVHostDataResponse ¶
type GetUEcIDCVHostDataResponse struct { response.CommonBase // 监控数据集合 DataSets DataSet }
GetUEcIDCVHostDataResponse is response schema for GetUEcIDCVHostData action
type GetUEcImageRequest ¶
type GetUEcImageRequest struct { request.CommonBase // 镜像类型:1标准镜像,2行业镜像,3自定义镜像 ImageType *string `required:"false"` // 返回数据长度, 默认20,非负整数 Limit *int `required:"false"` // 数据偏移量,默认0,非负整数 Offset *int `required:"false"` }
GetUEcImageRequest is request schema for GetUEcImage action
type GetUEcImageResponse ¶
type GetUEcImageResponse struct { response.CommonBase // 获取的镜像信息,具体参考下面ImageInfo ImageList []ImageInfo // 镜像总数 TotalCount int }
GetUEcImageResponse is response schema for GetUEcImage action
type GetUEcPodPriceRequest ¶
type GetUEcPodPriceRequest struct { request.CommonBase // 绑定的带宽,默认0,当绑定外网IP时默认1(单位M) Bandwidth *int `required:"false"` // 月数或年数(默认值:1,当支付类型为按月时,默认值为0) ChargeQuantity *int `required:"false"` // 支付类型(2按月,3按年,默认2) ChargeType *int `required:"false"` // 容器组总Cpu核心数 CpuCore *float64 `required:"false"` // 是否绑定外网IP(yes:是,no:否,默认:no) ElasticIp *string `required:"false"` // 机房id IdcId *string `required:"true"` // 容器组总内存大小(单位M) MemSize *int `required:"false"` // 产品类型(normal:标准型,hf:高性能型,默认:normal) ProductType *string `required:"false"` }
GetUEcPodPriceRequest is request schema for GetUEcPodPrice action
type GetUEcPodPriceResponse ¶
type GetUEcPodPriceResponse struct { response.CommonBase // 容器组价格 HolderPrice float64 // IP和带宽价格 IpPrice float64 }
GetUEcPodPriceResponse is response schema for GetUEcPodPrice action
type GetUEcUpgradePriceRequest ¶
type GetUEcUpgradePriceRequest struct { request.CommonBase // cpu核心数 CpuCore *int `required:"false"` // 数据盘大小,单位GB DiskSize *int `required:"false"` // 内存大小,单位GB MemSize *int `required:"false"` // 节点带宽限制,单位Mbs NetLimit *int `required:"false"` // 虚拟机资源ID NodeId *string `required:"true"` // 系统盘大小,单位GB SysDiskSize *int `required:"false"` }
GetUEcUpgradePriceRequest is request schema for GetUEcUpgradePrice action
type GetUEcUpgradePriceResponse ¶
type GetUEcUpgradePriceResponse struct { response.CommonBase // 规格调整差价 Price int }
GetUEcUpgradePriceResponse is response schema for GetUEcUpgradePrice action
type GetUEcVHostDataRequest ¶
type GetUEcVHostDataRequest struct { request.CommonBase // 查询起始时间 BeginTime *int `required:"false"` // 查询结束时间 EndTime *int `required:"false"` // 节点id NodeId *string `required:"true"` // 0CPU使用率, 1内存使用率, 2 网卡出流量, 3网卡入流量, 4网卡出包量, 5网卡入包量, 6磁盘读流量, 7磁盘写流量, 8磁盘读次数, 9磁盘写次数 Type []int `required:"true"` }
GetUEcVHostDataRequest is request schema for GetUEcVHostData action
type GetUEcVHostDataResponse ¶
type GetUEcVHostDataResponse struct { response.CommonBase // 操作名称 Action string // 带宽数据实例集合 DataSets DataSet // 返回码 RetCode int }
GetUEcVHostDataResponse is response schema for GetUEcVHostData action
type GetUEcVHostPriceRequest ¶
type GetUEcVHostPriceRequest struct { request.CommonBase // 月数或者年数,0计费到月底, 默认0 ChargeQuantity *int `required:"false"` // 付费方式,1按时,2按月,3按年,默认2 ChargeType *int `required:"false"` // CPU核数 CpuCore *int `required:"false"` // 数据盘大小,单位GB DiskSize *int `required:"false"` // 机房Id IdcId *string `required:"true"` // 外网IP的数量,默认1 IpCount *int `required:"false"` // 内存大小,单位GB MemSize *int `required:"false"` // 网络带宽限速,单位Mbs NetLimit *int `required:"false"` // 节点数量,默认1 NodeCount *int `required:"false"` // 产品类型:normal(标准型),hf(高频型),默认normal ProductType *string `required:"false"` // 系统盘大小,单位GB SysDiskSize *int `required:"false"` }
GetUEcVHostPriceRequest is request schema for GetUEcVHostPrice action
type GetUEcVHostPriceResponse ¶
type GetUEcVHostPriceResponse struct { response.CommonBase // Ip和带宽价格 IpPrice float64 // 节点价格 NodePrice float64 }
GetUEcVHostPriceResponse is response schema for GetUEcVHostPrice action
type HolderList ¶
type HolderList struct { // 城市名称 City string // 创建时间 CreateTime int // 容器数量 DockerCount int // 容器信息(详情参考DockerInfo) DockerInfo []DockerInfo // 过期时间 ExpireTime int // 外网防火墙id FirewallId string // 容器组名称 HolderName string // 机房id IdcId string // 容器组镜像密钥列表(详情参考ImageList) ImageList []ImageList // 容器组内网ip InnerIp string // 容器组外网ip集合(详情参考IpList) IpList []IpList // 外网绑定的带宽 NetLimit int // 机房名称 OcName string // 机器类型(normal通用型,hf高性能型) ProductType string // 省份名称 Province string // 容器组资源id ResourceId string // 0:总是;1:失败是;2:永不 RestartStrategy int // 容器组运行状态0:初始化;1:拉取镜像;2:启动中;3:运行中;4:错误;5:正在重启;6:正在删除;7:已经删除;8:容器运行错误;9:启动失败;99:异常 State int // 存储卷数量 StorVolumeCount int // 存储卷信息(详情参考StorVolumeInfo) StorVolumeInfo []StorVolumeInfo // 容器组子网id SubnetId string // 线路类型(运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通) Type int }
HolderList - 容器组信息
type IDCCutInfo ¶
type IDCCutInfo struct { // 城市 City string // 割接类型(中断、抖动、断电) CutType string // 割接结束时间 EndTime int // 机房名称 IDCName string // 省份 Province string // 受影响的资源信息列表 ResourceSet []ResourceSet // 割接开始时间 StartTime int }
IDCCutInfo - 机房割接信息
type IdcInfo ¶
type IdcInfo struct { // 城市 City string // 机房ID IdcId string // 运营商 Isp string // 机房可创建节点最大数量 MaxNodeCnt int // 机房名称 Name string // 省份 Province string // 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 Type int }
IdcInfo - 机房信息
type ImageInfo ¶
type ImageInfo struct { // 镜像创建时间戳 CreateTime int // 部署详情列表 DeployInfoList []DeployImageInfo // 镜像描述 ImageDesc string // 镜像ID ImageId string // 镜像名称 ImageName string // 镜像大小,单位GB ImageSize int // 镜像类型:1标准镜像,2行业镜像,3自定义镜像 ImageType int // 系统类型:unix, windows OcType string // 镜像状态:镜像状态 1可用,2不可用 State int }
ImageInfo - 镜像详情
type ImportUEcCustomImageRequest ¶
type ImportUEcCustomImageRequest struct { request.CommonBase // 镜像格式,可选RAW、qcow2, 不带镜像ID时必填 Format *string `required:"false"` // 镜像需要导入机房,默认分发到所有机房 IdcId []string `required:"false"` // 镜像描述 ImageDesc *string `required:"false"` // 镜像Id,不传参表示新导入镜像,传参表示已有镜像分发到指定机房 ImageId *string `required:"false"` // 镜像名称,不带镜像ID时必填 ImageName *string `required:"false"` // 操作系统平台,linux、windows(当前版本暂不支持windows),不带镜像ID时必填 OsType *string `required:"false"` // UFile镜像文件下载地址,不带镜像ID时必填 UFileUrl *string `required:"false"` }
ImportUEcCustomImageRequest is request schema for ImportUEcCustomImage action
type ImportUEcCustomImageResponse ¶
type ImportUEcCustomImageResponse struct { response.CommonBase // 镜像Id ImageId string }
ImportUEcCustomImageResponse is response schema for ImportUEcCustomImage action
type LoginUEcDockerRequest ¶
type LoginUEcDockerRequest struct { request.CommonBase // 容器名称 Name *string `required:"true"` // 容器组资源id ResourceId *string `required:"true"` }
LoginUEcDockerRequest is request schema for LoginUEcDocker action
type LoginUEcDockerResponse ¶
type LoginUEcDockerResponse struct { response.CommonBase // 登录地址 Link string // 登录端口 LinkPort int // 返回的token SessionId string }
LoginUEcDockerResponse is response schema for LoginUEcDocker action
type MetricisDataSet ¶
type MetricisDataSet struct { // cpu利用率(详情参考MonitorInfo) CPUUtilization []MonitorInfo // 内存使用率(详情参考MonitorInfo) MemUtilization []MonitorInfo // 网卡入带宽(详情参考MonitorInfo) NICIn []MonitorInfo // 网卡出带宽(详情参考MonitorInfo) NICOut []MonitorInfo // 网卡入包数(详情参考MonitorInfo) NetPacketIn []MonitorInfo // 网卡出包数(详情参考MonitorInfo) NetPacketOut []MonitorInfo }
MetricisDataSet - 监控数据
type ModifyUEcBandwidthRequest ¶ added in v0.21.2
type ModifyUEcBandwidthRequest struct { request.CommonBase // 节点带宽限制,单位Mbs NetLimit *string `required:"true"` // 节点Id NodeId *string `required:"true"` }
ModifyUEcBandwidthRequest is request schema for ModifyUEcBandwidth action
type ModifyUEcBandwidthResponse ¶ added in v0.21.2
type ModifyUEcBandwidthResponse struct {
response.CommonBase
}
ModifyUEcBandwidthResponse is response schema for ModifyUEcBandwidth action
type ModifyUEcHolderNameRequest ¶
type ModifyUEcHolderNameRequest struct { request.CommonBase // 容器组名称 Name *string `required:"true"` // 容器组资源id ResourceId *string `required:"true"` }
ModifyUEcHolderNameRequest is request schema for ModifyUEcHolderName action
type ModifyUEcHolderNameResponse ¶
type ModifyUEcHolderNameResponse struct {
response.CommonBase
}
ModifyUEcHolderNameResponse is response schema for ModifyUEcHolderName action
type ModifyUEcImageNameRequest ¶
type ModifyUEcImageNameRequest struct { request.CommonBase // 镜像描述 ImageDesc *string `required:"false"` // 镜像ID ImageId *string `required:"true"` // 镜像名称 ImageName *string `required:"true"` }
ModifyUEcImageNameRequest is request schema for ModifyUEcImageName action
type ModifyUEcImageNameResponse ¶
type ModifyUEcImageNameResponse struct {
response.CommonBase
}
ModifyUEcImageNameResponse is response schema for ModifyUEcImageName action
type MonitorInfo ¶
MonitorInfo - 监控信息
type NodeInfo ¶
type NodeInfo struct { // 付费类型:1按时, 2按月,3按年 ChargeType int // 城市 City string // Cpu核数 CoreNum int // 创建时间 CreateTime int // 数据盘大小, 单位GB DiskSize int // 过期时间 ExpiredTime int // 防火墙Id FirewallId string // 机房ID IdcId string // 镜像名称 ImageName string // 节点内存大小,单位GB MemSize int // 节点带宽限制, 单位Mbs NetLimit int // 节点ID NodeId string // 外网ip集合(详情参考NodeIpList) NodeIpList []NodeIpList // 节点名称 NodeName string // 机房名称 OcName string // 机器类型 ProductType string // 省份 Province string // 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常 State int // 系统盘大小, 单位GB SysDiskSize int // 运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 Type int }
NodeInfo - 节点信息
type NodeIpList ¶
NodeIpList - 虚拟机外网ip列表
type NodeIspList ¶
type NodeIspList struct { // 城市 City string // 机房名称 IdcName string // 机房运营商名称 IspName string // 线路类型 LineType string // 省份 Province string }
NodeIspList - 节点运营商列表
type PoweroffUEcVHostRequest ¶
type PoweroffUEcVHostRequest struct { request.CommonBase // 虚拟机资源ID NodeId []string `required:"true"` }
PoweroffUEcVHostRequest is request schema for PoweroffUEcVHost action
type PoweroffUEcVHostResponse ¶
type PoweroffUEcVHostResponse struct {
response.CommonBase
}
PoweroffUEcVHostResponse is response schema for PoweroffUEcVHost action
type ReinstallUEcVHostRequest ¶
type ReinstallUEcVHostRequest struct { request.CommonBase // 镜像ID ImageId *string `required:"true"` // 是否保留数据盘数据, 0-不保留,1-保留,默认为1 KeepData *int `required:"false"` // 虚拟机资源ID NodeId *string `required:"true"` // 节点密码 Password *string `required:"false"` // 系统盘大小,单位GB SysDiskSize *int `required:"false"` }
ReinstallUEcVHostRequest is request schema for ReinstallUEcVHost action
type ReinstallUEcVHostResponse ¶
type ReinstallUEcVHostResponse struct {
response.CommonBase
}
ReinstallUEcVHostResponse is response schema for ReinstallUEcVHost action
type ResourceInfo ¶
type ResourceInfo struct { // 节点名称 Name string // 节点公网Ip列表 PublicIpList []string // 节点备注 Remark string // 资源Id ResourceId string // 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常 State int }
ResourceInfo - 绑定防火墙的资源信息
type ResourceSet ¶
ResourceSet - 受到影响的资源列表
type RestartUEcHolderRequest ¶
type RestartUEcHolderRequest struct { request.CommonBase // 容器组资源id,n为0,1,2... ResourceId []string `required:"true"` }
RestartUEcHolderRequest is request schema for RestartUEcHolder action
type RestartUEcHolderResponse ¶
type RestartUEcHolderResponse struct {
response.CommonBase
}
RestartUEcHolderResponse is response schema for RestartUEcHolder action
type RestartUEcVHostRequest ¶
type RestartUEcVHostRequest struct { request.CommonBase // 节点id NodeId []string `required:"true"` }
RestartUEcVHostRequest is request schema for RestartUEcVHost action
type RestartUEcVHostResponse ¶
type RestartUEcVHostResponse struct {
response.CommonBase
}
RestartUEcVHostResponse is response schema for RestartUEcVHost action
type RuleInfo ¶
type RuleInfo struct { // ACCEPT(接受)和DROP(拒绝) Action string // 端口,范围用"-"符号分隔,如:1-65535 Port string // 优先级:HIGH(高),MEDIUM(中),LOW(低) Priority string // 协议,可选值:TCP,UDP,ICMP ProtocolType string // 备注 Remark string // 源ip SrcIp string }
RuleInfo - 防火墙规则
type StartUEcVHostRequest ¶
type StartUEcVHostRequest struct { request.CommonBase // 虚拟机资源ID NodeId []string `required:"true"` }
StartUEcVHostRequest is request schema for StartUEcVHost action
type StartUEcVHostResponse ¶
type StartUEcVHostResponse struct {
response.CommonBase
}
StartUEcVHostResponse is response schema for StartUEcVHost action
type StopUEcVHostRequest ¶
type StopUEcVHostRequest struct { request.CommonBase // 虚拟机资源ID NodeId []string `required:"true"` }
StopUEcVHostRequest is request schema for StopUEcVHost action
type StopUEcVHostResponse ¶
type StopUEcVHostResponse struct {
response.CommonBase
}
StopUEcVHostResponse is response schema for StopUEcVHost action
type StorVolumeInfo ¶
type StorVolumeInfo struct { // 容量(单位GB) DiskSize int // 挂载点 MountPoint string // 名称 Name string // 资源id ResourceId string }
StorVolumeInfo - 容器组存储卷信息
type SubnetInfo ¶
type SubnetInfo struct { // 可用ip数 AvailableIPCnt int // 子网cidr CIDR string // 备注 Comment string // 创建时间 CreateTime int // 机房ID IdcId string // 子网ID SubnetId string // 子网名称 SubnetName string // 总ip数 TotalIpCnt int }
SubnetInfo - 子网信息
type UECClient ¶
UECClient is the client of UEC
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UECClient
NewClient will return a instance of UECClient
func (*UECClient) BindUEcFirewall ¶
func (c *UECClient) BindUEcFirewall(req *BindUEcFirewallRequest) (*BindUEcFirewallResponse, error)
API: BindUEcFirewall
绑定防火墙,应用防火墙规则
func (*UECClient) CreateUEcFirewall ¶
func (c *UECClient) CreateUEcFirewall(req *CreateUEcFirewallRequest) (*CreateUEcFirewallResponse, error)
API: CreateUEcFirewall
创建外网防火墙
func (*UECClient) CreateUEcHolder ¶
func (c *UECClient) CreateUEcHolder(req *CreateUEcHolderRequest) (*CreateUEcHolderResponse, error)
API: CreateUEcHolder
创建容器组
func (*UECClient) CreateUEcSubnet ¶
func (c *UECClient) CreateUEcSubnet(req *CreateUEcSubnetRequest) (*CreateUEcSubnetResponse, error)
API: CreateUEcSubnet
创建子网
func (*UECClient) CreateUEcVHost ¶
func (c *UECClient) CreateUEcVHost(req *CreateUEcVHostRequest) (*CreateUEcVHostResponse, error)
API: CreateUEcVHost
创建虚拟机v2.0
func (*UECClient) DeleteUEcCustomImage ¶
func (c *UECClient) DeleteUEcCustomImage(req *DeleteUEcCustomImageRequest) (*DeleteUEcCustomImageResponse, error)
API: DeleteUEcCustomImage
删除UEDN客户自定义镜像
func (*UECClient) DeleteUEcHolder ¶
func (c *UECClient) DeleteUEcHolder(req *DeleteUEcHolderRequest) (*DeleteUEcHolderResponse, error)
API: DeleteUEcHolder
删除容器组
func (*UECClient) DeleteUEcSubnet ¶
func (c *UECClient) DeleteUEcSubnet(req *DeleteUEcSubnetRequest) (*DeleteUEcSubnetResponse, error)
API: DeleteUEcSubnet
删除子网
func (*UECClient) DeleteUEcVHost ¶
func (c *UECClient) DeleteUEcVHost(req *DeleteUEcVHostRequest) (*DeleteUEcVHostResponse, error)
API: DeleteUEcVHost
删除vhost虚拟机 v2.0
func (*UECClient) DescribeUEcFirewall ¶
func (c *UECClient) DescribeUEcFirewall(req *DescribeUEcFirewallRequest) (*DescribeUEcFirewallResponse, error)
API: DescribeUEcFirewall
获取防火墙信息
func (*UECClient) DescribeUEcFirewallResource ¶
func (c *UECClient) DescribeUEcFirewallResource(req *DescribeUEcFirewallResourceRequest) (*DescribeUEcFirewallResourceResponse, error)
API: DescribeUEcFirewallResource
防火墙绑定的资源列表
func (*UECClient) DescribeUEcHolder ¶
func (c *UECClient) DescribeUEcHolder(req *DescribeUEcHolderRequest) (*DescribeUEcHolderResponse, error)
API: DescribeUEcHolder
获得容器组信息
func (*UECClient) DescribeUEcHolderIDC ¶
func (c *UECClient) DescribeUEcHolderIDC(req *DescribeUEcHolderIDCRequest) (*DescribeUEcHolderIDCResponse, error)
API: DescribeUEcHolderIDC
获取容器组机房信息
func (*UECClient) DescribeUEcIDC ¶
func (c *UECClient) DescribeUEcIDC(req *DescribeUEcIDCRequest) (*DescribeUEcIDCResponse, error)
API: DescribeUEcIDC
获取IDC机房列表
func (*UECClient) DescribeUEcSubnet ¶
func (c *UECClient) DescribeUEcSubnet(req *DescribeUEcSubnetRequest) (*DescribeUEcSubnetResponse, error)
API: DescribeUEcSubnet
获取子网列表
func (*UECClient) DescribeUEcVHost ¶
func (c *UECClient) DescribeUEcVHost(req *DescribeUEcVHostRequest) (*DescribeUEcVHostResponse, error)
API: DescribeUEcVHost
获取虚拟机列表 2.0
func (*UECClient) DescribeUEcVHostISP ¶
func (c *UECClient) DescribeUEcVHostISP(req *DescribeUEcVHostISPRequest) (*DescribeUEcVHostISPResponse, error)
API: DescribeUEcVHostISP
获取虚拟机运营商信息
func (*UECClient) GetUEcHolderLog ¶
func (c *UECClient) GetUEcHolderLog(req *GetUEcHolderLogRequest) (*GetUEcHolderLogResponse, error)
API: GetUEcHolderLog
获取单个容器日志
func (*UECClient) GetUEcHolderMetrics ¶
func (c *UECClient) GetUEcHolderMetrics(req *GetUEcHolderMetricsRequest) (*GetUEcHolderMetricsResponse, error)
API: GetUEcHolderMetrics
获取容器(CPU利用率,带宽,内存)数据
func (*UECClient) GetUEcIDCCutInfo ¶
func (c *UECClient) GetUEcIDCCutInfo(req *GetUEcIDCCutInfoRequest) (*GetUEcIDCCutInfoResponse, error)
API: GetUEcIDCCutInfo
获取机房割接信息
func (*UECClient) GetUEcIDCVHostData ¶
func (c *UECClient) GetUEcIDCVHostData(req *GetUEcIDCVHostDataRequest) (*GetUEcIDCVHostDataResponse, error)
API: GetUEcIDCVHostData
获取机房虚拟机监控数据
func (*UECClient) GetUEcImage ¶
func (c *UECClient) GetUEcImage(req *GetUEcImageRequest) (*GetUEcImageResponse, error)
API: GetUEcImage
uec2.0
func (*UECClient) GetUEcPodPrice ¶
func (c *UECClient) GetUEcPodPrice(req *GetUEcPodPriceRequest) (*GetUEcPodPriceResponse, error)
API: GetUEcPodPrice
获得容器组价格
func (*UECClient) GetUEcUpgradePrice ¶
func (c *UECClient) GetUEcUpgradePrice(req *GetUEcUpgradePriceRequest) (*GetUEcUpgradePriceResponse, error)
API: GetUEcUpgradePrice
获取虚拟机调整差价
func (*UECClient) GetUEcVHostData ¶
func (c *UECClient) GetUEcVHostData(req *GetUEcVHostDataRequest) (*GetUEcVHostDataResponse, error)
API: GetUEcVHostData
获取虚拟机监控数据
func (*UECClient) GetUEcVHostPrice ¶
func (c *UECClient) GetUEcVHostPrice(req *GetUEcVHostPriceRequest) (*GetUEcVHostPriceResponse, error)
API: GetUEcVHostPrice
获取虚拟机价格
func (*UECClient) ImportUEcCustomImage ¶
func (c *UECClient) ImportUEcCustomImage(req *ImportUEcCustomImageRequest) (*ImportUEcCustomImageResponse, error)
API: ImportUEcCustomImage
导入自定义镜像
func (*UECClient) LoginUEcDocker ¶
func (c *UECClient) LoginUEcDocker(req *LoginUEcDockerRequest) (*LoginUEcDockerResponse, error)
API: LoginUEcDocker
登录容器
func (*UECClient) ModifyUEcBandwidth ¶ added in v0.21.2
func (c *UECClient) ModifyUEcBandwidth(req *ModifyUEcBandwidthRequest) (*ModifyUEcBandwidthResponse, error)
API: ModifyUEcBandwidth
修改节点带宽限制
func (*UECClient) ModifyUEcHolderName ¶
func (c *UECClient) ModifyUEcHolderName(req *ModifyUEcHolderNameRequest) (*ModifyUEcHolderNameResponse, error)
API: ModifyUEcHolderName
修改容器组名称
func (*UECClient) ModifyUEcImageName ¶
func (c *UECClient) ModifyUEcImageName(req *ModifyUEcImageNameRequest) (*ModifyUEcImageNameResponse, error)
API: ModifyUEcImageName
修改镜像名称
func (*UECClient) NewBindUEcFirewallRequest ¶
func (c *UECClient) NewBindUEcFirewallRequest() *BindUEcFirewallRequest
NewBindUEcFirewallRequest will create request of BindUEcFirewall action.
func (*UECClient) NewCreateUEcFirewallRequest ¶
func (c *UECClient) NewCreateUEcFirewallRequest() *CreateUEcFirewallRequest
NewCreateUEcFirewallRequest will create request of CreateUEcFirewall action.
func (*UECClient) NewCreateUEcHolderRequest ¶
func (c *UECClient) NewCreateUEcHolderRequest() *CreateUEcHolderRequest
NewCreateUEcHolderRequest will create request of CreateUEcHolder action.
func (*UECClient) NewCreateUEcSubnetRequest ¶
func (c *UECClient) NewCreateUEcSubnetRequest() *CreateUEcSubnetRequest
NewCreateUEcSubnetRequest will create request of CreateUEcSubnet action.
func (*UECClient) NewCreateUEcVHostRequest ¶
func (c *UECClient) NewCreateUEcVHostRequest() *CreateUEcVHostRequest
NewCreateUEcVHostRequest will create request of CreateUEcVHost action.
func (*UECClient) NewDeleteUEcCustomImageRequest ¶
func (c *UECClient) NewDeleteUEcCustomImageRequest() *DeleteUEcCustomImageRequest
NewDeleteUEcCustomImageRequest will create request of DeleteUEcCustomImage action.
func (*UECClient) NewDeleteUEcHolderRequest ¶
func (c *UECClient) NewDeleteUEcHolderRequest() *DeleteUEcHolderRequest
NewDeleteUEcHolderRequest will create request of DeleteUEcHolder action.
func (*UECClient) NewDeleteUEcSubnetRequest ¶
func (c *UECClient) NewDeleteUEcSubnetRequest() *DeleteUEcSubnetRequest
NewDeleteUEcSubnetRequest will create request of DeleteUEcSubnet action.
func (*UECClient) NewDeleteUEcVHostRequest ¶
func (c *UECClient) NewDeleteUEcVHostRequest() *DeleteUEcVHostRequest
NewDeleteUEcVHostRequest will create request of DeleteUEcVHost action.
func (*UECClient) NewDescribeUEcFirewallRequest ¶
func (c *UECClient) NewDescribeUEcFirewallRequest() *DescribeUEcFirewallRequest
NewDescribeUEcFirewallRequest will create request of DescribeUEcFirewall action.
func (*UECClient) NewDescribeUEcFirewallResourceRequest ¶
func (c *UECClient) NewDescribeUEcFirewallResourceRequest() *DescribeUEcFirewallResourceRequest
NewDescribeUEcFirewallResourceRequest will create request of DescribeUEcFirewallResource action.
func (*UECClient) NewDescribeUEcHolderIDCRequest ¶
func (c *UECClient) NewDescribeUEcHolderIDCRequest() *DescribeUEcHolderIDCRequest
NewDescribeUEcHolderIDCRequest will create request of DescribeUEcHolderIDC action.
func (*UECClient) NewDescribeUEcHolderRequest ¶
func (c *UECClient) NewDescribeUEcHolderRequest() *DescribeUEcHolderRequest
NewDescribeUEcHolderRequest will create request of DescribeUEcHolder action.
func (*UECClient) NewDescribeUEcIDCRequest ¶
func (c *UECClient) NewDescribeUEcIDCRequest() *DescribeUEcIDCRequest
NewDescribeUEcIDCRequest will create request of DescribeUEcIDC action.
func (*UECClient) NewDescribeUEcSubnetRequest ¶
func (c *UECClient) NewDescribeUEcSubnetRequest() *DescribeUEcSubnetRequest
NewDescribeUEcSubnetRequest will create request of DescribeUEcSubnet action.
func (*UECClient) NewDescribeUEcVHostISPRequest ¶
func (c *UECClient) NewDescribeUEcVHostISPRequest() *DescribeUEcVHostISPRequest
NewDescribeUEcVHostISPRequest will create request of DescribeUEcVHostISP action.
func (*UECClient) NewDescribeUEcVHostRequest ¶
func (c *UECClient) NewDescribeUEcVHostRequest() *DescribeUEcVHostRequest
NewDescribeUEcVHostRequest will create request of DescribeUEcVHost action.
func (*UECClient) NewGetUEcHolderLogRequest ¶
func (c *UECClient) NewGetUEcHolderLogRequest() *GetUEcHolderLogRequest
NewGetUEcHolderLogRequest will create request of GetUEcHolderLog action.
func (*UECClient) NewGetUEcHolderMetricsRequest ¶
func (c *UECClient) NewGetUEcHolderMetricsRequest() *GetUEcHolderMetricsRequest
NewGetUEcHolderMetricsRequest will create request of GetUEcHolderMetrics action.
func (*UECClient) NewGetUEcIDCCutInfoRequest ¶
func (c *UECClient) NewGetUEcIDCCutInfoRequest() *GetUEcIDCCutInfoRequest
NewGetUEcIDCCutInfoRequest will create request of GetUEcIDCCutInfo action.
func (*UECClient) NewGetUEcIDCVHostDataRequest ¶
func (c *UECClient) NewGetUEcIDCVHostDataRequest() *GetUEcIDCVHostDataRequest
NewGetUEcIDCVHostDataRequest will create request of GetUEcIDCVHostData action.
func (*UECClient) NewGetUEcImageRequest ¶
func (c *UECClient) NewGetUEcImageRequest() *GetUEcImageRequest
NewGetUEcImageRequest will create request of GetUEcImage action.
func (*UECClient) NewGetUEcPodPriceRequest ¶
func (c *UECClient) NewGetUEcPodPriceRequest() *GetUEcPodPriceRequest
NewGetUEcPodPriceRequest will create request of GetUEcPodPrice action.
func (*UECClient) NewGetUEcUpgradePriceRequest ¶
func (c *UECClient) NewGetUEcUpgradePriceRequest() *GetUEcUpgradePriceRequest
NewGetUEcUpgradePriceRequest will create request of GetUEcUpgradePrice action.
func (*UECClient) NewGetUEcVHostDataRequest ¶
func (c *UECClient) NewGetUEcVHostDataRequest() *GetUEcVHostDataRequest
NewGetUEcVHostDataRequest will create request of GetUEcVHostData action.
func (*UECClient) NewGetUEcVHostPriceRequest ¶
func (c *UECClient) NewGetUEcVHostPriceRequest() *GetUEcVHostPriceRequest
NewGetUEcVHostPriceRequest will create request of GetUEcVHostPrice action.
func (*UECClient) NewImportUEcCustomImageRequest ¶
func (c *UECClient) NewImportUEcCustomImageRequest() *ImportUEcCustomImageRequest
NewImportUEcCustomImageRequest will create request of ImportUEcCustomImage action.
func (*UECClient) NewLoginUEcDockerRequest ¶
func (c *UECClient) NewLoginUEcDockerRequest() *LoginUEcDockerRequest
NewLoginUEcDockerRequest will create request of LoginUEcDocker action.
func (*UECClient) NewModifyUEcBandwidthRequest ¶ added in v0.21.2
func (c *UECClient) NewModifyUEcBandwidthRequest() *ModifyUEcBandwidthRequest
NewModifyUEcBandwidthRequest will create request of ModifyUEcBandwidth action.
func (*UECClient) NewModifyUEcHolderNameRequest ¶
func (c *UECClient) NewModifyUEcHolderNameRequest() *ModifyUEcHolderNameRequest
NewModifyUEcHolderNameRequest will create request of ModifyUEcHolderName action.
func (*UECClient) NewModifyUEcImageNameRequest ¶
func (c *UECClient) NewModifyUEcImageNameRequest() *ModifyUEcImageNameRequest
NewModifyUEcImageNameRequest will create request of ModifyUEcImageName action.
func (*UECClient) NewPoweroffUEcVHostRequest ¶
func (c *UECClient) NewPoweroffUEcVHostRequest() *PoweroffUEcVHostRequest
NewPoweroffUEcVHostRequest will create request of PoweroffUEcVHost action.
func (*UECClient) NewReinstallUEcVHostRequest ¶
func (c *UECClient) NewReinstallUEcVHostRequest() *ReinstallUEcVHostRequest
NewReinstallUEcVHostRequest will create request of ReinstallUEcVHost action.
func (*UECClient) NewRestartUEcHolderRequest ¶
func (c *UECClient) NewRestartUEcHolderRequest() *RestartUEcHolderRequest
NewRestartUEcHolderRequest will create request of RestartUEcHolder action.
func (*UECClient) NewRestartUEcVHostRequest ¶
func (c *UECClient) NewRestartUEcVHostRequest() *RestartUEcVHostRequest
NewRestartUEcVHostRequest will create request of RestartUEcVHost action.
func (*UECClient) NewStartUEcVHostRequest ¶
func (c *UECClient) NewStartUEcVHostRequest() *StartUEcVHostRequest
NewStartUEcVHostRequest will create request of StartUEcVHost action.
func (*UECClient) NewStopUEcVHostRequest ¶
func (c *UECClient) NewStopUEcVHostRequest() *StopUEcVHostRequest
NewStopUEcVHostRequest will create request of StopUEcVHost action.
func (*UECClient) NewUnBindUEcFirewallRequest ¶
func (c *UECClient) NewUnBindUEcFirewallRequest() *UnBindUEcFirewallRequest
NewUnBindUEcFirewallRequest will create request of UnBindUEcFirewall action.
func (*UECClient) NewUpdateUEcFirewallAttributeRequest ¶
func (c *UECClient) NewUpdateUEcFirewallAttributeRequest() *UpdateUEcFirewallAttributeRequest
NewUpdateUEcFirewallAttributeRequest will create request of UpdateUEcFirewallAttribute action.
func (*UECClient) NewUpdateUEcFirewallRequest ¶
func (c *UECClient) NewUpdateUEcFirewallRequest() *UpdateUEcFirewallRequest
NewUpdateUEcFirewallRequest will create request of UpdateUEcFirewall action.
func (*UECClient) NewUpdateUEcSubnetRequest ¶
func (c *UECClient) NewUpdateUEcSubnetRequest() *UpdateUEcSubnetRequest
NewUpdateUEcSubnetRequest will create request of UpdateUEcSubnet action.
func (*UECClient) PoweroffUEcVHost ¶
func (c *UECClient) PoweroffUEcVHost(req *PoweroffUEcVHostRequest) (*PoweroffUEcVHostResponse, error)
API: PoweroffUEcVHost
虚拟机断电
func (*UECClient) ReinstallUEcVHost ¶
func (c *UECClient) ReinstallUEcVHost(req *ReinstallUEcVHostRequest) (*ReinstallUEcVHostResponse, error)
API: ReinstallUEcVHost
虚拟机重装系统
func (*UECClient) RestartUEcHolder ¶
func (c *UECClient) RestartUEcHolder(req *RestartUEcHolderRequest) (*RestartUEcHolderResponse, error)
API: RestartUEcHolder
重启容器组
func (*UECClient) RestartUEcVHost ¶
func (c *UECClient) RestartUEcVHost(req *RestartUEcVHostRequest) (*RestartUEcVHostResponse, error)
API: RestartUEcVHost
重启虚拟机v2.0
func (*UECClient) StartUEcVHost ¶
func (c *UECClient) StartUEcVHost(req *StartUEcVHostRequest) (*StartUEcVHostResponse, error)
API: StartUEcVHost
启动UEC虚拟机
func (*UECClient) StopUEcVHost ¶
func (c *UECClient) StopUEcVHost(req *StopUEcVHostRequest) (*StopUEcVHostResponse, error)
API: StopUEcVHost
停止UEC虚拟机
func (*UECClient) UnBindUEcFirewall ¶
func (c *UECClient) UnBindUEcFirewall(req *UnBindUEcFirewallRequest) (*UnBindUEcFirewallResponse, error)
API: UnBindUEcFirewall
解绑防火墙
func (*UECClient) UpdateUEcFirewall ¶
func (c *UECClient) UpdateUEcFirewall(req *UpdateUEcFirewallRequest) (*UpdateUEcFirewallResponse, error)
API: UpdateUEcFirewall
更新防火墙信息,新增和删除规则
func (*UECClient) UpdateUEcFirewallAttribute ¶
func (c *UECClient) UpdateUEcFirewallAttribute(req *UpdateUEcFirewallAttributeRequest) (*UpdateUEcFirewallAttributeResponse, error)
API: UpdateUEcFirewallAttribute
更新防火墙名称及描述
func (*UECClient) UpdateUEcSubnet ¶
func (c *UECClient) UpdateUEcSubnet(req *UpdateUEcSubnetRequest) (*UpdateUEcSubnetResponse, error)
API: UpdateUEcSubnet
更新子网信息
type UnBindUEcFirewallRequest ¶
type UnBindUEcFirewallRequest struct { request.CommonBase // 防火墙Id FirewallId *string `required:"true"` // 节点Id或容器组资源id ResourceId *string `required:"true"` }
UnBindUEcFirewallRequest is request schema for UnBindUEcFirewall action
type UnBindUEcFirewallResponse ¶
type UnBindUEcFirewallResponse struct {
response.CommonBase
}
UnBindUEcFirewallResponse is response schema for UnBindUEcFirewall action
type UpdateUEcFirewallAttributeRequest ¶
type UpdateUEcFirewallAttributeRequest struct { request.CommonBase // 防火墙Id FirewallId *string `required:"true"` // 防火墙名称 Name *string `required:"false"` // 描述 Remark *string `required:"false"` }
UpdateUEcFirewallAttributeRequest is request schema for UpdateUEcFirewallAttribute action
type UpdateUEcFirewallAttributeResponse ¶
type UpdateUEcFirewallAttributeResponse struct {
response.CommonBase
}
UpdateUEcFirewallAttributeResponse is response schema for UpdateUEcFirewallAttribute action
type UpdateUEcFirewallParamRule ¶
type UpdateUEcFirewallParamRule struct { // ACCEPT(接受)和DROP(拒绝) Action *string `required:"true"` // 端口,范围用"-"符号分隔,如:1-65535 Port *string `required:"true"` // 优先级:HIGH(高),MEDIUM(中),LOW(低) Priority *string `required:"true"` // 协议,可选值:TCP,UDP,ICMP ProtocolType *string `required:"true"` // 备注 Remark *string `required:"true"` // 源ip SrcIp *string `required:"true"` }
UpdateUEcFirewallParamRule is request schema for complex param
type UpdateUEcFirewallRequest ¶
type UpdateUEcFirewallRequest struct { request.CommonBase // 防火墙Id FirewallId *string `required:"true"` // Rule []UpdateUEcFirewallParamRule `required:"false"` }
UpdateUEcFirewallRequest is request schema for UpdateUEcFirewall action
type UpdateUEcFirewallResponse ¶
type UpdateUEcFirewallResponse struct {
response.CommonBase
}
UpdateUEcFirewallResponse is response schema for UpdateUEcFirewall action
type UpdateUEcSubnetRequest ¶
type UpdateUEcSubnetRequest struct { request.CommonBase // 备注 Comment *string `required:"false"` // 子网ID SubnetId *string `required:"true"` // 子网名称 SubnetName *string `required:"false"` }
UpdateUEcSubnetRequest is request schema for UpdateUEcSubnet action
type UpdateUEcSubnetResponse ¶
type UpdateUEcSubnetResponse struct {
response.CommonBase
}
UpdateUEcSubnetResponse is response schema for UpdateUEcSubnet action