Documentation
¶
Index ¶
- type AddNetworkAclRuleSpec
- type AddNetworkAclRulesSpec
- type AddNetworkSecurityGroupRulesSpec
- type AddRoutePropagationSpec
- type AddRouteTableRules
- type AddRouteTableRulesSpec
- type AddSecurityGroupRules
- type AssignSecondaryIpsSpec
- type AssociateElasticIpSpec
- type AssociateRouteTableSpec
- type AzIp
- type AzIpSpec
- type CreateElasticIpSpec
- type CreateVpcPeeringSpec
- type DeletePropagationSpec
- type DisassociateElasticIpSpec
- type DisassociateRouteTableSpec
- type EdgeIpProvider
- type ElasticIp
- type ElasticIpSpec
- type ModifyElasticIpSpec
- type ModifyNatGatewaySpec
- type ModifyNetworkAclRuleSpec
- type ModifyNetworkAclRulesSpec
- type ModifyNetworkAclSpec
- type ModifyNetworkInterfaceSpec
- type ModifyNetworkSecurityGroupSpec
- type ModifyQuotaSpec
- type ModifyRoutePropagationSpec
- type ModifyRouteTableRules
- type ModifyRouteTableRulesSpec
- type ModifyRouteTableSpec
- type ModifySecurityGroupRuleSpec
- type ModifySecurityGroupRules
- type ModifySubnetSpec
- type ModifyVpcPeeringSpec
- type ModifyVpcSpec
- type NatGateway
- type NatGatewaySpec
- type NatGatewayState
- type NetworkAcl
- type NetworkAclRule
- type NetworkAclSpec
- type NetworkInterface
- type NetworkInterfacePermission
- type NetworkInterfacePermissionSpec
- type NetworkInterfacePrivateIp
- type NetworkInterfaceSpec
- type NetworkSecurityGroup
- type NetworkSecurityGroupSpec
- type OpEipTagSpec
- type OpModifyElasticIpSpec
- type OpModifyNatGatewaySpec
- type OpTagResResultsInfo
- type PublicIp
- type Quota
- type RoutePropagation
- type RouteTable
- type RouteTableRule
- type RouteTableSpec
- type SecurityGroupRule
- type Segment
- type Subnet
- type SubnetSpec
- type Tag
- type TagFilter
- 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 AddRoutePropagationSpec ¶ added in v1.15.0
type AddRouteTableRules ¶ added in v1.0.9
type AddRouteTableRules struct {
/* 下一跳类型, 取值范围:instance:云主机, internet:公网, vpc_peering:vpc对等连接, bgw:边界网关, natgw:NAT网关 */
NextHopType string `json:"nextHopType"`
/* 下一跳id */
NextHopId string `json:"nextHopId"`
/* 匹配地址前缀, internet类型路由跟其他类型的路由,addressPrefix不允许重复 */
AddressPrefix string `json:"addressPrefix"`
/* 规则匹配优先级,取值范围[1,255],默认为100。当路由规则子网掩码不同时,路由最长匹配优先;当路由规则子网掩码相同时, 按照优先级匹配转发, 优先级数字越小优先级越高,路由规则子网掩码相同、优先级相同、下一跳不同时,形成等价路由,不同下一跳负载均担。 (Optional) */
Priority *int `json:"priority"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description *string `json:"description"`
}
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 AzIpSpec ¶ added in v1.15.0
type AzIpSpec struct {
/* IP线路类型,仅支持bgp,默认值bgp (Optional) */
Provider string `json:"provider"`
/* 公网IP可用区属性 */
Az string `json:"az"`
/* 公网IP的限速(单位:Mbps),取值范围为[1-1000] */
BandwidthMbps int `json:"bandwidthMbps"`
/* 计费配置,仅支持按配置,默认按配置 (Optional) */
IpCharge charge.ChargeSpec `json:"ipCharge"`
}
type CreateElasticIpSpec ¶
type CreateElasticIpSpec struct {
/* 购买弹性ip数量;取值范围:[1,100] */
MaxCount int `json:"maxCount"`
/* 指定弹性ip地址进行创建,当申请创建多个弹性ip时,必须为空 (Optional) */
ElasticIpAddress string `json:"elasticIpAddress"`
/* 弹性ip规格 */
ElasticIpSpec ElasticIpSpec `json:"elasticIpSpec"`
/* 用户标签 (Optional) */
UserTags []Tag `json:"userTags"`
/* 弹性ip类型,取值:standard(标准公网IP),edge(边缘公网IP),默认为standard (Optional) */
IpType string `json:"ipType"`
}
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 DeletePropagationSpec ¶ added in v1.15.0
type DeletePropagationSpec struct {
/* 路由传播 ID */
RoutePropagationId string `json:"routePropagationId"`
}
type DisassociateRouteTableSpec ¶ added in v1.0.9
type DisassociateRouteTableSpec struct {
/* 路由表要解绑的子网ID,解绑后子网绑定默认路由表 */
SubnetId string `json:"subnetId"`
}
type EdgeIpProvider ¶ added in v1.23.0
type EdgeIpProvider struct {
/* 边缘公网IP的线路 (Optional) */
Provider string `json:"provider"`
/* 边缘公网IP的线路接入区 (Optional) */
PointOfAccess string `json:"pointOfAccess"`
/* 边缘公网IP的资源关联范围 (Optional) */
AssociationScope string `json:"associationScope"`
/* 边缘公网IP的服务类型 (Optional) */
ServiceType string `json:"serviceType"`
/* 边缘公网IP的可用区 (Optional) */
Az string `json:"az"`
}
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的线路,标准公网IP的线路、取值为bgp或no_bgp;边缘公网IP的线路、可通过describeEdgeIpProviders接口获取 (Optional) */
Provider string `json:"provider"`
/* 私有IP的IPV4地址 (Optional) */
PrivateIpAddress string `json:"privateIpAddress"`
/* 配置弹性网卡Id (Optional) */
NetworkInterfaceId string `json:"networkInterfaceId"`
/* 实例Id (Optional) */
InstanceId string `json:"instanceId"`
/* 实例类型,取值为:compute、lb、container、pod (Optional) */
InstanceType string `json:"instanceType"`
/* 计费配置 (Optional) */
Charge charge.Charge `json:"charge"`
/* 弹性公网IP的创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
/* 弹性公网IP的可用区属性,如果为空,表示全可用区 (Optional) */
Az string `json:"az"`
/* Tag信息 (Optional) */
Tags []Tag `json:"tags"`
/* 弹性公网IP的IP类型,取值:standard(标准弹性IP)、edge(边缘弹性IP) (Optional) */
IpType string `json:"ipType"`
}
type ElasticIpSpec ¶
type ElasticIpSpec struct {
/* 弹性公网IP的限速(单位:Mbps),取值范围为[1-200] */
BandwidthMbps int `json:"bandwidthMbps"`
/* IP线路信息。当IP类型为标准公网IP时,取值为bgp或no_bgp,cn-north-1:bgp;cn-south-1:bgp;cn-east-1:bgp;cn-east-2:bgp。当IP类型为边缘公网IP时,其值可通过调用describeEdgeIpProviders、获取不同边缘节点的边缘公网IP线路信息 */
Provider string `json:"provider"`
/* 计费配置。边缘公网IP支持包年包月、按配置;标准公网IP支持包年包月、按配置、按流量 (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 ModifyNatGatewaySpec ¶ added in v1.15.0
type ModifyNatGatewaySpec struct {
/* NAT网关名称 (Optional) */
NatGatewayName string `json:"natGatewayName"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description string `json:"description"`
/* 公网IP的限速(单位:Mbps),取值范围为[1-1000] (Optional) */
BandwidthMbps int `json:"bandwidthMbps"`
/* NAT网关规格,取值small(100万并发连接数),medium(300万并发连接数),large(1000万并发连接数) (Optional) */
NatGatewaySpec string `json:"natGatewaySpec"`
}
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 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(配额只统计辅助网卡)、acl、aclRule、routeTable、route、securityGroupRule */
Type string `json:"type"`
/* type为vpc、elastic_ip、network_interface不设置, type为subnet、security_group、vpcpeering、acl、routeTable设置为vpcId, type为aclRule设置为aclId, type为route设置为routeTableId, type为securityGroupRule为securityGroupId (Optional) */
ParentResourceId string `json:"parentResourceId"`
/* 配额大小 */
MaxLimit int `json:"maxLimit"`
}
type ModifyRoutePropagationSpec ¶ added in v1.15.0
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:边界网关, natgw:NAT网关 (Optional) */
NextHopType *string `json:"nextHopType"`
/* 下一跳id (Optional) */
NextHopId *string `json:"nextHopId"`
/* 路由表规则前缀, internet类型路由跟其他类型的路由,addressPrefix不允许重复 (Optional) */
AddressPrefix *string `json:"addressPrefix"`
/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description *string `json:"description"`
}
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 NatGateway ¶ added in v1.15.0
type NatGateway struct {
/* NAT网关ID (Optional) */
NatGatewayId string `json:"natGatewayId"`
/* NAT网关名称 (Optional) */
NatGatewayName string `json:"natGatewayName"`
/* NAT网关规格,取值small(100万并发连接数),medium(300万并发连接数),large(1000万并发连接数) (Optional) */
NatGatewaySpec string `json:"natGatewaySpec"`
/* NAT网关的状态 (Optional) */
State NatGatewayState `json:"state"`
/* NAT网关的描述信息 (Optional) */
Description string `json:"description"`
/* NAT网关计费配置 (Optional) */
NatGatewayCharge charge.Charge `json:"natGatewayCharge"`
/* NAT网关可用区属性 (Optional) */
Azs []string `json:"azs"`
/* 私有网络ID (Optional) */
VpcId string `json:"vpcId"`
/* 子网ID (Optional) */
SubnetId string `json:"subnetId"`
/* NAT网关的IP可用区属性 (Optional) */
AzIp []AzIp `json:"azIp"`
/* NAT网关创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NatGatewaySpec ¶ added in v1.15.0
type NatGatewaySpec struct {
/* NAT网关名称 */
NatGatewayName string `json:"natGatewayName"`
/* NAT网关规格,取值small(100万并发连接数),medium(300万并发连接数),large(1000万并发连接数),默认small (Optional) */
NatGatewaySpec string `json:"natGatewaySpec"`
/* 私有网络ID */
VpcId string `json:"vpcId"`
/* 子网ID */
SubnetId string `json:"subnetId"`
/* NAT网关的可用区属性,目前仅支持一个 */
AzIpSpecs []AzIpSpec `json:"azIpSpecs"`
/* 计费配置,仅支持按配置,默认按配置 (Optional) */
NatGatewayCharge charge.ChargeSpec `json:"natGatewayCharge"`
/* 描述, 允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
Description string `json:"description"`
}
type NatGatewayState ¶ added in v1.15.0
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"`
/* 规则类型,default:默认规则,custom:自定义规则 (Optional) */
RuleType string `json:"ruleType"`
}
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"`
/* 弹性网卡绑定实例状态,attached(已绑定)、detached(未绑定) (Optional) */
AttachmentStatus string `json:"attachmentStatus"`
/* 弹性网卡可用状态,enabled(启用)、disabled(停用) (Optional) */
NetworkInterfaceStatus string `json:"networkInterfaceStatus"`
/* 弹性网卡创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NetworkInterfacePermission ¶ added in v1.15.0
type NetworkInterfacePermission struct {
/* 弹性网卡授权ID (Optional) */
NetworkInterfacePermissionId string `json:"networkInterfacePermissionId"`
/* 弹性网卡所属用户 (Optional) */
NetworkInterfaceOwner string `json:"networkInterfaceOwner"`
/* 授信用户 (Optional) */
TrustUser string `json:"trustUser"`
/* 弹性网卡ID (Optional) */
NetworkInterfaceId string `json:"networkInterfaceId"`
/* 授权策略, 授权后,该弹性网卡可以关联的服务端账号的资源类型,取值范围,instance-attach:可以关联服务端账号的实例资源,eip-associate:可以关联服务端账号的弹性公网IP资源 (Optional) */
Policy []string `json:"policy"`
/* 弹性网卡授权创建时间 (Optional) */
CreatedTime string `json:"createdTime"`
}
type NetworkInterfacePermissionSpec ¶ added in v1.15.0
type NetworkInterfacePermissionSpec struct {
/* 弹性网卡ID */
NetworkInterfaceId string `json:"networkInterfaceId"`
/* 授信用户,需要存在于京东云许可的服务账号名单中 (Optional) */
TrustUser string `json:"trustUser"`
/* 授权策略, 授权后,该弹性网卡可以关联的服务端账号的资源类型,取值范围,instance-attach:可以关联服务端账号的实例资源,eip-associate:可以关联服务端账号的弹性公网IP资源 (Optional) */
Policy []string `json:"policy"`
}
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"`
/* 安全组类型, default:默认安全组,custom:自定义安全组 (Optional) */
NetworkSecurityGroupType string `json:"networkSecurityGroupType"`
/* 安全组绑定的弹性网卡列表 (Optional) */
NetworkInterfaceIds []string `json:"networkInterfaceIds"`
}
type NetworkSecurityGroupSpec ¶ added in v1.0.5
type OpEipTagSpec ¶ added in v1.15.0
type OpModifyElasticIpSpec ¶ added in v1.15.0
type OpModifyNatGatewaySpec ¶ added in v1.15.0
type OpTagResResultsInfo ¶ added in v1.15.0
type Quota ¶ added in v1.0.5
type Quota struct {
/* 资源类型,取值范围:vpc、elastic_ip、subnet、security_group、vpcpeering、network_interface(配额只统计辅助网卡)、acl、aclRule、routeTable、staticRoute、propagatedRoute、securityGroupRule (Optional) */
Type string `json:"type"`
/* vpc、elastic_ip、network_interface为空, subnet、security_group、vpcpeering、acl、routeTable为vpcId, aclRule为aclId,staticRoute、propagatedRoute为routeTableId, securityGroupRule为securityGroupId (Optional) */
ParentResourceId string `json:"parentResourceId"`
/* 配额大小 (Optional) */
MaxLimit int `json:"maxLimit"`
/* 已存在的资源数量 (Optional) */
Count int `json:"count"`
}
type RoutePropagation ¶ added in v1.15.0
type RoutePropagation struct {
/* 路由传播Id (Optional) */
PropagationId string `json:"propagationId"`
/* 边界网关Id (Optional) */
BgwId string `json:"bgwId"`
/* 路由传播范围,指定路由传播网段,CIDR格式,多个CIDR之间以英文逗号“,”分隔,0.0.0.0/0表示接受所有传播路由,设置特定网段就只能接收该网段范围内或子网段的路由传播 (Optional) */
PropagationCidrs string `json:"propagationCidrs"`
}
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) */
RoutePropagations []RoutePropagation `json:"routePropagations"`
/* 路由表绑定的子网列表 (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:边界网关, natgw:NAT网关 (Optional) */
NextHopType string `json:"nextHopType"`
/* 下一跳id (Optional) */
NextHopId string `json:"nextHopId"`
/* 匹配地址前缀, internet类型路由跟其他类型的路由,addressPrefix不允许重复 (Optional) */
AddressPrefix string `json:"addressPrefix"`
/* 路由类型,propagated:传播、static:静态 (Optional) */
RouteType string `json:"routeType"`
/* 路由描述,允许输入UTF-8编码下的全部字符,不超过256字符。 (Optional) */
Description string `json:"description"`
}
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"`
/* 安全组规则类型, default:默认安全组规则,custom:自定义安全组规则 (Optional) */
RuleType string `json:"ruleType"`
}
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;cn-east-1: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"`
/* 子网类型,取值:standard(标准子网),edge(边缘子网) (Optional) */
SubnetType string `json:"subnetType"`
/* 子网可用区 (Optional) */
Az string `json:"az"`
}
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"`
/* 子网类型,取值:standard(标准子网),edge(边缘子网) (Optional) */
SubnetType string `json:"subnetType"`
/* 子网可用区,边缘子网必须指定可用区 (Optional) */
Az string `json:"az"`
}
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
- AddRoutePropagationSpec.go
- AddRouteTableRules.go
- AddRouteTableRulesSpec.go
- AddSecurityGroupRules.go
- AssignSecondaryIpsSpec.go
- AssociateElasticIpSpec.go
- AssociateRouteTableSpec.go
- AzIp.go
- AzIpSpec.go
- CreateElasticIpSpec.go
- CreateVpcPeeringSpec.go
- DeletePropagationSpec.go
- DisassociateElasticIpSpec.go
- DisassociateRouteTableSpec.go
- EdgeIpProvider.go
- ElasticIp.go
- ElasticIpSpec.go
- ModifyElasticIpSpec.go
- ModifyNatGatewaySpec.go
- ModifyNetworkAclRuleSpec.go
- ModifyNetworkAclRulesSpec.go
- ModifyNetworkAclSpec.go
- ModifyNetworkInterfaceSpec.go
- ModifyNetworkSecurityGroupSpec.go
- ModifyQuotaSpec.go
- ModifyRoutePropagationSpec.go
- ModifyRouteTableRules.go
- ModifyRouteTableRulesSpec.go
- ModifyRouteTableSpec.go
- ModifySecurityGroupRuleSpec.go
- ModifySecurityGroupRules.go
- ModifySubnetSpec.go
- ModifyVpcPeeringSpec.go
- ModifyVpcSpec.go
- NatGateway.go
- NatGatewaySpec.go
- NatGatewayState.go
- NetworkAcl.go
- NetworkAclRule.go
- NetworkAclSpec.go
- NetworkInterface.go
- NetworkInterfacePermission.go
- NetworkInterfacePermissionSpec.go
- NetworkInterfacePrivateIp.go
- NetworkInterfaceSpec.go
- NetworkSecurityGroup.go
- NetworkSecurityGroupSpec.go
- OpEipTagSpec.go
- OpModifyElasticIpSpec.go
- OpModifyNatGatewaySpec.go
- OpTagResResultsInfo.go
- PublicIp.go
- Quota.go
- RoutePropagation.go
- RouteTable.go
- RouteTableRule.go
- RouteTableSpec.go
- SecurityGroupRule.go
- Segment.go
- Subnet.go
- SubnetSpec.go
- Tag.go
- TagFilter.go
- UnassignSecondaryIpsSpec.go
- Vpc.go
- VpcPeering.go
- VpcPeeringVpcInfo.go
- VpcSpec.go
Click to show internal directories.
Click to hide internal directories.