Documentation ¶
Overview ¶
Package vpc include resources of ucloud vpc product
See also
for detail.
Index ¶
- type AclEntryInfo
- type AclInfo
- type AddVPCNetworkRequest
- type AddVPCNetworkResponse
- type AddWhiteListResourceRequest
- type AddWhiteListResourceResponse
- type AllocateSecondaryIpRequest
- type AllocateSecondaryIpResponse
- type AllocateVIPRequest
- type AllocateVIPResponse
- type AssociateRouteTableRequest
- type AssociateRouteTableResponse
- type AssociationInfo
- type CloneRouteTableRequest
- type CloneRouteTableResponse
- type CreateNATGWPolicyRequest
- type CreateNATGWPolicyResponse
- type CreateNATGWRequest
- type CreateNATGWResponse
- type CreateNetworkAclAssociationRequest
- type CreateNetworkAclAssociationResponse
- type CreateNetworkAclEntryRequest
- type CreateNetworkAclEntryResponse
- type CreateNetworkAclRequest
- type CreateNetworkAclResponse
- type CreateRouteTableRequest
- type CreateRouteTableResponse
- type CreateSubnetRequest
- type CreateSubnetResponse
- type CreateVPCIntercomRequest
- type CreateVPCIntercomResponse
- type CreateVPCRequest
- type CreateVPCResponse
- type DeleteNATGWPolicyRequest
- type DeleteNATGWPolicyResponse
- type DeleteNATGWRequest
- type DeleteNATGWResponse
- type DeleteNetworkAclAssociationRequest
- type DeleteNetworkAclAssociationResponse
- type DeleteNetworkAclEntryRequest
- type DeleteNetworkAclEntryResponse
- type DeleteNetworkAclRequest
- type DeleteNetworkAclResponse
- type DeleteRouteTableRequest
- type DeleteRouteTableResponse
- type DeleteSecondaryIpRequest
- type DeleteSecondaryIpResponse
- type DeleteSubnetRequest
- type DeleteSubnetResponse
- type DeleteVPCIntercomRequest
- type DeleteVPCIntercomResponse
- type DeleteVPCRequest
- type DeleteVPCResponse
- type DeleteWhiteListResourceRequest
- type DeleteWhiteListResourceResponse
- type DescribeNATGWPolicyRequest
- type DescribeNATGWPolicyResponse
- type DescribeNATGWRequest
- type DescribeNATGWResponse
- type DescribeNetworkAclAssociationBySubnetRequest
- type DescribeNetworkAclAssociationBySubnetResponse
- type DescribeNetworkAclAssociationRequest
- type DescribeNetworkAclAssociationResponse
- type DescribeNetworkAclEntryRequest
- type DescribeNetworkAclEntryResponse
- type DescribeNetworkAclRequest
- type DescribeNetworkAclResponse
- type DescribeRouteTableRequest
- type DescribeRouteTableResponse
- type DescribeSecondaryIpRequest
- type DescribeSecondaryIpResponse
- type DescribeSubnetRequest
- type DescribeSubnetResourceRequest
- type DescribeSubnetResourceResponse
- type DescribeSubnetResponse
- type DescribeVIPRequest
- type DescribeVIPResponse
- type DescribeVPCIntercomRequest
- type DescribeVPCIntercomResponse
- type DescribeVPCRequest
- type DescribeVPCResponse
- type DescribeWhiteListResourceObjectIPInfo
- type DescribeWhiteListResourceRequest
- type DescribeWhiteListResourceResponse
- type EnableWhiteListRequest
- type EnableWhiteListResponse
- type GetAvailableResourceForPolicyDataSet
- type GetAvailableResourceForPolicyRequest
- type GetAvailableResourceForPolicyResponse
- type GetAvailableResourceForWhiteListDataSet
- type GetAvailableResourceForWhiteListRequest
- type GetAvailableResourceForWhiteListResponse
- type GetNetworkAclTargetResourceRequest
- type GetNetworkAclTargetResourceResponse
- type IpInfo
- type ListSubnetForNATGWRequest
- type ListSubnetForNATGWResponse
- type ModifyRouteRuleRequest
- type ModifyRouteRuleResponse
- type NATGWPolicyDataSet
- type NatGWIPResInfo
- type NatGWWhitelistDataSet
- type NatGatewayDataSet
- type NatGatewayIPSet
- type NatGatewaySubnetSet
- type NatgwSubnetDataSet
- type ReleaseVIPRequest
- type ReleaseVIPResponse
- type RouteRuleInfo
- type RouteTableInfo
- type SetGwDefaultExportRequest
- type SetGwDefaultExportResponse
- type SubnetInfo
- type SubnetResource
- type TargetResourceInfo
- type UpdateNATGWPolicyRequest
- type UpdateNATGWPolicyResponse
- type UpdateNATGWSubnetRequest
- type UpdateNATGWSubnetResponse
- type UpdateNetworkAclEntryRequest
- type UpdateNetworkAclEntryResponse
- type UpdateNetworkAclRequest
- type UpdateNetworkAclResponse
- type UpdateRouteTableAttributeRequest
- type UpdateRouteTableAttributeResponse
- type UpdateSubnetAttributeRequest
- type UpdateSubnetAttributeResponse
- type UpdateVIPAttributeRequest
- type UpdateVIPAttributeResponse
- type UpdateVPCNetworkRequest
- type UpdateVPCNetworkResponse
- type VIPDetailSet
- type VIPSet
- type VPCClient
- func (c *VPCClient) AddVPCNetwork(req *AddVPCNetworkRequest) (*AddVPCNetworkResponse, error)
- func (c *VPCClient) AddWhiteListResource(req *AddWhiteListResourceRequest) (*AddWhiteListResourceResponse, error)
- func (c *VPCClient) AllocateSecondaryIp(req *AllocateSecondaryIpRequest) (*AllocateSecondaryIpResponse, error)
- func (c *VPCClient) AllocateVIP(req *AllocateVIPRequest) (*AllocateVIPResponse, error)
- func (c *VPCClient) AssociateRouteTable(req *AssociateRouteTableRequest) (*AssociateRouteTableResponse, error)
- func (c *VPCClient) CloneRouteTable(req *CloneRouteTableRequest) (*CloneRouteTableResponse, error)
- func (c *VPCClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
- func (c *VPCClient) CreateNATGWPolicy(req *CreateNATGWPolicyRequest) (*CreateNATGWPolicyResponse, error)
- func (c *VPCClient) CreateNetworkAcl(req *CreateNetworkAclRequest) (*CreateNetworkAclResponse, error)
- func (c *VPCClient) CreateNetworkAclAssociation(req *CreateNetworkAclAssociationRequest) (*CreateNetworkAclAssociationResponse, error)
- func (c *VPCClient) CreateNetworkAclEntry(req *CreateNetworkAclEntryRequest) (*CreateNetworkAclEntryResponse, error)
- func (c *VPCClient) CreateRouteTable(req *CreateRouteTableRequest) (*CreateRouteTableResponse, error)
- func (c *VPCClient) CreateSubnet(req *CreateSubnetRequest) (*CreateSubnetResponse, error)
- func (c *VPCClient) CreateVPC(req *CreateVPCRequest) (*CreateVPCResponse, error)
- func (c *VPCClient) CreateVPCIntercom(req *CreateVPCIntercomRequest) (*CreateVPCIntercomResponse, error)
- func (c *VPCClient) DeleteNATGW(req *DeleteNATGWRequest) (*DeleteNATGWResponse, error)
- func (c *VPCClient) DeleteNATGWPolicy(req *DeleteNATGWPolicyRequest) (*DeleteNATGWPolicyResponse, error)
- func (c *VPCClient) DeleteNetworkAcl(req *DeleteNetworkAclRequest) (*DeleteNetworkAclResponse, error)
- func (c *VPCClient) DeleteNetworkAclAssociation(req *DeleteNetworkAclAssociationRequest) (*DeleteNetworkAclAssociationResponse, error)
- func (c *VPCClient) DeleteNetworkAclEntry(req *DeleteNetworkAclEntryRequest) (*DeleteNetworkAclEntryResponse, error)
- func (c *VPCClient) DeleteRouteTable(req *DeleteRouteTableRequest) (*DeleteRouteTableResponse, error)
- func (c *VPCClient) DeleteSecondaryIp(req *DeleteSecondaryIpRequest) (*DeleteSecondaryIpResponse, error)
- func (c *VPCClient) DeleteSubnet(req *DeleteSubnetRequest) (*DeleteSubnetResponse, error)
- func (c *VPCClient) DeleteVPC(req *DeleteVPCRequest) (*DeleteVPCResponse, error)
- func (c *VPCClient) DeleteVPCIntercom(req *DeleteVPCIntercomRequest) (*DeleteVPCIntercomResponse, error)
- func (c *VPCClient) DeleteWhiteListResource(req *DeleteWhiteListResourceRequest) (*DeleteWhiteListResourceResponse, error)
- func (c *VPCClient) DescribeNATGW(req *DescribeNATGWRequest) (*DescribeNATGWResponse, error)
- func (c *VPCClient) DescribeNATGWPolicy(req *DescribeNATGWPolicyRequest) (*DescribeNATGWPolicyResponse, error)
- func (c *VPCClient) DescribeNetworkAcl(req *DescribeNetworkAclRequest) (*DescribeNetworkAclResponse, error)
- func (c *VPCClient) DescribeNetworkAclAssociation(req *DescribeNetworkAclAssociationRequest) (*DescribeNetworkAclAssociationResponse, error)
- func (c *VPCClient) DescribeNetworkAclAssociationBySubnet(req *DescribeNetworkAclAssociationBySubnetRequest) (*DescribeNetworkAclAssociationBySubnetResponse, error)
- func (c *VPCClient) DescribeNetworkAclEntry(req *DescribeNetworkAclEntryRequest) (*DescribeNetworkAclEntryResponse, error)
- func (c *VPCClient) DescribeRouteTable(req *DescribeRouteTableRequest) (*DescribeRouteTableResponse, error)
- func (c *VPCClient) DescribeSecondaryIp(req *DescribeSecondaryIpRequest) (*DescribeSecondaryIpResponse, error)
- func (c *VPCClient) DescribeSubnet(req *DescribeSubnetRequest) (*DescribeSubnetResponse, error)
- func (c *VPCClient) DescribeSubnetResource(req *DescribeSubnetResourceRequest) (*DescribeSubnetResourceResponse, error)
- func (c *VPCClient) DescribeVIP(req *DescribeVIPRequest) (*DescribeVIPResponse, error)
- func (c *VPCClient) DescribeVPC(req *DescribeVPCRequest) (*DescribeVPCResponse, error)
- func (c *VPCClient) DescribeVPCIntercom(req *DescribeVPCIntercomRequest) (*DescribeVPCIntercomResponse, error)
- func (c *VPCClient) DescribeWhiteListResource(req *DescribeWhiteListResourceRequest) (*DescribeWhiteListResourceResponse, error)
- func (c *VPCClient) EnableWhiteList(req *EnableWhiteListRequest) (*EnableWhiteListResponse, error)
- func (c *VPCClient) GetAvailableResourceForPolicy(req *GetAvailableResourceForPolicyRequest) (*GetAvailableResourceForPolicyResponse, error)
- func (c *VPCClient) GetAvailableResourceForWhiteList(req *GetAvailableResourceForWhiteListRequest) (*GetAvailableResourceForWhiteListResponse, error)
- func (c *VPCClient) GetNetworkAclTargetResource(req *GetNetworkAclTargetResourceRequest) (*GetNetworkAclTargetResourceResponse, error)
- func (c *VPCClient) ListSubnetForNATGW(req *ListSubnetForNATGWRequest) (*ListSubnetForNATGWResponse, error)
- func (c *VPCClient) ModifyRouteRule(req *ModifyRouteRuleRequest) (*ModifyRouteRuleResponse, error)
- func (c *VPCClient) NewAddVPCNetworkRequest() *AddVPCNetworkRequest
- func (c *VPCClient) NewAddWhiteListResourceRequest() *AddWhiteListResourceRequest
- func (c *VPCClient) NewAllocateSecondaryIpRequest() *AllocateSecondaryIpRequest
- func (c *VPCClient) NewAllocateVIPRequest() *AllocateVIPRequest
- func (c *VPCClient) NewAssociateRouteTableRequest() *AssociateRouteTableRequest
- func (c *VPCClient) NewCloneRouteTableRequest() *CloneRouteTableRequest
- func (c *VPCClient) NewCreateNATGWPolicyRequest() *CreateNATGWPolicyRequest
- func (c *VPCClient) NewCreateNATGWRequest() *CreateNATGWRequest
- func (c *VPCClient) NewCreateNetworkAclAssociationRequest() *CreateNetworkAclAssociationRequest
- func (c *VPCClient) NewCreateNetworkAclEntryRequest() *CreateNetworkAclEntryRequest
- func (c *VPCClient) NewCreateNetworkAclRequest() *CreateNetworkAclRequest
- func (c *VPCClient) NewCreateRouteTableRequest() *CreateRouteTableRequest
- func (c *VPCClient) NewCreateSubnetRequest() *CreateSubnetRequest
- func (c *VPCClient) NewCreateVPCIntercomRequest() *CreateVPCIntercomRequest
- func (c *VPCClient) NewCreateVPCRequest() *CreateVPCRequest
- func (c *VPCClient) NewDeleteNATGWPolicyRequest() *DeleteNATGWPolicyRequest
- func (c *VPCClient) NewDeleteNATGWRequest() *DeleteNATGWRequest
- func (c *VPCClient) NewDeleteNetworkAclAssociationRequest() *DeleteNetworkAclAssociationRequest
- func (c *VPCClient) NewDeleteNetworkAclEntryRequest() *DeleteNetworkAclEntryRequest
- func (c *VPCClient) NewDeleteNetworkAclRequest() *DeleteNetworkAclRequest
- func (c *VPCClient) NewDeleteRouteTableRequest() *DeleteRouteTableRequest
- func (c *VPCClient) NewDeleteSecondaryIpRequest() *DeleteSecondaryIpRequest
- func (c *VPCClient) NewDeleteSubnetRequest() *DeleteSubnetRequest
- func (c *VPCClient) NewDeleteVPCIntercomRequest() *DeleteVPCIntercomRequest
- func (c *VPCClient) NewDeleteVPCRequest() *DeleteVPCRequest
- func (c *VPCClient) NewDeleteWhiteListResourceRequest() *DeleteWhiteListResourceRequest
- func (c *VPCClient) NewDescribeNATGWPolicyRequest() *DescribeNATGWPolicyRequest
- func (c *VPCClient) NewDescribeNATGWRequest() *DescribeNATGWRequest
- func (c *VPCClient) NewDescribeNetworkAclAssociationBySubnetRequest() *DescribeNetworkAclAssociationBySubnetRequest
- func (c *VPCClient) NewDescribeNetworkAclAssociationRequest() *DescribeNetworkAclAssociationRequest
- func (c *VPCClient) NewDescribeNetworkAclEntryRequest() *DescribeNetworkAclEntryRequest
- func (c *VPCClient) NewDescribeNetworkAclRequest() *DescribeNetworkAclRequest
- func (c *VPCClient) NewDescribeRouteTableRequest() *DescribeRouteTableRequest
- func (c *VPCClient) NewDescribeSecondaryIpRequest() *DescribeSecondaryIpRequest
- func (c *VPCClient) NewDescribeSubnetRequest() *DescribeSubnetRequest
- func (c *VPCClient) NewDescribeSubnetResourceRequest() *DescribeSubnetResourceRequest
- func (c *VPCClient) NewDescribeVIPRequest() *DescribeVIPRequest
- func (c *VPCClient) NewDescribeVPCIntercomRequest() *DescribeVPCIntercomRequest
- func (c *VPCClient) NewDescribeVPCRequest() *DescribeVPCRequest
- func (c *VPCClient) NewDescribeWhiteListResourceRequest() *DescribeWhiteListResourceRequest
- func (c *VPCClient) NewEnableWhiteListRequest() *EnableWhiteListRequest
- func (c *VPCClient) NewGetAvailableResourceForPolicyRequest() *GetAvailableResourceForPolicyRequest
- func (c *VPCClient) NewGetAvailableResourceForWhiteListRequest() *GetAvailableResourceForWhiteListRequest
- func (c *VPCClient) NewGetNetworkAclTargetResourceRequest() *GetNetworkAclTargetResourceRequest
- func (c *VPCClient) NewListSubnetForNATGWRequest() *ListSubnetForNATGWRequest
- func (c *VPCClient) NewModifyRouteRuleRequest() *ModifyRouteRuleRequest
- func (c *VPCClient) NewReleaseVIPRequest() *ReleaseVIPRequest
- func (c *VPCClient) NewSetGwDefaultExportRequest() *SetGwDefaultExportRequest
- func (c *VPCClient) NewUpdateNATGWPolicyRequest() *UpdateNATGWPolicyRequest
- func (c *VPCClient) NewUpdateNATGWSubnetRequest() *UpdateNATGWSubnetRequest
- func (c *VPCClient) NewUpdateNetworkAclEntryRequest() *UpdateNetworkAclEntryRequest
- func (c *VPCClient) NewUpdateNetworkAclRequest() *UpdateNetworkAclRequest
- func (c *VPCClient) NewUpdateRouteTableAttributeRequest() *UpdateRouteTableAttributeRequest
- func (c *VPCClient) NewUpdateSubnetAttributeRequest() *UpdateSubnetAttributeRequest
- func (c *VPCClient) NewUpdateVIPAttributeRequest() *UpdateVIPAttributeRequest
- func (c *VPCClient) NewUpdateVPCNetworkRequest() *UpdateVPCNetworkRequest
- func (c *VPCClient) ReleaseVIP(req *ReleaseVIPRequest) (*ReleaseVIPResponse, error)
- func (c *VPCClient) SetGwDefaultExport(req *SetGwDefaultExportRequest) (*SetGwDefaultExportResponse, error)
- func (c *VPCClient) UpdateNATGWPolicy(req *UpdateNATGWPolicyRequest) (*UpdateNATGWPolicyResponse, error)
- func (c *VPCClient) UpdateNATGWSubnet(req *UpdateNATGWSubnetRequest) (*UpdateNATGWSubnetResponse, error)
- func (c *VPCClient) UpdateNetworkAcl(req *UpdateNetworkAclRequest) (*UpdateNetworkAclResponse, error)
- func (c *VPCClient) UpdateNetworkAclEntry(req *UpdateNetworkAclEntryRequest) (*UpdateNetworkAclEntryResponse, error)
- func (c *VPCClient) UpdateRouteTableAttribute(req *UpdateRouteTableAttributeRequest) (*UpdateRouteTableAttributeResponse, error)
- func (c *VPCClient) UpdateSubnetAttribute(req *UpdateSubnetAttributeRequest) (*UpdateSubnetAttributeResponse, error)
- func (c *VPCClient) UpdateVIPAttribute(req *UpdateVIPAttributeRequest) (*UpdateVIPAttributeResponse, error)
- func (c *VPCClient) UpdateVPCNetwork(req *UpdateVPCNetworkRequest) (*UpdateVPCNetworkResponse, error)
- type VPCInfo
- type VPCIntercomInfo
- type VPCNetworkInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclEntryInfo ¶ added in v0.14.1
type AclEntryInfo struct { // IP段的CIDR信息 CidrBlock string // 创建的Unix时间戳 CreateTime int // 出向或者入向 Direction string // 匹配规则的动作 EntryAction string // Entry的ID EntryId string // 针对的IP协议 IpProtocol string // Port的段信息 PortRange string // 优先级 Priority string // 应用目标资源数量。TargetType为0时不返回该值。 TargetResourceCount int // 应用目标资源信息。TargetType为0时不返回该值。具体结构见下方TargetResourceInfo TargetResourceList []TargetResourceInfo // 应用目标类型。 0代表“子网内全部资源” ,1代表“子网内指定资源” 。 TargetType int // 更改的Unix时间戳 UpdateTime int }
AclEntryInfo - Entry的详细信息
type AclInfo ¶ added in v0.14.1
type AclInfo struct { // ACL的ID AclId string // 名称 AclName string // 所有的绑定关系,具体结构见下方AssociationInfo Associations []AssociationInfo // 创建的Unix时间戳 CreateTime int // 描述 Description string // 所有的规则 Entries []AclEntryInfo // 更改的Unix时间戳 UpdateTime int // ACL所属的VPC ID VpcId string }
AclInfo - Acl的基础信息
type AddVPCNetworkRequest ¶
type AddVPCNetworkRequest struct { request.CommonBase // 增加网段 Network []string `required:"true"` // 源VPC短ID VPCId *string `required:"true"` }
AddVPCNetworkRequest is request schema for AddVPCNetwork action
type AddVPCNetworkResponse ¶
type AddVPCNetworkResponse struct {
response.CommonBase
}
AddVPCNetworkResponse is response schema for AddVPCNetwork action
type AddWhiteListResourceRequest ¶ added in v0.10.0
type AddWhiteListResourceRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` // 可添加白名单的资源Id ResourceIds []string `required:"true"` }
AddWhiteListResourceRequest is request schema for AddWhiteListResource action
type AddWhiteListResourceResponse ¶ added in v0.10.0
type AddWhiteListResourceResponse struct {
response.CommonBase
}
AddWhiteListResourceResponse is response schema for AddWhiteListResource action
type AllocateSecondaryIpRequest ¶ added in v0.14.1
type AllocateSecondaryIpRequest struct { request.CommonBase // 指定Ip分配 Ip *string `required:"false"` // 节点mac Mac *string `required:"true"` // 资源Id ObjectId *string `required:"true"` // 子网Id(若未指定,则根据zone获取默认子网进行创建) SubnetId *string `required:"false"` // vpcId VPCId *string `required:"false"` }
AllocateSecondaryIpRequest is request schema for AllocateSecondaryIp action
type AllocateSecondaryIpResponse ¶ added in v0.14.1
type AllocateSecondaryIpResponse struct { response.CommonBase // IpInfo IpInfo }
AllocateSecondaryIpResponse is response schema for AllocateSecondaryIp action
type AllocateVIPRequest ¶ added in v0.14.1
type AllocateVIPRequest struct { request.CommonBase // 业务组 BusinessId *string `required:"false"` // 申请数量,默认: 1 Count *int `required:"false"` // 指定ip Ip *string `required:"false"` // vip名,默认:VIP Name *string `required:"false"` // 备注 Remark *string `required:"false"` // 子网id SubnetId *string `required:"true"` // 业务组名称,默认为Default Tag *string `required:"false"` // 指定vip所属的VPC VPCId *string `required:"true"` }
AllocateVIPRequest is request schema for AllocateVIP action
type AllocateVIPResponse ¶ added in v0.14.1
type AllocateVIPResponse struct { response.CommonBase // 申请到的VIP地址 DataSet []string // 申请到的VIP资源相关信息 VIPSet []VIPSet }
AllocateVIPResponse is response schema for AllocateVIP action
type AssociateRouteTableRequest ¶ added in v0.14.1
type AssociateRouteTableRequest struct { request.CommonBase // 路由表资源ID RouteTableId *string `required:"true"` // 子网ID SubnetId *string `required:"true"` }
AssociateRouteTableRequest is request schema for AssociateRouteTable action
type AssociateRouteTableResponse ¶ added in v0.14.1
type AssociateRouteTableResponse struct {
response.CommonBase
}
AssociateRouteTableResponse is response schema for AssociateRouteTable action
type AssociationInfo ¶ added in v0.14.1
type AssociationInfo struct { // ACL的ID AclId string // 绑定ID AssociationId string // 创建的Unix时间戳 CreateTime int // 绑定的子网ID SubnetworkId string // 所属的VPC ID VpcId string }
AssociationInfo - 绑定信息
type CloneRouteTableRequest ¶ added in v0.14.1
type CloneRouteTableRequest struct { request.CommonBase // 被克隆的路由表ID RouteTableId *string `required:"true"` }
CloneRouteTableRequest is request schema for CloneRouteTable action
type CloneRouteTableResponse ¶ added in v0.14.1
type CloneRouteTableResponse struct { response.CommonBase // 复制后新的路由表资源ID RouteTableId string }
CloneRouteTableResponse is response schema for CloneRouteTable action
type CreateNATGWPolicyRequest ¶ added in v0.10.0
type CreateNATGWPolicyRequest struct { request.CommonBase // 目标IP。填写对应的目标IP地址 DstIP *string `required:"true"` // 目标端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 DstPort *string `required:"true"` // NAT网关Id NATGWId *string `required:"true"` // 转发策略名称。默认为空 PolicyName *string `required:"false"` // 协议类型。枚举值为:TCP、UDP Protocol *string `required:"true"` // 源IP。填写对应的EIP Id SrcEIPId *string `required:"true"` // 源端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 SrcPort *string `required:"true"` }
CreateNATGWPolicyRequest is request schema for CreateNATGWPolicy action
type CreateNATGWPolicyResponse ¶ added in v0.10.0
type CreateNATGWPolicyResponse struct { response.CommonBase // 创建时分配的策略Id PolicyId string }
CreateNATGWPolicyResponse is response schema for CreateNATGWPolicy action
type CreateNATGWRequest ¶ added in v0.10.0
type CreateNATGWRequest struct { request.CommonBase // NAT网关绑定的EIPId EIPIds []string `required:"true"` // NAT网关绑定的防火墙Id FirewallId *string `required:"true"` // 白名单开关标记。0表示关闭,1表示开启。默认为0 IfOpen *int `required:"false"` // NAT网关名称 NATGWName *string `required:"true"` // 备注。默认为空 Remark *string `required:"false"` // NAT网关绑定的子网Id SubnetworkIds []string `required:"true"` // 业务组。默认为空 Tag *string `required:"false"` // NAT网关所属的VPC Id。默认为Default VPC Id VPCId *string `required:"false"` }
CreateNATGWRequest is request schema for CreateNATGW action
type CreateNATGWResponse ¶ added in v0.10.0
type CreateNATGWResponse struct { response.CommonBase // 申请到的NATGateWay Id NATGWId string }
CreateNATGWResponse is response schema for CreateNATGW action
type CreateNetworkAclAssociationRequest ¶ added in v0.14.1
type CreateNetworkAclAssociationRequest struct { request.CommonBase // ACL的ID AclId *string `required:"true"` // 需要绑定的子网ID SubnetworkId *string `required:"true"` }
CreateNetworkAclAssociationRequest is request schema for CreateNetworkAclAssociation action
type CreateNetworkAclAssociationResponse ¶ added in v0.14.1
type CreateNetworkAclAssociationResponse struct { response.CommonBase // Acl的ID AclId string // 创建的绑定关系的ID AssociationId string // 该子网之前的绑定关系信息 PrevAssociation AssociationInfo }
CreateNetworkAclAssociationResponse is response schema for CreateNetworkAclAssociation action
type CreateNetworkAclEntryRequest ¶ added in v0.14.1
type CreateNetworkAclEntryRequest struct { request.CommonBase // ACL的ID AclId *string `required:"true"` // IPv4段的CIDR表示 CidrBlock *string `required:"true"` // 描述 Description *string `required:"false"` // 出向或者入向(“Ingress”, "Egress") Direction *string `required:"true"` // 规则的行为("Accept", "Reject") EntryAction *string `required:"true"` // 协议规则描述 IpProtocol *string `required:"true"` // 针对的端口范围 PortRange *string `required:"true"` // Entry的优先级,对于同样的Direction来说,不能重复 Priority *int `required:"true"` // 应用目标资源列表。默认为全部资源生效。TargetType为0时不用填写该值。 TargetResourceIds []string `required:"false"` // 应用目标类型。0代表“子网内全部资源”,1代表“子网内指定资源”,默认为0 TargetType *int `required:"false"` }
CreateNetworkAclEntryRequest is request schema for CreateNetworkAclEntry action
type CreateNetworkAclEntryResponse ¶ added in v0.14.1
type CreateNetworkAclEntryResponse struct { response.CommonBase // 创建的Entry的ID EntryId string }
CreateNetworkAclEntryResponse is response schema for CreateNetworkAclEntry action
type CreateNetworkAclRequest ¶ added in v0.14.1
type CreateNetworkAclRequest struct { request.CommonBase // ACL的名称 AclName *string `required:"true"` // ACL的描述 Description *string `required:"false"` // 将要创建的ACL所属VPC的ID VpcId *string `required:"true"` }
CreateNetworkAclRequest is request schema for CreateNetworkAcl action
type CreateNetworkAclResponse ¶ added in v0.14.1
type CreateNetworkAclResponse struct { response.CommonBase // 创建的ACL的ID AclId string }
CreateNetworkAclResponse is response schema for CreateNetworkAcl action
type CreateRouteTableRequest ¶ added in v0.14.1
type CreateRouteTableRequest struct { request.CommonBase // 路由表名称。默认为RouteTable Name *string `required:"false"` // 备注 Remark *string `required:"false"` // 路由表所属业务组 Tag *string `required:"false"` // 所属的VPC资源ID VPCId *string `required:"true"` }
CreateRouteTableRequest is request schema for CreateRouteTable action
type CreateRouteTableResponse ¶ added in v0.14.1
type CreateRouteTableResponse struct { response.CommonBase // 路由表ID RouteTableId string }
CreateRouteTableResponse is response schema for CreateRouteTable action
type CreateSubnetRequest ¶
type CreateSubnetRequest struct { request.CommonBase // 子网网络号位数,默认为24 Netmask *int `required:"false"` // 备注 Remark *string `required:"false"` // 子网网络地址,例如192.168.0.0 Subnet *string `required:"true"` // 子网名称,默认为Subnet SubnetName *string `required:"false"` // 业务组名称,默认为Default Tag *string `required:"false"` // VPC资源ID VPCId *string `required:"true"` }
CreateSubnetRequest is request schema for CreateSubnet action
type CreateSubnetResponse ¶
type CreateSubnetResponse struct { response.CommonBase // 子网ID SubnetId string }
CreateSubnetResponse is response schema for CreateSubnet action
type CreateVPCIntercomRequest ¶
type CreateVPCIntercomRequest struct { request.CommonBase // 目的VPC项目ID。默认与源VPC同项目。 DstProjectId *string `required:"false"` // 目的VPC所在地域,默认与源VPC同地域。 DstRegion *string `required:"false"` // 目的VPC短ID DstVPCId *string `required:"true"` // 源VPC短ID VPCId *string `required:"true"` }
CreateVPCIntercomRequest is request schema for CreateVPCIntercom action
type CreateVPCIntercomResponse ¶
type CreateVPCIntercomResponse struct {
response.CommonBase
}
CreateVPCIntercomResponse is response schema for CreateVPCIntercom action
type CreateVPCRequest ¶
type CreateVPCRequest struct { request.CommonBase // VPC名称 Name *string `required:"true"` // VPC网段 Network []string `required:"true"` // 备注 Remark *string `required:"false"` // 业务组名称 Tag *string `required:"false"` // 【该字段已废弃,请谨慎使用】 Type *int `required:"false" deprecated:"true"` }
CreateVPCRequest is request schema for CreateVPC action
type CreateVPCResponse ¶
type CreateVPCResponse struct { response.CommonBase // VPC资源Id VPCId string }
CreateVPCResponse is response schema for CreateVPC action
type DeleteNATGWPolicyRequest ¶ added in v0.10.0
type DeleteNATGWPolicyRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` // 端口转发规则Id PolicyId *string `required:"true"` }
DeleteNATGWPolicyRequest is request schema for DeleteNATGWPolicy action
type DeleteNATGWPolicyResponse ¶ added in v0.10.0
type DeleteNATGWPolicyResponse struct {
response.CommonBase
}
DeleteNATGWPolicyResponse is response schema for DeleteNATGWPolicy action
type DeleteNATGWRequest ¶ added in v0.10.0
type DeleteNATGWRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` // 是否释放绑定的EIP。true:解绑并释放;false:只解绑不释放。默认为false ReleaseEip *bool `required:"false"` }
DeleteNATGWRequest is request schema for DeleteNATGW action
type DeleteNATGWResponse ¶ added in v0.10.0
type DeleteNATGWResponse struct {
response.CommonBase
}
DeleteNATGWResponse is response schema for DeleteNATGW action
type DeleteNetworkAclAssociationRequest ¶ added in v0.14.1
type DeleteNetworkAclAssociationRequest struct { request.CommonBase // 需要删除的AclId AclId *string `required:"true"` // 绑定的子网ID SubnetworkId *string `required:"true"` }
DeleteNetworkAclAssociationRequest is request schema for DeleteNetworkAclAssociation action
type DeleteNetworkAclAssociationResponse ¶ added in v0.14.1
type DeleteNetworkAclAssociationResponse struct {
response.CommonBase
}
DeleteNetworkAclAssociationResponse is response schema for DeleteNetworkAclAssociation action
type DeleteNetworkAclEntryRequest ¶ added in v0.14.1
type DeleteNetworkAclEntryRequest struct { request.CommonBase // Acl的ID AclId *string `required:"true"` // 需要删除的EntryId EntryId *string `required:"true"` }
DeleteNetworkAclEntryRequest is request schema for DeleteNetworkAclEntry action
type DeleteNetworkAclEntryResponse ¶ added in v0.14.1
type DeleteNetworkAclEntryResponse struct {
response.CommonBase
}
DeleteNetworkAclEntryResponse is response schema for DeleteNetworkAclEntry action
type DeleteNetworkAclRequest ¶ added in v0.14.1
type DeleteNetworkAclRequest struct { request.CommonBase // 需要删除的AclId AclId *string `required:"true"` }
DeleteNetworkAclRequest is request schema for DeleteNetworkAcl action
type DeleteNetworkAclResponse ¶ added in v0.14.1
type DeleteNetworkAclResponse struct {
response.CommonBase
}
DeleteNetworkAclResponse is response schema for DeleteNetworkAcl action
type DeleteRouteTableRequest ¶ added in v0.14.1
type DeleteRouteTableRequest struct { request.CommonBase // 路由表资源ID RouteTableId *string `required:"true"` }
DeleteRouteTableRequest is request schema for DeleteRouteTable action
type DeleteRouteTableResponse ¶ added in v0.14.1
type DeleteRouteTableResponse struct {
response.CommonBase
}
DeleteRouteTableResponse is response schema for DeleteRouteTable action
type DeleteSecondaryIpRequest ¶ added in v0.14.1
type DeleteSecondaryIpRequest struct { request.CommonBase // ip Ip *string `required:"true"` // mac Mac *string `required:"true"` // 资源Id ObjectId *string `required:"false"` // 子网Id SubnetId *string `required:"true"` // VPCId VPCId *string `required:"false"` }
DeleteSecondaryIpRequest is request schema for DeleteSecondaryIp action
type DeleteSecondaryIpResponse ¶ added in v0.14.1
type DeleteSecondaryIpResponse struct {
response.CommonBase
}
DeleteSecondaryIpResponse is response schema for DeleteSecondaryIp action
type DeleteSubnetRequest ¶
type DeleteSubnetRequest struct { request.CommonBase // 子网ID SubnetId *string `required:"true"` }
DeleteSubnetRequest is request schema for DeleteSubnet action
type DeleteSubnetResponse ¶
type DeleteSubnetResponse struct {
response.CommonBase
}
DeleteSubnetResponse is response schema for DeleteSubnet action
type DeleteVPCIntercomRequest ¶
type DeleteVPCIntercomRequest struct { request.CommonBase // 目的VPC所在项目ID,默认为源VPC所在项目ID DstProjectId *string `required:"false"` // 目的VPC所在地域,默认为源VPC所在地域 DstRegion *string `required:"false"` // 目的VPC短ID DstVPCId *string `required:"true"` // 源VPC短ID VPCId *string `required:"true"` }
DeleteVPCIntercomRequest is request schema for DeleteVPCIntercom action
type DeleteVPCIntercomResponse ¶
type DeleteVPCIntercomResponse struct {
response.CommonBase
}
DeleteVPCIntercomResponse is response schema for DeleteVPCIntercom action
type DeleteVPCRequest ¶
type DeleteVPCRequest struct { request.CommonBase // VPC资源Id VPCId *string `required:"true"` }
DeleteVPCRequest is request schema for DeleteVPC action
type DeleteVPCResponse ¶
type DeleteVPCResponse struct {
response.CommonBase
}
DeleteVPCResponse is response schema for DeleteVPC action
type DeleteWhiteListResourceRequest ¶ added in v0.10.0
type DeleteWhiteListResourceRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` // 删除白名单的资源Id ResourceIds []string `required:"true"` }
DeleteWhiteListResourceRequest is request schema for DeleteWhiteListResource action
type DeleteWhiteListResourceResponse ¶ added in v0.10.0
type DeleteWhiteListResourceResponse struct {
response.CommonBase
}
DeleteWhiteListResourceResponse is response schema for DeleteWhiteListResource action
type DescribeNATGWPolicyRequest ¶ added in v0.10.0
type DescribeNATGWPolicyRequest struct { request.CommonBase // 返回数据长度,默认为10000 Limit *int `required:"false"` // NAT网关Id NATGWId *string `required:"true"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` }
DescribeNATGWPolicyRequest is request schema for DescribeNATGWPolicy action
type DescribeNATGWPolicyResponse ¶ added in v0.10.0
type DescribeNATGWPolicyResponse struct { response.CommonBase // 查到的NATGW 转发策略的详细信息 DataSet []NATGWPolicyDataSet // 满足条件的转发策略总数 TotalCount int }
DescribeNATGWPolicyResponse is response schema for DescribeNATGWPolicy action
type DescribeNATGWRequest ¶ added in v0.10.0
type DescribeNATGWRequest struct { request.CommonBase // 数据分页值。默认为20 Limit *int `required:"false"` // NAT网关Id。默认为该项目下所有NAT网关 NATGWIds []string `required:"false"` // 数据偏移量。默认为0 Offset *int `required:"false"` }
DescribeNATGWRequest is request schema for DescribeNATGW action
type DescribeNATGWResponse ¶ added in v0.10.0
type DescribeNATGWResponse struct { response.CommonBase // 查到的NATGW信息列表 DataSet []NatGatewayDataSet // 满足条件的实例的总数 TotalCount int }
DescribeNATGWResponse is response schema for DescribeNATGW action
type DescribeNetworkAclAssociationBySubnetRequest ¶ added in v0.14.1
type DescribeNetworkAclAssociationBySubnetRequest struct { request.CommonBase // 子网的ID SubnetworkId *string `required:"true"` }
DescribeNetworkAclAssociationBySubnetRequest is request schema for DescribeNetworkAclAssociationBySubnet action
type DescribeNetworkAclAssociationBySubnetResponse ¶ added in v0.14.1
type DescribeNetworkAclAssociationBySubnetResponse struct { response.CommonBase // 绑定信息 Association AssociationInfo }
DescribeNetworkAclAssociationBySubnetResponse is response schema for DescribeNetworkAclAssociationBySubnet action
type DescribeNetworkAclAssociationRequest ¶ added in v0.14.1
type DescribeNetworkAclAssociationRequest struct { request.CommonBase // Acl的ID AclId *string `required:"true"` // 列表获取的个数限制 Limit *string `required:"false"` // 列表偏移量 Offset *int `required:"false"` }
DescribeNetworkAclAssociationRequest is request schema for DescribeNetworkAclAssociation action
type DescribeNetworkAclAssociationResponse ¶ added in v0.14.1
type DescribeNetworkAclAssociationResponse struct { response.CommonBase // 绑定信息列表 AssociationList []AssociationInfo }
DescribeNetworkAclAssociationResponse is response schema for DescribeNetworkAclAssociation action
type DescribeNetworkAclEntryRequest ¶ added in v0.14.1
type DescribeNetworkAclEntryRequest struct { request.CommonBase // ACL的ID AclId *string `required:"true"` }
DescribeNetworkAclEntryRequest is request schema for DescribeNetworkAclEntry action
type DescribeNetworkAclEntryResponse ¶ added in v0.14.1
type DescribeNetworkAclEntryResponse struct { response.CommonBase // 所有的规则信息 EntryList []AclEntryInfo }
DescribeNetworkAclEntryResponse is response schema for DescribeNetworkAclEntry action
type DescribeNetworkAclRequest ¶ added in v0.14.1
type DescribeNetworkAclRequest struct { request.CommonBase // 列表获取的个数限制 Limit *string `required:"false"` // 列表偏移量 Offset *int `required:"false"` // 需要获取的ACL所属的VPC的ID VpcId *string `required:"false"` }
DescribeNetworkAclRequest is request schema for DescribeNetworkAcl action
type DescribeNetworkAclResponse ¶ added in v0.14.1
type DescribeNetworkAclResponse struct { response.CommonBase // ACL的信息,具体结构见下方AclInfo AclList []AclInfo }
DescribeNetworkAclResponse is response schema for DescribeNetworkAcl action
type DescribeRouteTableRequest ¶ added in v0.14.1
type DescribeRouteTableRequest struct { request.CommonBase // 业务组ID BusinessId *string `required:"false"` // 数据分页值。默认为20 Limit *int `required:"false"` // 数据偏移量。默认为0 OffSet *int `required:"false"` // 路由表资源ID RouteTableId *string `required:"false"` // 所属VPC的资源ID VPCId *string `required:"false"` }
DescribeRouteTableRequest is request schema for DescribeRouteTable action
type DescribeRouteTableResponse ¶ added in v0.14.1
type DescribeRouteTableResponse struct { response.CommonBase // 路由表信息 RouteTables []RouteTableInfo // RouteTables字段的数量 TotalCount int }
DescribeRouteTableResponse is response schema for DescribeRouteTable action
type DescribeSecondaryIpRequest ¶ added in v0.14.1
type DescribeSecondaryIpRequest struct { request.CommonBase // Ip Ip *string `required:"false"` // Mac Mac *string `required:"false"` // 子网Id SubnetId *string `required:"true"` // VPCId VPCId *string `required:"true"` }
DescribeSecondaryIpRequest is request schema for DescribeSecondaryIp action
type DescribeSecondaryIpResponse ¶ added in v0.14.1
type DescribeSecondaryIpResponse struct { response.CommonBase // DataSet []IpInfo }
DescribeSecondaryIpResponse is response schema for DescribeSecondaryIp action
type DescribeSubnetRequest ¶
type DescribeSubnetRequest struct { request.CommonBase // 【该字段已废弃,请谨慎使用】 BusinessId *string `required:"false" deprecated:"true"` // 列表长度,默认为20 Limit *int `required:"false"` // 偏移量,默认为0 Offset *int `required:"false"` // 路由表Id RouteTableId *string `required:"false"` // 是否返回子网的可用IP数,true为是,false为否,默认不返回 ShowAvailableIPs *bool `required:"false"` // 子网id,适用于一次查询一个子网信息 SubnetId *string `required:"false"` // 子网id数组,适用于一次查询多个子网信息 SubnetIds []string `required:"false"` // 业务组名称,默认为Default Tag *string `required:"false"` // VPC资源id VPCId *string `required:"false"` }
DescribeSubnetRequest is request schema for DescribeSubnet action
type DescribeSubnetResourceRequest ¶
type DescribeSubnetResourceRequest struct { request.CommonBase // 单页返回数据长度,默认为20 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` // 资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. ResourceType *string `required:"false"` // 子网id SubnetId *string `required:"true"` }
DescribeSubnetResourceRequest is request schema for DescribeSubnetResource action
type DescribeSubnetResourceResponse ¶
type DescribeSubnetResourceResponse struct { response.CommonBase // 返回数据集,请见SubnetResource DataSet []SubnetResource // 总数 TotalCount int }
DescribeSubnetResourceResponse is response schema for DescribeSubnetResource action
type DescribeSubnetResponse ¶
type DescribeSubnetResponse struct { response.CommonBase // 子网信息数组,具体资源见下方SubnetInfo DataSet []SubnetInfo // 子网总数量 TotalCount int }
DescribeSubnetResponse is response schema for DescribeSubnet action
type DescribeVIPRequest ¶ added in v0.14.1
type DescribeVIPRequest struct { request.CommonBase // 业务组 BusinessId *string `required:"false"` // 子网id,不指定则获取VPCId下的所有vip SubnetId *string `required:"false"` // 业务组名称, 默认为 Default Tag *string `required:"false"` // VIP ID VIPId *string `required:"false"` // vpc的id,指定SubnetId时必填 VPCId *string `required:"false"` }
DescribeVIPRequest is request schema for DescribeVIP action
type DescribeVIPResponse ¶ added in v0.14.1
type DescribeVIPResponse struct { response.CommonBase // 内网VIP地址列表 DataSet []string // vip数量 TotalCount int // 内网VIP详情,请见VIPDetailSet VIPSet []VIPDetailSet }
DescribeVIPResponse is response schema for DescribeVIP action
type DescribeVPCIntercomRequest ¶
type DescribeVPCIntercomRequest struct { request.CommonBase // 目的项目ID,默认为全部项目 DstProjectId *string `required:"false"` // 目的VPC所在地域,默认为全部地域 DstRegion *string `required:"false"` // VPC短ID VPCId *string `required:"true"` }
DescribeVPCIntercomRequest is request schema for DescribeVPCIntercom action
type DescribeVPCIntercomResponse ¶
type DescribeVPCIntercomResponse struct { response.CommonBase // 联通VPC信息数组 DataSet []VPCIntercomInfo }
DescribeVPCIntercomResponse is response schema for DescribeVPCIntercom action
type DescribeVPCRequest ¶
type DescribeVPCRequest struct { request.CommonBase // Limit *int `required:"false"` // Offset *int `required:"false"` // 业务组名称 Tag *string `required:"false"` // VPCId VPCIds []string `required:"false"` }
DescribeVPCRequest is request schema for DescribeVPC action
type DescribeVPCResponse ¶
type DescribeVPCResponse struct { response.CommonBase // vpc信息,具体结构见下方VPCInfo DataSet []VPCInfo }
DescribeVPCResponse is response schema for DescribeVPC action
type DescribeWhiteListResourceObjectIPInfo ¶ added in v0.10.0
type DescribeWhiteListResourceObjectIPInfo struct { // natgw字符串 GwType string // 白名单资源的内网IP PrivateIP string // 白名单资源Id信息 ResourceId string // 白名单资源名称 ResourceName string // 白名单资源类型 ResourceType string // 资源绑定的虚拟网卡的实例ID SubResourceId string // 资源绑定的虚拟网卡的实例名称 SubResourceName string // 资源绑定的虚拟网卡的类型 SubResourceType string // 白名单资源所属VPCId VPCId string }
DescribeWhiteListResourceObjectIPInfo - DescribeWhiteListResource
type DescribeWhiteListResourceRequest ¶ added in v0.10.0
type DescribeWhiteListResourceRequest struct { request.CommonBase // NAT网关的Id NATGWIds []string `required:"true"` }
DescribeWhiteListResourceRequest is request schema for DescribeWhiteListResource action
type DescribeWhiteListResourceResponse ¶ added in v0.10.0
type DescribeWhiteListResourceResponse struct { response.CommonBase // 白名单资源的详细信息,详见DescribeResourceWhiteListDataSet DataSet []NatGWWhitelistDataSet // 上述DataSet总数量 TotalCount int }
DescribeWhiteListResourceResponse is response schema for DescribeWhiteListResource action
type EnableWhiteListRequest ¶ added in v0.10.0
type EnableWhiteListRequest struct { request.CommonBase // 白名单开关标记。0:关闭;1:开启。默认为0 IfOpen *int `required:"true"` // NAT网关Id NATGWId *string `required:"true"` }
EnableWhiteListRequest is request schema for EnableWhiteList action
type EnableWhiteListResponse ¶ added in v0.10.0
type EnableWhiteListResponse struct {
response.CommonBase
}
EnableWhiteListResponse is response schema for EnableWhiteList action
type GetAvailableResourceForPolicyDataSet ¶ added in v0.10.0
type GetAvailableResourceForPolicyDataSet struct { // 资源对应的内网Ip PrivateIP string // 资源的Id ResourceId string // 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 ResourceType string }
GetAvailableResourceForPolicyDataSet - GetAvailableResourceForPolicy
type GetAvailableResourceForPolicyRequest ¶ added in v0.10.0
type GetAvailableResourceForPolicyRequest struct { request.CommonBase // 返回数据长度,默认为10000 Limit *int `required:"false"` // NAT网关Id NATGWId *string `required:"true"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` }
GetAvailableResourceForPolicyRequest is request schema for GetAvailableResourceForPolicy action
type GetAvailableResourceForPolicyResponse ¶ added in v0.10.0
type GetAvailableResourceForPolicyResponse struct { response.CommonBase // 支持资源类型的信息 DataSet []GetAvailableResourceForPolicyDataSet }
GetAvailableResourceForPolicyResponse is response schema for GetAvailableResourceForPolicy action
type GetAvailableResourceForWhiteListDataSet ¶ added in v0.10.0
type GetAvailableResourceForWhiteListDataSet struct { // 资源的内网Ip PrivateIP string // 资源类型Id ResourceId string // 资源名称 ResourceName string // 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 ResourceType string // 资源绑定的虚拟网卡的实例ID SubResouceId string // 资源绑定的虚拟网卡的实例类型 SubResouceType string // 资源绑定的虚拟网卡的实例名称 SubResourceName string // 资源所属子网Id SubnetworkId string // 资源所属VPCId VPCId string }
GetAvailableResourceForWhiteListDataSet - GetAvailableResourceForWhiteList
type GetAvailableResourceForWhiteListRequest ¶ added in v0.10.0
type GetAvailableResourceForWhiteListRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` }
GetAvailableResourceForWhiteListRequest is request schema for GetAvailableResourceForWhiteList action
type GetAvailableResourceForWhiteListResponse ¶ added in v0.10.0
type GetAvailableResourceForWhiteListResponse struct { response.CommonBase // 返回白名单列表的详细信息 DataSet []GetAvailableResourceForWhiteListDataSet // 白名单资源列表的总的个数 TotalCount int }
GetAvailableResourceForWhiteListResponse is response schema for GetAvailableResourceForWhiteList action
type GetNetworkAclTargetResourceRequest ¶ added in v0.14.1
type GetNetworkAclTargetResourceRequest struct { request.CommonBase // 子网ID。 SubnetworkId []string `required:"true"` }
GetNetworkAclTargetResourceRequest is request schema for GetNetworkAclTargetResource action
type GetNetworkAclTargetResourceResponse ¶ added in v0.14.1
type GetNetworkAclTargetResourceResponse struct { response.CommonBase // ACL规则应用目标资源列表,具体结构见下方TargetResourceInfo TargetResourceList []TargetResourceInfo // ACL规则应用目标资源总数 TotalCount int }
GetNetworkAclTargetResourceResponse is response schema for GetNetworkAclTargetResource action
type IpInfo ¶ added in v0.14.1
type IpInfo struct { // Gateway string // Ip string // Mac string // Mask string // SubnetId string // VPCId string }
IpInfo -
type ListSubnetForNATGWRequest ¶ added in v0.10.0
type ListSubnetForNATGWRequest struct { request.CommonBase // NAT网关所属VPC Id。默认值为Default VPC Id VPCId *string `required:"false"` }
ListSubnetForNATGWRequest is request schema for ListSubnetForNATGW action
type ListSubnetForNATGWResponse ¶ added in v0.10.0
type ListSubnetForNATGWResponse struct { response.CommonBase // 具体参数请见NatgwSubnetDataSet DataSet []NatgwSubnetDataSet }
ListSubnetForNATGWResponse is response schema for ListSubnetForNATGW action
type ModifyRouteRuleRequest ¶ added in v0.14.1
type ModifyRouteRuleRequest struct { request.CommonBase // 格式: RouteRuleId | 目的网段 | 下一跳类型(支持INSTANCE、VIP) | 下一跳 |优先级(保留字段,填写0即可)| 备注 | 增、删、改标志(add/delete/update) 。"添加"示例: test_id | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| add (添加的RouteRuleId填任意非空字符串) 。"删除"示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| delete (RouteRuleId来自DescribeRouteTable中) 。“修改”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-cjksa2 | 0 | Default Route Rule| update (RouteRuleId来自DescribeRouteTable中) RouteRule []string `required:"true"` // 通过DescribeRouteTable拿到 RouteTableId *string `required:"true"` }
ModifyRouteRuleRequest is request schema for ModifyRouteRule action
type ModifyRouteRuleResponse ¶ added in v0.14.1
type ModifyRouteRuleResponse struct {
response.CommonBase
}
ModifyRouteRuleResponse is response schema for ModifyRouteRule action
type NATGWPolicyDataSet ¶ added in v0.10.0
type NATGWPolicyDataSet struct { // 目的地址 DstIP string // 目的端口 DstPort string // NAT网关Id NATGWId string // 转发策略Id PolicyId string // 转发策略名称 PolicyName string // 协议类型 Protocol string // 端口转发前端EIP SrcEIP string // 端口转发前端EIP Id SrcEIPId string // 源端口 SrcPort string }
NATGWPolicyDataSet - DescribeNATGWPolicy
type NatGWIPResInfo ¶ added in v0.10.0
NatGWIPResInfo - IP信息
type NatGWWhitelistDataSet ¶ added in v0.10.0
type NatGWWhitelistDataSet struct { // 白名单开关标记 IfOpen int // NATGateWay Id NATGWId string // 白名单详情 ObjectIPInfo []DescribeWhiteListResourceObjectIPInfo }
NatGWWhitelistDataSet - nat网关白名单数据
type NatGatewayDataSet ¶ added in v0.10.0
type NatGatewayDataSet struct { // natgw创建时间 CreateTime int // 绑定的防火墙Id FirewallId string // 绑定的EIP 信息 IPSet []NatGatewayIPSet // natgw id NATGWId string // natgw名称 NATGWName string // 转发策略Id PolicyId []string // 备注 Remark string // 子网 Id SubnetSet []NatGatewaySubnetSet // 业务组 Tag string // 所属VPC Id VPCId string // 所属VPC 信息 VPCInfo string }
NatGatewayDataSet - natgw的信息
type NatGatewayIPSet ¶ added in v0.10.0
type NatGatewayIPSet struct { // 带宽 Bandwidth int // EIP带宽类型 BandwidthType string // 外网IP的 EIPId EIPId string // 外网IP信息 IPResInfo []NatGWIPResInfo // 权重为100的为出口 Weight int }
NatGatewayIPSet - IPSet信息
type NatGatewaySubnetSet ¶ added in v0.10.0
type NatGatewaySubnetSet struct { // 子网网段 Subnet string // 子网名字 SubnetName string // 子网id SubnetworkId string }
NatGatewaySubnetSet - natgw里面的子网信息
type NatgwSubnetDataSet ¶ added in v0.10.0
type NatgwSubnetDataSet struct { // 是否绑定NATGW HasNATGW bool // 掩码 Netmask string // 子网网段 Subnet string // 子网id SubnetId string // 子网名字 SubnetName string }
NatgwSubnetDataSet - natgw可以绑定的子网
type ReleaseVIPRequest ¶ added in v0.14.1
type ReleaseVIPRequest struct { request.CommonBase // 内网VIP的id VIPId *string `required:"true"` }
ReleaseVIPRequest is request schema for ReleaseVIP action
type ReleaseVIPResponse ¶ added in v0.14.1
type ReleaseVIPResponse struct {
response.CommonBase
}
ReleaseVIPResponse is response schema for ReleaseVIP action
type RouteRuleInfo ¶ added in v0.14.1
type RouteRuleInfo struct { // 项目ID信息 AccountId int // 目的地址 DstAddr string // 保留字段,暂未使用 DstPort int // 路由下一跳资源ID NexthopId string // 路由表下一跳类型。LOCAL,本VPC内部通信路由;PUBLIC,公共服务路由;CNAT,外网路由;UDPN,跨域高速通道路由;HYBRIDGW,混合云路由;INSTANCE,实例路由;VNET,VPC联通路由;IPSEC VPN,指向VPN网关的路由。 NexthopType string // 保留字段,暂未使用 OriginAddr string // 保留字段,暂未使用 Priority int // 路由规则备注 Remark string // 规则ID RouteRuleId string // 路由表资源ID RouteTableId string // 路由规则类型。0,系统路由规则;1,自定义路由规则 RuleType int // 保留字段,暂未使用 SrcAddr string // 保留字段,暂未使用 SrcPort int // 所属的VPC VNetId string }
RouteRuleInfo - 路由规则信息
type RouteTableInfo ¶ added in v0.14.1
type RouteTableInfo struct { // 创建时间戳 CreateTime int // 路由表备注 Remark string // 路由规则 RouteRules []RouteRuleInfo // 路由表资源ID RouteTableId string // 路由表类型。1为默认路由表,0为自定义路由表 RouteTableType int // 绑定该路由表的子网数量 SubnetCount int // 路由表所属业务组 Tag string // 路由表所属的VPC资源ID VPCId string // 路由表所属的VPC资源名称 VPCName string }
RouteTableInfo - 路由表信息
type SetGwDefaultExportRequest ¶ added in v0.10.0
type SetGwDefaultExportRequest struct { request.CommonBase // NAT网关绑定的EIP Id。ExportIp和ExportEipId必填一个 ExportEipId *string `required:"false"` // NAT网关绑定的EIP。ExportIp和ExportEipId必填一个 ExportIp *string `required:"false"` // NAT网关Id NATGWId *string `required:"true"` }
SetGwDefaultExportRequest is request schema for SetGwDefaultExport action
type SetGwDefaultExportResponse ¶ added in v0.10.0
type SetGwDefaultExportResponse struct {
response.CommonBase
}
SetGwDefaultExportResponse is response schema for SetGwDefaultExport action
type SubnetInfo ¶ added in v0.14.1
type SubnetInfo struct { // 可用IP数量 AvailableIPs int // 创建时间 CreateTime int // 子网网关 Gateway string // 是否有natgw HasNATGW bool // 子网关联的IPv6网段 IPv6Network string // 子网掩码 Netmask string // 备注 Remark string // 路由表Id RouteTableId string // 子网网段 Subnet string // 子网Id SubnetId string // 子网名称 SubnetName string // 子网类型 SubnetType int // 业务组 Tag string // VPCId VPCId string // VPC名称 VPCName string // 可用区名称 Zone string }
SubnetInfo - 子网信息
type SubnetResource ¶ added in v0.14.1
type SubnetResource struct { // 资源ip IP string // 名称 Name string // 资源Id ResourceId string // 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,分布式消息系统;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. ResourceType string }
SubnetResource - 子网下资源
type TargetResourceInfo ¶ added in v0.14.1
type TargetResourceInfo struct { // 资源内网IP PrivateIP string // 资源ID ResourceId string // 资源名称 ResourceName string // 资源类型 ResourceType int // 资源绑定的虚拟网卡的ID SubResourceId string // 资源绑定的虚拟网卡的名称 SubResourceName string // 资源绑定虚拟网卡的类型 SubResourceType int // 子网ID SubnetworkId string }
TargetResourceInfo - ACL规则应用目标资源信息。
type UpdateNATGWPolicyRequest ¶ added in v0.10.0
type UpdateNATGWPolicyRequest struct { request.CommonBase // 目标IP。填写对饮的目标IP地址 DstIP *string `required:"true"` // 目标端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 DstPort *string `required:"true"` // NAT网关Id NATGWId *string `required:"true"` // 转发策略Id PolicyId *string `required:"true"` // 转发策略名称。默认为空 PolicyName *string `required:"false"` // 协议类型。枚举值为:TCP 、 UDP Protocol *string `required:"true"` // 源IP。填写对应的EIP Id SrcEIPId *string `required:"true"` // 源端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-6553 SrcPort *string `required:"true"` }
UpdateNATGWPolicyRequest is request schema for UpdateNATGWPolicy action
type UpdateNATGWPolicyResponse ¶ added in v0.10.0
type UpdateNATGWPolicyResponse struct {
response.CommonBase
}
UpdateNATGWPolicyResponse is response schema for UpdateNATGWPolicy action
type UpdateNATGWSubnetRequest ¶ added in v0.10.0
type UpdateNATGWSubnetRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` // NAT网关绑定的子网Id SubnetworkIds []string `required:"true"` }
UpdateNATGWSubnetRequest is request schema for UpdateNATGWSubnet action
type UpdateNATGWSubnetResponse ¶ added in v0.10.0
type UpdateNATGWSubnetResponse struct {
response.CommonBase
}
UpdateNATGWSubnetResponse is response schema for UpdateNATGWSubnet action
type UpdateNetworkAclEntryRequest ¶ added in v0.14.1
type UpdateNetworkAclEntryRequest struct { request.CommonBase // ACL的ID AclId *string `required:"true"` // IPv4段的CIDR表示 CidrBlock *string `required:"true"` // 描述 Description *string `required:"false"` // 出向或者入向(“Ingress”, "Egress") Direction *string `required:"true"` // 规则的行为("Accept", "Reject") EntryAction *string `required:"true"` // 需要更新的Entry Id EntryId *string `required:"true"` // 针对的协议规则 IpProtocol *string `required:"true"` // 针对的端口范围 PortRange *string `required:"true"` // Entry的优先级,对于同样的Direction来说,不能重复 Priority *int `required:"true"` // 应用目标资源列表。默认为全部资源生效。TargetType为0时不用填写该值 TargetResourceIds []string `required:"false"` // 应用目标类型。0代表“子网内全部资源”, 1代表“子网内指定资源”。默认为0 TargetType *int `required:"false"` }
UpdateNetworkAclEntryRequest is request schema for UpdateNetworkAclEntry action
type UpdateNetworkAclEntryResponse ¶ added in v0.14.1
type UpdateNetworkAclEntryResponse struct {
response.CommonBase
}
UpdateNetworkAclEntryResponse is response schema for UpdateNetworkAclEntry action
type UpdateNetworkAclRequest ¶ added in v0.14.1
type UpdateNetworkAclRequest struct { request.CommonBase // 需要更改的ACL ID AclId *string `required:"true"` // Acl的名称 AclName *string `required:"true"` // 描述 Description *string `required:"true"` }
UpdateNetworkAclRequest is request schema for UpdateNetworkAcl action
type UpdateNetworkAclResponse ¶ added in v0.14.1
type UpdateNetworkAclResponse struct {
response.CommonBase
}
UpdateNetworkAclResponse is response schema for UpdateNetworkAcl action
type UpdateRouteTableAttributeRequest ¶ added in v0.14.1
type UpdateRouteTableAttributeRequest struct { request.CommonBase // 名称 Name *string `required:"false"` // 备注 Remark *string `required:"false"` // 路由表ID RouteTableId *string `required:"true"` // 业务组名称 Tag *string `required:"false"` }
UpdateRouteTableAttributeRequest is request schema for UpdateRouteTableAttribute action
type UpdateRouteTableAttributeResponse ¶ added in v0.14.1
type UpdateRouteTableAttributeResponse struct {
response.CommonBase
}
UpdateRouteTableAttributeResponse is response schema for UpdateRouteTableAttribute action
type UpdateSubnetAttributeRequest ¶
type UpdateSubnetAttributeRequest struct { request.CommonBase // 子网名称(如果Name不填写,Tag必须填写) Name *string `required:"false"` // 子网ID SubnetId *string `required:"true"` // 业务组名称(如果Tag不填写,Name必须填写) Tag *string `required:"false"` }
UpdateSubnetAttributeRequest is request schema for UpdateSubnetAttribute action
type UpdateSubnetAttributeResponse ¶
type UpdateSubnetAttributeResponse struct {
response.CommonBase
}
UpdateSubnetAttributeResponse is response schema for UpdateSubnetAttribute action
type UpdateVIPAttributeRequest ¶ added in v0.14.1
type UpdateVIPAttributeRequest struct { request.CommonBase // 内网VIP的名称 Name *string `required:"false"` // 内网VIP的备注 Remark *string `required:"false"` // 内网VIP所属的业务组 Tag *string `required:"false"` // 内网VIP的资源Id VIPId *string `required:"true"` }
UpdateVIPAttributeRequest is request schema for UpdateVIPAttribute action
type UpdateVIPAttributeResponse ¶ added in v0.14.1
type UpdateVIPAttributeResponse struct {
response.CommonBase
}
UpdateVIPAttributeResponse is response schema for UpdateVIPAttribute action
type UpdateVPCNetworkRequest ¶ added in v0.6.9
type UpdateVPCNetworkRequest struct { request.CommonBase // 需要保留的VPC网段。当前仅支持删除VPC网段,添加网段请参考[AddVPCNetwork](../vpc2.0-api/add_vpc_network) Network []string `required:"true"` // VPC的ID VPCId *string `required:"true"` }
UpdateVPCNetworkRequest is request schema for UpdateVPCNetwork action
type UpdateVPCNetworkResponse ¶ added in v0.6.9
type UpdateVPCNetworkResponse struct { response.CommonBase // 【该字段已废弃,请谨慎使用】 Message string `deprecated:"true"` }
UpdateVPCNetworkResponse is response schema for UpdateVPCNetwork action
type VIPDetailSet ¶ added in v0.14.1
type VIPDetailSet struct { // 创建时间 CreateTime int // VIP名称 Name string // 真实主机ip RealIp string // VIP备注 Remark string // 子网id SubnetId string // VIP所属业务组 Tag string // 虚拟ip VIP string // 虚拟ip id VIPId string // VPC id VPCId string // 地域 Zone string }
VIPDetailSet - VIPDetailSet
type VPCClient ¶
VPCClient is the client of VPC
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *VPCClient
NewClient will return a instance of VPCClient
func (*VPCClient) AddVPCNetwork ¶
func (c *VPCClient) AddVPCNetwork(req *AddVPCNetworkRequest) (*AddVPCNetworkResponse, error)
API: AddVPCNetwork
添加VPC网段
func (*VPCClient) AddWhiteListResource ¶ added in v0.10.0
func (c *VPCClient) AddWhiteListResource(req *AddWhiteListResourceRequest) (*AddWhiteListResourceResponse, error)
API: AddWhiteListResource
添加NAT网关白名单
func (*VPCClient) AllocateSecondaryIp ¶ added in v0.14.1
func (c *VPCClient) AllocateSecondaryIp(req *AllocateSecondaryIpRequest) (*AllocateSecondaryIpResponse, error)
API: AllocateSecondaryIp
分配ip(用于uk8s使用)
func (*VPCClient) AllocateVIP ¶ added in v0.14.1
func (c *VPCClient) AllocateVIP(req *AllocateVIPRequest) (*AllocateVIPResponse, error)
API: AllocateVIP
根据提供信息,申请内网VIP(Virtual IP),多用于高可用程序作为漂移IP。
func (*VPCClient) AssociateRouteTable ¶ added in v0.14.1
func (c *VPCClient) AssociateRouteTable(req *AssociateRouteTableRequest) (*AssociateRouteTableResponse, error)
API: AssociateRouteTable
绑定子网的路由表
func (*VPCClient) CloneRouteTable ¶ added in v0.14.1
func (c *VPCClient) CloneRouteTable(req *CloneRouteTableRequest) (*CloneRouteTableResponse, error)
API: CloneRouteTable
将现有的路由表复制为一张新的路由表
func (*VPCClient) CreateNATGW ¶ added in v0.10.0
func (c *VPCClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
API: CreateNATGW
创建NAT网关
func (*VPCClient) CreateNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) CreateNATGWPolicy(req *CreateNATGWPolicyRequest) (*CreateNATGWPolicyResponse, error)
API: CreateNATGWPolicy
添加NAT网关端口转发规则
func (*VPCClient) CreateNetworkAcl ¶ added in v0.14.1
func (c *VPCClient) CreateNetworkAcl(req *CreateNetworkAclRequest) (*CreateNetworkAclResponse, error)
API: CreateNetworkAcl
创建网络ACL
func (*VPCClient) CreateNetworkAclAssociation ¶ added in v0.14.1
func (c *VPCClient) CreateNetworkAclAssociation(req *CreateNetworkAclAssociationRequest) (*CreateNetworkAclAssociationResponse, error)
API: CreateNetworkAclAssociation
创建ACL的绑定关系
func (*VPCClient) CreateNetworkAclEntry ¶ added in v0.14.1
func (c *VPCClient) CreateNetworkAclEntry(req *CreateNetworkAclEntryRequest) (*CreateNetworkAclEntryResponse, error)
API: CreateNetworkAclEntry
创建ACL的规则
func (*VPCClient) CreateRouteTable ¶ added in v0.14.1
func (c *VPCClient) CreateRouteTable(req *CreateRouteTableRequest) (*CreateRouteTableResponse, error)
API: CreateRouteTable
创建路由表
func (*VPCClient) CreateSubnet ¶
func (c *VPCClient) CreateSubnet(req *CreateSubnetRequest) (*CreateSubnetResponse, error)
API: CreateSubnet
创建子网
func (*VPCClient) CreateVPC ¶
func (c *VPCClient) CreateVPC(req *CreateVPCRequest) (*CreateVPCResponse, error)
API: CreateVPC
创建VPC
func (*VPCClient) CreateVPCIntercom ¶
func (c *VPCClient) CreateVPCIntercom(req *CreateVPCIntercomRequest) (*CreateVPCIntercomResponse, error)
API: CreateVPCIntercom
新建VPC互通关系
func (*VPCClient) DeleteNATGW ¶ added in v0.10.0
func (c *VPCClient) DeleteNATGW(req *DeleteNATGWRequest) (*DeleteNATGWResponse, error)
API: DeleteNATGW
删除NAT网关
func (*VPCClient) DeleteNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) DeleteNATGWPolicy(req *DeleteNATGWPolicyRequest) (*DeleteNATGWPolicyResponse, error)
API: DeleteNATGWPolicy
删除NAT网关端口转发规则
func (*VPCClient) DeleteNetworkAcl ¶ added in v0.14.1
func (c *VPCClient) DeleteNetworkAcl(req *DeleteNetworkAclRequest) (*DeleteNetworkAclResponse, error)
API: DeleteNetworkAcl
删除网络ACL
func (*VPCClient) DeleteNetworkAclAssociation ¶ added in v0.14.1
func (c *VPCClient) DeleteNetworkAclAssociation(req *DeleteNetworkAclAssociationRequest) (*DeleteNetworkAclAssociationResponse, error)
API: DeleteNetworkAclAssociation
删除网络ACL绑定关系
func (*VPCClient) DeleteNetworkAclEntry ¶ added in v0.14.1
func (c *VPCClient) DeleteNetworkAclEntry(req *DeleteNetworkAclEntryRequest) (*DeleteNetworkAclEntryResponse, error)
API: DeleteNetworkAclEntry
删除ACL的规则
func (*VPCClient) DeleteRouteTable ¶ added in v0.14.1
func (c *VPCClient) DeleteRouteTable(req *DeleteRouteTableRequest) (*DeleteRouteTableResponse, error)
API: DeleteRouteTable
删除自定义路由表
func (*VPCClient) DeleteSecondaryIp ¶ added in v0.14.1
func (c *VPCClient) DeleteSecondaryIp(req *DeleteSecondaryIpRequest) (*DeleteSecondaryIpResponse, error)
API: DeleteSecondaryIp
删除ip(用于uk8s使用)
func (*VPCClient) DeleteSubnet ¶
func (c *VPCClient) DeleteSubnet(req *DeleteSubnetRequest) (*DeleteSubnetResponse, error)
API: DeleteSubnet
删除子网
func (*VPCClient) DeleteVPC ¶
func (c *VPCClient) DeleteVPC(req *DeleteVPCRequest) (*DeleteVPCResponse, error)
API: DeleteVPC
删除VPC
func (*VPCClient) DeleteVPCIntercom ¶
func (c *VPCClient) DeleteVPCIntercom(req *DeleteVPCIntercomRequest) (*DeleteVPCIntercomResponse, error)
API: DeleteVPCIntercom
删除VPC互通关系
func (*VPCClient) DeleteWhiteListResource ¶ added in v0.10.0
func (c *VPCClient) DeleteWhiteListResource(req *DeleteWhiteListResourceRequest) (*DeleteWhiteListResourceResponse, error)
API: DeleteWhiteListResource
删除NAT网关白名单列表
func (*VPCClient) DescribeNATGW ¶ added in v0.10.0
func (c *VPCClient) DescribeNATGW(req *DescribeNATGWRequest) (*DescribeNATGWResponse, error)
API: DescribeNATGW
获取NAT网关信息
func (*VPCClient) DescribeNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) DescribeNATGWPolicy(req *DescribeNATGWPolicyRequest) (*DescribeNATGWPolicyResponse, error)
API: DescribeNATGWPolicy
展示NAT网关端口转发规则
func (*VPCClient) DescribeNetworkAcl ¶ added in v0.14.1
func (c *VPCClient) DescribeNetworkAcl(req *DescribeNetworkAclRequest) (*DescribeNetworkAclResponse, error)
API: DescribeNetworkAcl
获取网络ACL
func (*VPCClient) DescribeNetworkAclAssociation ¶ added in v0.14.1
func (c *VPCClient) DescribeNetworkAclAssociation(req *DescribeNetworkAclAssociationRequest) (*DescribeNetworkAclAssociationResponse, error)
API: DescribeNetworkAclAssociation
获取网络ACL的绑定关系列表
func (*VPCClient) DescribeNetworkAclAssociationBySubnet ¶ added in v0.14.1
func (c *VPCClient) DescribeNetworkAclAssociationBySubnet(req *DescribeNetworkAclAssociationBySubnetRequest) (*DescribeNetworkAclAssociationBySubnetResponse, error)
API: DescribeNetworkAclAssociationBySubnet
获取子网的ACL绑定信息
func (*VPCClient) DescribeNetworkAclEntry ¶ added in v0.14.1
func (c *VPCClient) DescribeNetworkAclEntry(req *DescribeNetworkAclEntryRequest) (*DescribeNetworkAclEntryResponse, error)
API: DescribeNetworkAclEntry
获取ACL的规则信息
func (*VPCClient) DescribeRouteTable ¶ added in v0.14.1
func (c *VPCClient) DescribeRouteTable(req *DescribeRouteTableRequest) (*DescribeRouteTableResponse, error)
API: DescribeRouteTable
获取路由表详细信息(包括路由策略)
func (*VPCClient) DescribeSecondaryIp ¶ added in v0.14.1
func (c *VPCClient) DescribeSecondaryIp(req *DescribeSecondaryIpRequest) (*DescribeSecondaryIpResponse, error)
API: DescribeSecondaryIp
查询SecondaryIp(uk8s使用)
func (*VPCClient) DescribeSubnet ¶
func (c *VPCClient) DescribeSubnet(req *DescribeSubnetRequest) (*DescribeSubnetResponse, error)
API: DescribeSubnet
获取子网信息
func (*VPCClient) DescribeSubnetResource ¶
func (c *VPCClient) DescribeSubnetResource(req *DescribeSubnetResourceRequest) (*DescribeSubnetResourceResponse, error)
API: DescribeSubnetResource
展示子网资源
func (*VPCClient) DescribeVIP ¶ added in v0.14.1
func (c *VPCClient) DescribeVIP(req *DescribeVIPRequest) (*DescribeVIPResponse, error)
API: DescribeVIP
获取内网VIP详细信息
func (*VPCClient) DescribeVPC ¶
func (c *VPCClient) DescribeVPC(req *DescribeVPCRequest) (*DescribeVPCResponse, error)
API: DescribeVPC
获取VPC信息
func (*VPCClient) DescribeVPCIntercom ¶
func (c *VPCClient) DescribeVPCIntercom(req *DescribeVPCIntercomRequest) (*DescribeVPCIntercomResponse, error)
API: DescribeVPCIntercom
获取VPC互通信息
func (*VPCClient) DescribeWhiteListResource ¶ added in v0.10.0
func (c *VPCClient) DescribeWhiteListResource(req *DescribeWhiteListResourceRequest) (*DescribeWhiteListResourceResponse, error)
API: DescribeWhiteListResource
展示NAT网关白名单资源列表
func (*VPCClient) EnableWhiteList ¶ added in v0.10.0
func (c *VPCClient) EnableWhiteList(req *EnableWhiteListRequest) (*EnableWhiteListResponse, error)
API: EnableWhiteList
修改NAT网关白名单开关
func (*VPCClient) GetAvailableResourceForPolicy ¶ added in v0.10.0
func (c *VPCClient) GetAvailableResourceForPolicy(req *GetAvailableResourceForPolicyRequest) (*GetAvailableResourceForPolicyResponse, error)
API: GetAvailableResourceForPolicy
获取NAT网关可配置端口转发规则的资源信息
func (*VPCClient) GetAvailableResourceForWhiteList ¶ added in v0.10.0
func (c *VPCClient) GetAvailableResourceForWhiteList(req *GetAvailableResourceForWhiteListRequest) (*GetAvailableResourceForWhiteListResponse, error)
API: GetAvailableResourceForWhiteList
获取NAT网关可添加白名单的资源
func (*VPCClient) GetNetworkAclTargetResource ¶ added in v0.14.1
func (c *VPCClient) GetNetworkAclTargetResource(req *GetNetworkAclTargetResourceRequest) (*GetNetworkAclTargetResourceResponse, error)
API: GetNetworkAclTargetResource
获取ACL规则应用目标列表
func (*VPCClient) ListSubnetForNATGW ¶ added in v0.10.0
func (c *VPCClient) ListSubnetForNATGW(req *ListSubnetForNATGWRequest) (*ListSubnetForNATGWResponse, error)
API: ListSubnetForNATGW
展示NAT网关可绑定的子网列表
func (*VPCClient) ModifyRouteRule ¶ added in v0.14.1
func (c *VPCClient) ModifyRouteRule(req *ModifyRouteRuleRequest) (*ModifyRouteRuleResponse, error)
API: ModifyRouteRule
路由策略增、删、改
func (*VPCClient) NewAddVPCNetworkRequest ¶
func (c *VPCClient) NewAddVPCNetworkRequest() *AddVPCNetworkRequest
NewAddVPCNetworkRequest will create request of AddVPCNetwork action.
func (*VPCClient) NewAddWhiteListResourceRequest ¶ added in v0.10.0
func (c *VPCClient) NewAddWhiteListResourceRequest() *AddWhiteListResourceRequest
NewAddWhiteListResourceRequest will create request of AddWhiteListResource action.
func (*VPCClient) NewAllocateSecondaryIpRequest ¶ added in v0.14.1
func (c *VPCClient) NewAllocateSecondaryIpRequest() *AllocateSecondaryIpRequest
NewAllocateSecondaryIpRequest will create request of AllocateSecondaryIp action.
func (*VPCClient) NewAllocateVIPRequest ¶ added in v0.14.1
func (c *VPCClient) NewAllocateVIPRequest() *AllocateVIPRequest
NewAllocateVIPRequest will create request of AllocateVIP action.
func (*VPCClient) NewAssociateRouteTableRequest ¶ added in v0.14.1
func (c *VPCClient) NewAssociateRouteTableRequest() *AssociateRouteTableRequest
NewAssociateRouteTableRequest will create request of AssociateRouteTable action.
func (*VPCClient) NewCloneRouteTableRequest ¶ added in v0.14.1
func (c *VPCClient) NewCloneRouteTableRequest() *CloneRouteTableRequest
NewCloneRouteTableRequest will create request of CloneRouteTable action.
func (*VPCClient) NewCreateNATGWPolicyRequest ¶ added in v0.10.0
func (c *VPCClient) NewCreateNATGWPolicyRequest() *CreateNATGWPolicyRequest
NewCreateNATGWPolicyRequest will create request of CreateNATGWPolicy action.
func (*VPCClient) NewCreateNATGWRequest ¶ added in v0.10.0
func (c *VPCClient) NewCreateNATGWRequest() *CreateNATGWRequest
NewCreateNATGWRequest will create request of CreateNATGW action.
func (*VPCClient) NewCreateNetworkAclAssociationRequest ¶ added in v0.14.1
func (c *VPCClient) NewCreateNetworkAclAssociationRequest() *CreateNetworkAclAssociationRequest
NewCreateNetworkAclAssociationRequest will create request of CreateNetworkAclAssociation action.
func (*VPCClient) NewCreateNetworkAclEntryRequest ¶ added in v0.14.1
func (c *VPCClient) NewCreateNetworkAclEntryRequest() *CreateNetworkAclEntryRequest
NewCreateNetworkAclEntryRequest will create request of CreateNetworkAclEntry action.
func (*VPCClient) NewCreateNetworkAclRequest ¶ added in v0.14.1
func (c *VPCClient) NewCreateNetworkAclRequest() *CreateNetworkAclRequest
NewCreateNetworkAclRequest will create request of CreateNetworkAcl action.
func (*VPCClient) NewCreateRouteTableRequest ¶ added in v0.14.1
func (c *VPCClient) NewCreateRouteTableRequest() *CreateRouteTableRequest
NewCreateRouteTableRequest will create request of CreateRouteTable action.
func (*VPCClient) NewCreateSubnetRequest ¶
func (c *VPCClient) NewCreateSubnetRequest() *CreateSubnetRequest
NewCreateSubnetRequest will create request of CreateSubnet action.
func (*VPCClient) NewCreateVPCIntercomRequest ¶
func (c *VPCClient) NewCreateVPCIntercomRequest() *CreateVPCIntercomRequest
NewCreateVPCIntercomRequest will create request of CreateVPCIntercom action.
func (*VPCClient) NewCreateVPCRequest ¶
func (c *VPCClient) NewCreateVPCRequest() *CreateVPCRequest
NewCreateVPCRequest will create request of CreateVPC action.
func (*VPCClient) NewDeleteNATGWPolicyRequest ¶ added in v0.10.0
func (c *VPCClient) NewDeleteNATGWPolicyRequest() *DeleteNATGWPolicyRequest
NewDeleteNATGWPolicyRequest will create request of DeleteNATGWPolicy action.
func (*VPCClient) NewDeleteNATGWRequest ¶ added in v0.10.0
func (c *VPCClient) NewDeleteNATGWRequest() *DeleteNATGWRequest
NewDeleteNATGWRequest will create request of DeleteNATGW action.
func (*VPCClient) NewDeleteNetworkAclAssociationRequest ¶ added in v0.14.1
func (c *VPCClient) NewDeleteNetworkAclAssociationRequest() *DeleteNetworkAclAssociationRequest
NewDeleteNetworkAclAssociationRequest will create request of DeleteNetworkAclAssociation action.
func (*VPCClient) NewDeleteNetworkAclEntryRequest ¶ added in v0.14.1
func (c *VPCClient) NewDeleteNetworkAclEntryRequest() *DeleteNetworkAclEntryRequest
NewDeleteNetworkAclEntryRequest will create request of DeleteNetworkAclEntry action.
func (*VPCClient) NewDeleteNetworkAclRequest ¶ added in v0.14.1
func (c *VPCClient) NewDeleteNetworkAclRequest() *DeleteNetworkAclRequest
NewDeleteNetworkAclRequest will create request of DeleteNetworkAcl action.
func (*VPCClient) NewDeleteRouteTableRequest ¶ added in v0.14.1
func (c *VPCClient) NewDeleteRouteTableRequest() *DeleteRouteTableRequest
NewDeleteRouteTableRequest will create request of DeleteRouteTable action.
func (*VPCClient) NewDeleteSecondaryIpRequest ¶ added in v0.14.1
func (c *VPCClient) NewDeleteSecondaryIpRequest() *DeleteSecondaryIpRequest
NewDeleteSecondaryIpRequest will create request of DeleteSecondaryIp action.
func (*VPCClient) NewDeleteSubnetRequest ¶
func (c *VPCClient) NewDeleteSubnetRequest() *DeleteSubnetRequest
NewDeleteSubnetRequest will create request of DeleteSubnet action.
func (*VPCClient) NewDeleteVPCIntercomRequest ¶
func (c *VPCClient) NewDeleteVPCIntercomRequest() *DeleteVPCIntercomRequest
NewDeleteVPCIntercomRequest will create request of DeleteVPCIntercom action.
func (*VPCClient) NewDeleteVPCRequest ¶
func (c *VPCClient) NewDeleteVPCRequest() *DeleteVPCRequest
NewDeleteVPCRequest will create request of DeleteVPC action.
func (*VPCClient) NewDeleteWhiteListResourceRequest ¶ added in v0.10.0
func (c *VPCClient) NewDeleteWhiteListResourceRequest() *DeleteWhiteListResourceRequest
NewDeleteWhiteListResourceRequest will create request of DeleteWhiteListResource action.
func (*VPCClient) NewDescribeNATGWPolicyRequest ¶ added in v0.10.0
func (c *VPCClient) NewDescribeNATGWPolicyRequest() *DescribeNATGWPolicyRequest
NewDescribeNATGWPolicyRequest will create request of DescribeNATGWPolicy action.
func (*VPCClient) NewDescribeNATGWRequest ¶ added in v0.10.0
func (c *VPCClient) NewDescribeNATGWRequest() *DescribeNATGWRequest
NewDescribeNATGWRequest will create request of DescribeNATGW action.
func (*VPCClient) NewDescribeNetworkAclAssociationBySubnetRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeNetworkAclAssociationBySubnetRequest() *DescribeNetworkAclAssociationBySubnetRequest
NewDescribeNetworkAclAssociationBySubnetRequest will create request of DescribeNetworkAclAssociationBySubnet action.
func (*VPCClient) NewDescribeNetworkAclAssociationRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeNetworkAclAssociationRequest() *DescribeNetworkAclAssociationRequest
NewDescribeNetworkAclAssociationRequest will create request of DescribeNetworkAclAssociation action.
func (*VPCClient) NewDescribeNetworkAclEntryRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeNetworkAclEntryRequest() *DescribeNetworkAclEntryRequest
NewDescribeNetworkAclEntryRequest will create request of DescribeNetworkAclEntry action.
func (*VPCClient) NewDescribeNetworkAclRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeNetworkAclRequest() *DescribeNetworkAclRequest
NewDescribeNetworkAclRequest will create request of DescribeNetworkAcl action.
func (*VPCClient) NewDescribeRouteTableRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeRouteTableRequest() *DescribeRouteTableRequest
NewDescribeRouteTableRequest will create request of DescribeRouteTable action.
func (*VPCClient) NewDescribeSecondaryIpRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeSecondaryIpRequest() *DescribeSecondaryIpRequest
NewDescribeSecondaryIpRequest will create request of DescribeSecondaryIp action.
func (*VPCClient) NewDescribeSubnetRequest ¶
func (c *VPCClient) NewDescribeSubnetRequest() *DescribeSubnetRequest
NewDescribeSubnetRequest will create request of DescribeSubnet action.
func (*VPCClient) NewDescribeSubnetResourceRequest ¶
func (c *VPCClient) NewDescribeSubnetResourceRequest() *DescribeSubnetResourceRequest
NewDescribeSubnetResourceRequest will create request of DescribeSubnetResource action.
func (*VPCClient) NewDescribeVIPRequest ¶ added in v0.14.1
func (c *VPCClient) NewDescribeVIPRequest() *DescribeVIPRequest
NewDescribeVIPRequest will create request of DescribeVIP action.
func (*VPCClient) NewDescribeVPCIntercomRequest ¶
func (c *VPCClient) NewDescribeVPCIntercomRequest() *DescribeVPCIntercomRequest
NewDescribeVPCIntercomRequest will create request of DescribeVPCIntercom action.
func (*VPCClient) NewDescribeVPCRequest ¶
func (c *VPCClient) NewDescribeVPCRequest() *DescribeVPCRequest
NewDescribeVPCRequest will create request of DescribeVPC action.
func (*VPCClient) NewDescribeWhiteListResourceRequest ¶ added in v0.10.0
func (c *VPCClient) NewDescribeWhiteListResourceRequest() *DescribeWhiteListResourceRequest
NewDescribeWhiteListResourceRequest will create request of DescribeWhiteListResource action.
func (*VPCClient) NewEnableWhiteListRequest ¶ added in v0.10.0
func (c *VPCClient) NewEnableWhiteListRequest() *EnableWhiteListRequest
NewEnableWhiteListRequest will create request of EnableWhiteList action.
func (*VPCClient) NewGetAvailableResourceForPolicyRequest ¶ added in v0.10.0
func (c *VPCClient) NewGetAvailableResourceForPolicyRequest() *GetAvailableResourceForPolicyRequest
NewGetAvailableResourceForPolicyRequest will create request of GetAvailableResourceForPolicy action.
func (*VPCClient) NewGetAvailableResourceForWhiteListRequest ¶ added in v0.10.0
func (c *VPCClient) NewGetAvailableResourceForWhiteListRequest() *GetAvailableResourceForWhiteListRequest
NewGetAvailableResourceForWhiteListRequest will create request of GetAvailableResourceForWhiteList action.
func (*VPCClient) NewGetNetworkAclTargetResourceRequest ¶ added in v0.14.1
func (c *VPCClient) NewGetNetworkAclTargetResourceRequest() *GetNetworkAclTargetResourceRequest
NewGetNetworkAclTargetResourceRequest will create request of GetNetworkAclTargetResource action.
func (*VPCClient) NewListSubnetForNATGWRequest ¶ added in v0.10.0
func (c *VPCClient) NewListSubnetForNATGWRequest() *ListSubnetForNATGWRequest
NewListSubnetForNATGWRequest will create request of ListSubnetForNATGW action.
func (*VPCClient) NewModifyRouteRuleRequest ¶ added in v0.14.1
func (c *VPCClient) NewModifyRouteRuleRequest() *ModifyRouteRuleRequest
NewModifyRouteRuleRequest will create request of ModifyRouteRule action.
func (*VPCClient) NewReleaseVIPRequest ¶ added in v0.14.1
func (c *VPCClient) NewReleaseVIPRequest() *ReleaseVIPRequest
NewReleaseVIPRequest will create request of ReleaseVIP action.
func (*VPCClient) NewSetGwDefaultExportRequest ¶ added in v0.10.0
func (c *VPCClient) NewSetGwDefaultExportRequest() *SetGwDefaultExportRequest
NewSetGwDefaultExportRequest will create request of SetGwDefaultExport action.
func (*VPCClient) NewUpdateNATGWPolicyRequest ¶ added in v0.10.0
func (c *VPCClient) NewUpdateNATGWPolicyRequest() *UpdateNATGWPolicyRequest
NewUpdateNATGWPolicyRequest will create request of UpdateNATGWPolicy action.
func (*VPCClient) NewUpdateNATGWSubnetRequest ¶ added in v0.10.0
func (c *VPCClient) NewUpdateNATGWSubnetRequest() *UpdateNATGWSubnetRequest
NewUpdateNATGWSubnetRequest will create request of UpdateNATGWSubnet action.
func (*VPCClient) NewUpdateNetworkAclEntryRequest ¶ added in v0.14.1
func (c *VPCClient) NewUpdateNetworkAclEntryRequest() *UpdateNetworkAclEntryRequest
NewUpdateNetworkAclEntryRequest will create request of UpdateNetworkAclEntry action.
func (*VPCClient) NewUpdateNetworkAclRequest ¶ added in v0.14.1
func (c *VPCClient) NewUpdateNetworkAclRequest() *UpdateNetworkAclRequest
NewUpdateNetworkAclRequest will create request of UpdateNetworkAcl action.
func (*VPCClient) NewUpdateRouteTableAttributeRequest ¶ added in v0.14.1
func (c *VPCClient) NewUpdateRouteTableAttributeRequest() *UpdateRouteTableAttributeRequest
NewUpdateRouteTableAttributeRequest will create request of UpdateRouteTableAttribute action.
func (*VPCClient) NewUpdateSubnetAttributeRequest ¶
func (c *VPCClient) NewUpdateSubnetAttributeRequest() *UpdateSubnetAttributeRequest
NewUpdateSubnetAttributeRequest will create request of UpdateSubnetAttribute action.
func (*VPCClient) NewUpdateVIPAttributeRequest ¶ added in v0.14.1
func (c *VPCClient) NewUpdateVIPAttributeRequest() *UpdateVIPAttributeRequest
NewUpdateVIPAttributeRequest will create request of UpdateVIPAttribute action.
func (*VPCClient) NewUpdateVPCNetworkRequest ¶ added in v0.6.9
func (c *VPCClient) NewUpdateVPCNetworkRequest() *UpdateVPCNetworkRequest
NewUpdateVPCNetworkRequest will create request of UpdateVPCNetwork action.
func (*VPCClient) ReleaseVIP ¶ added in v0.14.1
func (c *VPCClient) ReleaseVIP(req *ReleaseVIPRequest) (*ReleaseVIPResponse, error)
API: ReleaseVIP
释放VIP资源
func (*VPCClient) SetGwDefaultExport ¶ added in v0.10.0
func (c *VPCClient) SetGwDefaultExport(req *SetGwDefaultExportRequest) (*SetGwDefaultExportResponse, error)
API: SetGwDefaultExport
设置NAT网关的默认出口
func (*VPCClient) UpdateNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) UpdateNATGWPolicy(req *UpdateNATGWPolicyRequest) (*UpdateNATGWPolicyResponse, error)
API: UpdateNATGWPolicy
更新NAT网关端口转发规则
func (*VPCClient) UpdateNATGWSubnet ¶ added in v0.10.0
func (c *VPCClient) UpdateNATGWSubnet(req *UpdateNATGWSubnetRequest) (*UpdateNATGWSubnetResponse, error)
API: UpdateNATGWSubnet
更新NAT网关绑定的子网
func (*VPCClient) UpdateNetworkAcl ¶ added in v0.14.1
func (c *VPCClient) UpdateNetworkAcl(req *UpdateNetworkAclRequest) (*UpdateNetworkAclResponse, error)
API: UpdateNetworkAcl
更改ACL
func (*VPCClient) UpdateNetworkAclEntry ¶ added in v0.14.1
func (c *VPCClient) UpdateNetworkAclEntry(req *UpdateNetworkAclEntryRequest) (*UpdateNetworkAclEntryResponse, error)
API: UpdateNetworkAclEntry
更新ACL的规则
func (*VPCClient) UpdateRouteTableAttribute ¶ added in v0.14.1
func (c *VPCClient) UpdateRouteTableAttribute(req *UpdateRouteTableAttributeRequest) (*UpdateRouteTableAttributeResponse, error)
API: UpdateRouteTableAttribute
更新路由表基本信息
func (*VPCClient) UpdateSubnetAttribute ¶
func (c *VPCClient) UpdateSubnetAttribute(req *UpdateSubnetAttributeRequest) (*UpdateSubnetAttributeResponse, error)
API: UpdateSubnetAttribute
更新子网信息
func (*VPCClient) UpdateVIPAttribute ¶ added in v0.14.1
func (c *VPCClient) UpdateVIPAttribute(req *UpdateVIPAttributeRequest) (*UpdateVIPAttributeResponse, error)
API: UpdateVIPAttribute
更新VIP信息
func (*VPCClient) UpdateVPCNetwork ¶ added in v0.6.9
func (c *VPCClient) UpdateVPCNetwork(req *UpdateVPCNetworkRequest) (*UpdateVPCNetworkResponse, error)
API: UpdateVPCNetwork
更新VPC网段
type VPCInfo ¶
type VPCInfo struct { // CreateTime int // VPC关联的IPv6网段 IPv6Network string // Name string // Network []string // NetworkInfo []VPCNetworkInfo // VPC关联的IPv6网段所属运营商 OperatorName string // SubnetCount int // Tag string // UpdateTime int // VPCId VPCId string }
VPCInfo - VPC信息
type VPCIntercomInfo ¶
type VPCIntercomInfo struct { // 所属地域 DstRegion string // VPC名字 Name string // VPC的地址空间 Network []string // 项目Id ProjectId string // 业务组(未分组显示为 Default) Tag string // VPCId VPCId string }
VPCIntercomInfo -
type VPCNetworkInfo ¶
VPCNetworkInfo - vpc地址空间信息