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 ResourceInfo
- type RouteRuleInfo
- type RouteTableInfo
- type SetGwDefaultExportRequest
- type SetGwDefaultExportResponse
- 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
- type VPCSubnetInfoSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclEntryInfo ¶
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 ¶
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 ¶
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 ¶
type AddWhiteListResourceResponse struct {
response.CommonBase
}
AddWhiteListResourceResponse is response schema for AddWhiteListResource action
type AllocateSecondaryIpRequest ¶
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 ¶
type AllocateSecondaryIpResponse struct { response.CommonBase // IpInfo IpInfo }
AllocateSecondaryIpResponse is response schema for AllocateSecondaryIp action
type AllocateVIPRequest ¶
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 ¶
type AllocateVIPResponse struct { response.CommonBase // 申请到的VIP地址 DataSet []string // 申请到的VIP资源相关信息 VIPSet []VIPSet }
AllocateVIPResponse is response schema for AllocateVIP action
type AssociateRouteTableRequest ¶
type AssociateRouteTableRequest struct { request.CommonBase // 路由表资源ID RouteTableId *string `required:"true"` // 子网ID SubnetId *string `required:"true"` }
AssociateRouteTableRequest is request schema for AssociateRouteTable action
type AssociateRouteTableResponse ¶
type AssociateRouteTableResponse struct {
response.CommonBase
}
AssociateRouteTableResponse is response schema for AssociateRouteTable action
type AssociationInfo ¶
type AssociationInfo struct { // ACL的ID AclId string // 绑定ID AssociationId string // 创建的Unix时间戳 CreateTime int // 绑定的子网ID SubnetworkId string // 所属的VPC ID VpcId string }
AssociationInfo - 绑定信息
type CloneRouteTableRequest ¶
type CloneRouteTableRequest struct { request.CommonBase // 被克隆的路由表ID RouteTableId *string `required:"true"` }
CloneRouteTableRequest is request schema for CloneRouteTable action
type CloneRouteTableResponse ¶
type CloneRouteTableResponse struct { response.CommonBase // 复制后新的路由表资源ID RouteTableId string }
CloneRouteTableResponse is response schema for CloneRouteTable action
type CreateNATGWPolicyRequest ¶
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 ¶
type CreateNATGWPolicyResponse struct { response.CommonBase // 创建时分配的策略Id PolicyId string }
CreateNATGWPolicyResponse is response schema for CreateNATGWPolicy action
type CreateNATGWRequest ¶
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 ¶
type CreateNATGWResponse struct { response.CommonBase // 申请到的NATGateWay Id NATGWId string }
CreateNATGWResponse is response schema for CreateNATGW action
type CreateNetworkAclAssociationRequest ¶
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 ¶
type CreateNetworkAclAssociationResponse struct { response.CommonBase // Acl的ID AclId string // 创建的绑定关系的ID AssociationId string // 该子网之前的绑定关系信息 PrevAssociation AssociationInfo }
CreateNetworkAclAssociationResponse is response schema for CreateNetworkAclAssociation action
type CreateNetworkAclEntryRequest ¶
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 ¶
type CreateNetworkAclEntryResponse struct { response.CommonBase // 创建的Entry的ID EntryId string }
CreateNetworkAclEntryResponse is response schema for CreateNetworkAclEntry action
type CreateNetworkAclRequest ¶
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 ¶
type CreateNetworkAclResponse struct { response.CommonBase // 创建的ACL的ID AclId string }
CreateNetworkAclResponse is response schema for CreateNetworkAcl action
type CreateRouteTableRequest ¶
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 ¶
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 ¶
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 ¶
type DeleteNATGWPolicyResponse struct {
response.CommonBase
}
DeleteNATGWPolicyResponse is response schema for DeleteNATGWPolicy action
type DeleteNATGWRequest ¶
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 ¶
type DeleteNATGWResponse struct {
response.CommonBase
}
DeleteNATGWResponse is response schema for DeleteNATGW action
type DeleteNetworkAclAssociationRequest ¶
type DeleteNetworkAclAssociationRequest struct { request.CommonBase // 需要删除的AclId AclId *string `required:"true"` // 绑定的子网ID SubnetworkId *string `required:"true"` }
DeleteNetworkAclAssociationRequest is request schema for DeleteNetworkAclAssociation action
type DeleteNetworkAclAssociationResponse ¶
type DeleteNetworkAclAssociationResponse struct {
response.CommonBase
}
DeleteNetworkAclAssociationResponse is response schema for DeleteNetworkAclAssociation action
type DeleteNetworkAclEntryRequest ¶
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 ¶
type DeleteNetworkAclEntryResponse struct {
response.CommonBase
}
DeleteNetworkAclEntryResponse is response schema for DeleteNetworkAclEntry action
type DeleteNetworkAclRequest ¶
type DeleteNetworkAclRequest struct { request.CommonBase // 需要删除的AclId AclId *string `required:"true"` }
DeleteNetworkAclRequest is request schema for DeleteNetworkAcl action
type DeleteNetworkAclResponse ¶
type DeleteNetworkAclResponse struct {
response.CommonBase
}
DeleteNetworkAclResponse is response schema for DeleteNetworkAcl action
type DeleteRouteTableRequest ¶
type DeleteRouteTableRequest struct { request.CommonBase // 路由表资源ID RouteTableId *string `required:"true"` }
DeleteRouteTableRequest is request schema for DeleteRouteTable action
type DeleteRouteTableResponse ¶
type DeleteRouteTableResponse struct {
response.CommonBase
}
DeleteRouteTableResponse is response schema for DeleteRouteTable action
type DeleteSecondaryIpRequest ¶
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 ¶
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 ¶
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 ¶
type DeleteWhiteListResourceResponse struct {
response.CommonBase
}
DeleteWhiteListResourceResponse is response schema for DeleteWhiteListResource action
type DescribeNATGWPolicyRequest ¶
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 ¶
type DescribeNATGWPolicyResponse struct { response.CommonBase // 查到的NATGW 转发策略的详细信息 DataSet []NATGWPolicyDataSet // 满足条件的转发策略总数 TotalCount int }
DescribeNATGWPolicyResponse is response schema for DescribeNATGWPolicy action
type DescribeNATGWRequest ¶
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 ¶
type DescribeNATGWResponse struct { response.CommonBase // 查到的NATGW信息列表 DataSet []NatGatewayDataSet // 满足条件的实例的总数 TotalCount int }
DescribeNATGWResponse is response schema for DescribeNATGW action
type DescribeNetworkAclAssociationBySubnetRequest ¶
type DescribeNetworkAclAssociationBySubnetRequest struct { request.CommonBase // 子网的ID SubnetworkId *string `required:"true"` }
DescribeNetworkAclAssociationBySubnetRequest is request schema for DescribeNetworkAclAssociationBySubnet action
type DescribeNetworkAclAssociationBySubnetResponse ¶
type DescribeNetworkAclAssociationBySubnetResponse struct { response.CommonBase // 绑定信息 Association AssociationInfo }
DescribeNetworkAclAssociationBySubnetResponse is response schema for DescribeNetworkAclAssociationBySubnet action
type DescribeNetworkAclAssociationRequest ¶
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 ¶
type DescribeNetworkAclAssociationResponse struct { response.CommonBase // 绑定信息列表 AssociationList []AssociationInfo }
DescribeNetworkAclAssociationResponse is response schema for DescribeNetworkAclAssociation action
type DescribeNetworkAclEntryRequest ¶
type DescribeNetworkAclEntryRequest struct { request.CommonBase // ACL的ID AclId *string `required:"true"` }
DescribeNetworkAclEntryRequest is request schema for DescribeNetworkAclEntry action
type DescribeNetworkAclEntryResponse ¶
type DescribeNetworkAclEntryResponse struct { response.CommonBase // 所有的规则信息 EntryList []AclEntryInfo }
DescribeNetworkAclEntryResponse is response schema for DescribeNetworkAclEntry action
type DescribeNetworkAclRequest ¶
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 ¶
type DescribeNetworkAclResponse struct { response.CommonBase // ACL的信息,具体结构见下方AclInfo AclList []AclInfo }
DescribeNetworkAclResponse is response schema for DescribeNetworkAcl action
type DescribeRouteTableRequest ¶
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 ¶
type DescribeRouteTableResponse struct { response.CommonBase // 路由表信息 RouteTables []RouteTableInfo // RouteTables字段的数量 TotalCount int }
DescribeRouteTableResponse is response schema for DescribeRouteTable action
type DescribeSecondaryIpRequest ¶
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 ¶
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 // 返回数据集,请见ResourceInfo DataSet []ResourceInfo // 总数 TotalCount int }
DescribeSubnetResourceResponse is response schema for DescribeSubnetResource action
type DescribeSubnetResponse ¶
type DescribeSubnetResponse struct { response.CommonBase // 子网信息数组,具体资源见下方VPCSubnetInfoSet DataSet []VPCSubnetInfoSet // 子网总数量 TotalCount int }
DescribeSubnetResponse is response schema for DescribeSubnet action
type DescribeVIPRequest ¶
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 ¶
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 ¶
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 ¶
type DescribeWhiteListResourceRequest struct { request.CommonBase // NAT网关的Id NATGWIds []string `required:"true"` }
DescribeWhiteListResourceRequest is request schema for DescribeWhiteListResource action
type DescribeWhiteListResourceResponse ¶
type DescribeWhiteListResourceResponse struct { response.CommonBase // 白名单资源的详细信息,详见DescribeResourceWhiteListDataSet DataSet []NatGWWhitelistDataSet // 上述DataSet总数量 TotalCount int }
DescribeWhiteListResourceResponse is response schema for DescribeWhiteListResource action
type EnableWhiteListRequest ¶
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 ¶
type EnableWhiteListResponse struct {
response.CommonBase
}
EnableWhiteListResponse is response schema for EnableWhiteList action
type GetAvailableResourceForPolicyDataSet ¶
type GetAvailableResourceForPolicyDataSet struct { // 资源对应的内网Ip PrivateIP string // 资源的Id ResourceId string // 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 ResourceType string }
GetAvailableResourceForPolicyDataSet - GetAvailableResourceForPolicy
type GetAvailableResourceForPolicyRequest ¶
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 ¶
type GetAvailableResourceForPolicyResponse struct { response.CommonBase // 支持资源类型的信息 DataSet []GetAvailableResourceForPolicyDataSet }
GetAvailableResourceForPolicyResponse is response schema for GetAvailableResourceForPolicy action
type GetAvailableResourceForWhiteListDataSet ¶
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 ¶
type GetAvailableResourceForWhiteListRequest struct { request.CommonBase // NAT网关Id NATGWId *string `required:"true"` }
GetAvailableResourceForWhiteListRequest is request schema for GetAvailableResourceForWhiteList action
type GetAvailableResourceForWhiteListResponse ¶
type GetAvailableResourceForWhiteListResponse struct { response.CommonBase // 返回白名单列表的详细信息 DataSet []GetAvailableResourceForWhiteListDataSet // 白名单资源列表的总的个数 TotalCount int }
GetAvailableResourceForWhiteListResponse is response schema for GetAvailableResourceForWhiteList action
type GetNetworkAclTargetResourceRequest ¶
type GetNetworkAclTargetResourceRequest struct { request.CommonBase // 子网ID。 SubnetworkId []string `required:"true"` }
GetNetworkAclTargetResourceRequest is request schema for GetNetworkAclTargetResource action
type GetNetworkAclTargetResourceResponse ¶
type GetNetworkAclTargetResourceResponse struct { response.CommonBase // ACL规则应用目标资源列表,具体结构见下方TargetResourceInfo TargetResourceList []TargetResourceInfo // ACL规则应用目标资源总数 TotalCount int }
GetNetworkAclTargetResourceResponse is response schema for GetNetworkAclTargetResource action
type IpInfo ¶
type IpInfo struct { // Gateway string // Ip string // Mac string // Mask string // SubnetId string // VPCId string }
IpInfo -
type ListSubnetForNATGWRequest ¶
type ListSubnetForNATGWRequest struct { request.CommonBase // NAT网关所属VPC Id。默认值为Default VPC Id VPCId *string `required:"false"` }
ListSubnetForNATGWRequest is request schema for ListSubnetForNATGW action
type ListSubnetForNATGWResponse ¶
type ListSubnetForNATGWResponse struct { response.CommonBase // 具体参数请见NatgwSubnetDataSet DataSet []NatgwSubnetDataSet }
ListSubnetForNATGWResponse is response schema for ListSubnetForNATGW action
type ModifyRouteRuleRequest ¶
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 ¶
type ModifyRouteRuleResponse struct {
response.CommonBase
}
ModifyRouteRuleResponse is response schema for ModifyRouteRule action
type NATGWPolicyDataSet ¶
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 ¶
NatGWIPResInfo - IP信息
type NatGWWhitelistDataSet ¶
type NatGWWhitelistDataSet struct { // 白名单开关标记 IfOpen int // NATGateWay Id NATGWId string // 白名单详情 ObjectIPInfo []DescribeWhiteListResourceObjectIPInfo }
NatGWWhitelistDataSet - nat网关白名单数据
type NatGatewayDataSet ¶
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 ¶
type NatGatewayIPSet struct { // 带宽 Bandwidth int // EIP带宽类型 BandwidthType string // 外网IP的 EIPId EIPId string // 外网IP信息 IPResInfo []NatGWIPResInfo // 权重为100的为出口 Weight int }
NatGatewayIPSet - IPSet信息
type NatGatewaySubnetSet ¶
type NatGatewaySubnetSet struct { // 子网网段 Subnet string // 子网名字 SubnetName string // 子网id SubnetworkId string }
NatGatewaySubnetSet - natgw里面的子网信息
type NatgwSubnetDataSet ¶
type NatgwSubnetDataSet struct { // 是否绑定NATGW HasNATGW bool // 掩码 Netmask string // 子网网段 Subnet string // 子网id SubnetId string // 子网名字 SubnetName string }
NatgwSubnetDataSet - natgw可以绑定的子网
type ReleaseVIPRequest ¶
type ReleaseVIPRequest struct { request.CommonBase // 内网VIP的id VIPId *string `required:"true"` }
ReleaseVIPRequest is request schema for ReleaseVIP action
type ReleaseVIPResponse ¶
type ReleaseVIPResponse struct {
response.CommonBase
}
ReleaseVIPResponse is response schema for ReleaseVIP action
type ResourceInfo ¶
type ResourceInfo 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 }
ResourceInfo - 子网下资源
type RouteRuleInfo ¶
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 ¶
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 ¶
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 ¶
type SetGwDefaultExportResponse struct {
response.CommonBase
}
SetGwDefaultExportResponse is response schema for SetGwDefaultExport action
type TargetResourceInfo ¶
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 ¶
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 ¶
type UpdateNATGWPolicyResponse struct {
response.CommonBase
}
UpdateNATGWPolicyResponse is response schema for UpdateNATGWPolicy action
type UpdateNATGWSubnetRequest ¶
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 ¶
type UpdateNATGWSubnetResponse struct {
response.CommonBase
}
UpdateNATGWSubnetResponse is response schema for UpdateNATGWSubnet action
type UpdateNetworkAclEntryRequest ¶
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 ¶
type UpdateNetworkAclEntryResponse struct {
response.CommonBase
}
UpdateNetworkAclEntryResponse is response schema for UpdateNetworkAclEntry action
type UpdateNetworkAclRequest ¶
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 ¶
type UpdateNetworkAclResponse struct {
response.CommonBase
}
UpdateNetworkAclResponse is response schema for UpdateNetworkAcl action
type UpdateRouteTableAttributeRequest ¶
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 ¶
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 ¶
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 ¶
type UpdateVIPAttributeResponse struct {
response.CommonBase
}
UpdateVIPAttributeResponse is response schema for UpdateVIPAttribute action
type UpdateVPCNetworkRequest ¶
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 ¶
type UpdateVPCNetworkResponse struct { response.CommonBase // 【该字段已废弃,请谨慎使用】 Message string `deprecated:"true"` }
UpdateVPCNetworkResponse is response schema for UpdateVPCNetwork action
type VIPDetailSet ¶
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 ¶
func (c *VPCClient) AddWhiteListResource(req *AddWhiteListResourceRequest) (*AddWhiteListResourceResponse, error)
API: AddWhiteListResource
添加NAT网关白名单
func (*VPCClient) AllocateSecondaryIp ¶
func (c *VPCClient) AllocateSecondaryIp(req *AllocateSecondaryIpRequest) (*AllocateSecondaryIpResponse, error)
API: AllocateSecondaryIp
分配ip(用于uk8s使用)
func (*VPCClient) AllocateVIP ¶
func (c *VPCClient) AllocateVIP(req *AllocateVIPRequest) (*AllocateVIPResponse, error)
API: AllocateVIP
根据提供信息,申请内网VIP(Virtual IP),多用于高可用程序作为漂移IP。
func (*VPCClient) AssociateRouteTable ¶
func (c *VPCClient) AssociateRouteTable(req *AssociateRouteTableRequest) (*AssociateRouteTableResponse, error)
API: AssociateRouteTable
绑定子网的路由表
func (*VPCClient) CloneRouteTable ¶
func (c *VPCClient) CloneRouteTable(req *CloneRouteTableRequest) (*CloneRouteTableResponse, error)
API: CloneRouteTable
将现有的路由表复制为一张新的路由表
func (*VPCClient) CreateNATGW ¶
func (c *VPCClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
API: CreateNATGW
创建NAT网关
func (*VPCClient) CreateNATGWPolicy ¶
func (c *VPCClient) CreateNATGWPolicy(req *CreateNATGWPolicyRequest) (*CreateNATGWPolicyResponse, error)
API: CreateNATGWPolicy
添加NAT网关端口转发规则
func (*VPCClient) CreateNetworkAcl ¶
func (c *VPCClient) CreateNetworkAcl(req *CreateNetworkAclRequest) (*CreateNetworkAclResponse, error)
API: CreateNetworkAcl
创建网络ACL
func (*VPCClient) CreateNetworkAclAssociation ¶
func (c *VPCClient) CreateNetworkAclAssociation(req *CreateNetworkAclAssociationRequest) (*CreateNetworkAclAssociationResponse, error)
API: CreateNetworkAclAssociation
创建ACL的绑定关系
func (*VPCClient) CreateNetworkAclEntry ¶
func (c *VPCClient) CreateNetworkAclEntry(req *CreateNetworkAclEntryRequest) (*CreateNetworkAclEntryResponse, error)
API: CreateNetworkAclEntry
创建ACL的规则
func (*VPCClient) CreateRouteTable ¶
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 ¶
func (c *VPCClient) DeleteNATGW(req *DeleteNATGWRequest) (*DeleteNATGWResponse, error)
API: DeleteNATGW
删除NAT网关
func (*VPCClient) DeleteNATGWPolicy ¶
func (c *VPCClient) DeleteNATGWPolicy(req *DeleteNATGWPolicyRequest) (*DeleteNATGWPolicyResponse, error)
API: DeleteNATGWPolicy
删除NAT网关端口转发规则
func (*VPCClient) DeleteNetworkAcl ¶
func (c *VPCClient) DeleteNetworkAcl(req *DeleteNetworkAclRequest) (*DeleteNetworkAclResponse, error)
API: DeleteNetworkAcl
删除网络ACL
func (*VPCClient) DeleteNetworkAclAssociation ¶
func (c *VPCClient) DeleteNetworkAclAssociation(req *DeleteNetworkAclAssociationRequest) (*DeleteNetworkAclAssociationResponse, error)
API: DeleteNetworkAclAssociation
删除网络ACL绑定关系
func (*VPCClient) DeleteNetworkAclEntry ¶
func (c *VPCClient) DeleteNetworkAclEntry(req *DeleteNetworkAclEntryRequest) (*DeleteNetworkAclEntryResponse, error)
API: DeleteNetworkAclEntry
删除ACL的规则
func (*VPCClient) DeleteRouteTable ¶
func (c *VPCClient) DeleteRouteTable(req *DeleteRouteTableRequest) (*DeleteRouteTableResponse, error)
API: DeleteRouteTable
删除自定义路由表
func (*VPCClient) DeleteSecondaryIp ¶
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 ¶
func (c *VPCClient) DeleteWhiteListResource(req *DeleteWhiteListResourceRequest) (*DeleteWhiteListResourceResponse, error)
API: DeleteWhiteListResource
删除NAT网关白名单列表
func (*VPCClient) DescribeNATGW ¶
func (c *VPCClient) DescribeNATGW(req *DescribeNATGWRequest) (*DescribeNATGWResponse, error)
API: DescribeNATGW
获取NAT网关信息
func (*VPCClient) DescribeNATGWPolicy ¶
func (c *VPCClient) DescribeNATGWPolicy(req *DescribeNATGWPolicyRequest) (*DescribeNATGWPolicyResponse, error)
API: DescribeNATGWPolicy
展示NAT网关端口转发规则
func (*VPCClient) DescribeNetworkAcl ¶
func (c *VPCClient) DescribeNetworkAcl(req *DescribeNetworkAclRequest) (*DescribeNetworkAclResponse, error)
API: DescribeNetworkAcl
获取网络ACL
func (*VPCClient) DescribeNetworkAclAssociation ¶
func (c *VPCClient) DescribeNetworkAclAssociation(req *DescribeNetworkAclAssociationRequest) (*DescribeNetworkAclAssociationResponse, error)
API: DescribeNetworkAclAssociation
获取网络ACL的绑定关系列表
func (*VPCClient) DescribeNetworkAclAssociationBySubnet ¶
func (c *VPCClient) DescribeNetworkAclAssociationBySubnet(req *DescribeNetworkAclAssociationBySubnetRequest) (*DescribeNetworkAclAssociationBySubnetResponse, error)
API: DescribeNetworkAclAssociationBySubnet
获取子网的ACL绑定信息
func (*VPCClient) DescribeNetworkAclEntry ¶
func (c *VPCClient) DescribeNetworkAclEntry(req *DescribeNetworkAclEntryRequest) (*DescribeNetworkAclEntryResponse, error)
API: DescribeNetworkAclEntry
获取ACL的规则信息
func (*VPCClient) DescribeRouteTable ¶
func (c *VPCClient) DescribeRouteTable(req *DescribeRouteTableRequest) (*DescribeRouteTableResponse, error)
API: DescribeRouteTable
获取路由表详细信息(包括路由策略)
func (*VPCClient) DescribeSecondaryIp ¶
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 ¶
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 ¶
func (c *VPCClient) DescribeWhiteListResource(req *DescribeWhiteListResourceRequest) (*DescribeWhiteListResourceResponse, error)
API: DescribeWhiteListResource
展示NAT网关白名单资源列表
func (*VPCClient) EnableWhiteList ¶
func (c *VPCClient) EnableWhiteList(req *EnableWhiteListRequest) (*EnableWhiteListResponse, error)
API: EnableWhiteList
修改NAT网关白名单开关
func (*VPCClient) GetAvailableResourceForPolicy ¶
func (c *VPCClient) GetAvailableResourceForPolicy(req *GetAvailableResourceForPolicyRequest) (*GetAvailableResourceForPolicyResponse, error)
API: GetAvailableResourceForPolicy
获取NAT网关可配置端口转发规则的资源信息
func (*VPCClient) GetAvailableResourceForWhiteList ¶
func (c *VPCClient) GetAvailableResourceForWhiteList(req *GetAvailableResourceForWhiteListRequest) (*GetAvailableResourceForWhiteListResponse, error)
API: GetAvailableResourceForWhiteList
获取NAT网关可添加白名单的资源
func (*VPCClient) GetNetworkAclTargetResource ¶
func (c *VPCClient) GetNetworkAclTargetResource(req *GetNetworkAclTargetResourceRequest) (*GetNetworkAclTargetResourceResponse, error)
API: GetNetworkAclTargetResource
获取ACL规则应用目标列表
func (*VPCClient) ListSubnetForNATGW ¶
func (c *VPCClient) ListSubnetForNATGW(req *ListSubnetForNATGWRequest) (*ListSubnetForNATGWResponse, error)
API: ListSubnetForNATGW
展示NAT网关可绑定的子网列表
func (*VPCClient) ModifyRouteRule ¶
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 ¶
func (c *VPCClient) NewAddWhiteListResourceRequest() *AddWhiteListResourceRequest
NewAddWhiteListResourceRequest will create request of AddWhiteListResource action.
func (*VPCClient) NewAllocateSecondaryIpRequest ¶
func (c *VPCClient) NewAllocateSecondaryIpRequest() *AllocateSecondaryIpRequest
NewAllocateSecondaryIpRequest will create request of AllocateSecondaryIp action.
func (*VPCClient) NewAllocateVIPRequest ¶
func (c *VPCClient) NewAllocateVIPRequest() *AllocateVIPRequest
NewAllocateVIPRequest will create request of AllocateVIP action.
func (*VPCClient) NewAssociateRouteTableRequest ¶
func (c *VPCClient) NewAssociateRouteTableRequest() *AssociateRouteTableRequest
NewAssociateRouteTableRequest will create request of AssociateRouteTable action.
func (*VPCClient) NewCloneRouteTableRequest ¶
func (c *VPCClient) NewCloneRouteTableRequest() *CloneRouteTableRequest
NewCloneRouteTableRequest will create request of CloneRouteTable action.
func (*VPCClient) NewCreateNATGWPolicyRequest ¶
func (c *VPCClient) NewCreateNATGWPolicyRequest() *CreateNATGWPolicyRequest
NewCreateNATGWPolicyRequest will create request of CreateNATGWPolicy action.
func (*VPCClient) NewCreateNATGWRequest ¶
func (c *VPCClient) NewCreateNATGWRequest() *CreateNATGWRequest
NewCreateNATGWRequest will create request of CreateNATGW action.
func (*VPCClient) NewCreateNetworkAclAssociationRequest ¶
func (c *VPCClient) NewCreateNetworkAclAssociationRequest() *CreateNetworkAclAssociationRequest
NewCreateNetworkAclAssociationRequest will create request of CreateNetworkAclAssociation action.
func (*VPCClient) NewCreateNetworkAclEntryRequest ¶
func (c *VPCClient) NewCreateNetworkAclEntryRequest() *CreateNetworkAclEntryRequest
NewCreateNetworkAclEntryRequest will create request of CreateNetworkAclEntry action.
func (*VPCClient) NewCreateNetworkAclRequest ¶
func (c *VPCClient) NewCreateNetworkAclRequest() *CreateNetworkAclRequest
NewCreateNetworkAclRequest will create request of CreateNetworkAcl action.
func (*VPCClient) NewCreateRouteTableRequest ¶
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 ¶
func (c *VPCClient) NewDeleteNATGWPolicyRequest() *DeleteNATGWPolicyRequest
NewDeleteNATGWPolicyRequest will create request of DeleteNATGWPolicy action.
func (*VPCClient) NewDeleteNATGWRequest ¶
func (c *VPCClient) NewDeleteNATGWRequest() *DeleteNATGWRequest
NewDeleteNATGWRequest will create request of DeleteNATGW action.
func (*VPCClient) NewDeleteNetworkAclAssociationRequest ¶
func (c *VPCClient) NewDeleteNetworkAclAssociationRequest() *DeleteNetworkAclAssociationRequest
NewDeleteNetworkAclAssociationRequest will create request of DeleteNetworkAclAssociation action.
func (*VPCClient) NewDeleteNetworkAclEntryRequest ¶
func (c *VPCClient) NewDeleteNetworkAclEntryRequest() *DeleteNetworkAclEntryRequest
NewDeleteNetworkAclEntryRequest will create request of DeleteNetworkAclEntry action.
func (*VPCClient) NewDeleteNetworkAclRequest ¶
func (c *VPCClient) NewDeleteNetworkAclRequest() *DeleteNetworkAclRequest
NewDeleteNetworkAclRequest will create request of DeleteNetworkAcl action.
func (*VPCClient) NewDeleteRouteTableRequest ¶
func (c *VPCClient) NewDeleteRouteTableRequest() *DeleteRouteTableRequest
NewDeleteRouteTableRequest will create request of DeleteRouteTable action.
func (*VPCClient) NewDeleteSecondaryIpRequest ¶
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 ¶
func (c *VPCClient) NewDeleteWhiteListResourceRequest() *DeleteWhiteListResourceRequest
NewDeleteWhiteListResourceRequest will create request of DeleteWhiteListResource action.
func (*VPCClient) NewDescribeNATGWPolicyRequest ¶
func (c *VPCClient) NewDescribeNATGWPolicyRequest() *DescribeNATGWPolicyRequest
NewDescribeNATGWPolicyRequest will create request of DescribeNATGWPolicy action.
func (*VPCClient) NewDescribeNATGWRequest ¶
func (c *VPCClient) NewDescribeNATGWRequest() *DescribeNATGWRequest
NewDescribeNATGWRequest will create request of DescribeNATGW action.
func (*VPCClient) NewDescribeNetworkAclAssociationBySubnetRequest ¶
func (c *VPCClient) NewDescribeNetworkAclAssociationBySubnetRequest() *DescribeNetworkAclAssociationBySubnetRequest
NewDescribeNetworkAclAssociationBySubnetRequest will create request of DescribeNetworkAclAssociationBySubnet action.
func (*VPCClient) NewDescribeNetworkAclAssociationRequest ¶
func (c *VPCClient) NewDescribeNetworkAclAssociationRequest() *DescribeNetworkAclAssociationRequest
NewDescribeNetworkAclAssociationRequest will create request of DescribeNetworkAclAssociation action.
func (*VPCClient) NewDescribeNetworkAclEntryRequest ¶
func (c *VPCClient) NewDescribeNetworkAclEntryRequest() *DescribeNetworkAclEntryRequest
NewDescribeNetworkAclEntryRequest will create request of DescribeNetworkAclEntry action.
func (*VPCClient) NewDescribeNetworkAclRequest ¶
func (c *VPCClient) NewDescribeNetworkAclRequest() *DescribeNetworkAclRequest
NewDescribeNetworkAclRequest will create request of DescribeNetworkAcl action.
func (*VPCClient) NewDescribeRouteTableRequest ¶
func (c *VPCClient) NewDescribeRouteTableRequest() *DescribeRouteTableRequest
NewDescribeRouteTableRequest will create request of DescribeRouteTable action.
func (*VPCClient) NewDescribeSecondaryIpRequest ¶
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 ¶
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 ¶
func (c *VPCClient) NewDescribeWhiteListResourceRequest() *DescribeWhiteListResourceRequest
NewDescribeWhiteListResourceRequest will create request of DescribeWhiteListResource action.
func (*VPCClient) NewEnableWhiteListRequest ¶
func (c *VPCClient) NewEnableWhiteListRequest() *EnableWhiteListRequest
NewEnableWhiteListRequest will create request of EnableWhiteList action.
func (*VPCClient) NewGetAvailableResourceForPolicyRequest ¶
func (c *VPCClient) NewGetAvailableResourceForPolicyRequest() *GetAvailableResourceForPolicyRequest
NewGetAvailableResourceForPolicyRequest will create request of GetAvailableResourceForPolicy action.
func (*VPCClient) NewGetAvailableResourceForWhiteListRequest ¶
func (c *VPCClient) NewGetAvailableResourceForWhiteListRequest() *GetAvailableResourceForWhiteListRequest
NewGetAvailableResourceForWhiteListRequest will create request of GetAvailableResourceForWhiteList action.
func (*VPCClient) NewGetNetworkAclTargetResourceRequest ¶
func (c *VPCClient) NewGetNetworkAclTargetResourceRequest() *GetNetworkAclTargetResourceRequest
NewGetNetworkAclTargetResourceRequest will create request of GetNetworkAclTargetResource action.
func (*VPCClient) NewListSubnetForNATGWRequest ¶
func (c *VPCClient) NewListSubnetForNATGWRequest() *ListSubnetForNATGWRequest
NewListSubnetForNATGWRequest will create request of ListSubnetForNATGW action.
func (*VPCClient) NewModifyRouteRuleRequest ¶
func (c *VPCClient) NewModifyRouteRuleRequest() *ModifyRouteRuleRequest
NewModifyRouteRuleRequest will create request of ModifyRouteRule action.
func (*VPCClient) NewReleaseVIPRequest ¶
func (c *VPCClient) NewReleaseVIPRequest() *ReleaseVIPRequest
NewReleaseVIPRequest will create request of ReleaseVIP action.
func (*VPCClient) NewSetGwDefaultExportRequest ¶
func (c *VPCClient) NewSetGwDefaultExportRequest() *SetGwDefaultExportRequest
NewSetGwDefaultExportRequest will create request of SetGwDefaultExport action.
func (*VPCClient) NewUpdateNATGWPolicyRequest ¶
func (c *VPCClient) NewUpdateNATGWPolicyRequest() *UpdateNATGWPolicyRequest
NewUpdateNATGWPolicyRequest will create request of UpdateNATGWPolicy action.
func (*VPCClient) NewUpdateNATGWSubnetRequest ¶
func (c *VPCClient) NewUpdateNATGWSubnetRequest() *UpdateNATGWSubnetRequest
NewUpdateNATGWSubnetRequest will create request of UpdateNATGWSubnet action.
func (*VPCClient) NewUpdateNetworkAclEntryRequest ¶
func (c *VPCClient) NewUpdateNetworkAclEntryRequest() *UpdateNetworkAclEntryRequest
NewUpdateNetworkAclEntryRequest will create request of UpdateNetworkAclEntry action.
func (*VPCClient) NewUpdateNetworkAclRequest ¶
func (c *VPCClient) NewUpdateNetworkAclRequest() *UpdateNetworkAclRequest
NewUpdateNetworkAclRequest will create request of UpdateNetworkAcl action.
func (*VPCClient) NewUpdateRouteTableAttributeRequest ¶
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 ¶
func (c *VPCClient) NewUpdateVIPAttributeRequest() *UpdateVIPAttributeRequest
NewUpdateVIPAttributeRequest will create request of UpdateVIPAttribute action.
func (*VPCClient) NewUpdateVPCNetworkRequest ¶
func (c *VPCClient) NewUpdateVPCNetworkRequest() *UpdateVPCNetworkRequest
NewUpdateVPCNetworkRequest will create request of UpdateVPCNetwork action.
func (*VPCClient) ReleaseVIP ¶
func (c *VPCClient) ReleaseVIP(req *ReleaseVIPRequest) (*ReleaseVIPResponse, error)
API: ReleaseVIP
释放VIP资源
func (*VPCClient) SetGwDefaultExport ¶
func (c *VPCClient) SetGwDefaultExport(req *SetGwDefaultExportRequest) (*SetGwDefaultExportResponse, error)
API: SetGwDefaultExport
设置NAT网关的默认出口
func (*VPCClient) UpdateNATGWPolicy ¶
func (c *VPCClient) UpdateNATGWPolicy(req *UpdateNATGWPolicyRequest) (*UpdateNATGWPolicyResponse, error)
API: UpdateNATGWPolicy
更新NAT网关端口转发规则
func (*VPCClient) UpdateNATGWSubnet ¶
func (c *VPCClient) UpdateNATGWSubnet(req *UpdateNATGWSubnetRequest) (*UpdateNATGWSubnetResponse, error)
API: UpdateNATGWSubnet
更新NAT网关绑定的子网
func (*VPCClient) UpdateNetworkAcl ¶
func (c *VPCClient) UpdateNetworkAcl(req *UpdateNetworkAclRequest) (*UpdateNetworkAclResponse, error)
API: UpdateNetworkAcl
更改ACL
func (*VPCClient) UpdateNetworkAclEntry ¶
func (c *VPCClient) UpdateNetworkAclEntry(req *UpdateNetworkAclEntryRequest) (*UpdateNetworkAclEntryResponse, error)
API: UpdateNetworkAclEntry
更新ACL的规则
func (*VPCClient) UpdateRouteTableAttribute ¶
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 ¶
func (c *VPCClient) UpdateVIPAttribute(req *UpdateVIPAttributeRequest) (*UpdateVIPAttributeResponse, error)
API: UpdateVIPAttribute
更新VIP信息
func (*VPCClient) UpdateVPCNetwork ¶
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地址空间信息
type VPCSubnetInfoSet ¶
type VPCSubnetInfoSet struct { // 名称 【已废弃】 Name string `deprecated:"true"` // 虚拟路由 id【已废弃】 VRouterId string `deprecated:"true"` // 可用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 }
VPCSubnetInfoSet - 子网信息