Documentation ¶
Index ¶
- type Az
- type DeviceType
- type ElasticIp
- type ElasticIpSpec
- type Instance
- type InstanceSpec
- type Keypair
- type Listener
- type ListenerSpec
- type LoadBalancer
- type LoadBalancerSpec
- type MetricData
- type MetricInfo
- type MetricTag
- type MetricValue
- type Os
- type Raid
- type Region
- type ReinstallInstanceSpec
- type RenewalResource
- type Route
- type RouteTable
- type Server
- type ServerGroup
- type ServerGroupSpec
- type ServerSpec
- type Subnet
- type SubnetSpec
- type Vpc
- type VpcSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceType ¶
type DeviceType struct { /* 实例类型, 如 cps.c.normal (Optional) */ DeviceType string `json:"deviceType"` /* 实例类型名称, 如 标准计算型 (Optional) */ Name string `json:"name"` /* 实例所属规格系列,如 计算、存储、GPU (Optional) */ Family string `json:"family"` /* 区域代码, 如 cn-east-1 (Optional) */ Region string `json:"region"` /* CPU概要描述 (Optional) */ CpuConcise string `json:"cpuConcise"` /* CPU详细信息 (Optional) */ CpuDetail string `json:"cpuDetail"` /* 内存概要信息 (Optional) */ MemConcise string `json:"memConcise"` /* 内存详细信息 (Optional) */ MemDetail string `json:"memDetail"` /* 网口概要信息 (Optional) */ IfConcise string `json:"ifConcise"` /* 网口详细信息 (Optional) */ IfDetail string `json:"ifDetail"` /* GPU概要信息 (Optional) */ GpuConcise string `json:"gpuConcise"` /* GPU详细信息 (Optional) */ GpuDetail string `json:"gpuDetail"` /* 系统盘数量 (Optional) */ SystemDiskAmount int `json:"systemDiskAmount"` /* 系统盘单盘大小(GB) (Optional) */ SystemDiskSize int `json:"systemDiskSize"` /* 系统盘规格 (Optional) */ SystemDiskModel string `json:"systemDiskModel"` /* 数据盘数量 (Optional) */ DataDiskAmount int `json:"dataDiskAmount"` /* 数据盘单盘大小(GB) (Optional) */ DataDiskSize int `json:"dataDiskSize"` /* 数据盘规格 (Optional) */ DataDiskModel string `json:"dataDiskModel"` /* 售罄状态 (Optional) */ IsSoldOut bool `json:"isSoldOut"` }
type ElasticIp ¶ added in v1.8.0
type ElasticIp struct { /* 地域代码, 如cn-north-1 (Optional) */ Region string `json:"region"` /* 弹性公网IPID (Optional) */ ElasticIpId string `json:"elasticIpId"` /* 弹性公网IP (Optional) */ ElasticIp string `json:"elasticIp"` /* 带宽, 单位Mbps (Optional) */ Bandwidth int `json:"bandwidth"` /* 链路类型 (Optional) */ LineType string `json:"lineType"` /* 状态 (Optional) */ Status string `json:"status"` /* 实例类型 (Optional) */ InstanceType string `json:"instanceType"` /* 实例ID (Optional) */ InstanceId string `json:"instanceId"` /* 创建时间 (Optional) */ CreateTime string `json:"createTime"` /* 计费信息 (Optional) */ Charge charge.Charge `json:"charge"` }
type ElasticIpSpec ¶ added in v1.8.0
type ElasticIpSpec struct { /* 带宽, 范围[1,200] 单位Mbps */ Bandwidth int `json:"bandwidth"` /* 购买数量 */ Count int `json:"count"` /* 计费配置 */ Charge *charge.ChargeSpec `json:"charge"` }
type Instance ¶
type Instance struct { /* 云物理服务器实例ID (Optional) */ InstanceId string `json:"instanceId"` /* 区域代码, 如 cn-east-1 (Optional) */ Region string `json:"region"` /* 可用区, 如 cn-east-1a (Optional) */ Az string `json:"az"` /* 实例类型, 如 cps.c.normal (Optional) */ DeviceType string `json:"deviceType"` /* 云物理服务器名称 (Optional) */ Name string `json:"name"` /* 云物理服务器描述 (Optional) */ Description string `json:"description"` /* 云物理服务器生命周期状态 (Optional) */ Status string `json:"status"` /* 是否启用外网, 如 yes/no (Optional) */ EnableInternet string `json:"enableInternet"` /* 是否启用IPv6, 如 yes/no (Optional) */ EnableIpv6 string `json:"enableIpv6"` /* 带宽, 单位Mbps (Optional) */ Bandwidth int `json:"bandwidth"` /* 镜像类型, 如 standard (Optional) */ ImageType string `json:"imageType"` /* 操作系统类型ID (Optional) */ OsTypeId string `json:"osTypeId"` /* 操作系统名称 (Optional) */ OsName string `json:"osName"` /* 操作系统类型, 如 ubuntu/centos (Optional) */ OsType string `json:"osType"` /* 操作系统版本, 如 16.04 (Optional) */ OsVersion string `json:"osVersion"` /* 系统盘RAID类型ID (Optional) */ SysRaidTypeId string `json:"sysRaidTypeId"` /* 系统盘RAID类型, 如 NORAID, RAID0, RAID1 (Optional) */ SysRaidType string `json:"sysRaidType"` /* 数据盘RAID类型ID (Optional) */ DataRaidTypeId string `json:"dataRaidTypeId"` /* 数据盘RAID类型, 如 NORAID, RAID0, RAID1 (Optional) */ DataRaidType string `json:"dataRaidType"` /* 网络类型, 如 basic, vpc (Optional) */ NetworkType string `json:"networkType"` /* 私有网络ID (Optional) */ VpcId string `json:"vpcId"` /* 私有网络名称 (Optional) */ VpcName string `json:"vpcName"` /* 子网编号 (Optional) */ SubnetId string `json:"subnetId"` /* 子网名称 (Optional) */ SubnetName string `json:"subnetName"` /* 内网IP (Optional) */ PrivateIp string `json:"privateIp"` /* 外网链路类型, 如 bgp (Optional) */ LineType string `json:"lineType"` /* 弹性公网IPID (Optional) */ ElasticIpId string `json:"elasticIpId"` /* 公网IP (Optional) */ PublicIp string `json:"publicIp"` /* 公网IPv6 (Optional) */ PublicIpv6 string `json:"publicIpv6"` /* 密钥对id (Optional) */ KeypairId string `json:"keypairId"` /* agent状态 (Optional) */ AgentStatus string `json:"agentStatus"` /* 计费信息 (Optional) */ Charge charge.Charge `json:"charge"` }
type InstanceSpec ¶
type InstanceSpec struct { /* 可用区, 如 cn-east-1 */ Az string `json:"az"` /* 实例类型, 如 cps.c.normal */ DeviceType string `json:"deviceType"` /* 主机名 (Optional) */ Hostname *string `json:"hostname"` /* 镜像类型, 取值范围:standard */ ImageType string `json:"imageType"` /* 操作系统类型ID */ OsTypeId string `json:"osTypeId"` /* 系统盘RAID类型ID */ SysRaidTypeId string `json:"sysRaidTypeId"` /* 数据盘RAID类型ID */ DataRaidTypeId string `json:"dataRaidTypeId"` /* 子网编号 (Optional) */ SubnetId *string `json:"subnetId"` /* 是否启用外网,取值范围:yes、no (Optional) */ EnableInternet *string `json:"enableInternet"` /* 是否启用IPv6,取值范围:yes、no (Optional) */ EnableIpv6 *string `json:"enableIpv6"` /* 网络类型,取值范围:basic、vpc */ NetworkType string `json:"networkType"` /* 网络CIDR (Optional) */ Cidr *string `json:"cidr"` /* 内网IP (Optional) */ PrivateIp *string `json:"privateIp"` /* 外网链路类型, 目前只支持bgp (Optional) */ LineType *string `json:"lineType"` /* 外网带宽, 范围[1,200] 单位Mbps (Optional) */ Bandwidth *int `json:"bandwidth"` /* 云物理服务器名称 */ Name string `json:"name"` /* 云物理服务器描述 (Optional) */ Description *string `json:"description"` /* 密码,不传值会随机生成密码 (Optional) */ Password *string `json:"password"` /* 购买数量 */ Count int `json:"count"` /* 可执行脚本Base64编码后的内容,支持shell和python脚本 (Optional) */ UserData *string `json:"userData"` /* 密钥对id (Optional) */ KeypairId *string `json:"keypairId"` /* 计费配置 */ Charge *charge.ChargeSpec `json:"charge"` }
type Keypair ¶ added in v1.13.0
type Keypair struct { /* 密钥对id (Optional) */ KeypairId string `json:"keypairId"` /* 地域 (Optional) */ Region string `json:"region"` /* 密钥对名称 (Optional) */ Name string `json:"name"` /* 公钥 (Optional) */ PublicKey string `json:"publicKey"` /* 指纹 (Optional) */ FingerPrint string `json:"fingerPrint"` /* 创建时间 (Optional) */ CreateTime string `json:"createTime"` /* 更新时间 (Optional) */ UpdateTime string `json:"updateTime"` }
type Listener ¶ added in v1.11.0
type Listener struct { /* 监听器ID (Optional) */ ListenerId string `json:"listenerId"` /* 负载均衡ID (Optional) */ LoadBalancerId string `json:"loadBalancerId"` /* 协议 (Optional) */ Protocol string `json:"protocol"` /* 端口 (Optional) */ Port int `json:"port"` /* 调度算法 (Optional) */ Algorithm string `json:"algorithm"` /* 会话保持状态,取值on|off (Optional) */ StickySession string `json:"stickySession"` /* 获取真实ip (Optional) */ RealIp string `json:"realIp"` /* 状态 (Optional) */ Status string `json:"status"` /* 名称 (Optional) */ Name string `json:"name"` /* 描述 (Optional) */ Description string `json:"description"` /* 健康检查状态,取值on|off (Optional) */ HealthCheck string `json:"healthCheck"` /* 健康检查响应的最大超时时间,单位s (Optional) */ HealthCheckTimeout int `json:"healthCheckTimeout"` /* 健康检查响应的最大间隔时间,单位s (Optional) */ HealthCheckInterval int `json:"healthCheckInterval"` /* 健康检查结果为success的阈值 (Optional) */ HealthyThreshold int `json:"healthyThreshold"` /* 健康检查结果为fail的阈值 (Optional) */ UnhealthyThreshold int `json:"unhealthyThreshold"` /* 健康检查ip (Optional) */ HealthCheckIp string `json:"healthCheckIp"` /* 服务器组id (Optional) */ ServerGroupId string `json:"serverGroupId"` }
type ListenerSpec ¶ added in v1.11.0
type ListenerSpec struct { /* 负载均衡实例ID */ LoadBalancerId string `json:"loadBalancerId"` /* 协议, 如TCP */ Protocol string `json:"protocol"` /* 端口1-65535 */ Port int `json:"port"` /* 调度算法,取值wrr(加权轮询)|wlc(加权最小连接数)|conhash(源IP)) */ Algorithm string `json:"algorithm"` /* 是否开启会话保持,取值on|off */ StickySession string `json:"stickySession"` /* 是否获取真实ip,取值on|off (Optional) */ RealIp *string `json:"realIp"` /* 名称 */ Name string `json:"name"` /* 描述 (Optional) */ Description *string `json:"description"` /* 是否开启健康检查,取值on|off */ HealthCheck string `json:"healthCheck"` /* 健康检查响应的最大超时时间,单位s (Optional) */ HealthCheckTimeout *int `json:"healthCheckTimeout"` /* 健康检查响应的最大间隔时间,单位s (Optional) */ HealthCheckInterval *int `json:"healthCheckInterval"` /* 健康检查结果为success的阈值 (Optional) */ HealthyThreshold *int `json:"healthyThreshold"` /* 健康检查结果为fail的阈值 (Optional) */ UnhealthyThreshold *int `json:"unhealthyThreshold"` /* 服务器组id (Optional) */ ServerGroupId *string `json:"serverGroupId"` }
type LoadBalancer ¶ added in v1.11.0
type LoadBalancer struct { /* 负载均衡实例ID (Optional) */ LoadBalancerId string `json:"loadBalancerId"` /* 地域,如cn-east-1 (Optional) */ Region string `json:"region"` /* IP版本,取值ipv4 (Optional) */ IpAddressType string `json:"ipAddressType"` /* 网络类型,取值public (Optional) */ NetType string `json:"netType"` /* 私有网络ID (Optional) */ VpcId string `json:"vpcId"` /* 弹性公网IPID (Optional) */ ElasticIpId string `json:"elasticIpId"` /* 公网IP (Optional) */ PublicIp string `json:"publicIp"` /* 带宽 (Optional) */ Bandwidth int `json:"bandwidth"` /* 状态,取值active|inactive (Optional) */ Status string `json:"status"` /* 名称 (Optional) */ Name string `json:"name"` /* 描述 (Optional) */ Description string `json:"description"` /* 创建时间 (Optional) */ CreateTime string `json:"createTime"` /* 计费配置 (Optional) */ Charge charge.Charge `json:"charge"` }
type LoadBalancerSpec ¶ added in v1.11.0
type LoadBalancerSpec struct { /* 网络类型,取值public */ NetType string `json:"netType"` /* 负载均衡实例的IP版本,取值ipv4 */ IpAddressType string `json:"ipAddressType"` /* 私有网络ID */ VpcId string `json:"vpcId"` /* 名称 */ Name string `json:"name"` /* 描述 (Optional) */ Description *string `json:"description"` /* 是否申请弹性公网Ip */ ApplyElasticIp bool `json:"applyElasticIp"` /* 带宽 */ Bandwidth int `json:"bandwidth"` /* 计费配置 */ Charge *charge.ChargeSpec `json:"charge"` }
type MetricData ¶ added in v1.11.0
type MetricData struct { /* 监控指标数据 (Optional) */ Data []MetricValue `json:"data"` /* 监控指标标签 (Optional) */ Tags []MetricTag `json:"tags"` /* 监控指标概览 (Optional) */ Metric MetricInfo `json:"metric"` }
type MetricInfo ¶ added in v1.11.0
type MetricInfo struct { /* 监控数据统计单位 (Optional) */ CalculateUnit string `json:"calculateUnit"` /* 监控数据指标 (Optional) */ Metirc string `json:"metirc"` /* 监控数据指标描述 (Optional) */ MetricName string `json:"metricName"` /* 监控数据聚合方式 (Optional) */ Aggregator string `json:"aggregator"` /* 监控数据统计周期 (Optional) */ Period string `json:"period"` }
type MetricValue ¶ added in v1.11.0
type Os ¶
type Os struct { /* 操作系统系统类型ID (Optional) */ OsTypeId string `json:"osTypeId"` /* 操作系统系统名称, 如 Ubuntu 16.04(x86_64) (Optional) */ OsName string `json:"osName"` /* 操作系统类型, 如 ubuntu/centos (Optional) */ OsType string `json:"osType"` /* 操作系统版本, 如 14.04/16.04 (Optional) */ OsVersion string `json:"osVersion"` /* 实例类型, 如 cps.c.normal (Optional) */ DeviceType string `json:"deviceType"` }
type Raid ¶
type Raid struct { /* 磁盘类型, 如 system/data (Optional) */ VolumeType string `json:"volumeType"` /* 设备详情 (Optional) */ VolumeDetail string `json:"volumeDetail"` /* RAID类型ID (Optional) */ RaidTypeId string `json:"raidTypeId"` /* RAID类型, 如 NORAID, RAID0, RAID1 (Optional) */ RaidType string `json:"raidType"` /* 云物理服务器类型, 如 cps.c.normal (Optional) */ DeviceType string `json:"deviceType"` /* RAID类型描述 (Optional) */ Description string `json:"description"` }
type ReinstallInstanceSpec ¶
type ReinstallInstanceSpec struct { /* 可用区, 如cn-east-1a */ Az string `json:"az"` /* 镜像类型, 取值范围:standard、standard_app */ ImageType string `json:"imageType"` /* 操作系统类型ID */ OsTypeId string `json:"osTypeId"` /* 系统盘RAID类型ID */ SysRaidTypeId string `json:"sysRaidTypeId"` /* 是否保留数据盘数据, 取值为:yes、no */ KeepData string `json:"keepData"` /* 数据盘RAID类型ID */ DataRaidTypeId string `json:"dataRaidTypeId"` /* 密码 */ Password string `json:"password"` /* 主机名 (Optional) */ Hostname *string `json:"hostname"` /* 可执行脚本Base64编码后的内容,支持shell和python脚本 (Optional) */ UserData *string `json:"userData"` /* 秘钥对id (Optional) */ KeypairId *string `json:"keypairId"` }
type RenewalResource ¶ added in v1.8.0
type RenewalResource struct { /* 资源ID (Optional) */ ResourceId string `json:"resourceId"` /* 资源名称 (Optional) */ ResourceName string `json:"resourceName"` /* 备注 (Optional) */ Remark string `json:"remark"` /* 绑定资源列表 (Optional) */ Bind []RenewalResource `json:"bind"` }
type RouteTable ¶ added in v1.11.0
type RouteTable struct { /* 路由表ID (Optional) */ RouteTableId string `json:"routeTableId"` /* 地域 (Optional) */ Region string `json:"region"` /* 私有网络ID (Optional) */ VpcId string `json:"vpcId"` /* 名称 (Optional) */ Name string `json:"name"` /* 创建时间 (Optional) */ CreateTime string `json:"createTime"` /* 路由规则 (Optional) */ Routes []Route `json:"routes"` }
type Server ¶ added in v1.11.0
type Server struct { /* 服务器ID (Optional) */ ServerId string `json:"serverId"` /* 资源类型 (Optional) */ InstanceType string `json:"instanceType"` /* 实例名称 (Optional) */ InstanceName string `json:"instanceName"` /* 后端云物理服务器ID (Optional) */ InstanceId string `json:"instanceId"` /* 可用区 (Optional) */ Az string `json:"az"` /* 内网Ip (Optional) */ PrivateIp string `json:"privateIp"` /* 端口 (Optional) */ Port int `json:"port"` /* 后端云物理服务器权重 (Optional) */ Weight int `json:"weight"` /* 状态 (Optional) */ Status string `json:"status"` /* 健康状态 (Optional) */ HealthyStatus string `json:"healthyStatus"` }
type ServerGroup ¶ added in v1.11.0
type ServerGroupSpec ¶ added in v1.11.0
type ServerSpec ¶ added in v1.11.0
type Subnet ¶
type Subnet struct { /* 地域代码, 如cn-east-1 (Optional) */ Region string `json:"region"` /* 可用区, 如cn-east-1a (Optional) */ Az string `json:"az"` /* 子网ID (Optional) */ SubnetId string `json:"subnetId"` /* 子网名称 (Optional) */ Name string `json:"name"` /* 子网CIDR (Optional) */ Cidr string `json:"cidr"` /* 私有网络Id (Optional) */ VpcId string `json:"vpcId"` /* 私有网络名称 (Optional) */ VpcName string `json:"vpcName"` /* 可用ip数量 (Optional) */ AvailableIpCount int `json:"availableIpCount"` /* 总ip数量 (Optional) */ TotalIpCount int `json:"totalIpCount"` /* 网络类型 (Optional) */ NetworkType string `json:"networkType"` /* 描述 (Optional) */ Description string `json:"description"` /* 创建时间 (Optional) */ CreateTime string `json:"createTime"` }
type SubnetSpec ¶ added in v1.8.0
type Vpc ¶ added in v1.8.0
type Vpc struct { /* 地域代码, 如cn-north-1 (Optional) */ Region string `json:"region"` /* 私有网络ID (Optional) */ VpcId string `json:"vpcId"` /* 私有网络名称 (Optional) */ Name string `json:"name"` /* 私有网络CIDR (Optional) */ Cidr string `json:"cidr"` /* 描述 (Optional) */ Description string `json:"description"` /* 创建时间 (Optional) */ CreateTime string `json:"createTime"` }
Source Files ¶
- Az.go
- DeviceType.go
- ElasticIp.go
- ElasticIpSpec.go
- Instance.go
- InstanceSpec.go
- Keypair.go
- Listener.go
- ListenerSpec.go
- LoadBalancer.go
- LoadBalancerSpec.go
- MetricData.go
- MetricInfo.go
- MetricTag.go
- MetricValue.go
- Os.go
- Raid.go
- Region.go
- ReinstallInstanceSpec.go
- RenewalResource.go
- Route.go
- RouteTable.go
- Server.go
- ServerGroup.go
- ServerGroupSpec.go
- ServerSpec.go
- Subnet.go
- SubnetSpec.go
- Vpc.go
- VpcSpec.go
Click to show internal directories.
Click to hide internal directories.