Documentation
¶
Index ¶
- type AddNetworkAclRuleSpec
- type AddNetworkAclRulesSpec
- type AddNetworkSecurityGroupRulesSpec
- type AddRouteTableRules
- type AddRouteTableRulesSpec
- type AddSecurityGroupRules
- type AssignSecondaryIpsSpec
- type AssociateElasticIpSpec
- type AssociateRouteTableSpec
- type CreateElasticIpSpec
- type CreateVpcPeeringSpec
- type DisassociateElasticIpSpec
- type DisassociateRouteTableSpec
- type ElasticIp
- type ElasticIpSpec
- type ModifyElasticIpSpec
- type ModifyNetworkAclRuleSpec
- type ModifyNetworkAclRuleSpecs
- type ModifyNetworkAclRulesSpec
- type ModifyNetworkAclSpec
- type ModifyNetworkInterfaceSpec
- type ModifyNetworkSecurityGroupSpec
- type ModifyQuotaSpec
- type ModifyRouteTableRules
- type ModifyRouteTableRulesSpec
- type ModifyRouteTableSpec
- type ModifySecurityGroupRuleSpec
- type ModifySecurityGroupRules
- type ModifySubnetSpec
- type ModifyVpcPeeringSpec
- type ModifyVpcSpec
- type NetworkAcl
- type NetworkAclRule
- type NetworkAclSpec
- type NetworkInterface
- type NetworkInterfacePrivateIp
- type NetworkInterfaceSpec
- type NetworkSecurityGroup
- type NetworkSecurityGroupSpec
- type Quota
- type RouteTable
- type RouteTableRule
- type RouteTableSpec
- type SecurityGroupRule
- type Segment
- type Subnet
- type SubnetSpec
- type UnassignSecondaryIpsSpec
- type Vpc
- type VpcPeering
- type VpcPeeringVpcInfo
- type VpcSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNetworkAclRuleSpec ¶ added in v1.0.9
type AddNetworkAclRuleSpec struct {
/* 规则限定协议。取值范围:All,TCP,UDP,ICMP */
Protocol string `json:"protocol"`
/* 规则限定起始传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为1,若protocol不是传输层协议,设置无效,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
FromPort *int `json:"fromPort"`
/* 规则限定终止传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为65535,若protocol不是传输层协议,设置无效,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
ToPort *int `json:"toPort"`
/* networkAcl规则方向。ingress:入规则; egress:出规则 */
Direction string `json:"direction"`
/* 匹配地址前缀 */
AddressPrefix string `json:"addressPrefix"`
/* 访问控制策略:allow:允许,deny:拒绝 */
RuleAction string `json:"ruleAction"`
/* 规则匹配优先级,取值范围为[1,32768],优先级数字越小优先级越高 */
Priority int `json:"priority"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description *string `json:"description"`
}
type AddNetworkAclRulesSpec ¶ added in v1.0.9
type AddNetworkAclRulesSpec struct {
/* networkAcl规则列表 */
NetworkAclRuleSpecs []AddNetworkAclRuleSpec `json:"networkAclRuleSpecs"`
}
type AddNetworkSecurityGroupRulesSpec ¶ added in v1.0.5
type AddNetworkSecurityGroupRulesSpec struct {
/* 安全组规则信息 */
NetworkSecurityGroupRuleSpecs []AddSecurityGroupRules `json:"networkSecurityGroupRuleSpecs"`
}
type AddRouteTableRules ¶ added in v1.0.9
type AddRouteTableRules struct {
/* 下一跳类型, 取值范围:instance:云主机, internet:公网, vpc_peering:vpc对等连接, bgw:边界网关 */
NextHopType string `json:"nextHopType"`
/* 下一跳id */
NextHopId string `json:"nextHopId"`
/* 匹配地址前缀, internet类型路由跟其他类型的路由,addressPrefix不允许重复 */
AddressPrefix string `json:"addressPrefix"`
/* 规则匹配优先级,取值范围[1,255],默认为100。当路由规则子网掩码不同时,路由最长匹配优先;当路由规则子网掩码相同时, 按照优先级匹配转发, 优先级数字越小优先级越高,路由规则子网掩码相同、优先级相同、下一跳不同时,形成等价路由,不同下一跳负载均担。 (Optional) */
Priority *int `json:"priority"`
}
type AddRouteTableRulesSpec ¶ added in v1.0.9
type AddRouteTableRulesSpec struct {
/* 安全组规则信息 */
RouteTableRuleSpecs []AddRouteTableRules `json:"routeTableRuleSpecs"`
}
type AddSecurityGroupRules ¶ added in v1.0.5
type AddSecurityGroupRules struct {
/* 规则限定协议。300:All; 6:TCP; 17:UDP; 1:ICMP */
Protocol int `json:"protocol"`
/* 安全组规则方向。0:入规则; 1:出规则 */
Direction int `json:"direction"`
/* 匹配地址前缀 */
AddressPrefix string `json:"addressPrefix"`
/* 规则限定起始传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为1,若protocol不是传输层协议,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
FromPort *int `json:"fromPort"`
/* 规则限定终止传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为65535,若protocol不是传输层协议,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
ToPort *int `json:"toPort"`
/* 描述, 允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description *string `json:"description"`
}
type AssignSecondaryIpsSpec ¶
type AssignSecondaryIpsSpec struct {
/* secondary ip被其他接口占用时,是否抢占。false:非抢占重分配,true:抢占重分配,默认抢占重分配。默认值:true (Optional) */
Force bool `json:"force"`
/* 指定分配的secondaryIp地址 (Optional) */
SecondaryIps []string `json:"secondaryIps"`
/* 指定自动分配的secondaryIp个数 (Optional) */
SecondaryIpCount int `json:"secondaryIpCount"`
}
type AssociateElasticIpSpec ¶
type AssociateRouteTableSpec ¶ added in v1.0.9
type AssociateRouteTableSpec struct {
/* 路由表要绑定的子网ID列表, subnet已被其他路由表绑定时,自动解绑。 */
SubnetIds []string `json:"subnetIds"`
}
type CreateElasticIpSpec ¶
type CreateElasticIpSpec struct {
/* 购买弹性ip数量;取值范围:[1,100] */
MaxCount int `json:"maxCount"`
/* 指定弹性ip地址进行创建,当申请创建多个弹性ip时,必须为空 (Optional) */
ElasticIpAddress string `json:"elasticIpAddress"`
/* 弹性ip规格 */
ElasticIpSpec ElasticIpSpec `json:"elasticIpSpec"`
}
type CreateVpcPeeringSpec ¶
type CreateVpcPeeringSpec struct {
/* VpcPeering的名字,不为空。名称取值范围:1-32个中文、英文大小写的字母、数字和下划线分隔符 */
VpcPeeringName string `json:"vpcPeeringName"`
/* VpcPeering本端Vpc的Id */
VpcId string `json:"vpcId"`
/* VpcPeering对端Vpc的Id */
RemoteVpcId string `json:"remoteVpcId"`
/* VpcPeering 描述,取值范围:0-256个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
Description string `json:"description"`
}
type DisassociateRouteTableSpec ¶ added in v1.0.9
type DisassociateRouteTableSpec struct {
/* 路由表要解绑的子网ID,解绑后子网绑定默认路由表 */
SubnetId string `json:"subnetId"`
}
type ElasticIp ¶
type ElasticIp struct {
/* 弹性IP的Id (Optional) */
ElasticIpId string `json:"elasticIpId"`
/* 弹性IP地址 (Optional) */
ElasticIpAddress string `json:"elasticIpAddress"`
/* 弹性ip的限速(单位:Mbps) (Optional) */
BandwidthMbps int `json:"bandwidthMbps"`
/* IP服务商,取值为bgp或no_bgp (Optional) */
Provider string `json:"provider"`
/* 私有IP的IPV4地址 (Optional) */
PrivateIpAddress string `json:"privateIpAddress"`
/* 配置弹性网卡Id (Optional) */
NetworkInterfaceId string `json:"networkInterfaceId"`
/* 实例Id (Optional) */
InstanceId string `json:"instanceId"`
/* 实例类型 (Optional) */
InstanceType string `json:"instanceType"`
/* 计费配置 (Optional) */
Charge charge.Charge `json:"charge"`
/* 弹性ip创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
/* 弹性ip可用区属性,如果为空,表示全可用区 (Optional) */
Az string `json:"az"`
}
type ElasticIpSpec ¶
type ElasticIpSpec struct {
/* 弹性公网IP的限速(单位:Mbps),取值范围为[1-200] */
BandwidthMbps int `json:"bandwidthMbps"`
/* IP服务商,取值为bgp或no_bgp,cn-north-1:bgp;cn-south-1:[bgp,no_bgp];cn-east-1:[bgp,no_bgp];cn-east-2:bgp */
Provider string `json:"provider"`
/* 计费配置 (Optional) */
ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
}
type ModifyElasticIpSpec ¶ added in v1.0.5
type ModifyElasticIpSpec struct {
/* 弹性公网IP的限速(单位:Mbps),取值范围为[1-200] */
BandwidthMbps int `json:"bandwidthMbps"`
}
type ModifyNetworkAclRuleSpec ¶ added in v1.0.9
type ModifyNetworkAclRuleSpec struct {
/* networkAcl规则ID */
RuleId string `json:"ruleId"`
/* 规则限定协议。取值范围:All,TCP,UDP,ICMP (Optional) */
Protocol *string `json:"protocol"`
/* 规则限定起始传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为1,若protocol不是传输层协议,设置无效,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
FromPort *int `json:"fromPort"`
/* 规则限定终止传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为65535,若protocol不是传输层协议,设置无效,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
ToPort *int `json:"toPort"`
/* 匹配地址前缀 (Optional) */
AddressPrefix *string `json:"addressPrefix"`
/* 访问控制策略:allow:允许,deny:拒绝 (Optional) */
RuleAction *string `json:"ruleAction"`
/* 规则匹配优先级,取值范围为[1,32768],优先级数字越小优先级越高 (Optional) */
Priority *int `json:"priority"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description *string `json:"description"`
}
type ModifyNetworkAclRuleSpecs ¶ added in v1.0.9
type ModifyNetworkAclRuleSpecs struct {
/* networkAcl规则列表 */
ModifyNetworkAclRuleSpecs []ModifyNetworkAclRuleSpec `json:"modifyNetworkAclRuleSpecs"`
}
type ModifyNetworkAclRulesSpec ¶ added in v1.0.11
type ModifyNetworkAclRulesSpec struct {
/* networkAcl规则列表 */
ModifyNetworkAclRuleSpecs []ModifyNetworkAclRuleSpec `json:"modifyNetworkAclRuleSpecs"`
}
type ModifyNetworkAclSpec ¶ added in v1.0.9
type ModifyNetworkInterfaceSpec ¶ added in v1.0.5
type ModifyNetworkInterfaceSpec struct {
/* 弹性网卡名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
NetworkInterfaceName string `json:"networkInterfaceName"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description string `json:"description"`
/* 以覆盖原有安全组的方式更新的安全组。如果更新安全组ID列表,最多5个安全组 (Optional) */
SecurityGroups []string `json:"securityGroups"`
}
type ModifyNetworkSecurityGroupSpec ¶ added in v1.0.5
type ModifyQuotaSpec ¶ added in v1.0.5
type ModifyQuotaSpec struct {
/* 资源类型,取值范围:vpc、elastic_ip、subnet、security_group、vpcpeering、network_interface(配额只统计辅助网卡) */
Type string `json:"type"`
/* type为vpc、elastic_ip、network_interface不设置, type为subnet、security_group、vpcpeering设置为vpcId (Optional) */
ParentResourceId string `json:"parentResourceId"`
/* 配额大小 */
MaxLimit int `json:"maxLimit"`
}
type ModifyRouteTableRules ¶ added in v1.0.9
type ModifyRouteTableRules struct {
/* 路由表规则的ID */
RuleId string `json:"ruleId"`
/* 规则匹配优先级,取值范围[1,255]。当路由规则子网掩码不同时,路由最长匹配优先;当路由规则子网掩码相同时, 按照优先级匹配转发, 优先级数字越小优先级越高,路由规则子网掩码相同、优先级相同、下一跳不同时,形成等价路由,不同下一跳负载均担。 (Optional) */
Priority *int `json:"priority"`
/* 下一跳类型, 取值范围:instance:云主机, internet:公网, vpc_peering:vpc对等连接, bgw:边界网关 (Optional) */
NextHopType *string `json:"nextHopType"`
/* 下一跳id (Optional) */
NextHopId *string `json:"nextHopId"`
/* 路由表规则前缀, internet类型路由跟其他类型的路由,addressPrefix不允许重复 (Optional) */
AddressPrefix *string `json:"addressPrefix"`
}
type ModifyRouteTableRulesSpec ¶ added in v1.0.9
type ModifyRouteTableRulesSpec struct {
/* 路由表规则信息 */
ModifyRouteTableRuleSpecs []ModifyRouteTableRules `json:"modifyRouteTableRuleSpecs"`
}
type ModifyRouteTableSpec ¶ added in v1.0.9
type ModifySecurityGroupRuleSpec ¶ added in v1.0.5
type ModifySecurityGroupRuleSpec struct {
/* 安全组规则信息 */
ModifySecurityGroupRuleSpecs []ModifySecurityGroupRules `json:"modifySecurityGroupRuleSpecs"`
}
type ModifySecurityGroupRules ¶ added in v1.0.5
type ModifySecurityGroupRules struct {
/* 安全组规则的ID。 */
RuleId string `json:"ruleId"`
/* 规则限定协议。300:All; 6:TCP; 17:UDP; 1:ICMP (Optional) */
Protocol *int `json:"protocol"`
/* 安全组规则的起始端口。取值范围:1-65535 (Optional) */
FromPort *int `json:"fromPort"`
/* 安全组规则的终端口。取值范围:1-65535 (Optional) */
ToPort *int `json:"toPort"`
/* 安全组规则前缀,取值范围:正确的CIDR (Optional) */
AddressPrefix *string `json:"addressPrefix"`
/* 安全组规则的描述,取值范围:0-256个UTF-8编码下的全部字符 (Optional) */
Description *string `json:"description"`
}
type ModifySubnetSpec ¶ added in v1.0.9
type ModifyVpcPeeringSpec ¶
type ModifyVpcSpec ¶ added in v1.0.9
type NetworkAcl ¶ added in v1.0.9
type NetworkAcl struct {
/* networkAcl ID (Optional) */
NetworkAclId string `json:"networkAclId"`
/* networkAcl名称 (Optional) */
NetworkAclName string `json:"networkAclName"`
/* 私有网络 ID (Optional) */
VpcId string `json:"vpcId"`
/* networkAcl规则列表 (Optional) */
NetworkAclRules []NetworkAclRule `json:"networkAclRules"`
/* networkAcl绑定的子网列表 (Optional) */
SubnetIds []string `json:"subnetIds"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description string `json:"description"`
/* networkAcl创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NetworkAclRule ¶ added in v1.0.9
type NetworkAclRule struct {
/* networkAcl规则ID (Optional) */
RuleId string `json:"ruleId"`
/* 规则限定协议。取值范围:All,TCP,UDP,ICMP (Optional) */
Protocol string `json:"protocol"`
/* 规则限定起始传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为1,若protocol不是传输层协议,设置无效,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
FromPort int `json:"fromPort"`
/* 规则限定终止传输层端口, 取值范围:1-65535, 若protocol为传输层协议,默认值为65535,若protocol不是传输层协议,设置无效,恒为0。如果规则只限定一个端口号,fromPort和toPort填写同一个值 (Optional) */
ToPort int `json:"toPort"`
/* networkAcl规则方向。ingress:入规则; egress:出规则 (Optional) */
Direction string `json:"direction"`
/* 匹配地址前缀 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* 访问控制策略:allow:允许,deny:拒绝 (Optional) */
RuleAction string `json:"ruleAction"`
/* 规则匹配优先级,取值范围为[1,32768],优先级数字越小优先级越高 (Optional) */
Priority int `json:"priority"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description string `json:"description"`
/* networkAclRule创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NetworkAclSpec ¶ added in v1.0.9
type NetworkInterface ¶
type NetworkInterface struct {
/* 弹性网卡名称 (Optional) */
NetworkInterfaceName string `json:"networkInterfaceName"`
/* 弹性网卡ID (Optional) */
NetworkInterfaceId string `json:"networkInterfaceId"`
/* 可用区名称 (Optional) */
Az string `json:"az"`
/* 网卡角色,取值范围:Primary(主网卡)、Secondary(辅助网卡) (Optional) */
Role string `json:"role"`
/* 以太网地址 (Optional) */
MacAddress string `json:"macAddress"`
/* 虚拟网络ID (Optional) */
VpcId string `json:"vpcId"`
/* 子网ID (Optional) */
SubnetId string `json:"subnetId"`
/* 安全组ID列表 (Optional) */
NetworkSecurityGroupIds []string `json:"networkSecurityGroupIds"`
/* 源和目标IP地址校验,取值为0或者1 (Optional) */
SanityCheck int `json:"sanityCheck"`
/* 网卡主IP (Optional) */
PrimaryIp NetworkInterfacePrivateIp `json:"primaryIp"`
/* 网卡附属IP列表 (Optional) */
SecondaryIps []NetworkInterfacePrivateIp `json:"secondaryIps"`
/* 关联实例类型,取值范围:vm (Optional) */
InstanceType string `json:"instanceType"`
/* 关联实例ID (Optional) */
InstanceId string `json:"instanceId"`
/* 实例所属的账号 (Optional) */
InstanceOwnerId string `json:"instanceOwnerId"`
/* 网卡在实例上的设备索引号,取值范围:[0,8],0:辅助网卡未绑定设备,1:主网卡,2-8:辅助网卡已绑定设备 (Optional) */
DeviceIndex int `json:"deviceIndex"`
/* 网卡描述信息 (Optional) */
Description string `json:"description"`
/* 弹性网卡创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NetworkInterfaceSpec ¶
type NetworkInterfaceSpec struct {
/* 子网ID */
SubnetId string `json:"subnetId"`
/* 可用区,用户的默认可用区 (Optional) */
Az *string `json:"az"`
/* 网卡名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */
NetworkInterfaceName *string `json:"networkInterfaceName"`
/* 网卡主IP,如果不指定,会自动从子网中分配 (Optional) */
PrimaryIpAddress *string `json:"primaryIpAddress"`
/* SecondaryIp列表 (Optional) */
SecondaryIpAddresses []string `json:"secondaryIpAddresses"`
/* 自动分配的SecondaryIp数量 (Optional) */
SecondaryIpCount *int `json:"secondaryIpCount"`
/* 要绑定的安全组ID列表,最多指定5个安全组 (Optional) */
SecurityGroups []string `json:"securityGroups"`
/* 源和目标IP地址校验,取值为0或者1,默认为1 (Optional) */
SanityCheck *int `json:"sanityCheck"`
/* 描述, 允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description *string `json:"description"`
}
type NetworkSecurityGroup ¶
type NetworkSecurityGroup struct {
/* 安全组ID (Optional) */
NetworkSecurityGroupId string `json:"networkSecurityGroupId"`
/* 安全组名称 (Optional) */
NetworkSecurityGroupName string `json:"networkSecurityGroupName"`
/* 安全组描述信息 (Optional) */
Description string `json:"description"`
/* 安全组所在vpc的Id (Optional) */
VpcId string `json:"vpcId"`
/* 安全组规则信息 (Optional) */
SecurityGroupRules []SecurityGroupRule `json:"securityGroupRules"`
/* 安全组创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NetworkSecurityGroupSpec ¶ added in v1.0.5
type Quota ¶ added in v1.0.5
type Quota struct {
/* 资源类型,取值范围:vpc、elastic_ip、subnet、security_group、vpcpeering、network_interface(配额只统计辅助网卡) (Optional) */
Type string `json:"type"`
/* vpc、elastic_ip、network_interface为空, subnet、security_group、vpcpeering为vpcId (Optional) */
ParentResourceId string `json:"parentResourceId"`
/* 配额大小 (Optional) */
MaxLimit int `json:"maxLimit"`
/* 已存在的资源数量 (Optional) */
Count int `json:"count"`
}
type RouteTable ¶ added in v1.0.9
type RouteTable struct {
/* 路由表ID (Optional) */
RouteTableId string `json:"routeTableId"`
/* 路由表名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */
RouteTableName string `json:"routeTableName"`
/* 路由表类型,default:默认路由表,custom:自定义路由表 (Optional) */
RouteTableType string `json:"routeTableType"`
/* 路由表描述信息,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
Description string `json:"description"`
/* 私有网络ID (Optional) */
VpcId string `json:"vpcId"`
/* 路由表规则信息 (Optional) */
RouteTableRules []RouteTableRule `json:"routeTableRules"`
/* 路由表绑定的子网列表 (Optional) */
SubnetIds []string `json:"subnetIds"`
/* 路由表创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type RouteTableRule ¶ added in v1.0.9
type RouteTableRule struct {
/* 路由表规则ID (Optional) */
RuleId string `json:"ruleId"`
/* 规则匹配优先级,取值范围[1,255],默认为100。当路由规则子网掩码不同时,路由最长匹配优先;当路由规则子网掩码相同时, 按照优先级匹配转发, 优先级数字越小优先级越高,路由规则子网掩码相同、优先级相同、下一跳不同时,形成等价路由,不同下一跳负载均担。 (Optional) */
Priority int `json:"priority"`
/* 下一跳类型, 取值范围:local:本地, instance:云主机, internet:公网, vpc_peering:vpc对等连接, bgw:边界网关 (Optional) */
NextHopType string `json:"nextHopType"`
/* 下一跳id (Optional) */
NextHopId string `json:"nextHopId"`
/* 匹配地址前缀, internet类型路由跟其他类型的路由,addressPrefix不允许重复 (Optional) */
AddressPrefix string `json:"addressPrefix"`
}
type RouteTableSpec ¶ added in v1.0.9
type SecurityGroupRule ¶
type SecurityGroupRule struct {
/* 安全组规则ID (Optional) */
RuleId string `json:"ruleId"`
/* 安全组规则方向。0:入规则; 1:出规则 (Optional) */
Direction int `json:"direction"`
/* 规则限定协议。300:All; 6:TCP; 17:UDP; 1:ICMP (Optional) */
Protocol int `json:"protocol"`
/* 匹配地址前缀 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* 匹配地址协议版本。4:IPv4 (Optional) */
IpVersion int `json:"ipVersion"`
/* 规则限定起始传输层端口, 默认1 ,若protocal不是传输层协议,恒为0 (Optional) */
FromPort int `json:"fromPort"`
/* 规则限定终止传输层端口, 默认1 ,若protocal不是传输层协议,恒为0 (Optional) */
ToPort int `json:"toPort"`
/* 安全组规则创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
/* 描述, 允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description string `json:"description"`
}
type Segment ¶ added in v1.0.9
type Segment struct {
/* 网段的Id (Optional) */
SegmentId string `json:"segmentId"`
/* 网段名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 (Optional) */
SegmentName string `json:"segmentName"`
/* 网段描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
Description string `json:"description"`
/* 网络地址段 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* 网段可用ip数量 (Optional) */
AvailableIpCount int `json:"availableIpCount"`
/* IP服务商,取值为bgp或no_bgp,cn-north-1:bgp;cn-south-1:[bgp,no_bgp];cn-east-1:[bgp,no_bgp];cn-east-2:bgp (Optional) */
Provider string `json:"provider"`
/* 网段的起始地址 (Optional) */
StartIp string `json:"startIp"`
/* 网段的结束地址 (Optional) */
EndIp string `json:"endIp"`
}
type Subnet ¶
type Subnet struct {
/* Subnet的Id (Optional) */
SubnetId string `json:"subnetId"`
/* 子网名称 (Optional) */
SubnetName string `json:"subnetName"`
/* 子网所属VPC的Id (Optional) */
VpcId string `json:"vpcId"`
/* 子网网段,vpc内子网网段不能重叠,cidr的取值范围:10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间,如果VPC含有Cidr,则必须为VPC所在Cidr的子网 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* 子网可用ip数量 (Optional) */
AvailableIpCount int `json:"availableIpCount"`
/* 子网描述信息 (Optional) */
Description string `json:"description"`
/* 子网关联的路由表Id (Optional) */
RouteTableId string `json:"routeTableId"`
/* 子网关联的acl Id (Optional) */
AclId string `json:"aclId"`
/* 子网的起始地址,子网第1个地位为路由器网关保留,第2个地址为dhcp服务保留 (Optional) */
StartIp string `json:"startIp"`
/* 子网的结束地址,子网第1个地位为路由器网关保留,第2个地址为dhcp服务保留 (Optional) */
EndIp string `json:"endIp"`
/* 子网创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type SubnetSpec ¶ added in v1.0.9
type SubnetSpec struct {
/* 子网所属vpc的Id */
VpcId string `json:"vpcId"`
/* 子网名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 */
SubnetName string `json:"subnetName"`
/* 子网网段,vpc内子网网段不能重叠,cidr的取值范围:10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间,如果vpc含有cidr,则必须为vpc所在cidr的子网 */
AddressPrefix string `json:"addressPrefix"`
/* 子网关联的路由表Id, 默认为vpc的默认路由表 (Optional) */
RouteTableId string `json:"routeTableId"`
/* 子网描述信息,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
Description string `json:"description"`
}
type UnassignSecondaryIpsSpec ¶
type UnassignSecondaryIpsSpec struct {
/* 指定删除的secondaryIp地址 (Optional) */
SecondaryIps []string `json:"secondaryIps"`
}
type Vpc ¶
type Vpc struct {
/* Vpc的Id (Optional) */
VpcId string `json:"vpcId"`
/* 如果为空,则不限制网段,如果不为空,10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* VPC 描述,取值范围:1~120个字符 (Optional) */
Description string `json:"description"`
/* 私有网络名称,取值范围:1-60个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
VpcName string `json:"vpcName"`
/* 同一vpc下的acl id 列表 (Optional) */
AclIds []string `json:"aclIds"`
/* (Optional) */
RouteTableIds []string `json:"routeTableIds"`
/* 私有网络包含的子网列表 (Optional) */
Subnets []Subnet `json:"subnets"`
/* vpc创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type VpcPeering ¶
type VpcPeering struct {
/* VpcPeering的Id (Optional) */
VpcPeeringId string `json:"vpcPeeringId"`
/* VpcPeering名称,同账号下不允许重名,取值范围:1-32个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
VpcPeeringName string `json:"vpcPeeringName"`
/* 状态,取值为Connected,Disconnected,Initiated (Optional) */
VpcPeeringState string `json:"vpcPeeringState"`
/* VpcPeering 描述,可为空值,取值范围:0-256个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
Description string `json:"description"`
/* 发起VpcPeering的Vpc信息 (Optional) */
VpcInfo VpcPeeringVpcInfo `json:"vpcInfo"`
/* 对端的Vpc信息 (Optional) */
RemoteVpcInfo VpcPeeringVpcInfo `json:"remoteVpcInfo"`
/* VpcPeering创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type VpcPeeringVpcInfo ¶
type VpcPeeringVpcInfo struct {
/* 子网所属VPC的Id (Optional) */
VpcId string `json:"vpcId"`
/* 私有网络名称,取值范围:1-60个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
VpcName string `json:"vpcName"`
/* 如果为空,则不限制网段,如果不为空,10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间 (Optional) */
AddressPrefix []string `json:"addressPrefix"`
}
type VpcSpec ¶ added in v1.0.9
type VpcSpec struct {
/* 私有网络名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符。 */
VpcName string `json:"vpcName"`
/* 如果为空,则不限制网段,如果不为空,10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* vpc描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
Description string `json:"description"`
}
Source Files
¶
- AddNetworkAclRuleSpec.go
- AddNetworkAclRulesSpec.go
- AddNetworkSecurityGroupRulesSpec.go
- AddRouteTableRules.go
- AddRouteTableRulesSpec.go
- AddSecurityGroupRules.go
- AssignSecondaryIpsSpec.go
- AssociateElasticIpSpec.go
- AssociateRouteTableSpec.go
- CreateElasticIpSpec.go
- CreateVpcPeeringSpec.go
- DisassociateElasticIpSpec.go
- DisassociateRouteTableSpec.go
- ElasticIp.go
- ElasticIpSpec.go
- ModifyElasticIpSpec.go
- ModifyNetworkAclRuleSpec.go
- ModifyNetworkAclRuleSpecs.go
- ModifyNetworkAclRulesSpec.go
- ModifyNetworkAclSpec.go
- ModifyNetworkInterfaceSpec.go
- ModifyNetworkSecurityGroupSpec.go
- ModifyQuotaSpec.go
- ModifyRouteTableRules.go
- ModifyRouteTableRulesSpec.go
- ModifyRouteTableSpec.go
- ModifySecurityGroupRuleSpec.go
- ModifySecurityGroupRules.go
- ModifySubnetSpec.go
- ModifyVpcPeeringSpec.go
- ModifyVpcSpec.go
- NetworkAcl.go
- NetworkAclRule.go
- NetworkAclSpec.go
- NetworkInterface.go
- NetworkInterfacePrivateIp.go
- NetworkInterfaceSpec.go
- NetworkSecurityGroup.go
- NetworkSecurityGroupSpec.go
- Quota.go
- RouteTable.go
- RouteTableRule.go
- RouteTableSpec.go
- SecurityGroupRule.go
- Segment.go
- Subnet.go
- SubnetSpec.go
- UnassignSecondaryIpsSpec.go
- Vpc.go
- VpcPeering.go
- VpcPeeringVpcInfo.go
- VpcSpec.go
Click to show internal directories.
Click to hide internal directories.