Documentation
¶
Overview ¶
Package ipsecvpn include resources of ucloud ipsecvpn product
See also
- API: https://docs.ucloud.cn/api/ipsecvpn-api/index
- Product: https://www.ucloud.cn/site/product/ipsecvpn.html
for detail.
Index ¶
- type CreateRemoteVPNGatewayRequest
- type CreateRemoteVPNGatewayResponse
- type CreateVPNGatewayRequest
- type CreateVPNGatewayResponse
- type CreateVPNTunnelRequest
- type CreateVPNTunnelResponse
- type DeleteRemoteVPNGatewayRequest
- type DeleteRemoteVPNGatewayResponse
- type DeleteVPNGatewayRequest
- type DeleteVPNGatewayResponse
- type DeleteVPNTunnelRequest
- type DeleteVPNTunnelResponse
- type DescribeRemoteVPNGatewayRequest
- type DescribeRemoteVPNGatewayResponse
- type DescribeVPNGatewayRequest
- type DescribeVPNGatewayResponse
- type DescribeVPNTunnelRequest
- type DescribeVPNTunnelResponse
- type GetVPNGatewayPriceRequest
- type GetVPNGatewayPriceResponse
- type GetVPNGatewayUpgradePriceRequest
- type GetVPNGatewayUpgradePriceResponse
- type IKEData
- type IPSecData
- type IPSecVPNClient
- func (c *IPSecVPNClient) CreateRemoteVPNGateway(req *CreateRemoteVPNGatewayRequest) (*CreateRemoteVPNGatewayResponse, error)
- func (c *IPSecVPNClient) CreateVPNGateway(req *CreateVPNGatewayRequest) (*CreateVPNGatewayResponse, error)
- func (c *IPSecVPNClient) CreateVPNTunnel(req *CreateVPNTunnelRequest) (*CreateVPNTunnelResponse, error)
- func (c *IPSecVPNClient) DeleteRemoteVPNGateway(req *DeleteRemoteVPNGatewayRequest) (*DeleteRemoteVPNGatewayResponse, error)
- func (c *IPSecVPNClient) DeleteVPNGateway(req *DeleteVPNGatewayRequest) (*DeleteVPNGatewayResponse, error)
- func (c *IPSecVPNClient) DeleteVPNTunnel(req *DeleteVPNTunnelRequest) (*DeleteVPNTunnelResponse, error)
- func (c *IPSecVPNClient) DescribeRemoteVPNGateway(req *DescribeRemoteVPNGatewayRequest) (*DescribeRemoteVPNGatewayResponse, error)
- func (c *IPSecVPNClient) DescribeVPNGateway(req *DescribeVPNGatewayRequest) (*DescribeVPNGatewayResponse, error)
- func (c *IPSecVPNClient) DescribeVPNTunnel(req *DescribeVPNTunnelRequest) (*DescribeVPNTunnelResponse, error)
- func (c *IPSecVPNClient) GetVPNGatewayPrice(req *GetVPNGatewayPriceRequest) (*GetVPNGatewayPriceResponse, error)
- func (c *IPSecVPNClient) GetVPNGatewayUpgradePrice(req *GetVPNGatewayUpgradePriceRequest) (*GetVPNGatewayUpgradePriceResponse, error)
- func (c *IPSecVPNClient) NewCreateRemoteVPNGatewayRequest() *CreateRemoteVPNGatewayRequest
- func (c *IPSecVPNClient) NewCreateVPNGatewayRequest() *CreateVPNGatewayRequest
- func (c *IPSecVPNClient) NewCreateVPNTunnelRequest() *CreateVPNTunnelRequest
- func (c *IPSecVPNClient) NewDeleteRemoteVPNGatewayRequest() *DeleteRemoteVPNGatewayRequest
- func (c *IPSecVPNClient) NewDeleteVPNGatewayRequest() *DeleteVPNGatewayRequest
- func (c *IPSecVPNClient) NewDeleteVPNTunnelRequest() *DeleteVPNTunnelRequest
- func (c *IPSecVPNClient) NewDescribeRemoteVPNGatewayRequest() *DescribeRemoteVPNGatewayRequest
- func (c *IPSecVPNClient) NewDescribeVPNGatewayRequest() *DescribeVPNGatewayRequest
- func (c *IPSecVPNClient) NewDescribeVPNTunnelRequest() *DescribeVPNTunnelRequest
- func (c *IPSecVPNClient) NewGetVPNGatewayPriceRequest() *GetVPNGatewayPriceRequest
- func (c *IPSecVPNClient) NewGetVPNGatewayUpgradePriceRequest() *GetVPNGatewayUpgradePriceRequest
- func (c *IPSecVPNClient) NewUpdateVPNGatewayRequest() *UpdateVPNGatewayRequest
- func (c *IPSecVPNClient) NewUpdateVPNTunnelAttributeRequest() *UpdateVPNTunnelAttributeRequest
- func (c *IPSecVPNClient) UpdateVPNGateway(req *UpdateVPNGatewayRequest) (*UpdateVPNGatewayResponse, error)
- func (c *IPSecVPNClient) UpdateVPNTunnelAttribute(req *UpdateVPNTunnelAttributeRequest) (*UpdateVPNTunnelAttributeResponse, error)
- type RemoteVPNGatewayDataSet
- type UpdateVPNGatewayRequest
- type UpdateVPNGatewayResponse
- type UpdateVPNTunnelAttributeRequest
- type UpdateVPNTunnelAttributeResponse
- type VPNGatewayDataSet
- type VPNGatewayPriceSet
- type VPNTunnelDataSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRemoteVPNGatewayRequest ¶
type CreateRemoteVPNGatewayRequest struct { request.CommonBase // 备注,默认为空 Remark *string `required:"false"` // 客户VPN网关地址 RemoteVPNGatewayAddr *string `required:"true"` // 客户VPN网关名称 RemoteVPNGatewayName *string `required:"true"` // 业务组名称,默认为 "Default" Tag *string `required:"false"` }
CreateRemoteVPNGatewayRequest is request schema for CreateRemoteVPNGateway action
type CreateRemoteVPNGatewayResponse ¶
type CreateRemoteVPNGatewayResponse struct { response.CommonBase // 新建客户VPN网关的资源ID RemoteVPNGatewayId string }
CreateRemoteVPNGatewayResponse is response schema for CreateRemoteVPNGateway action
type CreateVPNGatewayRequest ¶
type CreateVPNGatewayRequest struct { request.CommonBase // 业务组ID BusinessId *string `required:"false"` // 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费;Dynamic, 按需付费(需开启权限);Trial, 试用(需开启权限);默认为按月付费 ChargeType *string `required:"false"` // 代金券ID, 默认不使用 CouponId *string `required:"false"` // 若要绑定EIP,在此填上EIP的资源ID EIPId *string `required:"false"` // 购买的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型 Grade *string `required:"true"` // 购买时长, 默认: 1 Quantity *int `required:"false"` // 备注,默认为空 Remark *string `required:"false"` // 业务组名称,默认为 "Default" Tag *string `required:"false"` // 新建VPN网关所属VPC的资源ID VPCId *string `required:"true"` // 新建VPN网关名称 VPNGatewayName *string `required:"true"` }
CreateVPNGatewayRequest is request schema for CreateVPNGateway action
type CreateVPNGatewayResponse ¶
type CreateVPNGatewayResponse struct { response.CommonBase // 新建VPN网关的资源ID VPNGatewayId string }
CreateVPNGatewayResponse is response schema for CreateVPNGateway action
type CreateVPNTunnelRequest ¶
type CreateVPNTunnelRequest struct { request.CommonBase // IKE协商过程中使用的认证算法,"md5", "sha1", "sha2-256"。默认值为“sha1” IKEAuthenticationAlgorithm *string `required:"false"` // IKE协商过程中使用的DH组,枚举值,"1", "2", "5", "14", "15", "16"。默认为“15” IKEDhGroup *string `required:"false"` // IKE协商过程中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” IKEEncryptionAlgorithm *string `required:"false"` // IKE协商过程中使用的模式,枚举值,主模式,“main”;野蛮模式,“aggressive”。IKEV1默认为主模式“main”,IKEV2时不使用该参数。 IKEExchangeMode *string `required:"false"` // 本端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为自动识别“auto”。IKEV2必填该参数 IKELocalId *string `required:"false"` IKEPreSharedKey *string `required:"true"` // 客户端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为“自动识别“auto”。IKEV2必填该参数 IKERemoteId *string `required:"false"` // IKE中SA的生存时间,可填写范围为600-604800。默认为86400。 IKESALifetime *string `required:"false"` // ike版本,枚举值: "IKE V1","IKE V2",默认v1 IKEVersion *string `required:"true"` // IPSec隧道中使用的认证算法,枚举值,"md5", "sha1"。默认值为“sha1” IPSecAuthenticationAlgorithm *string `required:"false"` // IPSec隧道中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” IPSecEncryptionAlgorithm *string `required:"false"` // 指定VPN连接的本地子网的资源ID,最多可填写10个。 IPSecLocalSubnetIds []string `required:"true"` // IPSec的PFS是否开启,枚举值,,不开启,"disable";数字表示DH组, "1", "2", "5", "14", "15", "16"。默认为“disable”。 IPSecPFSDhGroup *string `required:"false"` // 使用的安全协议,枚举值,“esp”,“ah”。默认为“esp” IPSecProtocol *string `required:"false"` // 指定VPN连接的客户网段,最多可填写20个。 IPSecRemoteSubnets []string `required:"true"` // IPSec中SA的生存时间,可填写范围为1200 - 604800。默认为3600 IPSecSALifetime *string `required:"false"` // IPSec中SA的生存时间(以字节计)。可选为8000 – 20000000。默认使用SA生存时间, IPSecSALifetimeBytes *string `required:"false"` // 备注,默认为空 Remark *string `required:"false"` // 客户VPN网关的资源ID RemoteVPNGatewayId *string `required:"true"` // 业务组,默认为“Default” Tag *string `required:"false"` // vpcId VPCId *string `required:"true"` // VPN网关的资源ID VPNGatewayId *string `required:"true"` // VPN隧道名称 VPNTunnelName *string `required:"true"` }
CreateVPNTunnelRequest is request schema for CreateVPNTunnel action
type CreateVPNTunnelResponse ¶
type CreateVPNTunnelResponse struct { response.CommonBase // VPN隧道的资源ID VPNTunnelId string }
CreateVPNTunnelResponse is response schema for CreateVPNTunnel action
type DeleteRemoteVPNGatewayRequest ¶
type DeleteRemoteVPNGatewayRequest struct { request.CommonBase // 客户VPN网关的资源ID RemoteVPNGatewayId *string `required:"true"` }
DeleteRemoteVPNGatewayRequest is request schema for DeleteRemoteVPNGateway action
type DeleteRemoteVPNGatewayResponse ¶
type DeleteRemoteVPNGatewayResponse struct {
response.CommonBase
}
DeleteRemoteVPNGatewayResponse is response schema for DeleteRemoteVPNGateway action
type DeleteVPNGatewayRequest ¶
type DeleteVPNGatewayRequest struct { request.CommonBase // 删除VPN时是否一并释放EIP。false,只解绑EIP不删除EIP;true,解绑并释放EIP。默认是false ReleaseEip *bool `required:"false"` // VPN网关的资源ID VPNGatewayId *string `required:"true"` }
DeleteVPNGatewayRequest is request schema for DeleteVPNGateway action
type DeleteVPNGatewayResponse ¶
type DeleteVPNGatewayResponse struct {
response.CommonBase
}
DeleteVPNGatewayResponse is response schema for DeleteVPNGateway action
type DeleteVPNTunnelRequest ¶
type DeleteVPNTunnelRequest struct { request.CommonBase // VPN隧道的资源ID VPNTunnelId *string `required:"true"` }
DeleteVPNTunnelRequest is request schema for DeleteVPNTunnel action
type DeleteVPNTunnelResponse ¶
type DeleteVPNTunnelResponse struct {
response.CommonBase
}
DeleteVPNTunnelResponse is response schema for DeleteVPNTunnel action
type DescribeRemoteVPNGatewayRequest ¶
type DescribeRemoteVPNGatewayRequest struct { request.CommonBase // 数据分页值, 默认为20 Limit *int `required:"false"` // 数据偏移量, 默认为0 Offset *int `required:"false"` // 客户VPN网关的资源ID,例如RemoteVPNGatewayIds.0代表希望获取客户VPN网关1的信息,RemoteVPNGatewayIds.1代表客户VPN网关2,如果为空,则返回当前Region中所有客户VPN网关实例的信息 RemoteVPNGatewayIds []string `required:"false"` // 业务组名称,若指定则返回业务组下所有客户VPN网关信息 Tag *string `required:"false"` }
DescribeRemoteVPNGatewayRequest is request schema for DescribeRemoteVPNGateway action
type DescribeRemoteVPNGatewayResponse ¶
type DescribeRemoteVPNGatewayResponse struct { response.CommonBase // 客户VPN网关列表, 每项参数详见 RemoteVPNGatewayDataSet DataSet []RemoteVPNGatewayDataSet // 符合条件的客户VPN网关总数 TotalCount int }
DescribeRemoteVPNGatewayResponse is response schema for DescribeRemoteVPNGateway action
type DescribeVPNGatewayRequest ¶
type DescribeVPNGatewayRequest struct { request.CommonBase // 数据分页值。默认为20 Limit *int `required:"false"` // 数据偏移量。默认为0 Offset *int `required:"false"` // 业务组名称,若指定则返回指定的业务组下的所有VPN网关的信息。 Tag *string `required:"false"` // VPC的资源ID,返回指定的VPC下的所有VPN网关的信息。默认返回当前Region中所有VPN网关实例的信息 VPCId *string `required:"false"` // VPN网关的资源ID,例如VPNGatewayIds.0代表希望获取VPN网关1的信息,VPNGatewayIds.1代表VPN网关2,如果为空,则返回当前Region中所有VPN网关的信息 VPNGatewayIds []string `required:"false"` }
DescribeVPNGatewayRequest is request schema for DescribeVPNGateway action
type DescribeVPNGatewayResponse ¶
type DescribeVPNGatewayResponse struct { response.CommonBase // 获取的VPN网关信息列表,每项参数详见 VPNGatewayDataSet DataSet []VPNGatewayDataSet // 满足条件的VPN网关总数 TotalCount int }
DescribeVPNGatewayResponse is response schema for DescribeVPNGateway action
type DescribeVPNTunnelRequest ¶
type DescribeVPNTunnelRequest struct { request.CommonBase // 数据分页值, 默认为20 Limit *int `required:"false"` // 数据偏移量, 默认为0 Offset *int `required:"false"` // 业务组名称,若指定则返回指定的业务组下的所有VPN网关的信息 Tag *string `required:"false"` // VPN隧道的资源ID,例如VPNTunnelIds.0代表希望获取信息的VPN隧道1,VPNTunneIds.1代表VPN隧道2,如果为空,则返回当前Region中所有的VPN隧道实例 VPNTunnelIds []string `required:"false"` }
DescribeVPNTunnelRequest is request schema for DescribeVPNTunnel action
type DescribeVPNTunnelResponse ¶
type DescribeVPNTunnelResponse struct { response.CommonBase // 获取的VPN隧道信息列表,每项参数详见 VPNTunnelDataSet DataSet []VPNTunnelDataSet // VPN隧道总数 TotalCount int }
DescribeVPNTunnelResponse is response schema for DescribeVPNTunnel action
type GetVPNGatewayPriceRequest ¶ added in v0.21.2
type GetVPNGatewayPriceRequest struct { request.CommonBase // 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); 默认为获取三种价格 ChargeType *string `required:"false"` // VPN网关规格。枚举值,包括:标准型:Standard,增强型:Enhanced。 Grade *string `required:"true"` // 购买时长, 默认: 1 Quantity *int `required:"false"` }
GetVPNGatewayPriceRequest is request schema for GetVPNGatewayPrice action
type GetVPNGatewayPriceResponse ¶ added in v0.21.2
type GetVPNGatewayPriceResponse struct { response.CommonBase // 获取的VPN网关价格信息列表,每项参数详见 VPNGatewayPriceSet PriceSet []VPNGatewayPriceSet }
GetVPNGatewayPriceResponse is response schema for GetVPNGatewayPrice action
type GetVPNGatewayUpgradePriceRequest ¶ added in v0.21.2
type GetVPNGatewayUpgradePriceRequest struct { request.CommonBase // 更改的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型。 Grade *string `required:"true"` // VPN网关的资源ID VPNGatewayId *string `required:"true"` }
GetVPNGatewayUpgradePriceRequest is request schema for GetVPNGatewayUpgradePrice action
type GetVPNGatewayUpgradePriceResponse ¶ added in v0.21.2
type GetVPNGatewayUpgradePriceResponse struct { response.CommonBase // 调整规格后的VPN网关价格, 单位为"元", 如需退费此处为负值 Price float64 }
GetVPNGatewayUpgradePriceResponse is response schema for GetVPNGatewayUpgradePrice action
type IKEData ¶
type IKEData struct { // IKE认证算法 IKEAuthenticationAlgorithm string // IKEDH组 IKEDhGroup string // IKE加密算法 IKEEncryptionAlgorithm string // IKEv1协商模式 IKEExchangeMode string // IKE本地ID标识 IKELocalId string IKEPreSharedKey string // IKE对端ID标识 IKERemoteId string // IKE秘钥生存时间 IKESALifetime string // IKE版本 IKEVersion string }
IKEData - IKE信息
type IPSecData ¶
type IPSecData struct { // IPSec通道中使用的认证算法 IPSecAuthenticationAlgorithm string // IPSec通道中使用的加密算法 IPSecEncryptionAlgorithm string // 指定VPN连接的本地子网,用逗号分隔 IPSecLocalSubnetIds []string // 是否开启PFS功能,Disable表示关闭,数字表示DH组 IPSecPFSDhGroup string // 使用的安全协议,ESP或AH IPSecProtocol string // 指定VPN连接的客户网段,用逗号分隔 IPSecRemoteSubnets []string // IPSec中SA的生存时间 IPSecSALifetime string // IPSec中SA的生存时间(以字节计) IPSecSALifetimeBytes string }
IPSecData - IPSec参数
type IPSecVPNClient ¶
IPSecVPNClient is the client of IPSecVPN
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *IPSecVPNClient
NewClient will return a instance of IPSecVPNClient
func (*IPSecVPNClient) CreateRemoteVPNGateway ¶
func (c *IPSecVPNClient) CreateRemoteVPNGateway(req *CreateRemoteVPNGatewayRequest) (*CreateRemoteVPNGatewayResponse, error)
API: CreateRemoteVPNGateway
创建客户VPN网关
func (*IPSecVPNClient) CreateVPNGateway ¶
func (c *IPSecVPNClient) CreateVPNGateway(req *CreateVPNGatewayRequest) (*CreateVPNGatewayResponse, error)
API: CreateVPNGateway
创建VPN网关
func (*IPSecVPNClient) CreateVPNTunnel ¶
func (c *IPSecVPNClient) CreateVPNTunnel(req *CreateVPNTunnelRequest) (*CreateVPNTunnelResponse, error)
API: CreateVPNTunnel
创建VPN隧道
func (*IPSecVPNClient) DeleteRemoteVPNGateway ¶
func (c *IPSecVPNClient) DeleteRemoteVPNGateway(req *DeleteRemoteVPNGatewayRequest) (*DeleteRemoteVPNGatewayResponse, error)
API: DeleteRemoteVPNGateway
删除客户VPN网关
func (*IPSecVPNClient) DeleteVPNGateway ¶
func (c *IPSecVPNClient) DeleteVPNGateway(req *DeleteVPNGatewayRequest) (*DeleteVPNGatewayResponse, error)
API: DeleteVPNGateway
删除VPN网关
func (*IPSecVPNClient) DeleteVPNTunnel ¶
func (c *IPSecVPNClient) DeleteVPNTunnel(req *DeleteVPNTunnelRequest) (*DeleteVPNTunnelResponse, error)
API: DeleteVPNTunnel
删除VPN隧道
func (*IPSecVPNClient) DescribeRemoteVPNGateway ¶
func (c *IPSecVPNClient) DescribeRemoteVPNGateway(req *DescribeRemoteVPNGatewayRequest) (*DescribeRemoteVPNGatewayResponse, error)
API: DescribeRemoteVPNGateway
获取客户VPN网关信息
func (*IPSecVPNClient) DescribeVPNGateway ¶
func (c *IPSecVPNClient) DescribeVPNGateway(req *DescribeVPNGatewayRequest) (*DescribeVPNGatewayResponse, error)
API: DescribeVPNGateway
获取VPN网关信息
func (*IPSecVPNClient) DescribeVPNTunnel ¶
func (c *IPSecVPNClient) DescribeVPNTunnel(req *DescribeVPNTunnelRequest) (*DescribeVPNTunnelResponse, error)
API: DescribeVPNTunnel
获取VPN隧道信息
func (*IPSecVPNClient) GetVPNGatewayPrice ¶ added in v0.21.2
func (c *IPSecVPNClient) GetVPNGatewayPrice(req *GetVPNGatewayPriceRequest) (*GetVPNGatewayPriceResponse, error)
API: GetVPNGatewayPrice
获取VPN价格
func (*IPSecVPNClient) GetVPNGatewayUpgradePrice ¶ added in v0.21.2
func (c *IPSecVPNClient) GetVPNGatewayUpgradePrice(req *GetVPNGatewayUpgradePriceRequest) (*GetVPNGatewayUpgradePriceResponse, error)
API: GetVPNGatewayUpgradePrice
获取VPN网关规格改动价格
func (*IPSecVPNClient) NewCreateRemoteVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewCreateRemoteVPNGatewayRequest() *CreateRemoteVPNGatewayRequest
NewCreateRemoteVPNGatewayRequest will create request of CreateRemoteVPNGateway action.
func (*IPSecVPNClient) NewCreateVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewCreateVPNGatewayRequest() *CreateVPNGatewayRequest
NewCreateVPNGatewayRequest will create request of CreateVPNGateway action.
func (*IPSecVPNClient) NewCreateVPNTunnelRequest ¶
func (c *IPSecVPNClient) NewCreateVPNTunnelRequest() *CreateVPNTunnelRequest
NewCreateVPNTunnelRequest will create request of CreateVPNTunnel action.
func (*IPSecVPNClient) NewDeleteRemoteVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewDeleteRemoteVPNGatewayRequest() *DeleteRemoteVPNGatewayRequest
NewDeleteRemoteVPNGatewayRequest will create request of DeleteRemoteVPNGateway action.
func (*IPSecVPNClient) NewDeleteVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewDeleteVPNGatewayRequest() *DeleteVPNGatewayRequest
NewDeleteVPNGatewayRequest will create request of DeleteVPNGateway action.
func (*IPSecVPNClient) NewDeleteVPNTunnelRequest ¶
func (c *IPSecVPNClient) NewDeleteVPNTunnelRequest() *DeleteVPNTunnelRequest
NewDeleteVPNTunnelRequest will create request of DeleteVPNTunnel action.
func (*IPSecVPNClient) NewDescribeRemoteVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewDescribeRemoteVPNGatewayRequest() *DescribeRemoteVPNGatewayRequest
NewDescribeRemoteVPNGatewayRequest will create request of DescribeRemoteVPNGateway action.
func (*IPSecVPNClient) NewDescribeVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewDescribeVPNGatewayRequest() *DescribeVPNGatewayRequest
NewDescribeVPNGatewayRequest will create request of DescribeVPNGateway action.
func (*IPSecVPNClient) NewDescribeVPNTunnelRequest ¶
func (c *IPSecVPNClient) NewDescribeVPNTunnelRequest() *DescribeVPNTunnelRequest
NewDescribeVPNTunnelRequest will create request of DescribeVPNTunnel action.
func (*IPSecVPNClient) NewGetVPNGatewayPriceRequest ¶ added in v0.21.2
func (c *IPSecVPNClient) NewGetVPNGatewayPriceRequest() *GetVPNGatewayPriceRequest
NewGetVPNGatewayPriceRequest will create request of GetVPNGatewayPrice action.
func (*IPSecVPNClient) NewGetVPNGatewayUpgradePriceRequest ¶ added in v0.21.2
func (c *IPSecVPNClient) NewGetVPNGatewayUpgradePriceRequest() *GetVPNGatewayUpgradePriceRequest
NewGetVPNGatewayUpgradePriceRequest will create request of GetVPNGatewayUpgradePrice action.
func (*IPSecVPNClient) NewUpdateVPNGatewayRequest ¶
func (c *IPSecVPNClient) NewUpdateVPNGatewayRequest() *UpdateVPNGatewayRequest
NewUpdateVPNGatewayRequest will create request of UpdateVPNGateway action.
func (*IPSecVPNClient) NewUpdateVPNTunnelAttributeRequest ¶
func (c *IPSecVPNClient) NewUpdateVPNTunnelAttributeRequest() *UpdateVPNTunnelAttributeRequest
NewUpdateVPNTunnelAttributeRequest will create request of UpdateVPNTunnelAttribute action.
func (*IPSecVPNClient) UpdateVPNGateway ¶
func (c *IPSecVPNClient) UpdateVPNGateway(req *UpdateVPNGatewayRequest) (*UpdateVPNGatewayResponse, error)
API: UpdateVPNGateway
更改VPN网关规格
func (*IPSecVPNClient) UpdateVPNTunnelAttribute ¶
func (c *IPSecVPNClient) UpdateVPNTunnelAttribute(req *UpdateVPNTunnelAttributeRequest) (*UpdateVPNTunnelAttributeResponse, error)
API: UpdateVPNTunnelAttribute
更新VPN隧道属性
type RemoteVPNGatewayDataSet ¶
type RemoteVPNGatewayDataSet struct { // ActiveTunnels []string `deprecated:"true"` // 创建时间 CreateTime int // 备注 Remark string // 客户网关IP地址 RemoteVPNGatewayAddr string // 客户网关ID RemoteVPNGatewayId string // 客户网关名称 RemoteVPNGatewayName string // 用户组 Tag string // 活跃的隧道数量 TunnelCount int }
RemoteVPNGatewayDataSet - DescribeRemoteVPNGateway返回参数
type UpdateVPNGatewayRequest ¶
type UpdateVPNGatewayRequest struct { request.CommonBase // 网关规格。枚举值为: Standard, 标准型; Enhanced, 增强型。 Grade *string `required:"true"` // VPN网关的资源ID VPNGatewayId *string `required:"true"` }
UpdateVPNGatewayRequest is request schema for UpdateVPNGateway action
type UpdateVPNGatewayResponse ¶
type UpdateVPNGatewayResponse struct {
response.CommonBase
}
UpdateVPNGatewayResponse is response schema for UpdateVPNGateway action
type UpdateVPNTunnelAttributeRequest ¶
type UpdateVPNTunnelAttributeRequest struct { request.CommonBase // IKE协商过程中使用的认证算法 IKEAuthenticationAlgorithm *string `required:"false"` // IKE协商过程中使用的DH组 IKEDhGroup *string `required:"false"` // IKE协商过程中使用的加密算法 IKEEncryptionAlgorithm *string `required:"false"` // IKE协商过程中使用的模式,可选“主动模式”与“野蛮模式”。IKEV2不使用该参数。 IKEExchangeMode *string `required:"false"` // 本端标识。不填时默认使用之前的参数,结合IKEversion进行校验,IKEV2时不能为auto。 IKELocalId *string `required:"false"` IKEPreSharedKey *string `required:"false"` // 客户端标识。不填时默认使用之前的参数,结合IKEversion进行校验,IKEV2时不能为auto。 IKERemoteId *string `required:"false"` // IKE中SA的生存时间 IKESALifetime *string `required:"false"` // 枚举值:"IKE V1","IKE V2" IKEVersion *string `required:"false"` // IPSec隧道中使用的认证算法 IPSecAuthenticationAlgorithm *string `required:"false"` // IPSec隧道中使用的加密算法 IPSecEncryptionAlgorithm *string `required:"false"` // 指定VPN连接的本地子网的id,用逗号分隔 IPSecLocalSubnetIds []string `required:"false"` // IPSec中的PFS是否开启 IPSecPFSDhGroup *string `required:"false"` // 使用的安全协议,ESP或AH IPSecProtocol *string `required:"false"` // 指定VPN连接的客户网段,用逗号分隔 IPSecRemoteSubnets []string `required:"false"` // IPSec中SA的生存时间 IPSecSALifetime *string `required:"false"` // IPSec中SA的生存时间(以字节计) IPSecSALifetimeBytes *string `required:"false"` // VPN隧道的资源ID VPNTunnelId *string `required:"true"` }
UpdateVPNTunnelAttributeRequest is request schema for UpdateVPNTunnelAttribute action
type UpdateVPNTunnelAttributeResponse ¶
type UpdateVPNTunnelAttributeResponse struct {
response.CommonBase
}
UpdateVPNTunnelAttributeResponse is response schema for UpdateVPNTunnelAttribute action
type VPNGatewayDataSet ¶
type VPNGatewayDataSet struct { // 是否自动续费 AutoRenew string // 付费类型 ChargeType string // 创建时间 CreateTime int // 绑定EIP的IP地址 EIP string // EIPID EIPId string // EIP类型 EIPType string // 到期时间 ExpireTime int // 网关类型 Grade string // 网关备注 Remark string // 网关业务组 Tag string // 所属VPCId VPCId string // 所属VPC名字 VPCName string // 网关Id VPNGatewayId string // 网关名字 VPNGatewayName string }
VPNGatewayDataSet - DescribeVPNGateway返回参数
type VPNGatewayPriceSet ¶ added in v0.21.2
type VPNGatewayPriceSet struct { // VPN网关付费方式 ChargeType string // VPN网关价格, 单位"元" Price float64 // 资源有效期, 以Unix Timestamp表示 PurchaseValue int }
VPNGatewayPriceSet - VPN网关的价格信息
type VPNTunnelDataSet ¶
type VPNTunnelDataSet struct { // 创建时间 CreateTime int // IKE参数 IKEData IKEData // IPSec参数 IPSecData IPSecData // 备注 Remark string // 对端网关Id RemoteVPNGatewayId string // 对端网关名字 RemoteVPNGatewayName string // 用户组 Tag string // 所属VPCId VPCId string // 所属VOC名字 VPCName string // 所属VPN网关id VPNGatewayId string // VPN网关名字 VPNGatewayName string // 隧道id VPNTunnelId string // 隧道名称 VPNTunnelName string }
VPNTunnelDataSet - DescribeVPNTunnel信息