Documentation
¶
Overview ¶
Package vpc include resources of ucloud vpc 2.0 product
Index ¶
- type AddVPCNetworkRequest
- type AddVPCNetworkResponse
- type AddWhiteListResourceRequest
- type AddWhiteListResourceResponse
- type CreateNATGWPolicyRequest
- type CreateNATGWPolicyResponse
- type CreateNATGWRequest
- type CreateNATGWResponse
- type CreateSubnetRequest
- type CreateSubnetResponse
- type CreateVPCIntercomRequest
- type CreateVPCIntercomResponse
- type CreateVPCRequest
- type CreateVPCResponse
- type DeleteNATGWPolicyRequest
- type DeleteNATGWPolicyResponse
- type DeleteNATGWRequest
- type DeleteNATGWResponse
- 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 DescribeSubnetRequest
- type DescribeSubnetResourceRequest
- type DescribeSubnetResourceResponse
- type DescribeSubnetResponse
- 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 ListSubnetForNATGWRequest
- type ListSubnetForNATGWResponse
- type NATGWPolicyDataSet
- type NatGWIPResInfo
- type NatGWWhitelistDataSet
- type NatGatewayDataSet
- type NatGatewayIPSet
- type NatGatewaySubnetSet
- type NatgwSubnetDataSet
- type ResourceInfo
- type SetGwDefaultExportRequest
- type SetGwDefaultExportResponse
- type UpdateNATGWPolicyRequest
- type UpdateNATGWPolicyResponse
- type UpdateNATGWSubnetRequest
- type UpdateNATGWSubnetResponse
- type UpdateSubnetAttributeRequest
- type UpdateSubnetAttributeResponse
- type UpdateVPCNetworkRequest
- type UpdateVPCNetworkResponse
- type VPCClient
- func (c *VPCClient) AddVPCNetwork(req *AddVPCNetworkRequest) (*AddVPCNetworkResponse, error)
- func (c *VPCClient) AddWhiteListResource(req *AddWhiteListResourceRequest) (*AddWhiteListResourceResponse, error)
- func (c *VPCClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
- func (c *VPCClient) CreateNATGWPolicy(req *CreateNATGWPolicyRequest) (*CreateNATGWPolicyResponse, 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) 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) DescribeSubnet(req *DescribeSubnetRequest) (*DescribeSubnetResponse, error)
- func (c *VPCClient) DescribeSubnetResource(req *DescribeSubnetResourceRequest) (*DescribeSubnetResourceResponse, 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) ListSubnetForNATGW(req *ListSubnetForNATGWRequest) (*ListSubnetForNATGWResponse, error)
- func (c *VPCClient) NewAddVPCNetworkRequest() *AddVPCNetworkRequest
- func (c *VPCClient) NewAddWhiteListResourceRequest() *AddWhiteListResourceRequest
- func (c *VPCClient) NewCreateNATGWPolicyRequest() *CreateNATGWPolicyRequest
- func (c *VPCClient) NewCreateNATGWRequest() *CreateNATGWRequest
- 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) 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) NewDescribeSubnetRequest() *DescribeSubnetRequest
- func (c *VPCClient) NewDescribeSubnetResourceRequest() *DescribeSubnetResourceRequest
- 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) NewListSubnetForNATGWRequest() *ListSubnetForNATGWRequest
- func (c *VPCClient) NewSetGwDefaultExportRequest() *SetGwDefaultExportRequest
- func (c *VPCClient) NewUpdateNATGWPolicyRequest() *UpdateNATGWPolicyRequest
- func (c *VPCClient) NewUpdateNATGWSubnetRequest() *UpdateNATGWSubnetRequest
- func (c *VPCClient) NewUpdateSubnetAttributeRequest() *UpdateSubnetAttributeRequest
- func (c *VPCClient) NewUpdateVPCNetworkRequest() *UpdateVPCNetworkRequest
- 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) UpdateSubnetAttribute(req *UpdateSubnetAttributeRequest) (*UpdateSubnetAttributeResponse, 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 AddVPCNetworkRequest ¶
type AddVPCNetworkRequest struct {
request.CommonBase
// 源VPC短ID
VPCId *string `required:"true"`
// 增加网段
Network []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 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 CreateSubnetRequest ¶
type CreateSubnetRequest struct {
request.CommonBase
// VPC资源ID
VPCId *string `required:"true"`
// 子网网络地址,例如192.168.0.0
Subnet *string `required:"true"`
// 子网网络号位数,默认为24
Netmask *int `required:"false"`
// 子网名称,默认为Subnet
SubnetName *string `required:"false"`
// 业务组名称,默认为Default
Tag *string `required:"false"`
// 备注
Remark *string `required:"false"`
}
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
VPCId *string `required:"true"`
// 目的VPC短ID
DstVPCId *string `required:"true"`
// 目的VPC所在地域,默认与源VPC同地域。
DstRegion *string `required:"false"`
// 目的VPC项目ID。默认与源VPC同项目。
DstProjectId *string `required:"false"`
}
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"`
// 业务组名称
Tag *string `required:"false"`
// 备注
Remark *string `required:"false"`
// VPC类型
Type *int `required:"false"`
}
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 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
VPCId *string `required:"true"`
// 目的VPC短ID
DstVPCId *string `required:"true"`
// 目的VPC所在地域,默认为源VPC所在地域
DstRegion *string `required:"false"`
// 目的VPC所在项目ID,默认为源VPC所在项目ID
DstProjectId *string `required:"false"`
}
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 DescribeSubnetRequest ¶
type DescribeSubnetRequest struct {
request.CommonBase
// 子网id数组,适用于一次查询多个子网信息
SubnetIds []string `required:"false"`
// 子网id,适用于一次查询一个子网信息
SubnetId *string `required:"false"`
// VPC资源id
VPCId *string `required:"false"`
// 业务组名称,默认为Default
Tag *string `required:"false"`
// 业务组
BusinessId *string `required:"false"`
// 偏移量,默认为0
Offset *int `required:"false"`
// 列表长度,默认为20
Limit *int `required:"false"`
}
DescribeSubnetRequest is request schema for DescribeSubnet action
type DescribeSubnetResourceRequest ¶
type DescribeSubnetResourceRequest struct {
request.CommonBase
// 子网id
SubnetId *string `required:"true"`
// 资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP.
ResourceType *string `required:"false"`
// 列表起始位置偏移量,默认为0
Offset *int `required:"false"`
// 单页返回数据长度,默认为20
Limit *int `required:"false"`
}
DescribeSubnetResourceRequest is request schema for DescribeSubnetResource action
type DescribeSubnetResourceResponse ¶
type DescribeSubnetResourceResponse struct {
response.CommonBase
// 总数
TotalCount int
// 返回数据集
DataSet []ResourceInfo
}
DescribeSubnetResourceResponse is response schema for DescribeSubnetResource action
type DescribeSubnetResponse ¶
type DescribeSubnetResponse struct {
response.CommonBase
// 子网总数量
TotalCount int
// 子网信息数组
DataSet []VPCSubnetInfoSet
}
DescribeSubnetResponse is response schema for DescribeSubnet action
type DescribeVPCIntercomRequest ¶
type DescribeVPCIntercomRequest struct {
request.CommonBase
// VPC短ID
VPCId *string `required:"true"`
// 目的VPC所在地域,默认为全部地域
DstRegion *string `required:"false"`
// 目的项目ID,默认为全部项目
DstProjectId *string `required:"false"`
}
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
// VPCId
VPCIds []string `required:"false"`
// 业务组名称
Tag *string `required:"false"`
// 偏移量
Offset *int `required:"false"`
// 列表长度
Limit *int `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
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
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
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
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
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
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 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 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
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
type NatGWIPResInfo ¶ added in v0.10.0
NatGWIPResInfo - IP信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
type NatGWWhitelistDataSet ¶ added in v0.10.0
type NatGWWhitelistDataSet struct {
// 白名单开关标记
IfOpen int
// NATGateWay Id
NATGWId string
// 白名单详情
ObjectIPInfo []DescribeWhiteListResourceObjectIPInfo
}
NatGWWhitelistDataSet - nat网关白名单数据
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
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的信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
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信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
type NatGatewaySubnetSet ¶ added in v0.10.0
type NatGatewaySubnetSet struct {
// 子网网段
Subnet string
// 子网名字
SubnetName string
// 子网id
SubnetworkId string
}
NatGatewaySubnetSet - natgw里面的子网信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
type NatgwSubnetDataSet ¶ added in v0.10.0
type NatgwSubnetDataSet struct {
// 是否绑定NATGW
HasNATGW bool
// 掩码
Netmask string
// 子网网段
Subnet string
// 子网id
SubnetId string
// 子网名字
SubnetName string
}
NatgwSubnetDataSet - natgw可以绑定的子网
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.
type ResourceInfo ¶
type ResourceInfo struct {
// 资源名称
Name string
// 资源id
ResourceId string
// 资源类型
ResourceType string
// ip地址
IP string
}
ResourceInfo - 资源信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
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 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 UpdateSubnetAttributeRequest ¶
type UpdateSubnetAttributeRequest struct {
request.CommonBase
// 子网ID
SubnetId *string `required:"true"`
// 子网名称(如果Name不填写,Tag必须填写)
Name *string `required:"false"`
// 业务组名称(如果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 UpdateVPCNetworkRequest ¶ added in v0.6.9
type UpdateVPCNetworkRequest struct {
request.CommonBase
// VPC的ID
VPCId *string `required:"true"`
// 更新的全量网段
Network []string `required:"true"`
}
UpdateVPCNetworkRequest is request schema for UpdateVPCNetwork action
type UpdateVPCNetworkResponse ¶ added in v0.6.9
type UpdateVPCNetworkResponse struct {
response.CommonBase
// 错误信息
Message string
}
UpdateVPCNetworkResponse is response schema for UpdateVPCNetwork action
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)
AddVPCNetwork - 添加VPC网段
func (*VPCClient) AddWhiteListResource ¶ added in v0.10.0
func (c *VPCClient) AddWhiteListResource(req *AddWhiteListResourceRequest) (*AddWhiteListResourceResponse, error)
AddWhiteListResource - 添加NAT网关白名单
func (*VPCClient) CreateNATGW ¶ added in v0.10.0
func (c *VPCClient) CreateNATGW(req *CreateNATGWRequest) (*CreateNATGWResponse, error)
CreateNATGW - 创建NAT网关
func (*VPCClient) CreateNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) CreateNATGWPolicy(req *CreateNATGWPolicyRequest) (*CreateNATGWPolicyResponse, error)
CreateNATGWPolicy - 添加NAT网关端口转发规则
func (*VPCClient) CreateSubnet ¶
func (c *VPCClient) CreateSubnet(req *CreateSubnetRequest) (*CreateSubnetResponse, error)
CreateSubnet - 创建子网
func (*VPCClient) CreateVPC ¶
func (c *VPCClient) CreateVPC(req *CreateVPCRequest) (*CreateVPCResponse, error)
CreateVPC - 创建VPC
func (*VPCClient) CreateVPCIntercom ¶
func (c *VPCClient) CreateVPCIntercom(req *CreateVPCIntercomRequest) (*CreateVPCIntercomResponse, error)
CreateVPCIntercom - 新建VPC互通关系
func (*VPCClient) DeleteNATGW ¶ added in v0.10.0
func (c *VPCClient) DeleteNATGW(req *DeleteNATGWRequest) (*DeleteNATGWResponse, error)
DeleteNATGW - 删除NAT网关
func (*VPCClient) DeleteNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) DeleteNATGWPolicy(req *DeleteNATGWPolicyRequest) (*DeleteNATGWPolicyResponse, error)
DeleteNATGWPolicy - 删除NAT网关端口转发规则
func (*VPCClient) DeleteSubnet ¶
func (c *VPCClient) DeleteSubnet(req *DeleteSubnetRequest) (*DeleteSubnetResponse, error)
DeleteSubnet - 删除子网
func (*VPCClient) DeleteVPC ¶
func (c *VPCClient) DeleteVPC(req *DeleteVPCRequest) (*DeleteVPCResponse, error)
DeleteVPC - 删除VPC
func (*VPCClient) DeleteVPCIntercom ¶
func (c *VPCClient) DeleteVPCIntercom(req *DeleteVPCIntercomRequest) (*DeleteVPCIntercomResponse, error)
DeleteVPCIntercom - 删除VPC互通关系
func (*VPCClient) DeleteWhiteListResource ¶ added in v0.10.0
func (c *VPCClient) DeleteWhiteListResource(req *DeleteWhiteListResourceRequest) (*DeleteWhiteListResourceResponse, error)
DeleteWhiteListResource - 删除NAT网关白名单列表
func (*VPCClient) DescribeNATGW ¶ added in v0.10.0
func (c *VPCClient) DescribeNATGW(req *DescribeNATGWRequest) (*DescribeNATGWResponse, error)
DescribeNATGW - 获取NAT网关信息
func (*VPCClient) DescribeNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) DescribeNATGWPolicy(req *DescribeNATGWPolicyRequest) (*DescribeNATGWPolicyResponse, error)
DescribeNATGWPolicy - 展示NAT网关端口转发规则
func (*VPCClient) DescribeSubnet ¶
func (c *VPCClient) DescribeSubnet(req *DescribeSubnetRequest) (*DescribeSubnetResponse, error)
DescribeSubnet - 获取子网信息
func (*VPCClient) DescribeSubnetResource ¶
func (c *VPCClient) DescribeSubnetResource(req *DescribeSubnetResourceRequest) (*DescribeSubnetResourceResponse, error)
DescribeSubnetResource - 展示子网资源
func (*VPCClient) DescribeVPC ¶
func (c *VPCClient) DescribeVPC(req *DescribeVPCRequest) (*DescribeVPCResponse, error)
DescribeVPC - 获取VPC信息
func (*VPCClient) DescribeVPCIntercom ¶
func (c *VPCClient) DescribeVPCIntercom(req *DescribeVPCIntercomRequest) (*DescribeVPCIntercomResponse, error)
DescribeVPCIntercom - 获取VPC互通信息
func (*VPCClient) DescribeWhiteListResource ¶ added in v0.10.0
func (c *VPCClient) DescribeWhiteListResource(req *DescribeWhiteListResourceRequest) (*DescribeWhiteListResourceResponse, error)
DescribeWhiteListResource - 展示NAT网关白名单资源列表
func (*VPCClient) EnableWhiteList ¶ added in v0.10.0
func (c *VPCClient) EnableWhiteList(req *EnableWhiteListRequest) (*EnableWhiteListResponse, error)
EnableWhiteList - 修改NAT网关白名单开关
func (*VPCClient) GetAvailableResourceForPolicy ¶ added in v0.10.0
func (c *VPCClient) GetAvailableResourceForPolicy(req *GetAvailableResourceForPolicyRequest) (*GetAvailableResourceForPolicyResponse, error)
GetAvailableResourceForPolicy - 获取NAT网关可配置端口转发规则的资源信息
func (*VPCClient) GetAvailableResourceForWhiteList ¶ added in v0.10.0
func (c *VPCClient) GetAvailableResourceForWhiteList(req *GetAvailableResourceForWhiteListRequest) (*GetAvailableResourceForWhiteListResponse, error)
GetAvailableResourceForWhiteList - 获取NAT网关可添加白名单的资源
func (*VPCClient) ListSubnetForNATGW ¶ added in v0.10.0
func (c *VPCClient) ListSubnetForNATGW(req *ListSubnetForNATGWRequest) (*ListSubnetForNATGWResponse, error)
ListSubnetForNATGW - 展示NAT网关可绑定的子网列表
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) 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) 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) 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) 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) 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) NewListSubnetForNATGWRequest ¶ added in v0.10.0
func (c *VPCClient) NewListSubnetForNATGWRequest() *ListSubnetForNATGWRequest
NewListSubnetForNATGWRequest will create request of ListSubnetForNATGW 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) NewUpdateSubnetAttributeRequest ¶
func (c *VPCClient) NewUpdateSubnetAttributeRequest() *UpdateSubnetAttributeRequest
NewUpdateSubnetAttributeRequest will create request of UpdateSubnetAttribute action.
func (*VPCClient) NewUpdateVPCNetworkRequest ¶ added in v0.6.9
func (c *VPCClient) NewUpdateVPCNetworkRequest() *UpdateVPCNetworkRequest
NewUpdateVPCNetworkRequest will create request of UpdateVPCNetwork action.
func (*VPCClient) SetGwDefaultExport ¶ added in v0.10.0
func (c *VPCClient) SetGwDefaultExport(req *SetGwDefaultExportRequest) (*SetGwDefaultExportResponse, error)
SetGwDefaultExport - 设置NAT网关的默认出口
func (*VPCClient) UpdateNATGWPolicy ¶ added in v0.10.0
func (c *VPCClient) UpdateNATGWPolicy(req *UpdateNATGWPolicyRequest) (*UpdateNATGWPolicyResponse, error)
UpdateNATGWPolicy - 更新NAT网关端口转发规则
func (*VPCClient) UpdateNATGWSubnet ¶ added in v0.10.0
func (c *VPCClient) UpdateNATGWSubnet(req *UpdateNATGWSubnetRequest) (*UpdateNATGWSubnetResponse, error)
UpdateNATGWSubnet - 更新NAT网关绑定的子网
func (*VPCClient) UpdateSubnetAttribute ¶
func (c *VPCClient) UpdateSubnetAttribute(req *UpdateSubnetAttributeRequest) (*UpdateSubnetAttributeResponse, error)
UpdateSubnetAttribute - 更新子网信息
func (*VPCClient) UpdateVPCNetwork ¶ added in v0.6.9
func (c *VPCClient) UpdateVPCNetwork(req *UpdateVPCNetworkRequest) (*UpdateVPCNetworkResponse, error)
UpdateVPCNetwork - 修改VPC地址空间,只支持删除地址空间
type VPCInfo ¶
type VPCInfo struct {
// 业务组
Tag string
// 创建时间
CreateTime int
// vpc名称
Name string
// vpc地址空间
Network []string
// vpc地址空间信息
NetworkInfo []VPCNetworkInfo
// vpc中子网数量
SubnetCount int
// 更新时间
UpdateTime int
// vpc的资源ID
VPCId string
}
VPCInfo - vpc信息
type VPCIntercomInfo ¶
type VPCIntercomInfo struct {
// 项目Id
ProjectId string
// VPC的地址空间
Network []string
// 所属地域
DstRegion string
// VPC名字
Name string
// VPCId
VPCId string
// 业务组(未分组显示为 Default)
Tag string
}
VPCIntercomInfo -
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type VPCNetworkInfo ¶
VPCNetworkInfo - vpc地址空间信息
type VPCSubnetInfoSet ¶
type VPCSubnetInfoSet struct {
// VPC id
VPCId string
// VPC名称
VPCName string
// 子网id
SubnetId string
// 子网名称
SubnetName string
// 地址
Zone string
// 名称
Name string
// 备注
Remark string
// Tag
Tag string
// 子网类型
SubnetType int
// 子网网段
Subnet string
// 子网掩码
Netmask string
// 子网网关
Gateway string
// 创建时间
CreateTime int
// 虚拟路由 id
VRouterId string
// 是否关联NATGW
HasNATGW bool
}
VPCSubnetInfoSet - DescribeSubnet
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
Source Files
¶
- add_vpcnetwork.go
- add_white_list_resource.go
- client.go
- create_natgw.go
- create_natgw_policy.go
- create_subnet.go
- create_vpc.go
- create_vpcintercom.go
- delete_natgw.go
- delete_natgw_policy.go
- delete_subnet.go
- delete_vpc.go
- delete_vpcintercom.go
- delete_white_list_resource.go
- describe_natgw.go
- describe_natgw_policy.go
- describe_subnet.go
- describe_subnet_resource.go
- describe_vpc.go
- describe_vpcintercom.go
- describe_white_list_resource.go
- doc.go
- enable_white_list.go
- get_available_resource_for_policy.go
- get_available_resource_for_white_list.go
- list_subnet_for_natgw.go
- set_gw_default_export.go
- types_describe_white_list_resource_object_ip_info.go
- types_get_available_resource_for_policy_data_set.go
- types_get_available_resource_for_white_list_data_set.go
- types_nat_gateway_data_set.go
- types_nat_gateway_ip_set.go
- types_nat_gateway_subnet_set.go
- types_nat_gw_ip_res_info.go
- types_nat_gw_whitelist_data_set.go
- types_natgw_policy_data_set.go
- types_natgw_subnet_data_set.go
- types_resource_info.go
- types_vpcinfo.go
- types_vpcintercom_info.go
- types_vpcnetwork_info.go
- types_vpcsubnet_info_set.go
- update_natgw_policy.go
- update_natgw_subnet.go
- update_subnet_attribute.go
- update_vpcnetwork.go