Documentation ¶
Index ¶
- type AddBlackWhiteIpListRequest
- type AddBlackWhiteIpListResponse
- type AddPolicyBlackAndWhiteIpListRequest
- type AddPolicyBlackAndWhiteIpListResponse
- type AlarmBody
- type AssociateIpToPolicyAndPackageRequest
- type AssociateIpToPolicyAndPackageResponse
- type AssociateIpToPolicyRequest
- type AssociateIpToPolicyResponse
- type BatchCreateInstanceIpRuleRequest
- type BatchCreateInstanceIpRuleResponse
- type BatchDeleteInstanceIpRuleRequest
- type BatchDeleteInstanceIpRuleResponse
- type BatchIdBody
- type BatchTransferRuleBody
- type BlackWhiteIpListRequest
- type BlackWhiteIpRequestBody
- type BlackWhiteIpRequestBodyType
- type BlackWhiteIpRequestBodyTypeEnum
- type BlockListBlockingList
- type BlockListBlockingListStatus
- type BlockListBlockingListStatusEnum
- type Bw
- type CadDomainSwitchRequest
- type CertificateBody
- type CreateAadDomainRequest
- type CreateAadDomainResponse
- type CreatePolicyRequest
- type CreatePolicyRequestBody
- type CreatePolicyResponse
- type DeleteAlarmConfigRequest
- type DeleteAlarmConfigResponse
- type DeleteBlackWhiteIpListRequest
- type DeleteBlackWhiteIpListResponse
- type DeletePolicyBlackAndWhiteIpListRequest
- type DeletePolicyBlackAndWhiteIpListResponse
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DisassociateIpFromPolicyAndPackageRequest
- type DisassociateIpFromPolicyAndPackageResponse
- type DisassociateIpFromPolicyRequest
- type DisassociateIpFromPolicyResponse
- type DomainInfo
- type DomainRealServerInfo
- type ExecuteUnblockIpRequest
- type ExecuteUnblockIpRequestBody
- type ExecuteUnblockIpResponse
- type HostBody
- type InstanceInfo
- type InstanceIpInfo
- type IpBindingBody
- type IpBindingV3Body
- type IpStatusDetail
- type ListBlockIpsRequest
- type ListBlockIpsResponse
- type ListDomainRequest
- type ListDomainResponse
- type ListInstanceIdRequest
- type ListInstanceIdResponse
- type ListInstanceIpRuleRequest
- type ListInstanceIpRuleResponse
- type ListInstanceRequest
- type ListInstanceResponse
- type ListPackageRequest
- type ListPackageResponse
- type ListPeakRequest
- type ListPeakResponse
- type ListPolicyRequest
- type ListPolicyResponse
- type ListProtectedIpRequest
- type ListProtectedIpResponse
- type ListSourceIpsRequest
- type ListSourceIpsResponse
- type ListUnblockQuotaStatisticsRequest
- type ListUnblockQuotaStatisticsResponse
- type ListUnblockQuotaStatisticsResponseType
- type ListUnblockQuotaStatisticsResponseTypeEnum
- type ListUnboundProtectedIpRequest
- type ListUnboundProtectedIpResponse
- type ModifyDomainWebSwitchRequest
- type ModifyDomainWebSwitchResponse
- type PackageResponse
- type PackageResponseInstanceType
- type PackageResponseInstanceTypeEnum
- type PolicyResponse
- type PopPolicy
- type PopPolicyPop
- type PopPolicyPopEnum
- type ProtectedIpResponse
- type ProtectedIpResponsePackageVersion
- type ProtectedIpResponsePackageVersionEnum
- type ProtectedIpResponseType
- type ProtectedIpResponseTypeEnum
- type SetCertForDomainRequest
- type SetCertForDomainResponse
- type ShowAlarmConfigRequest
- type ShowAlarmConfigResponse
- type ShowBlockStatisticsRequest
- type ShowBlockStatisticsResponse
- type ShowPolicyRequest
- type ShowPolicyResponse
- type ShowUnblockRecordRequest
- type ShowUnblockRecordResponse
- type TransferRuleBody
- type TransferRuleInfo
- type UnblockRecordResponseUnblockRecord
- type UnblockRecordResponseUnblockRecordStatus
- type UnblockRecordResponseUnblockRecordStatusEnum
- type UnblockRecordResponseUnblockRecordUnblockType
- type UnblockRecordResponseUnblockRecordUnblockTypeEnum
- type UpdateAlarmConfigRequest
- type UpdateAlarmConfigResponse
- type UpdateDomainRequest
- type UpdateDomainResponse
- type UpdateInstanceIpRuleRequest
- type UpdateInstanceIpRuleResponse
- type UpdatePackageIpRequest
- type UpdatePackageIpRequestBody
- type UpdatePackageIpResponse
- type UpdatePackageNameRequest
- type UpdatePackageNameRequestBody
- type UpdatePackageNameResponse
- type UpdatePolicyRequest
- type UpdatePolicyRequestBody
- type UpdatePolicyRequestBodyUdp
- type UpdatePolicyRequestBodyUdpEnum
- type UpdatePolicyResponse
- type UpdateProtectedIpBody
- type UpdateProtectedIpInPolicyBody
- type UpdateProtectedIpInPolicyBodyType
- type UpdateProtectedIpInPolicyBodyTypeEnum
- type UpdateTagForProtectedIpRequest
- type UpdateTagForProtectedIpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBlackWhiteIpListRequest ¶ added in v0.1.75
type AddBlackWhiteIpListRequest struct {
Body *BlackWhiteIpListRequest `json:"body,omitempty"`
}
AddBlackWhiteIpListRequest Request Object
func (AddBlackWhiteIpListRequest) String ¶ added in v0.1.75
func (o AddBlackWhiteIpListRequest) String() string
type AddBlackWhiteIpListResponse ¶ added in v0.1.75
type AddBlackWhiteIpListResponse struct {
HttpStatusCode int `json:"-"`
}
AddBlackWhiteIpListResponse Response Object
func (AddBlackWhiteIpListResponse) String ¶ added in v0.1.75
func (o AddBlackWhiteIpListResponse) String() string
type AddPolicyBlackAndWhiteIpListRequest ¶
type AddPolicyBlackAndWhiteIpListRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *BlackWhiteIpRequestBody `json:"body,omitempty"` }
AddPolicyBlackAndWhiteIpListRequest Request Object
func (AddPolicyBlackAndWhiteIpListRequest) String ¶
func (o AddPolicyBlackAndWhiteIpListRequest) String() string
type AddPolicyBlackAndWhiteIpListResponse ¶
type AddPolicyBlackAndWhiteIpListResponse struct {
HttpStatusCode int `json:"-"`
}
AddPolicyBlackAndWhiteIpListResponse Response Object
func (AddPolicyBlackAndWhiteIpListResponse) String ¶
func (o AddPolicyBlackAndWhiteIpListResponse) String() string
type AssociateIpToPolicyAndPackageRequest ¶ added in v0.1.117
type AssociateIpToPolicyAndPackageRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *IpBindingV3Body `json:"body,omitempty"` }
AssociateIpToPolicyAndPackageRequest Request Object
func (AssociateIpToPolicyAndPackageRequest) String ¶ added in v0.1.117
func (o AssociateIpToPolicyAndPackageRequest) String() string
type AssociateIpToPolicyAndPackageResponse ¶ added in v0.1.117
type AssociateIpToPolicyAndPackageResponse struct {
HttpStatusCode int `json:"-"`
}
AssociateIpToPolicyAndPackageResponse Response Object
func (AssociateIpToPolicyAndPackageResponse) String ¶ added in v0.1.117
func (o AssociateIpToPolicyAndPackageResponse) String() string
type AssociateIpToPolicyRequest ¶
type AssociateIpToPolicyRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *IpBindingBody `json:"body,omitempty"` }
AssociateIpToPolicyRequest Request Object
func (AssociateIpToPolicyRequest) String ¶
func (o AssociateIpToPolicyRequest) String() string
type AssociateIpToPolicyResponse ¶
type AssociateIpToPolicyResponse struct {
HttpStatusCode int `json:"-"`
}
AssociateIpToPolicyResponse Response Object
func (AssociateIpToPolicyResponse) String ¶
func (o AssociateIpToPolicyResponse) String() string
type BatchCreateInstanceIpRuleRequest ¶
type BatchCreateInstanceIpRuleRequest struct { // 实例Id InstanceId string `json:"instance_id"` // 单个 IP Ip string `json:"ip"` Body *BatchTransferRuleBody `json:"body,omitempty"` }
BatchCreateInstanceIpRuleRequest Request Object
func (BatchCreateInstanceIpRuleRequest) String ¶
func (o BatchCreateInstanceIpRuleRequest) String() string
type BatchCreateInstanceIpRuleResponse ¶
type BatchCreateInstanceIpRuleResponse struct { // 数量 SuccessNum *int32 `json:"success_num,omitempty"` HttpStatusCode int `json:"-"` }
BatchCreateInstanceIpRuleResponse Response Object
func (BatchCreateInstanceIpRuleResponse) String ¶
func (o BatchCreateInstanceIpRuleResponse) String() string
type BatchDeleteInstanceIpRuleRequest ¶
type BatchDeleteInstanceIpRuleRequest struct { // 实例Id InstanceId string `json:"instance_id"` // 单个 IP Ip string `json:"ip"` Body *BatchIdBody `json:"body,omitempty"` }
BatchDeleteInstanceIpRuleRequest Request Object
func (BatchDeleteInstanceIpRuleRequest) String ¶
func (o BatchDeleteInstanceIpRuleRequest) String() string
type BatchDeleteInstanceIpRuleResponse ¶
type BatchDeleteInstanceIpRuleResponse struct { // 数量 SuccessNum *int32 `json:"success_num,omitempty"` HttpStatusCode int `json:"-"` }
BatchDeleteInstanceIpRuleResponse Response Object
func (BatchDeleteInstanceIpRuleResponse) String ¶
func (o BatchDeleteInstanceIpRuleResponse) String() string
type BatchIdBody ¶
type BatchIdBody struct { // 批量id Ids *[]string `json:"ids,omitempty"` }
BatchIdBody 批量id
func (BatchIdBody) String ¶
func (o BatchIdBody) String() string
type BatchTransferRuleBody ¶
type BatchTransferRuleBody struct { // 批量转发规则 Rules *[]TransferRuleBody `json:"rules,omitempty"` }
BatchTransferRuleBody 批量转发规则
func (BatchTransferRuleBody) String ¶
func (o BatchTransferRuleBody) String() string
type BlackWhiteIpListRequest ¶ added in v0.1.75
type BlackWhiteIpListRequest struct { // 实例id InstanceId string `json:"instance_id"` // 规则类型。black - 黑名单, white - 白名单 Type string `json:"type"` // ip列表 Ips []string `json:"ips"` }
func (BlackWhiteIpListRequest) String ¶ added in v0.1.75
func (o BlackWhiteIpListRequest) String() string
type BlackWhiteIpRequestBody ¶
type BlackWhiteIpRequestBody struct { // 类型。white:白名单,black:黑名单 Type BlackWhiteIpRequestBodyType `json:"type"` // ip列表 IpList []string `json:"ip_list"` }
BlackWhiteIpRequestBody 黑白名单请求体
func (BlackWhiteIpRequestBody) String ¶
func (o BlackWhiteIpRequestBody) String() string
type BlackWhiteIpRequestBodyType ¶
type BlackWhiteIpRequestBodyType struct {
// contains filtered or unexported fields
}
func (BlackWhiteIpRequestBodyType) MarshalJSON ¶
func (c BlackWhiteIpRequestBodyType) MarshalJSON() ([]byte, error)
func (*BlackWhiteIpRequestBodyType) UnmarshalJSON ¶
func (c *BlackWhiteIpRequestBodyType) UnmarshalJSON(b []byte) error
func (BlackWhiteIpRequestBodyType) Value ¶
func (c BlackWhiteIpRequestBodyType) Value() string
type BlackWhiteIpRequestBodyTypeEnum ¶
type BlackWhiteIpRequestBodyTypeEnum struct { WHITE BlackWhiteIpRequestBodyType BLACK BlackWhiteIpRequestBodyType }
func GetBlackWhiteIpRequestBodyTypeEnum ¶
func GetBlackWhiteIpRequestBodyTypeEnum() BlackWhiteIpRequestBodyTypeEnum
type BlockListBlockingList ¶
type BlockListBlockingList struct { // ip地址 Ip string `json:"ip"` // 封堵时间 BlockingTime int64 `json:"blocking_time"` // 预计解封时间 EstimatedUnblockingTime int64 `json:"estimated_unblocking_time"` // 状态。unblocking:解封中;success:成功;failed:失败 Status BlockListBlockingListStatus `json:"status"` }
func (BlockListBlockingList) String ¶
func (o BlockListBlockingList) String() string
type BlockListBlockingListStatus ¶
type BlockListBlockingListStatus struct {
// contains filtered or unexported fields
}
func (BlockListBlockingListStatus) MarshalJSON ¶
func (c BlockListBlockingListStatus) MarshalJSON() ([]byte, error)
func (*BlockListBlockingListStatus) UnmarshalJSON ¶
func (c *BlockListBlockingListStatus) UnmarshalJSON(b []byte) error
func (BlockListBlockingListStatus) Value ¶
func (c BlockListBlockingListStatus) Value() string
type BlockListBlockingListStatusEnum ¶
type BlockListBlockingListStatusEnum struct { FAILED BlockListBlockingListStatus SUCCESS BlockListBlockingListStatus UNBLOCKING BlockListBlockingListStatus }
func GetBlockListBlockingListStatusEnum ¶
func GetBlockListBlockingListStatusEnum() BlockListBlockingListStatusEnum
type Bw ¶
type Bw struct { // 黑名单列表 BlackIpList []string `json:"black_ip_list"` // 白名单列表 WhiteIpList []string `json:"white_ip_list"` }
Bw 黑白名单详情
type CadDomainSwitchRequest ¶ added in v0.1.75
type CadDomainSwitchRequest struct { // 域名id DomainId string `json:"domain_id"` // 是否开启WEB基础防护开关。0 - 开启, 1 - 关闭 WafSwitch int32 `json:"waf_switch"` // 是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关 CcSwitch int32 `json:"cc_switch"` }
func (CadDomainSwitchRequest) String ¶ added in v0.1.75
func (o CadDomainSwitchRequest) String() string
type CertificateBody ¶ added in v0.1.75
type CertificateBody struct { // 操作类型。0 - 上传, 1 - 更换 OpType int32 `json:"op_type"` // 证书名称 CertName string `json:"cert_name"` // 证书文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 CertFile *string `json:"cert_file,omitempty"` // 私钥文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 CertKeyFile *string `json:"cert_key_file,omitempty"` // 域名id DomainId string `json:"domain_id"` }
func (CertificateBody) String ¶ added in v0.1.75
func (o CertificateBody) String() string
type CreateAadDomainRequest ¶ added in v0.1.75
type CreateAadDomainRequest struct {
Body *HostBody `json:"body,omitempty"`
}
CreateAadDomainRequest Request Object
func (CreateAadDomainRequest) String ¶ added in v0.1.75
func (o CreateAadDomainRequest) String() string
type CreateAadDomainResponse ¶ added in v0.1.75
type CreateAadDomainResponse struct { // 高防提供的CNAME地址 Cname *string `json:"cname,omitempty"` // 域名id DomainId *string `json:"domainId,omitempty"` HttpStatusCode int `json:"-"` }
CreateAadDomainResponse Response Object
func (CreateAadDomainResponse) String ¶ added in v0.1.75
func (o CreateAadDomainResponse) String() string
type CreatePolicyRequest ¶
type CreatePolicyRequest struct {
Body *CreatePolicyRequestBody `json:"body,omitempty"`
}
CreatePolicyRequest Request Object
func (CreatePolicyRequest) String ¶
func (o CreatePolicyRequest) String() string
type CreatePolicyRequestBody ¶
type CreatePolicyRequestBody struct { // 策略名 Name string `json:"name"` // 防护包id PackageId string `json:"package_id"` // 描述 Description *string `json:"description,omitempty"` }
CreatePolicyRequestBody 创建策略的请求体
func (CreatePolicyRequestBody) String ¶
func (o CreatePolicyRequestBody) String() string
type CreatePolicyResponse ¶
type CreatePolicyResponse struct { // 策略id Id *string `json:"id,omitempty"` // 策略名 Name *string `json:"name,omitempty"` // 防护包id PackageId *string `json:"package_id,omitempty"` // 描述 Description *string `json:"description,omitempty"` // 清洗阈值 CleanThreshold *int32 `json:"clean_threshold,omitempty"` HttpStatusCode int `json:"-"` }
CreatePolicyResponse Response Object
func (CreatePolicyResponse) String ¶
func (o CreatePolicyResponse) String() string
type DeleteAlarmConfigRequest ¶
type DeleteAlarmConfigRequest struct { }
DeleteAlarmConfigRequest Request Object
func (DeleteAlarmConfigRequest) String ¶
func (o DeleteAlarmConfigRequest) String() string
type DeleteAlarmConfigResponse ¶
type DeleteAlarmConfigResponse struct { // SMN的topic urn TopicUrn *string `json:"topic_urn,omitempty"` HttpStatusCode int `json:"-"` }
DeleteAlarmConfigResponse Response Object
func (DeleteAlarmConfigResponse) String ¶
func (o DeleteAlarmConfigResponse) String() string
type DeleteBlackWhiteIpListRequest ¶ added in v0.1.75
type DeleteBlackWhiteIpListRequest struct {
Body *BlackWhiteIpListRequest `json:"body,omitempty"`
}
DeleteBlackWhiteIpListRequest Request Object
func (DeleteBlackWhiteIpListRequest) String ¶ added in v0.1.75
func (o DeleteBlackWhiteIpListRequest) String() string
type DeleteBlackWhiteIpListResponse ¶ added in v0.1.75
type DeleteBlackWhiteIpListResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteBlackWhiteIpListResponse Response Object
func (DeleteBlackWhiteIpListResponse) String ¶ added in v0.1.75
func (o DeleteBlackWhiteIpListResponse) String() string
type DeletePolicyBlackAndWhiteIpListRequest ¶
type DeletePolicyBlackAndWhiteIpListRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *BlackWhiteIpRequestBody `json:"body,omitempty"` }
DeletePolicyBlackAndWhiteIpListRequest Request Object
func (DeletePolicyBlackAndWhiteIpListRequest) String ¶
func (o DeletePolicyBlackAndWhiteIpListRequest) String() string
type DeletePolicyBlackAndWhiteIpListResponse ¶
type DeletePolicyBlackAndWhiteIpListResponse struct {
HttpStatusCode int `json:"-"`
}
DeletePolicyBlackAndWhiteIpListResponse Response Object
func (DeletePolicyBlackAndWhiteIpListResponse) String ¶
func (o DeletePolicyBlackAndWhiteIpListResponse) String() string
type DeletePolicyRequest ¶
type DeletePolicyRequest struct { // 策略id PolicyId string `json:"policy_id"` }
DeletePolicyRequest Request Object
func (DeletePolicyRequest) String ¶
func (o DeletePolicyRequest) String() string
type DeletePolicyResponse ¶
type DeletePolicyResponse struct {
HttpStatusCode int `json:"-"`
}
DeletePolicyResponse Response Object
func (DeletePolicyResponse) String ¶
func (o DeletePolicyResponse) String() string
type DisassociateIpFromPolicyAndPackageRequest ¶ added in v0.1.117
type DisassociateIpFromPolicyAndPackageRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *IpBindingV3Body `json:"body,omitempty"` }
DisassociateIpFromPolicyAndPackageRequest Request Object
func (DisassociateIpFromPolicyAndPackageRequest) String ¶ added in v0.1.117
func (o DisassociateIpFromPolicyAndPackageRequest) String() string
type DisassociateIpFromPolicyAndPackageResponse ¶ added in v0.1.117
type DisassociateIpFromPolicyAndPackageResponse struct {
HttpStatusCode int `json:"-"`
}
DisassociateIpFromPolicyAndPackageResponse Response Object
func (DisassociateIpFromPolicyAndPackageResponse) String ¶ added in v0.1.117
func (o DisassociateIpFromPolicyAndPackageResponse) String() string
type DisassociateIpFromPolicyRequest ¶
type DisassociateIpFromPolicyRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *IpBindingBody `json:"body,omitempty"` }
DisassociateIpFromPolicyRequest Request Object
func (DisassociateIpFromPolicyRequest) String ¶
func (o DisassociateIpFromPolicyRequest) String() string
type DisassociateIpFromPolicyResponse ¶
type DisassociateIpFromPolicyResponse struct {
HttpStatusCode int `json:"-"`
}
DisassociateIpFromPolicyResponse Response Object
func (DisassociateIpFromPolicyResponse) String ¶
func (o DisassociateIpFromPolicyResponse) String() string
type DomainInfo ¶
type DomainInfo struct { // 域名ID DomainId *string `json:"domain_id,omitempty"` // 域名 DomainName *string `json:"domain_name,omitempty"` // 域名cname Cname *string `json:"cname,omitempty"` // 域名协议 Protocol *[]string `json:"protocol,omitempty"` // 源站类型 RealServerType *int32 `json:"real_server_type,omitempty"` // 源站 RealServers *string `json:"real_servers,omitempty"` // waf防护状态 WafStatus *int32 `json:"waf_status,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
func (DomainInfo) String ¶
func (o DomainInfo) String() string
type DomainRealServerInfo ¶
type DomainRealServerInfo struct { // 源站类型 RealServerType *int32 `json:"real_server_type,omitempty"` // 源站 RealServers *string `json:"real_servers,omitempty"` }
DomainRealServerInfo 域名源站信息
func (DomainRealServerInfo) String ¶
func (o DomainRealServerInfo) String() string
type ExecuteUnblockIpRequest ¶
type ExecuteUnblockIpRequest struct { // 租户id DomainId string `json:"domain_id"` Body *ExecuteUnblockIpRequestBody `json:"body,omitempty"` }
ExecuteUnblockIpRequest Request Object
func (ExecuteUnblockIpRequest) String ¶
func (o ExecuteUnblockIpRequest) String() string
type ExecuteUnblockIpRequestBody ¶
type ExecuteUnblockIpRequestBody struct { // ip地址 Ip string `json:"ip"` // 用于查询IP的封堵时间 BlockingTime *int64 `json:"blocking_time,omitempty"` }
func (ExecuteUnblockIpRequestBody) String ¶
func (o ExecuteUnblockIpRequestBody) String() string
type ExecuteUnblockIpResponse ¶
type ExecuteUnblockIpResponse struct { // 业务错误码 ErrorCode *string `json:"error_code,omitempty"` // 描述信息 Message *string `json:"message,omitempty"` HttpStatusCode int `json:"-"` }
ExecuteUnblockIpResponse Response Object
func (ExecuteUnblockIpResponse) String ¶
func (o ExecuteUnblockIpResponse) String() string
type HostBody ¶ added in v0.1.75
type HostBody struct { // 域名 DomainName string `json:"domain_name"` // 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 EnterpriseProjectId string `json:"enterprise_project_id"` // 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 Vips []string `json:"vips"` // 源站类型。 0 - 源站IP, 1 - 源站域名。 RealServerType int32 `json:"real_server_type"` // HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 PortHttp *[]int32 `json:"port_http,omitempty"` // HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 PortHttps *[]int32 `json:"port_https,omitempty"` // 源站ip/源站域名 RealServer string `json:"real_server"` }
type InstanceInfo ¶
type InstanceInfo struct { // 实例ID InstanceId *string `json:"instance_id,omitempty"` // 实例名 InstanceName *string `json:"instance_name,omitempty"` // 实例IP Ips *[]InstanceIpInfo `json:"ips,omitempty"` // 实例过期时间 ExpireTime *int64 `json:"expire_time,omitempty"` // 业务带宽 ServiceBandwidth *int32 `json:"service_bandwidth,omitempty"` // 实例状态 InstanceStatus *int32 `json:"instance_status,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
func (InstanceInfo) String ¶
func (o InstanceInfo) String() string
type InstanceIpInfo ¶
type InstanceIpInfo struct { // IP ID IpId *string `json:"ip_id,omitempty"` // IP Ip *string `json:"ip,omitempty"` // 保底带宽 BasicBandwidth *int32 `json:"basic_bandwidth,omitempty"` // 弹性带宽 ElasticBandwidth *int32 `json:"elastic_bandwidth,omitempty"` // IP状态 IpStatus *int32 `json:"ip_status,omitempty"` }
func (InstanceIpInfo) String ¶
func (o InstanceIpInfo) String() string
type IpBindingBody ¶
type IpBindingBody struct { // 防护包id PackageId string `json:"package_id"` // 防护ip的id列表 IdList []string `json:"id_list"` }
IpBindingBody ip绑定请求体
func (IpBindingBody) String ¶
func (o IpBindingBody) String() string
type IpBindingV3Body ¶ added in v0.1.117
type IpBindingV3Body struct { // 防护ip列表 IpList []string `json:"ip_list"` }
IpBindingV3Body ip绑定请求体
func (IpBindingV3Body) String ¶ added in v0.1.117
func (o IpBindingV3Body) String() string
type IpStatusDetail ¶
type IpStatusDetail struct { // 封堵时间 BlockTime int64 `json:"block_time"` // 解封时间 UnblockTime int64 `json:"unblock_time"` }
IpStatusDetail 封堵信息
func (IpStatusDetail) String ¶
func (o IpStatusDetail) String() string
type ListBlockIpsRequest ¶
type ListBlockIpsRequest struct { // 租户id DomainId string `json:"domain_id"` }
ListBlockIpsRequest Request Object
func (ListBlockIpsRequest) String ¶
func (o ListBlockIpsRequest) String() string
type ListBlockIpsResponse ¶
type ListBlockIpsResponse struct { // 封堵列表响应体 BlockingList *[]BlockListBlockingList `json:"blocking_list,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
ListBlockIpsResponse Response Object
func (ListBlockIpsResponse) String ¶
func (o ListBlockIpsResponse) String() string
type ListDomainRequest ¶
type ListDomainRequest struct { }
ListDomainRequest Request Object
func (ListDomainRequest) String ¶
func (o ListDomainRequest) String() string
type ListDomainResponse ¶
type ListDomainResponse struct { // 域名总数 Count *int32 `json:"count,omitempty"` // 域名列表 Items *[]DomainInfo `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListDomainResponse Response Object
func (ListDomainResponse) String ¶
func (o ListDomainResponse) String() string
type ListInstanceIdRequest ¶
type ListInstanceIdRequest struct { // 域名ID DomainId string `json:"domain_id"` }
ListInstanceIdRequest Request Object
func (ListInstanceIdRequest) String ¶
func (o ListInstanceIdRequest) String() string
type ListInstanceIdResponse ¶
type ListInstanceIdResponse struct { // 实例ID列表 InstanceIds *[]string `json:"instance_ids,omitempty"` HttpStatusCode int `json:"-"` }
ListInstanceIdResponse Response Object
func (ListInstanceIdResponse) String ¶
func (o ListInstanceIdResponse) String() string
type ListInstanceIpRuleRequest ¶
type ListInstanceIpRuleRequest struct { // 实例Id InstanceId string `json:"instance_id"` // 单个 IP Ip string `json:"ip"` }
ListInstanceIpRuleRequest Request Object
func (ListInstanceIpRuleRequest) String ¶
func (o ListInstanceIpRuleRequest) String() string
type ListInstanceIpRuleResponse ¶
type ListInstanceIpRuleResponse struct { // 转发规则总数 Total *int32 `json:"total,omitempty"` // 转发规则列表 Rules *[]TransferRuleInfo `json:"rules,omitempty"` HttpStatusCode int `json:"-"` }
ListInstanceIpRuleResponse Response Object
func (ListInstanceIpRuleResponse) String ¶
func (o ListInstanceIpRuleResponse) String() string
type ListInstanceRequest ¶
type ListInstanceRequest struct { }
ListInstanceRequest Request Object
func (ListInstanceRequest) String ¶
func (o ListInstanceRequest) String() string
type ListInstanceResponse ¶
type ListInstanceResponse struct { // 实例总数 Count *int32 `json:"count,omitempty"` // 实例 Items *[]InstanceInfo `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListInstanceResponse Response Object
func (ListInstanceResponse) String ¶
func (o ListInstanceResponse) String() string
type ListPackageRequest ¶
type ListPackageRequest struct { }
ListPackageRequest Request Object
func (ListPackageRequest) String ¶
func (o ListPackageRequest) String() string
type ListPackageResponse ¶
type ListPackageResponse struct { // 总数 Total *int32 `json:"total,omitempty"` // 数据 Items *[]PackageResponse `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListPackageResponse Response Object
func (ListPackageResponse) String ¶
func (o ListPackageResponse) String() string
type ListPeakRequest ¶
type ListPeakRequest struct { // 实例Id InstanceId string `json:"instance_id"` // 单个 IP Ip string `json:"ip"` // 开始时间,毫秒时间戳 StartTime string `json:"start_time"` // 结束时间,毫秒时间戳 EndTime string `json:"end_time"` }
ListPeakRequest Request Object
func (ListPeakRequest) String ¶
func (o ListPeakRequest) String() string
type ListPeakResponse ¶
type ListPeakResponse struct { // 攻击峰值 AttackKbpsPeak float32 `json:"attack_kbps_peak,omitempty"` // 流量峰值 InKbpsPeak float32 `json:"in_kbps_peak,omitempty"` // 攻击次数 DdosCount float32 `json:"ddos_count,omitempty"` // 攻击峰值发生时间点 Timestamp float32 `json:"timestamp,omitempty"` // 高防IP Vip *string `json:"vip,omitempty"` HttpStatusCode int `json:"-"` }
ListPeakResponse Response Object
func (ListPeakResponse) String ¶
func (o ListPeakResponse) String() string
type ListPolicyRequest ¶
type ListPolicyRequest struct { // 开始查询的偏移量,默认值:0 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量,默认值:2000 Limit *int32 `json:"limit,omitempty"` // 策略名 PolicyName *string `json:"policy_name,omitempty"` }
ListPolicyRequest Request Object
func (ListPolicyRequest) String ¶
func (o ListPolicyRequest) String() string
type ListPolicyResponse ¶
type ListPolicyResponse struct { // 总数 Total *int32 `json:"total,omitempty"` // 策略列表 Items *[]PolicyResponse `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListPolicyResponse Response Object
func (ListPolicyResponse) String ¶
func (o ListPolicyResponse) String() string
type ListProtectedIpRequest ¶
type ListProtectedIpRequest struct { // 开始查询的偏移量,默认值:0 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量,默认值:2000 Limit *int32 `json:"limit,omitempty"` // 防护包id PackageId *string `json:"package_id,omitempty"` // 策略id PolicyId *string `json:"policy_id,omitempty"` // 防护ip Ip *string `json:"ip,omitempty"` // 本地标签 Tag *string `json:"tag,omitempty"` }
ListProtectedIpRequest Request Object
func (ListProtectedIpRequest) String ¶
func (o ListProtectedIpRequest) String() string
type ListProtectedIpResponse ¶
type ListProtectedIpResponse struct { // 总数 Total *int32 `json:"total,omitempty"` // 防护ip列表 Items *[]ProtectedIpResponse `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListProtectedIpResponse Response Object
func (ListProtectedIpResponse) String ¶
func (o ListProtectedIpResponse) String() string
type ListSourceIpsRequest ¶ added in v0.1.75
type ListSourceIpsRequest struct { }
ListSourceIpsRequest Request Object
func (ListSourceIpsRequest) String ¶ added in v0.1.75
func (o ListSourceIpsRequest) String() string
type ListSourceIpsResponse ¶ added in v0.1.75
type ListSourceIpsResponse struct { // 查询高防回源IP段列表 Ips *[]string `json:"ips,omitempty"` HttpStatusCode int `json:"-"` }
ListSourceIpsResponse Response Object
func (ListSourceIpsResponse) String ¶ added in v0.1.75
func (o ListSourceIpsResponse) String() string
type ListUnblockQuotaStatisticsRequest ¶
type ListUnblockQuotaStatisticsRequest struct { // 租户id DomainId string `json:"domain_id"` }
ListUnblockQuotaStatisticsRequest Request Object
func (ListUnblockQuotaStatisticsRequest) String ¶
func (o ListUnblockQuotaStatisticsRequest) String() string
type ListUnblockQuotaStatisticsResponse ¶
type ListUnblockQuotaStatisticsResponse struct { // 用户类型:common_user , native_protection_user Type *ListUnblockQuotaStatisticsResponseType `json:"type,omitempty"` // 解封总配额 TotalUnblockingQuota *int32 `json:"total_unblocking_quota,omitempty"` // 剩余解封配额 RemainingUnblockingQuota *int32 `json:"remaining_unblocking_quota,omitempty"` // 今日解封配额 UnblockingQuotaToday *int32 `json:"unblocking_quota_today,omitempty"` // 今日剩余解封配额 RemainingUnblockingQuotaToday *int32 `json:"remaining_unblocking_quota_today,omitempty"` HttpStatusCode int `json:"-"` }
ListUnblockQuotaStatisticsResponse Response Object
func (ListUnblockQuotaStatisticsResponse) String ¶
func (o ListUnblockQuotaStatisticsResponse) String() string
type ListUnblockQuotaStatisticsResponseType ¶
type ListUnblockQuotaStatisticsResponseType struct {
// contains filtered or unexported fields
}
func (ListUnblockQuotaStatisticsResponseType) MarshalJSON ¶
func (c ListUnblockQuotaStatisticsResponseType) MarshalJSON() ([]byte, error)
func (*ListUnblockQuotaStatisticsResponseType) UnmarshalJSON ¶
func (c *ListUnblockQuotaStatisticsResponseType) UnmarshalJSON(b []byte) error
func (ListUnblockQuotaStatisticsResponseType) Value ¶
func (c ListUnblockQuotaStatisticsResponseType) Value() string
type ListUnblockQuotaStatisticsResponseTypeEnum ¶
type ListUnblockQuotaStatisticsResponseTypeEnum struct { COMMON_USER ListUnblockQuotaStatisticsResponseType NATIVE_PROTECTION_USER ListUnblockQuotaStatisticsResponseType }
func GetListUnblockQuotaStatisticsResponseTypeEnum ¶
func GetListUnblockQuotaStatisticsResponseTypeEnum() ListUnblockQuotaStatisticsResponseTypeEnum
type ListUnboundProtectedIpRequest ¶
type ListUnboundProtectedIpRequest struct { // 防护包id PackageId string `json:"package_id"` // 开始查询的偏移量,默认值:0 Offset *int32 `json:"offset,omitempty"` // 每页显示的条目数量,默认值:2000 Limit *int32 `json:"limit,omitempty"` }
ListUnboundProtectedIpRequest Request Object
func (ListUnboundProtectedIpRequest) String ¶
func (o ListUnboundProtectedIpRequest) String() string
type ListUnboundProtectedIpResponse ¶
type ListUnboundProtectedIpResponse struct { // 总数 Total *int32 `json:"total,omitempty"` // 防护ip列表 Ips *[]ProtectedIpResponse `json:"ips,omitempty"` HttpStatusCode int `json:"-"` }
ListUnboundProtectedIpResponse Response Object
func (ListUnboundProtectedIpResponse) String ¶
func (o ListUnboundProtectedIpResponse) String() string
type ModifyDomainWebSwitchRequest ¶ added in v0.1.75
type ModifyDomainWebSwitchRequest struct {
Body *CadDomainSwitchRequest `json:"body,omitempty"`
}
ModifyDomainWebSwitchRequest Request Object
func (ModifyDomainWebSwitchRequest) String ¶ added in v0.1.75
func (o ModifyDomainWebSwitchRequest) String() string
type ModifyDomainWebSwitchResponse ¶ added in v0.1.75
type ModifyDomainWebSwitchResponse struct {
HttpStatusCode int `json:"-"`
}
ModifyDomainWebSwitchResponse Response Object
func (ModifyDomainWebSwitchResponse) String ¶ added in v0.1.75
func (o ModifyDomainWebSwitchResponse) String() string
type PackageResponse ¶
type PackageResponse struct { // 防护包id PackageId string `json:"package_id"` // 防护包名 PackageName string `json:"package_name"` // 资源所属region RegionId string `json:"region_id"` // 防护类型 ProtectionType int32 `json:"protection_type"` // 防护包类型。cnad_pro:专业版;cnad_ip:标准版;cnad_ep:铂金版;cnad_full_high:全力防高级版;cnad_vic:按需版;cnad_intl_ep:国际站铂金版 InstanceType PackageResponseInstanceType `json:"instance_type"` // 资源id ResourceId string `json:"resource_id"` // 倒计时相关信息 CountDownCode *string `json:"count_down_code,omitempty"` // 倒计时相关信息 CountDownInfos *string `json:"count_down_infos,omitempty"` // 倒计时相关信息 CountDownTips *string `json:"count_down_tips,omitempty"` // 订单id OrderId *string `json:"order_id,omitempty"` // 续费用的id SubscriptionId *string `json:"subscription_id,omitempty"` // ip数 IpNum *int32 `json:"ip_num,omitempty"` // 当前IP数 IpNumNow *int32 `json:"ip_num_now,omitempty"` // 当前防护次数 ProtectionNumNow *int32 `json:"protection_num_now,omitempty"` // 防护次数,9999为无限次 ProtectionNum *int32 `json:"protection_num,omitempty"` // 保底带宽 BasicBandwidth *int32 `json:"basic_bandwidth,omitempty"` // 弹性带宽 ElasticBandwidth *int32 `json:"elastic_bandwidth,omitempty"` // 业务带宽 ServiceBandwidth *int32 `json:"service_bandwidth,omitempty"` // 回源带宽 CleanBandwidth *int32 `json:"clean_bandwidth,omitempty"` // 策略模板数 PolicyNum int32 `json:"policy_num"` // 是否旧防护包(旧防护包不支持升级规格),默认不传为否 IsOld *bool `json:"is_old,omitempty"` // 专业版铂金版合并之后购买的专业版和铂金版均标识为true NewFlag *bool `json:"new_flag,omitempty"` // 创建时间 CreateTime int64 `json:"create_time"` }
PackageResponse 包列表响应体
func (PackageResponse) String ¶
func (o PackageResponse) String() string
type PackageResponseInstanceType ¶
type PackageResponseInstanceType struct {
// contains filtered or unexported fields
}
func (PackageResponseInstanceType) MarshalJSON ¶
func (c PackageResponseInstanceType) MarshalJSON() ([]byte, error)
func (*PackageResponseInstanceType) UnmarshalJSON ¶
func (c *PackageResponseInstanceType) UnmarshalJSON(b []byte) error
func (PackageResponseInstanceType) Value ¶
func (c PackageResponseInstanceType) Value() string
type PackageResponseInstanceTypeEnum ¶
type PackageResponseInstanceTypeEnum struct { CNAD_PRO PackageResponseInstanceType CNAD_IP PackageResponseInstanceType CNAD_EP PackageResponseInstanceType CNAD_FULL_HIGH PackageResponseInstanceType CNAD_VIC PackageResponseInstanceType CNAD_INTL_EP PackageResponseInstanceType }
func GetPackageResponseInstanceTypeEnum ¶
func GetPackageResponseInstanceTypeEnum() PackageResponseInstanceTypeEnum
type PolicyResponse ¶
type PolicyResponse struct { // id Id string `json:"id"` // 防护包id PackageId string `json:"package_id"` // 防护包名 PackageName string `json:"package_name"` // 策略名 Name string `json:"name"` // 描述 Description string `json:"description"` // 所属region的id Region string `json:"region"` // 清洗阈值 CleanThreshold int32 `json:"clean_threshold"` // 防护ip数 NumProtectedIp int32 `json:"num_protected_ip"` }
PolicyResponse 策略响应
func (PolicyResponse) String ¶
func (o PolicyResponse) String() string
type PopPolicy ¶
type PopPolicy struct { // 位置封禁列表 BlockLocation []string `json:"block_location"` // 协议封禁列表 BlockProtocol []string `json:"block_protocol"` BwList *Bw `json:"bw_list"` // 是否开启连接防护 ConnectionProtection bool `json:"connection_protection"` // 连接防护列表 ConnectionProtectionList []string `json:"connection_protection_list"` // 指纹数 FingerprintCount int32 `json:"fingerprint_count"` // 端口封禁数 PortBlockCount int32 `json:"port_block_count"` // 水印数 WatermarkCount int32 `json:"watermark_count"` // 是否存在流量 IfExistTraffic bool `json:"if_exist_traffic"` // 固定值ALL Pop PopPolicyPop `json:"pop"` }
PopPolicy 策略阈值详情
type PopPolicyPop ¶
type PopPolicyPop struct {
// contains filtered or unexported fields
}
func (PopPolicyPop) MarshalJSON ¶
func (c PopPolicyPop) MarshalJSON() ([]byte, error)
func (*PopPolicyPop) UnmarshalJSON ¶
func (c *PopPolicyPop) UnmarshalJSON(b []byte) error
func (PopPolicyPop) Value ¶
func (c PopPolicyPop) Value() string
type PopPolicyPopEnum ¶
type PopPolicyPopEnum struct {
ALL PopPolicyPop
}
func GetPopPolicyPopEnum ¶
func GetPopPolicyPopEnum() PopPolicyPopEnum
type ProtectedIpResponse ¶
type ProtectedIpResponse struct { // 防护IP的Id Id string `json:"id"` // 防护IP Ip string `json:"ip"` // 类型。VPN:VPN;NAT:NAT;VIP:VIP;CCI:CCI;EIP:弹性公网IP;ELB:弹性负载均衡;REROUTING_IP:REROUTING_IP;SubEni:SubEni;NetInterFace:NetInterFace; Type ProtectedIpResponseType `json:"type"` // 名字 Name *string `json:"name,omitempty"` // 状态:0 - 正常, 1 - 清洗中, 2 - 黑洞中 Status int32 `json:"status"` StatusDetail *IpStatusDetail `json:"status_detail,omitempty"` // 策略名 PolicyName string `json:"policy_name"` // 所属region Region string `json:"region"` // 防护包id PackageId string `json:"package_id"` // 防护包名 PackageName string `json:"package_name"` // TMS标签 Tags *string `json:"tags,omitempty"` // 本地标签 Tag *string `json:"tag,omitempty"` // 默认false,表示是否转售版的IP,不需要展示策略和报表 IsResale bool `json:"is_resale"` // package_version。cnad_pro:专业版;cnad_ip:标准版;cnad_ep:铂金版;cnad_full_high:全力防高级版;cnad_vic:按需版;cnad_intl_ep:国际站铂金版 PackageVersion ProtectedIpResponsePackageVersion `json:"package_version"` }
ProtectedIpResponse 防护ip列表
func (ProtectedIpResponse) String ¶
func (o ProtectedIpResponse) String() string
type ProtectedIpResponsePackageVersion ¶
type ProtectedIpResponsePackageVersion struct {
// contains filtered or unexported fields
}
func (ProtectedIpResponsePackageVersion) MarshalJSON ¶
func (c ProtectedIpResponsePackageVersion) MarshalJSON() ([]byte, error)
func (*ProtectedIpResponsePackageVersion) UnmarshalJSON ¶
func (c *ProtectedIpResponsePackageVersion) UnmarshalJSON(b []byte) error
func (ProtectedIpResponsePackageVersion) Value ¶
func (c ProtectedIpResponsePackageVersion) Value() string
type ProtectedIpResponsePackageVersionEnum ¶
type ProtectedIpResponsePackageVersionEnum struct { CNAD_PRO ProtectedIpResponsePackageVersion CNAD_IP ProtectedIpResponsePackageVersion CNAD_EP ProtectedIpResponsePackageVersion CNAD_FULL_HIGH ProtectedIpResponsePackageVersion CNAD_VIC ProtectedIpResponsePackageVersion CNAD_INTL_EP ProtectedIpResponsePackageVersion }
func GetProtectedIpResponsePackageVersionEnum ¶
func GetProtectedIpResponsePackageVersionEnum() ProtectedIpResponsePackageVersionEnum
type ProtectedIpResponseType ¶
type ProtectedIpResponseType struct {
// contains filtered or unexported fields
}
func (ProtectedIpResponseType) MarshalJSON ¶
func (c ProtectedIpResponseType) MarshalJSON() ([]byte, error)
func (*ProtectedIpResponseType) UnmarshalJSON ¶
func (c *ProtectedIpResponseType) UnmarshalJSON(b []byte) error
func (ProtectedIpResponseType) Value ¶
func (c ProtectedIpResponseType) Value() string
type ProtectedIpResponseTypeEnum ¶
type ProtectedIpResponseTypeEnum struct { VPN ProtectedIpResponseType NAT ProtectedIpResponseType VIP ProtectedIpResponseType CCI ProtectedIpResponseType EIP ProtectedIpResponseType ELB ProtectedIpResponseType REROUTING_IP ProtectedIpResponseType SUB_ENI ProtectedIpResponseType NET_INTER_FACE ProtectedIpResponseType }
func GetProtectedIpResponseTypeEnum ¶
func GetProtectedIpResponseTypeEnum() ProtectedIpResponseTypeEnum
type SetCertForDomainRequest ¶ added in v0.1.79
type SetCertForDomainRequest struct {
Body *CertificateBody `json:"body,omitempty"`
}
SetCertForDomainRequest Request Object
func (SetCertForDomainRequest) String ¶ added in v0.1.79
func (o SetCertForDomainRequest) String() string
type SetCertForDomainResponse ¶ added in v0.1.79
type SetCertForDomainResponse struct {
HttpStatusCode int `json:"-"`
}
SetCertForDomainResponse Response Object
func (SetCertForDomainResponse) String ¶ added in v0.1.79
func (o SetCertForDomainResponse) String() string
type ShowAlarmConfigRequest ¶
type ShowAlarmConfigRequest struct { }
ShowAlarmConfigRequest Request Object
func (ShowAlarmConfigRequest) String ¶
func (o ShowAlarmConfigRequest) String() string
type ShowAlarmConfigResponse ¶
type ShowAlarmConfigResponse struct { // SMN的topic urn TopicUrn *string `json:"topic_urn,omitempty"` HttpStatusCode int `json:"-"` }
ShowAlarmConfigResponse Response Object
func (ShowAlarmConfigResponse) String ¶
func (o ShowAlarmConfigResponse) String() string
type ShowBlockStatisticsRequest ¶
type ShowBlockStatisticsRequest struct { // 租户id DomainId string `json:"domain_id"` }
ShowBlockStatisticsRequest Request Object
func (ShowBlockStatisticsRequest) String ¶
func (o ShowBlockStatisticsRequest) String() string
type ShowBlockStatisticsResponse ¶
type ShowBlockStatisticsResponse struct { // 总解封次数 TotalUnblockingTimes *int32 `json:"total_unblocking_times,omitempty"` // 人工解封次数 ManualUnblockingTimes *int32 `json:"manual_unblocking_times,omitempty"` // 自动解封次数 AutomaticUnblockingTimes *int32 `json:"automatic_unblocking_times,omitempty"` // 当前封堵Ip数 CurrentBlockedIpNumbers *int32 `json:"current_blocked_ip_numbers,omitempty"` HttpStatusCode int `json:"-"` }
ShowBlockStatisticsResponse Response Object
func (ShowBlockStatisticsResponse) String ¶
func (o ShowBlockStatisticsResponse) String() string
type ShowPolicyRequest ¶
type ShowPolicyRequest struct { // 策略id PolicyId string `json:"policy_id"` }
ShowPolicyRequest Request Object
func (ShowPolicyRequest) String ¶
func (o ShowPolicyRequest) String() string
type ShowPolicyResponse ¶
type ShowPolicyResponse struct { // 策略id Id *string `json:"id,omitempty"` // 防护包id PackageId *string `json:"package_id,omitempty"` // 策略名 Name *string `json:"name,omitempty"` // 清洗阈值 CleanThreshold *int32 `json:"clean_threshold,omitempty"` PopPolicy *PopPolicy `json:"pop_policy,omitempty"` HttpStatusCode int `json:"-"` }
ShowPolicyResponse Response Object
func (ShowPolicyResponse) String ¶
func (o ShowPolicyResponse) String() string
type ShowUnblockRecordRequest ¶
type ShowUnblockRecordRequest struct { // 租户id DomainId string `json:"domain_id"` // 开始时间 StartTime int64 `json:"start_time"` // 结束时间 EndTime int64 `json:"end_time"` }
ShowUnblockRecordRequest Request Object
func (ShowUnblockRecordRequest) String ¶
func (o ShowUnblockRecordRequest) String() string
type ShowUnblockRecordResponse ¶
type ShowUnblockRecordResponse struct { // 解封记录 UnblockRecord *[]UnblockRecordResponseUnblockRecord `json:"unblock_record,omitempty"` // 总数 Total *int32 `json:"total,omitempty"` // 租户id DomainId *string `json:"domain_id,omitempty"` HttpStatusCode int `json:"-"` }
ShowUnblockRecordResponse Response Object
func (ShowUnblockRecordResponse) String ¶
func (o ShowUnblockRecordResponse) String() string
type TransferRuleBody ¶
type TransferRuleBody struct { // 转发协议,tcp或udp ForwardProtocol *string `json:"forward_protocol,omitempty"` // 转发端口 ForwardPort *int32 `json:"forward_port,omitempty"` // 源站端口 SourcePort *int32 `json:"source_port,omitempty"` // 源站IP,多个IP用逗号隔开,限制20个IP SourceIp *string `json:"source_ip,omitempty"` }
func (TransferRuleBody) String ¶
func (o TransferRuleBody) String() string
type TransferRuleInfo ¶
type TransferRuleInfo struct { // 转发规则名ID RuleId *string `json:"rule_id,omitempty"` // 转发协议,tcp或udp ForwardProtocol *string `json:"forward_protocol,omitempty"` // 转发端口 ForwardPort *int32 `json:"forward_port,omitempty"` // 源站端口 SourcePort *int32 `json:"source_port,omitempty"` // LVS转发规则 LbMethod *string `json:"lb_method,omitempty"` // 源站IP,多个IP用逗号隔开,限制20个IP SourceIp *string `json:"source_ip,omitempty"` // 源站状态 1 正常,2 异常 Status *int32 `json:"status,omitempty"` }
func (TransferRuleInfo) String ¶
func (o TransferRuleInfo) String() string
type UnblockRecordResponseUnblockRecord ¶
type UnblockRecordResponseUnblockRecord struct { // ip地址 Ip *string `json:"ip,omitempty"` // 执行者 Executor *string `json:"executor,omitempty"` // 封堵id BlockId *int64 `json:"block_id,omitempty"` // 封堵时间 BlockingTime *int64 `json:"blocking_time,omitempty"` // 解封时间 UnblockingTime *int64 `json:"unblocking_time,omitempty"` // 解封类型。manual:人工;automatic:自动 UnblockType *UnblockRecordResponseUnblockRecordUnblockType `json:"unblock_type,omitempty"` // 状态。unblocking:解封中;success:成功;failed:失败 Status *UnblockRecordResponseUnblockRecordStatus `json:"status,omitempty"` // 时间 SortTime *int64 `json:"sort_time,omitempty"` }
func (UnblockRecordResponseUnblockRecord) String ¶
func (o UnblockRecordResponseUnblockRecord) String() string
type UnblockRecordResponseUnblockRecordStatus ¶
type UnblockRecordResponseUnblockRecordStatus struct {
// contains filtered or unexported fields
}
func (UnblockRecordResponseUnblockRecordStatus) MarshalJSON ¶
func (c UnblockRecordResponseUnblockRecordStatus) MarshalJSON() ([]byte, error)
func (*UnblockRecordResponseUnblockRecordStatus) UnmarshalJSON ¶
func (c *UnblockRecordResponseUnblockRecordStatus) UnmarshalJSON(b []byte) error
func (UnblockRecordResponseUnblockRecordStatus) Value ¶
func (c UnblockRecordResponseUnblockRecordStatus) Value() string
type UnblockRecordResponseUnblockRecordStatusEnum ¶
type UnblockRecordResponseUnblockRecordStatusEnum struct { UNBLOCKING UnblockRecordResponseUnblockRecordStatus SUCCESS UnblockRecordResponseUnblockRecordStatus FAILED UnblockRecordResponseUnblockRecordStatus }
func GetUnblockRecordResponseUnblockRecordStatusEnum ¶
func GetUnblockRecordResponseUnblockRecordStatusEnum() UnblockRecordResponseUnblockRecordStatusEnum
type UnblockRecordResponseUnblockRecordUnblockType ¶
type UnblockRecordResponseUnblockRecordUnblockType struct {
// contains filtered or unexported fields
}
func (UnblockRecordResponseUnblockRecordUnblockType) MarshalJSON ¶
func (c UnblockRecordResponseUnblockRecordUnblockType) MarshalJSON() ([]byte, error)
func (*UnblockRecordResponseUnblockRecordUnblockType) UnmarshalJSON ¶
func (c *UnblockRecordResponseUnblockRecordUnblockType) UnmarshalJSON(b []byte) error
func (UnblockRecordResponseUnblockRecordUnblockType) Value ¶
func (c UnblockRecordResponseUnblockRecordUnblockType) Value() string
type UnblockRecordResponseUnblockRecordUnblockTypeEnum ¶
type UnblockRecordResponseUnblockRecordUnblockTypeEnum struct { MANUAL UnblockRecordResponseUnblockRecordUnblockType AUTOMATIC UnblockRecordResponseUnblockRecordUnblockType }
func GetUnblockRecordResponseUnblockRecordUnblockTypeEnum ¶
func GetUnblockRecordResponseUnblockRecordUnblockTypeEnum() UnblockRecordResponseUnblockRecordUnblockTypeEnum
type UpdateAlarmConfigRequest ¶
type UpdateAlarmConfigRequest struct {
Body *AlarmBody `json:"body,omitempty"`
}
UpdateAlarmConfigRequest Request Object
func (UpdateAlarmConfigRequest) String ¶
func (o UpdateAlarmConfigRequest) String() string
type UpdateAlarmConfigResponse ¶
type UpdateAlarmConfigResponse struct { // SMN的topic urn TopicUrn *string `json:"topic_urn,omitempty"` HttpStatusCode int `json:"-"` }
UpdateAlarmConfigResponse Response Object
func (UpdateAlarmConfigResponse) String ¶
func (o UpdateAlarmConfigResponse) String() string
type UpdateDomainRequest ¶
type UpdateDomainRequest struct { // 域名ID DomainId string `json:"domain_id"` Body *DomainRealServerInfo `json:"body,omitempty"` }
UpdateDomainRequest Request Object
func (UpdateDomainRequest) String ¶
func (o UpdateDomainRequest) String() string
type UpdateDomainResponse ¶
type UpdateDomainResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateDomainResponse Response Object
func (UpdateDomainResponse) String ¶
func (o UpdateDomainResponse) String() string
type UpdateInstanceIpRuleRequest ¶
type UpdateInstanceIpRuleRequest struct { // 实例Id InstanceId string `json:"instance_id"` // 单个 IP Ip string `json:"ip"` // 规则ID RuleId string `json:"rule_id"` Body *TransferRuleBody `json:"body,omitempty"` }
UpdateInstanceIpRuleRequest Request Object
func (UpdateInstanceIpRuleRequest) String ¶
func (o UpdateInstanceIpRuleRequest) String() string
type UpdateInstanceIpRuleResponse ¶
type UpdateInstanceIpRuleResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateInstanceIpRuleResponse Response Object
func (UpdateInstanceIpRuleResponse) String ¶
func (o UpdateInstanceIpRuleResponse) String() string
type UpdatePackageIpRequest ¶
type UpdatePackageIpRequest struct { // 防护包id PackageId string `json:"package_id"` Body *UpdatePackageIpRequestBody `json:"body,omitempty"` }
UpdatePackageIpRequest Request Object
func (UpdatePackageIpRequest) String ¶
func (o UpdatePackageIpRequest) String() string
type UpdatePackageIpRequestBody ¶
type UpdatePackageIpRequestBody struct { // 全量防护ip列表 ProtectedIpList []UpdateProtectedIpInPolicyBody `json:"protected_ip_list"` }
UpdatePackageIpRequestBody 更新全量防护对象的请求体
func (UpdatePackageIpRequestBody) String ¶
func (o UpdatePackageIpRequestBody) String() string
type UpdatePackageIpResponse ¶
type UpdatePackageIpResponse struct {
HttpStatusCode int `json:"-"`
}
UpdatePackageIpResponse Response Object
func (UpdatePackageIpResponse) String ¶
func (o UpdatePackageIpResponse) String() string
type UpdatePackageNameRequest ¶
type UpdatePackageNameRequest struct { // 防护包id PackageId string `json:"package_id"` Body *UpdatePackageNameRequestBody `json:"body,omitempty"` }
UpdatePackageNameRequest Request Object
func (UpdatePackageNameRequest) String ¶
func (o UpdatePackageNameRequest) String() string
type UpdatePackageNameRequestBody ¶
type UpdatePackageNameRequestBody struct { // 名字 Name string `json:"name"` }
UpdatePackageNameRequestBody 更新防护包名的请求体
func (UpdatePackageNameRequestBody) String ¶
func (o UpdatePackageNameRequestBody) String() string
type UpdatePackageNameResponse ¶
type UpdatePackageNameResponse struct {
HttpStatusCode int `json:"-"`
}
UpdatePackageNameResponse Response Object
func (UpdatePackageNameResponse) String ¶
func (o UpdatePackageNameResponse) String() string
type UpdatePolicyRequest ¶
type UpdatePolicyRequest struct { // 策略id PolicyId string `json:"policy_id"` Body *UpdatePolicyRequestBody `json:"body,omitempty"` }
UpdatePolicyRequest Request Object
func (UpdatePolicyRequest) String ¶
func (o UpdatePolicyRequest) String() string
type UpdatePolicyRequestBody ¶
type UpdatePolicyRequestBody struct { // 策略名 Name *string `json:"name,omitempty"` // 清洗阈值 Threshold *int32 `json:"threshold,omitempty"` // 描述 Description *string `json:"description,omitempty"` // udp协议封禁。block:封禁,unblock:不封禁 Udp *UpdatePolicyRequestBodyUdp `json:"udp,omitempty"` }
UpdatePolicyRequestBody 更新策略的请求体
func (UpdatePolicyRequestBody) String ¶
func (o UpdatePolicyRequestBody) String() string
type UpdatePolicyRequestBodyUdp ¶
type UpdatePolicyRequestBodyUdp struct {
// contains filtered or unexported fields
}
func (UpdatePolicyRequestBodyUdp) MarshalJSON ¶
func (c UpdatePolicyRequestBodyUdp) MarshalJSON() ([]byte, error)
func (*UpdatePolicyRequestBodyUdp) UnmarshalJSON ¶
func (c *UpdatePolicyRequestBodyUdp) UnmarshalJSON(b []byte) error
func (UpdatePolicyRequestBodyUdp) Value ¶
func (c UpdatePolicyRequestBodyUdp) Value() string
type UpdatePolicyRequestBodyUdpEnum ¶
type UpdatePolicyRequestBodyUdpEnum struct { BLOCK UpdatePolicyRequestBodyUdp UNBLOCK UpdatePolicyRequestBodyUdp }
func GetUpdatePolicyRequestBodyUdpEnum ¶
func GetUpdatePolicyRequestBodyUdpEnum() UpdatePolicyRequestBodyUdpEnum
type UpdatePolicyResponse ¶
type UpdatePolicyResponse struct {
HttpStatusCode int `json:"-"`
}
UpdatePolicyResponse Response Object
func (UpdatePolicyResponse) String ¶
func (o UpdatePolicyResponse) String() string
type UpdateProtectedIpBody ¶
type UpdateProtectedIpBody struct { // 防护ip的id Id string `json:"id"` // 本地标签 Tag string `json:"tag"` }
UpdateProtectedIpBody 更新防护ip tag请求体
func (UpdateProtectedIpBody) String ¶
func (o UpdateProtectedIpBody) String() string
type UpdateProtectedIpInPolicyBody ¶
type UpdateProtectedIpInPolicyBody struct { // 防护ip的id Id string `json:"id"` // 防护ip Ip string `json:"ip"` // 类型。VPN:VPN;NAT:NAT;VIP:VIP;CCI:CCI;EIP:弹性公网IP;ELB:弹性负载均衡;REROUTING_IP:REROUTING_IP;SubEni:SubEni;NetInterFace:NetInterFace; Type UpdateProtectedIpInPolicyBodyType `json:"type"` // 名字 Name *string `json:"name,omitempty"` }
UpdateProtectedIpInPolicyBody 更新全量防护对象的请求体
func (UpdateProtectedIpInPolicyBody) String ¶
func (o UpdateProtectedIpInPolicyBody) String() string
type UpdateProtectedIpInPolicyBodyType ¶
type UpdateProtectedIpInPolicyBodyType struct {
// contains filtered or unexported fields
}
func (UpdateProtectedIpInPolicyBodyType) MarshalJSON ¶
func (c UpdateProtectedIpInPolicyBodyType) MarshalJSON() ([]byte, error)
func (*UpdateProtectedIpInPolicyBodyType) UnmarshalJSON ¶
func (c *UpdateProtectedIpInPolicyBodyType) UnmarshalJSON(b []byte) error
func (UpdateProtectedIpInPolicyBodyType) Value ¶
func (c UpdateProtectedIpInPolicyBodyType) Value() string
type UpdateProtectedIpInPolicyBodyTypeEnum ¶
type UpdateProtectedIpInPolicyBodyTypeEnum struct { VPN UpdateProtectedIpInPolicyBodyType NAT UpdateProtectedIpInPolicyBodyType VIP UpdateProtectedIpInPolicyBodyType CCI UpdateProtectedIpInPolicyBodyType EIP UpdateProtectedIpInPolicyBodyType ELB UpdateProtectedIpInPolicyBodyType REROUTING_IP UpdateProtectedIpInPolicyBodyType SUB_ENI UpdateProtectedIpInPolicyBodyType NET_INTER_FACE UpdateProtectedIpInPolicyBodyType }
func GetUpdateProtectedIpInPolicyBodyTypeEnum ¶
func GetUpdateProtectedIpInPolicyBodyTypeEnum() UpdateProtectedIpInPolicyBodyTypeEnum
type UpdateTagForProtectedIpRequest ¶
type UpdateTagForProtectedIpRequest struct {
Body *UpdateProtectedIpBody `json:"body,omitempty"`
}
UpdateTagForProtectedIpRequest Request Object
func (UpdateTagForProtectedIpRequest) String ¶
func (o UpdateTagForProtectedIpRequest) String() string
type UpdateTagForProtectedIpResponse ¶
type UpdateTagForProtectedIpResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateTagForProtectedIpResponse Response Object
func (UpdateTagForProtectedIpResponse) String ¶
func (o UpdateTagForProtectedIpResponse) String() string
Source Files ¶
- model_add_black_white_ip_list_request.go
- model_add_black_white_ip_list_response.go
- model_add_policy_black_and_white_ip_list_request.go
- model_add_policy_black_and_white_ip_list_response.go
- model_alarm_body.go
- model_associate_ip_to_policy_and_package_request.go
- model_associate_ip_to_policy_and_package_response.go
- model_associate_ip_to_policy_request.go
- model_associate_ip_to_policy_response.go
- model_batch_create_instance_ip_rule_request.go
- model_batch_create_instance_ip_rule_response.go
- model_batch_delete_instance_ip_rule_request.go
- model_batch_delete_instance_ip_rule_response.go
- model_batch_id_body.go
- model_batch_transfer_rule_body.go
- model_black_white_ip_list_request.go
- model_black_white_ip_request_body.go
- model_block_list_blocking_list.go
- model_bw.go
- model_cad_domain_switch_request.go
- model_certificate_body.go
- model_create_aad_domain_request.go
- model_create_aad_domain_response.go
- model_create_policy_request.go
- model_create_policy_request_body.go
- model_create_policy_response.go
- model_delete_alarm_config_request.go
- model_delete_alarm_config_response.go
- model_delete_black_white_ip_list_request.go
- model_delete_black_white_ip_list_response.go
- model_delete_policy_black_and_white_ip_list_request.go
- model_delete_policy_black_and_white_ip_list_response.go
- model_delete_policy_request.go
- model_delete_policy_response.go
- model_disassociate_ip_from_policy_and_package_request.go
- model_disassociate_ip_from_policy_and_package_response.go
- model_disassociate_ip_from_policy_request.go
- model_disassociate_ip_from_policy_response.go
- model_domain_info.go
- model_domain_real_server_info.go
- model_execute_unblock_ip_request.go
- model_execute_unblock_ip_request_body.go
- model_execute_unblock_ip_response.go
- model_host_body.go
- model_instance_info.go
- model_instance_ip_info.go
- model_ip_binding_body.go
- model_ip_binding_v3_body.go
- model_ip_status_detail.go
- model_list_block_ips_request.go
- model_list_block_ips_response.go
- model_list_domain_request.go
- model_list_domain_response.go
- model_list_instance_id_request.go
- model_list_instance_id_response.go
- model_list_instance_ip_rule_request.go
- model_list_instance_ip_rule_response.go
- model_list_instance_request.go
- model_list_instance_response.go
- model_list_package_request.go
- model_list_package_response.go
- model_list_peak_request.go
- model_list_peak_response.go
- model_list_policy_request.go
- model_list_policy_response.go
- model_list_protected_ip_request.go
- model_list_protected_ip_response.go
- model_list_source_ips_request.go
- model_list_source_ips_response.go
- model_list_unblock_quota_statistics_request.go
- model_list_unblock_quota_statistics_response.go
- model_list_unbound_protected_ip_request.go
- model_list_unbound_protected_ip_response.go
- model_modify_domain_web_switch_request.go
- model_modify_domain_web_switch_response.go
- model_package_response.go
- model_policy_response.go
- model_pop_policy.go
- model_protected_ip_response.go
- model_set_cert_for_domain_request.go
- model_set_cert_for_domain_response.go
- model_show_alarm_config_request.go
- model_show_alarm_config_response.go
- model_show_block_statistics_request.go
- model_show_block_statistics_response.go
- model_show_policy_request.go
- model_show_policy_response.go
- model_show_unblock_record_request.go
- model_show_unblock_record_response.go
- model_transfer_rule_body.go
- model_transfer_rule_info.go
- model_unblock_record_response_unblock_record.go
- model_update_alarm_config_request.go
- model_update_alarm_config_response.go
- model_update_domain_request.go
- model_update_domain_response.go
- model_update_instance_ip_rule_request.go
- model_update_instance_ip_rule_response.go
- model_update_package_ip_request.go
- model_update_package_ip_request_body.go
- model_update_package_ip_response.go
- model_update_package_name_request.go
- model_update_package_name_request_body.go
- model_update_package_name_response.go
- model_update_policy_request.go
- model_update_policy_request_body.go
- model_update_policy_response.go
- model_update_protected_ip_body.go
- model_update_protected_ip_in_policy_body.go
- model_update_tag_for_protected_ip_request.go
- model_update_tag_for_protected_ip_response.go