Documentation
¶
Index ¶
- Constants
- type AcListsData
- type AssociatedInstanceInfo
- type CfwNatDnatRule
- type Client
- func (c *Client) CreateAcRules(request *CreateAcRulesRequest) (response *CreateAcRulesResponse, err error)
- func (c *Client) CreateSecurityGroupApiRules(request *CreateSecurityGroupApiRulesRequest) (response *CreateSecurityGroupApiRulesResponse, err error)
- func (c *Client) DeleteAcRule(request *DeleteAcRuleRequest) (response *DeleteAcRuleResponse, err error)
- func (c *Client) DeleteAllAccessControlRule(request *DeleteAllAccessControlRuleRequest) (response *DeleteAllAccessControlRuleResponse, err error)
- func (c *Client) DeleteSecurityGroupAllRule(request *DeleteSecurityGroupAllRuleRequest) (response *DeleteSecurityGroupAllRuleResponse, err error)
- func (c *Client) DeleteSecurityGroupRule(request *DeleteSecurityGroupRuleRequest) (response *DeleteSecurityGroupRuleResponse, err error)
- func (c *Client) DescribeAcLists(request *DescribeAcListsRequest) (response *DescribeAcListsResponse, err error)
- func (c *Client) DescribeAssociatedInstanceList(request *DescribeAssociatedInstanceListRequest) (response *DescribeAssociatedInstanceListResponse, err error)
- func (c *Client) DescribeCfwEips(request *DescribeCfwEipsRequest) (response *DescribeCfwEipsResponse, err error)
- func (c *Client) DescribeNatRuleOverview(request *DescribeNatRuleOverviewRequest) (response *DescribeNatRuleOverviewResponse, err error)
- func (c *Client) DescribeRuleOverview(request *DescribeRuleOverviewRequest) (response *DescribeRuleOverviewResponse, err error)
- func (c *Client) DescribeSecurityGroupList(request *DescribeSecurityGroupListRequest) (response *DescribeSecurityGroupListResponse, err error)
- func (c *Client) DescribeSwitchLists(request *DescribeSwitchListsRequest) (response *DescribeSwitchListsResponse, err error)
- func (c *Client) DescribeSyncAssetStatus(request *DescribeSyncAssetStatusRequest) (response *DescribeSyncAssetStatusResponse, err error)
- func (c *Client) DescribeTableStatus(request *DescribeTableStatusRequest) (response *DescribeTableStatusResponse, err error)
- func (c *Client) DescribeVpcRuleOverview(request *DescribeVpcRuleOverviewRequest) (response *DescribeVpcRuleOverviewResponse, err error)
- func (c *Client) ExpandCfwVertical(request *ExpandCfwVerticalRequest) (response *ExpandCfwVerticalResponse, err error)
- func (c *Client) ModifyAcRule(request *ModifyAcRuleRequest) (response *ModifyAcRuleResponse, err error)
- func (c *Client) ModifyAllRuleStatus(request *ModifyAllRuleStatusRequest) (response *ModifyAllRuleStatusResponse, err error)
- func (c *Client) ModifyAllSwitchStatus(request *ModifyAllSwitchStatusRequest) (response *ModifyAllSwitchStatusResponse, err error)
- func (c *Client) ModifyBlockIgnoreList(request *ModifyBlockIgnoreListRequest) (response *ModifyBlockIgnoreListResponse, err error)
- func (c *Client) ModifyItemSwitchStatus(request *ModifyItemSwitchStatusRequest) (response *ModifyItemSwitchStatusResponse, err error)
- func (c *Client) ModifySecurityGroupAllRuleStatus(request *ModifySecurityGroupAllRuleStatusRequest) (response *ModifySecurityGroupAllRuleStatusResponse, err error)
- func (c *Client) ModifySequenceRules(request *ModifySequenceRulesRequest) (response *ModifySequenceRulesResponse, err error)
- func (c *Client) ModifyTableStatus(request *ModifyTableStatusRequest) (response *ModifyTableStatusResponse, err error)
- func (c *Client) RunSyncAsset(request *RunSyncAssetRequest) (response *RunSyncAssetResponse, err error)
- func (c *Client) SetNatFwDnatRule(request *SetNatFwDnatRuleRequest) (response *SetNatFwDnatRuleResponse, err error)
- type CreateAcRulesRequest
- type CreateAcRulesResponse
- type CreateSecurityGroupApiRulesRequest
- type CreateSecurityGroupApiRulesResponse
- type DeleteAcRuleRequest
- type DeleteAcRuleResponse
- type DeleteAllAccessControlRuleRequest
- type DeleteAllAccessControlRuleResponse
- type DeleteSecurityGroupAllRuleRequest
- type DeleteSecurityGroupAllRuleResponse
- type DeleteSecurityGroupRuleRequest
- type DeleteSecurityGroupRuleResponse
- type DescribeAcListsRequest
- type DescribeAcListsResponse
- type DescribeAssociatedInstanceListRequest
- type DescribeAssociatedInstanceListResponse
- type DescribeCfwEipsRequest
- type DescribeCfwEipsResponse
- type DescribeNatRuleOverviewRequest
- type DescribeNatRuleOverviewResponse
- type DescribeRuleOverviewRequest
- type DescribeRuleOverviewResponse
- type DescribeSecurityGroupListRequest
- type DescribeSecurityGroupListResponse
- type DescribeSwitchListsRequest
- type DescribeSwitchListsResponse
- type DescribeSyncAssetStatusRequest
- type DescribeSyncAssetStatusResponse
- type DescribeTableStatusRequest
- type DescribeTableStatusResponse
- type DescribeVpcRuleOverviewRequest
- type DescribeVpcRuleOverviewResponse
- type ExpandCfwVerticalRequest
- type ExpandCfwVerticalResponse
- type IocListData
- type ModifyAcRuleRequest
- type ModifyAcRuleResponse
- type ModifyAllRuleStatusRequest
- type ModifyAllRuleStatusResponse
- type ModifyAllSwitchStatusRequest
- type ModifyAllSwitchStatusResponse
- type ModifyBlockIgnoreListRequest
- type ModifyBlockIgnoreListResponse
- type ModifyItemSwitchStatusRequest
- type ModifyItemSwitchStatusResponse
- type ModifySecurityGroupAllRuleStatusRequest
- type ModifySecurityGroupAllRuleStatusResponse
- type ModifySequenceRulesRequest
- type ModifySequenceRulesResponse
- type ModifyTableStatusRequest
- type ModifyTableStatusResponse
- type NatFwEipsInfo
- type RuleInfoData
- type RunSyncAssetRequest
- type RunSyncAssetResponse
- type SecurityGroupApiRuleData
- type SecurityGroupListData
- type SequenceData
- type SetNatFwDnatRuleRequest
- type SetNatFwDnatRuleResponse
- type SwitchListsData
Constants ¶
const APIVersion = "2019-09-04"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcListsData ¶
type AcListsData struct {
// 规则id
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 访问源
// 注意:此字段可能返回 null,表示取不到有效值。
SourceIp *string `json:"SourceIp,omitempty" name:"SourceIp"`
// 访问目的
// 注意:此字段可能返回 null,表示取不到有效值。
TargetIp *string `json:"TargetIp,omitempty" name:"TargetIp"`
// 协议
// 注意:此字段可能返回 null,表示取不到有效值。
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 端口
// 注意:此字段可能返回 null,表示取不到有效值。
Port *string `json:"Port,omitempty" name:"Port"`
// 策略
// 注意:此字段可能返回 null,表示取不到有效值。
Strategy *uint64 `json:"Strategy,omitempty" name:"Strategy"`
// 描述
// 注意:此字段可能返回 null,表示取不到有效值。
Detail *string `json:"Detail,omitempty" name:"Detail"`
// 命中次数
Count *uint64 `json:"Count,omitempty" name:"Count"`
// 执行顺序
OrderIndex *uint64 `json:"OrderIndex,omitempty" name:"OrderIndex"`
// 告警规则id
// 注意:此字段可能返回 null,表示取不到有效值。
LogId *string `json:"LogId,omitempty" name:"LogId"`
}
type AssociatedInstanceInfo ¶
type AssociatedInstanceInfo struct {
// 实例ID
// 注意:此字段可能返回 null,表示取不到有效值。
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// 实例名称
// 注意:此字段可能返回 null,表示取不到有效值。
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// 实例类型,3是cvm实例,4是clb实例,5是eni实例,6是云数据库
// 注意:此字段可能返回 null,表示取不到有效值。
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 私有网络ID
// 注意:此字段可能返回 null,表示取不到有效值。
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// 私有网络名称
// 注意:此字段可能返回 null,表示取不到有效值。
VpcName *string `json:"VpcName,omitempty" name:"VpcName"`
// 公网IP
// 注意:此字段可能返回 null,表示取不到有效值。
PublicIp *string `json:"PublicIp,omitempty" name:"PublicIp"`
// 内网IP
// 注意:此字段可能返回 null,表示取不到有效值。
Ip *string `json:"Ip,omitempty" name:"Ip"`
// 关联安全组数量
// 注意:此字段可能返回 null,表示取不到有效值。
SecurityGroupCount *uint64 `json:"SecurityGroupCount,omitempty" name:"SecurityGroupCount"`
}
type CfwNatDnatRule ¶
type CfwNatDnatRule struct {
// 网络协议,可选值:TCP、UDP。
IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"`
// 弹性IP。
PublicIpAddress *string `json:"PublicIpAddress,omitempty" name:"PublicIpAddress"`
// 公网端口。
PublicPort *int64 `json:"PublicPort,omitempty" name:"PublicPort"`
// 内网地址。
PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"`
// 内网端口。
PrivatePort *int64 `json:"PrivatePort,omitempty" name:"PrivatePort"`
// NAT防火墙转发规则描述。
Description *string `json:"Description,omitempty" name:"Description"`
}
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateAcRules ¶
func (c *Client) CreateAcRules(request *CreateAcRulesRequest) (response *CreateAcRulesResponse, err error)
创建规则
func (*Client) CreateSecurityGroupApiRules ¶
func (c *Client) CreateSecurityGroupApiRules(request *CreateSecurityGroupApiRulesRequest) (response *CreateSecurityGroupApiRulesResponse, err error)
创建安全组API规则
func (*Client) DeleteAcRule ¶
func (c *Client) DeleteAcRule(request *DeleteAcRuleRequest) (response *DeleteAcRuleResponse, err error)
删除规则
func (*Client) DeleteAllAccessControlRule ¶
func (c *Client) DeleteAllAccessControlRule(request *DeleteAllAccessControlRuleRequest) (response *DeleteAllAccessControlRuleResponse, err error)
全部删除规则
func (*Client) DeleteSecurityGroupAllRule ¶
func (c *Client) DeleteSecurityGroupAllRule(request *DeleteSecurityGroupAllRuleRequest) (response *DeleteSecurityGroupAllRuleResponse, err error)
删除全部规则
func (*Client) DeleteSecurityGroupRule ¶
func (c *Client) DeleteSecurityGroupRule(request *DeleteSecurityGroupRuleRequest) (response *DeleteSecurityGroupRuleResponse, err error)
删除规则
func (*Client) DescribeAcLists ¶
func (c *Client) DescribeAcLists(request *DescribeAcListsRequest) (response *DescribeAcListsResponse, err error)
访问控制列表
func (*Client) DescribeAssociatedInstanceList ¶
func (c *Client) DescribeAssociatedInstanceList(request *DescribeAssociatedInstanceListRequest) (response *DescribeAssociatedInstanceListResponse, err error)
获取安全组关联实例列表
func (*Client) DescribeCfwEips ¶
func (c *Client) DescribeCfwEips(request *DescribeCfwEipsRequest) (response *DescribeCfwEipsResponse, err error)
查询防火墙弹性公网ip
func (*Client) DescribeNatRuleOverview ¶
func (c *Client) DescribeNatRuleOverview(request *DescribeNatRuleOverviewRequest) (response *DescribeNatRuleOverviewResponse, err error)
nat规则列表概况
func (*Client) DescribeRuleOverview ¶
func (c *Client) DescribeRuleOverview(request *DescribeRuleOverviewRequest) (response *DescribeRuleOverviewResponse, err error)
查询规则列表概况
func (*Client) DescribeSecurityGroupList ¶
func (c *Client) DescribeSecurityGroupList(request *DescribeSecurityGroupListRequest) (response *DescribeSecurityGroupListResponse, err error)
查询安全组规则列表
func (*Client) DescribeSwitchLists ¶
func (c *Client) DescribeSwitchLists(request *DescribeSwitchListsRequest) (response *DescribeSwitchListsResponse, err error)
防火墙开关列表
func (*Client) DescribeSyncAssetStatus ¶
func (c *Client) DescribeSyncAssetStatus(request *DescribeSyncAssetStatusRequest) (response *DescribeSyncAssetStatusResponse, err error)
同步资产状态查询-互联网&VPC
func (*Client) DescribeTableStatus ¶
func (c *Client) DescribeTableStatus(request *DescribeTableStatusRequest) (response *DescribeTableStatusResponse, err error)
查询规则表状态
func (*Client) DescribeVpcRuleOverview ¶
func (c *Client) DescribeVpcRuleOverview(request *DescribeVpcRuleOverviewRequest) (response *DescribeVpcRuleOverviewResponse, err error)
vpc规则列表概况
func (*Client) ExpandCfwVertical ¶
func (c *Client) ExpandCfwVertical(request *ExpandCfwVerticalRequest) (response *ExpandCfwVerticalResponse, err error)
防火墙垂直扩容
func (*Client) ModifyAcRule ¶
func (c *Client) ModifyAcRule(request *ModifyAcRuleRequest) (response *ModifyAcRuleResponse, err error)
修改规则
func (*Client) ModifyAllRuleStatus ¶
func (c *Client) ModifyAllRuleStatus(request *ModifyAllRuleStatusRequest) (response *ModifyAllRuleStatusResponse, err error)
启用停用全部规则
func (*Client) ModifyAllSwitchStatus ¶
func (c *Client) ModifyAllSwitchStatus(request *ModifyAllSwitchStatusRequest) (response *ModifyAllSwitchStatusResponse, err error)
一键开启和关闭
func (*Client) ModifyBlockIgnoreList ¶
func (c *Client) ModifyBlockIgnoreList(request *ModifyBlockIgnoreListRequest) (response *ModifyBlockIgnoreListResponse, err error)
支持对拦截列表、忽略列表如下操作: 批量增加拦截IP、忽略IP/域名 批量删除拦截IP、忽略IP/域名 批量修改拦截IP、忽略IP/域名生效事件
func (*Client) ModifyItemSwitchStatus ¶
func (c *Client) ModifyItemSwitchStatus(request *ModifyItemSwitchStatusRequest) (response *ModifyItemSwitchStatusResponse, err error)
修改单个防火墙开关
func (*Client) ModifySecurityGroupAllRuleStatus ¶
func (c *Client) ModifySecurityGroupAllRuleStatus(request *ModifySecurityGroupAllRuleStatusRequest) (response *ModifySecurityGroupAllRuleStatusResponse, err error)
启用停用全部规则
func (*Client) ModifySequenceRules ¶
func (c *Client) ModifySequenceRules(request *ModifySequenceRulesRequest) (response *ModifySequenceRulesResponse, err error)
修改规则执行顺序
func (*Client) ModifyTableStatus ¶
func (c *Client) ModifyTableStatus(request *ModifyTableStatusRequest) (response *ModifyTableStatusResponse, err error)
修改规则表状态
func (*Client) RunSyncAsset ¶
func (c *Client) RunSyncAsset(request *RunSyncAssetRequest) (response *RunSyncAssetResponse, err error)
同步资产-互联网&VPC
func (*Client) SetNatFwDnatRule ¶
func (c *Client) SetNatFwDnatRule(request *SetNatFwDnatRuleRequest) (response *SetNatFwDnatRuleResponse, err error)
配置防火墙Dnat规则
type CreateAcRulesRequest ¶
type CreateAcRulesRequest struct {
*tchttp.BaseRequest
// 创建规则数据
Data []*RuleInfoData `json:"Data,omitempty" name:"Data" list`
// 0:添加(默认),1:插入
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 边id
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// 访问控制规则状态
Enable *int64 `json:"Enable,omitempty" name:"Enable"`
// 0:添加,1:覆盖
Overwrite *uint64 `json:"Overwrite,omitempty" name:"Overwrite"`
// NAT实例ID, 参数Area存在的时候这个必传
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// portScan: 来自于端口扫描, patchImport: 来自于批量导入
From *string `json:"From,omitempty" name:"From"`
// NAT地域
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewCreateAcRulesRequest ¶
func NewCreateAcRulesRequest() (request *CreateAcRulesRequest)
func (*CreateAcRulesRequest) FromJsonString ¶
func (r *CreateAcRulesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAcRulesRequest) ToJsonString ¶
func (r *CreateAcRulesRequest) ToJsonString() string
type CreateAcRulesResponse ¶
type CreateAcRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态值,0:操作成功
Status *int64 `json:"Status,omitempty" name:"Status"`
// 返回多余的信息
// 注意:此字段可能返回 null,表示取不到有效值。
Info *string `json:"Info,omitempty" name:"Info"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateAcRulesResponse ¶
func NewCreateAcRulesResponse() (response *CreateAcRulesResponse)
func (*CreateAcRulesResponse) FromJsonString ¶
func (r *CreateAcRulesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAcRulesResponse) ToJsonString ¶
func (r *CreateAcRulesResponse) ToJsonString() string
type CreateSecurityGroupApiRulesRequest ¶
type CreateSecurityGroupApiRulesRequest struct {
*tchttp.BaseRequest
// 创建规则数据
Data []*SecurityGroupApiRuleData `json:"Data,omitempty" name:"Data" list`
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// 插入类型,0:后插,1:前插,2:中插
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 腾讯云地域的英文简写
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewCreateSecurityGroupApiRulesRequest ¶
func NewCreateSecurityGroupApiRulesRequest() (request *CreateSecurityGroupApiRulesRequest)
func (*CreateSecurityGroupApiRulesRequest) FromJsonString ¶
func (r *CreateSecurityGroupApiRulesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateSecurityGroupApiRulesRequest) ToJsonString ¶
func (r *CreateSecurityGroupApiRulesRequest) ToJsonString() string
type CreateSecurityGroupApiRulesResponse ¶
type CreateSecurityGroupApiRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态值,0:添加成功,非0:添加失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateSecurityGroupApiRulesResponse ¶
func NewCreateSecurityGroupApiRulesResponse() (response *CreateSecurityGroupApiRulesResponse)
func (*CreateSecurityGroupApiRulesResponse) FromJsonString ¶
func (r *CreateSecurityGroupApiRulesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateSecurityGroupApiRulesResponse) ToJsonString ¶
func (r *CreateSecurityGroupApiRulesResponse) ToJsonString() string
type DeleteAcRuleRequest ¶
type DeleteAcRuleRequest struct {
*tchttp.BaseRequest
// 删除规则对应的id值, 对应获取规则列表接口的Id 值
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// EdgeId值两个vpc间的边id
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// NAT地域, 如ap-shanghai/ap-guangzhou/ap-chongqing等
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDeleteAcRuleRequest ¶
func NewDeleteAcRuleRequest() (request *DeleteAcRuleRequest)
func (*DeleteAcRuleRequest) FromJsonString ¶
func (r *DeleteAcRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAcRuleRequest) ToJsonString ¶
func (r *DeleteAcRuleRequest) ToJsonString() string
type DeleteAcRuleResponse ¶
type DeleteAcRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态值 0: 删除成功, !0: 删除失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 返回多余的信息
// 注意:此字段可能返回 null,表示取不到有效值。
Info *string `json:"Info,omitempty" name:"Info"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteAcRuleResponse ¶
func NewDeleteAcRuleResponse() (response *DeleteAcRuleResponse)
func (*DeleteAcRuleResponse) FromJsonString ¶
func (r *DeleteAcRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAcRuleResponse) ToJsonString ¶
func (r *DeleteAcRuleResponse) ToJsonString() string
type DeleteAllAccessControlRuleRequest ¶
type DeleteAllAccessControlRuleRequest struct {
*tchttp.BaseRequest
// 方向,0:出站,1:入站 默认值是 0
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// VPC间防火墙开关ID 全部删除 EdgeId和Area只填写一个,不填写则不删除vpc间防火墙开关 ,默认值为‘’
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// nat地域 全部删除 EdgeId和Area只填写一个,不填写则不删除nat防火墙开关 默认值为‘’
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDeleteAllAccessControlRuleRequest ¶
func NewDeleteAllAccessControlRuleRequest() (request *DeleteAllAccessControlRuleRequest)
func (*DeleteAllAccessControlRuleRequest) FromJsonString ¶
func (r *DeleteAllAccessControlRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAllAccessControlRuleRequest) ToJsonString ¶
func (r *DeleteAllAccessControlRuleRequest) ToJsonString() string
type DeleteAllAccessControlRuleResponse ¶
type DeleteAllAccessControlRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态值 0: 修改成功, !0: 修改失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 删除了几条访问控制规则
// 注意:此字段可能返回 null,表示取不到有效值。
Info *int64 `json:"Info,omitempty" name:"Info"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteAllAccessControlRuleResponse ¶
func NewDeleteAllAccessControlRuleResponse() (response *DeleteAllAccessControlRuleResponse)
func (*DeleteAllAccessControlRuleResponse) FromJsonString ¶
func (r *DeleteAllAccessControlRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAllAccessControlRuleResponse) ToJsonString ¶
func (r *DeleteAllAccessControlRuleResponse) ToJsonString() string
type DeleteSecurityGroupAllRuleRequest ¶
type DeleteSecurityGroupAllRuleRequest struct {
*tchttp.BaseRequest
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// 腾讯云地域的英文简写
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDeleteSecurityGroupAllRuleRequest ¶
func NewDeleteSecurityGroupAllRuleRequest() (request *DeleteSecurityGroupAllRuleRequest)
func (*DeleteSecurityGroupAllRuleRequest) FromJsonString ¶
func (r *DeleteSecurityGroupAllRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSecurityGroupAllRuleRequest) ToJsonString ¶
func (r *DeleteSecurityGroupAllRuleRequest) ToJsonString() string
type DeleteSecurityGroupAllRuleResponse ¶
type DeleteSecurityGroupAllRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0: 操作成功,非0:操作失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 返回数据的json字符串
// 注意:此字段可能返回 null,表示取不到有效值。
Info *int64 `json:"Info,omitempty" name:"Info"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteSecurityGroupAllRuleResponse ¶
func NewDeleteSecurityGroupAllRuleResponse() (response *DeleteSecurityGroupAllRuleResponse)
func (*DeleteSecurityGroupAllRuleResponse) FromJsonString ¶
func (r *DeleteSecurityGroupAllRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSecurityGroupAllRuleResponse) ToJsonString ¶
func (r *DeleteSecurityGroupAllRuleResponse) ToJsonString() string
type DeleteSecurityGroupRuleRequest ¶
type DeleteSecurityGroupRuleRequest struct {
*tchttp.BaseRequest
// 所需要删除规则的ID
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 腾讯云地域的英文简写
Area *string `json:"Area,omitempty" name:"Area"`
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// 是否删除反向规则,0:否,1:是
IsDelReverse *uint64 `json:"IsDelReverse,omitempty" name:"IsDelReverse"`
}
func NewDeleteSecurityGroupRuleRequest ¶
func NewDeleteSecurityGroupRuleRequest() (request *DeleteSecurityGroupRuleRequest)
func (*DeleteSecurityGroupRuleRequest) FromJsonString ¶
func (r *DeleteSecurityGroupRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSecurityGroupRuleRequest) ToJsonString ¶
func (r *DeleteSecurityGroupRuleRequest) ToJsonString() string
type DeleteSecurityGroupRuleResponse ¶
type DeleteSecurityGroupRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态值,0:成功,非0:失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 返回多余的信息
// 注意:此字段可能返回 null,表示取不到有效值。
Info *string `json:"Info,omitempty" name:"Info"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteSecurityGroupRuleResponse ¶
func NewDeleteSecurityGroupRuleResponse() (response *DeleteSecurityGroupRuleResponse)
func (*DeleteSecurityGroupRuleResponse) FromJsonString ¶
func (r *DeleteSecurityGroupRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSecurityGroupRuleResponse) ToJsonString ¶
func (r *DeleteSecurityGroupRuleResponse) ToJsonString() string
type DescribeAcListsRequest ¶
type DescribeAcListsRequest struct {
*tchttp.BaseRequest
// 协议
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 策略
Strategy *string `json:"Strategy,omitempty" name:"Strategy"`
// 搜索值
SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"`
// 每页条数
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 偏移值
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 出站还是入站,0:入站,1:出站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// EdgeId值
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// 规则是否开启,'0': 未开启,'1': 开启, 默认为'0'
Status *string `json:"Status,omitempty" name:"Status"`
// 地域
Area *string `json:"Area,omitempty" name:"Area"`
// 实例ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
}
func NewDescribeAcListsRequest ¶
func NewDescribeAcListsRequest() (request *DescribeAcListsRequest)
func (*DescribeAcListsRequest) FromJsonString ¶
func (r *DescribeAcListsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAcListsRequest) ToJsonString ¶
func (r *DescribeAcListsRequest) ToJsonString() string
type DescribeAcListsResponse ¶
type DescribeAcListsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 总条数
Total *uint64 `json:"Total,omitempty" name:"Total"`
// 访问控制列表数据
Data []*AcListsData `json:"Data,omitempty" name:"Data" list`
// 不算筛选条数的总条数
AllTotal *uint64 `json:"AllTotal,omitempty" name:"AllTotal"`
// 访问控制规则全部启用/全部停用
// 注意:此字段可能返回 null,表示取不到有效值。
Enable *uint64 `json:"Enable,omitempty" name:"Enable"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeAcListsResponse ¶
func NewDescribeAcListsResponse() (response *DescribeAcListsResponse)
func (*DescribeAcListsResponse) FromJsonString ¶
func (r *DescribeAcListsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAcListsResponse) ToJsonString ¶
func (r *DescribeAcListsResponse) ToJsonString() string
type DescribeAssociatedInstanceListRequest ¶
type DescribeAssociatedInstanceListRequest struct {
*tchttp.BaseRequest
// 列表偏移量
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 每页记录条数
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 地域代码(例:ap-guangzhou),支持腾讯云全地域
Area *string `json:"Area,omitempty" name:"Area"`
// 额外检索条件(JSON字符串)
SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"`
// 排序字段
By *string `json:"By,omitempty" name:"By"`
// 排序方式(asc:升序,desc:降序)
Order *string `json:"Order,omitempty" name:"Order"`
// 安全组ID
SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"`
// 实例类型,'3'是cvm实例,'4'是clb实例,'5'是eni实例,'6'是云数据库
Type *string `json:"Type,omitempty" name:"Type"`
}
func NewDescribeAssociatedInstanceListRequest ¶
func NewDescribeAssociatedInstanceListRequest() (request *DescribeAssociatedInstanceListRequest)
func (*DescribeAssociatedInstanceListRequest) FromJsonString ¶
func (r *DescribeAssociatedInstanceListRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAssociatedInstanceListRequest) ToJsonString ¶
func (r *DescribeAssociatedInstanceListRequest) ToJsonString() string
type DescribeAssociatedInstanceListResponse ¶
type DescribeAssociatedInstanceListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 实例数量
// 注意:此字段可能返回 null,表示取不到有效值。
Total *uint64 `json:"Total,omitempty" name:"Total"`
// 实例列表
// 注意:此字段可能返回 null,表示取不到有效值。
Data []*AssociatedInstanceInfo `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeAssociatedInstanceListResponse ¶
func NewDescribeAssociatedInstanceListResponse() (response *DescribeAssociatedInstanceListResponse)
func (*DescribeAssociatedInstanceListResponse) FromJsonString ¶
func (r *DescribeAssociatedInstanceListResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAssociatedInstanceListResponse) ToJsonString ¶
func (r *DescribeAssociatedInstanceListResponse) ToJsonString() string
type DescribeCfwEipsRequest ¶
type DescribeCfwEipsRequest struct {
*tchttp.BaseRequest
// 0:cfw新增模式,1:cfw接入模式
Mode *uint64 `json:"Mode,omitempty" name:"Mode"`
// ALL:查询所有弹性公网ip; nat-xxxxx:接入模式场景指定网关的弹性公网ip
NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"`
// 防火墙实例id
CfwInstance *string `json:"CfwInstance,omitempty" name:"CfwInstance"`
}
func NewDescribeCfwEipsRequest ¶
func NewDescribeCfwEipsRequest() (request *DescribeCfwEipsRequest)
func (*DescribeCfwEipsRequest) FromJsonString ¶
func (r *DescribeCfwEipsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCfwEipsRequest) ToJsonString ¶
func (r *DescribeCfwEipsRequest) ToJsonString() string
type DescribeCfwEipsResponse ¶
type DescribeCfwEipsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 返回值信息
NatFwEipList []*NatFwEipsInfo `json:"NatFwEipList,omitempty" name:"NatFwEipList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCfwEipsResponse ¶
func NewDescribeCfwEipsResponse() (response *DescribeCfwEipsResponse)
func (*DescribeCfwEipsResponse) FromJsonString ¶
func (r *DescribeCfwEipsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCfwEipsResponse) ToJsonString ¶
func (r *DescribeCfwEipsResponse) ToJsonString() string
type DescribeNatRuleOverviewRequest ¶
type DescribeNatRuleOverviewRequest struct {
*tchttp.BaseRequest
// 方向,0:出站,1:入站 默认值:0
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// NAT地域 这个是必填项,填入相关的英文,'ap-beijing-fsi': '北京金融',
// 'ap-beijing': '北京',
// 'ap-changsha-ec': '长沙EC',
// 'ap-chengdu': '成都',
// 'ap-chongqing': '重庆',
// 'ap-fuzhou-ec': '福州EC',
// 'ap-guangzhou-open': '广州Open',
// 'ap-guangzhou': '广州',
// 'ap-hangzhou-ec': '杭州EC',
// 'ap-jinan-ec': '济南EC',
// 'ap-nanjing': '南京',
// 'ap-shanghai-fsi': '上海金融',
// 'ap-shanghai': '上海',
// 'ap-shenzhen-fsi': '深圳金融',
// 'ap-shenzhen': '深圳',
// 'ap-wuhan-ec': '武汉EC'
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDescribeNatRuleOverviewRequest ¶
func NewDescribeNatRuleOverviewRequest() (request *DescribeNatRuleOverviewRequest)
func (*DescribeNatRuleOverviewRequest) FromJsonString ¶
func (r *DescribeNatRuleOverviewRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNatRuleOverviewRequest) ToJsonString ¶
func (r *DescribeNatRuleOverviewRequest) ToJsonString() string
type DescribeNatRuleOverviewResponse ¶
type DescribeNatRuleOverviewResponse struct {
*tchttp.BaseResponse
Response *struct {
// 实例ID
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// 实例名称
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// 弹性IP列表
EipList []*string `json:"EipList,omitempty" name:"EipList" list`
// 端口转发规则数量
DnatNum *int64 `json:"DnatNum,omitempty" name:"DnatNum"`
// 访问控制规则总数
TotalNum *int64 `json:"TotalNum,omitempty" name:"TotalNum"`
// 访问控制规则剩余配额
RemainNum *int64 `json:"RemainNum,omitempty" name:"RemainNum"`
// 阻断规则条数
BlockNum *int64 `json:"BlockNum,omitempty" name:"BlockNum"`
// 启用规则条数
EnableNum *int64 `json:"EnableNum,omitempty" name:"EnableNum"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeNatRuleOverviewResponse ¶
func NewDescribeNatRuleOverviewResponse() (response *DescribeNatRuleOverviewResponse)
func (*DescribeNatRuleOverviewResponse) FromJsonString ¶
func (r *DescribeNatRuleOverviewResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNatRuleOverviewResponse) ToJsonString ¶
func (r *DescribeNatRuleOverviewResponse) ToJsonString() string
type DescribeRuleOverviewRequest ¶
type DescribeRuleOverviewRequest struct {
*tchttp.BaseRequest
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
}
func NewDescribeRuleOverviewRequest ¶
func NewDescribeRuleOverviewRequest() (request *DescribeRuleOverviewRequest)
func (*DescribeRuleOverviewRequest) FromJsonString ¶
func (r *DescribeRuleOverviewRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRuleOverviewRequest) ToJsonString ¶
func (r *DescribeRuleOverviewRequest) ToJsonString() string
type DescribeRuleOverviewResponse ¶
type DescribeRuleOverviewResponse struct {
*tchttp.BaseResponse
Response *struct {
// 规则总数
// 注意:此字段可能返回 null,表示取不到有效值。
AllTotal *uint64 `json:"AllTotal,omitempty" name:"AllTotal"`
// 阻断策略规则数量
// 注意:此字段可能返回 null,表示取不到有效值。
StrategyNum *uint64 `json:"StrategyNum,omitempty" name:"StrategyNum"`
// 启用规则数量
// 注意:此字段可能返回 null,表示取不到有效值。
StartRuleNum *uint64 `json:"StartRuleNum,omitempty" name:"StartRuleNum"`
// 停用规则数量
// 注意:此字段可能返回 null,表示取不到有效值。
StopRuleNum *uint64 `json:"StopRuleNum,omitempty" name:"StopRuleNum"`
// 剩余配额
// 注意:此字段可能返回 null,表示取不到有效值。
RemainingNum *int64 `json:"RemainingNum,omitempty" name:"RemainingNum"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeRuleOverviewResponse ¶
func NewDescribeRuleOverviewResponse() (response *DescribeRuleOverviewResponse)
func (*DescribeRuleOverviewResponse) FromJsonString ¶
func (r *DescribeRuleOverviewResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRuleOverviewResponse) ToJsonString ¶
func (r *DescribeRuleOverviewResponse) ToJsonString() string
type DescribeSecurityGroupListRequest ¶
type DescribeSecurityGroupListRequest struct {
*tchttp.BaseRequest
// 0: 出站规则,1:入站规则
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// 地域代码(例: ap-guangzhou),支持腾讯云全部地域
Area *string `json:"Area,omitempty" name:"Area"`
// 搜索值
SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"`
// 每页条数,默认为10
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 偏移值,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 状态,”: 全部,'0':筛选停用规则,'1':筛选启用规则
Status *string `json:"Status,omitempty" name:"Status"`
// 0: 不过滤,1:过滤掉正常规则,保留下发异常规则
Filter *uint64 `json:"Filter,omitempty" name:"Filter"`
}
func NewDescribeSecurityGroupListRequest ¶
func NewDescribeSecurityGroupListRequest() (request *DescribeSecurityGroupListRequest)
func (*DescribeSecurityGroupListRequest) FromJsonString ¶
func (r *DescribeSecurityGroupListRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSecurityGroupListRequest) ToJsonString ¶
func (r *DescribeSecurityGroupListRequest) ToJsonString() string
type DescribeSecurityGroupListResponse ¶
type DescribeSecurityGroupListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 列表当前规则总条数
Total *uint64 `json:"Total,omitempty" name:"Total"`
// 安全组规则列表数据
Data []*SecurityGroupListData `json:"Data,omitempty" name:"Data" list`
// 不算筛选条数的总条数
AllTotal *uint64 `json:"AllTotal,omitempty" name:"AllTotal"`
// 访问控制规则全部启用/全部停用
// 注意:此字段可能返回 null,表示取不到有效值。
Enable *uint64 `json:"Enable,omitempty" name:"Enable"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeSecurityGroupListResponse ¶
func NewDescribeSecurityGroupListResponse() (response *DescribeSecurityGroupListResponse)
func (*DescribeSecurityGroupListResponse) FromJsonString ¶
func (r *DescribeSecurityGroupListResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSecurityGroupListResponse) ToJsonString ¶
func (r *DescribeSecurityGroupListResponse) ToJsonString() string
type DescribeSwitchListsRequest ¶
type DescribeSwitchListsRequest struct {
*tchttp.BaseRequest
// 防火墙状态 0: 关闭,1:开启
Status *int64 `json:"Status,omitempty" name:"Status"`
// 资产类型 CVM/NAT/VPN/CLB/其它
Type *string `json:"Type,omitempty" name:"Type"`
// 地域 上海/重庆/广州,等等
Area *string `json:"Area,omitempty" name:"Area"`
// 搜索值 例子:"{"common":"106.54.189.45"}"
SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"`
// 条数 默认值:10
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 偏移值 默认值: 0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 排序,desc:降序,asc:升序
Order *string `json:"Order,omitempty" name:"Order"`
// 排序字段 PortTimes(风险端口数)
By *string `json:"By,omitempty" name:"By"`
}
func NewDescribeSwitchListsRequest ¶
func NewDescribeSwitchListsRequest() (request *DescribeSwitchListsRequest)
func (*DescribeSwitchListsRequest) FromJsonString ¶
func (r *DescribeSwitchListsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSwitchListsRequest) ToJsonString ¶
func (r *DescribeSwitchListsRequest) ToJsonString() string
type DescribeSwitchListsResponse ¶
type DescribeSwitchListsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 总条数
Total *uint64 `json:"Total,omitempty" name:"Total"`
// 列表数据
Data []*SwitchListsData `json:"Data,omitempty" name:"Data" list`
// 区域列表
AreaLists []*string `json:"AreaLists,omitempty" name:"AreaLists" list`
// 打开个数
// 注意:此字段可能返回 null,表示取不到有效值。
OnNum *uint64 `json:"OnNum,omitempty" name:"OnNum"`
// 关闭个数
// 注意:此字段可能返回 null,表示取不到有效值。
OffNum *uint64 `json:"OffNum,omitempty" name:"OffNum"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeSwitchListsResponse ¶
func NewDescribeSwitchListsResponse() (response *DescribeSwitchListsResponse)
func (*DescribeSwitchListsResponse) FromJsonString ¶
func (r *DescribeSwitchListsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSwitchListsResponse) ToJsonString ¶
func (r *DescribeSwitchListsResponse) ToJsonString() string
type DescribeSyncAssetStatusRequest ¶
type DescribeSyncAssetStatusRequest struct {
*tchttp.BaseRequest
// 0: 互联网防火墙开关,1:vpc 防火墙开关
Type *uint64 `json:"Type,omitempty" name:"Type"`
}
func NewDescribeSyncAssetStatusRequest ¶
func NewDescribeSyncAssetStatusRequest() (request *DescribeSyncAssetStatusRequest)
func (*DescribeSyncAssetStatusRequest) FromJsonString ¶
func (r *DescribeSyncAssetStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSyncAssetStatusRequest) ToJsonString ¶
func (r *DescribeSyncAssetStatusRequest) ToJsonString() string
type DescribeSyncAssetStatusResponse ¶
type DescribeSyncAssetStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 1-更新中 2-更新完成 3、4-更新失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeSyncAssetStatusResponse ¶
func NewDescribeSyncAssetStatusResponse() (response *DescribeSyncAssetStatusResponse)
func (*DescribeSyncAssetStatusResponse) FromJsonString ¶
func (r *DescribeSyncAssetStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSyncAssetStatusResponse) ToJsonString ¶
func (r *DescribeSyncAssetStatusResponse) ToJsonString() string
type DescribeTableStatusRequest ¶
type DescribeTableStatusRequest struct {
*tchttp.BaseRequest
// EdgeId值两个vpc间的边id vpc填Edgeid,不要填Area;
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// 状态值,0:检查表的状态 确实只有一个默认值
Status *uint64 `json:"Status,omitempty" name:"Status"`
// Nat所在地域 NAT填Area,不要填Edgeid;
Area *string `json:"Area,omitempty" name:"Area"`
// 方向,0:出站,1:入站 默认值为 0
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
}
func NewDescribeTableStatusRequest ¶
func NewDescribeTableStatusRequest() (request *DescribeTableStatusRequest)
func (*DescribeTableStatusRequest) FromJsonString ¶
func (r *DescribeTableStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTableStatusRequest) ToJsonString ¶
func (r *DescribeTableStatusRequest) ToJsonString() string
type DescribeTableStatusResponse ¶
type DescribeTableStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0:正常,其它:不正常
// 注意:此字段可能返回 null,表示取不到有效值。
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeTableStatusResponse ¶
func NewDescribeTableStatusResponse() (response *DescribeTableStatusResponse)
func (*DescribeTableStatusResponse) FromJsonString ¶
func (r *DescribeTableStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTableStatusResponse) ToJsonString ¶
func (r *DescribeTableStatusResponse) ToJsonString() string
type DescribeVpcRuleOverviewRequest ¶
type DescribeVpcRuleOverviewRequest struct {
*tchttp.BaseRequest
// EdgeId值两个vpc间的边id 不是必填项可以为空,就是所有vpc间的访问控制规则
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
}
func NewDescribeVpcRuleOverviewRequest ¶
func NewDescribeVpcRuleOverviewRequest() (request *DescribeVpcRuleOverviewRequest)
func (*DescribeVpcRuleOverviewRequest) FromJsonString ¶
func (r *DescribeVpcRuleOverviewRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVpcRuleOverviewRequest) ToJsonString ¶
func (r *DescribeVpcRuleOverviewRequest) ToJsonString() string
type DescribeVpcRuleOverviewResponse ¶
type DescribeVpcRuleOverviewResponse struct {
*tchttp.BaseResponse
Response *struct {
// 阻断策略规则数量
// 注意:此字段可能返回 null,表示取不到有效值。
StrategyNum *uint64 `json:"StrategyNum,omitempty" name:"StrategyNum"`
// 启用规则数量
// 注意:此字段可能返回 null,表示取不到有效值。
StartRuleNum *uint64 `json:"StartRuleNum,omitempty" name:"StartRuleNum"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeVpcRuleOverviewResponse ¶
func NewDescribeVpcRuleOverviewResponse() (response *DescribeVpcRuleOverviewResponse)
func (*DescribeVpcRuleOverviewResponse) FromJsonString ¶
func (r *DescribeVpcRuleOverviewResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVpcRuleOverviewResponse) ToJsonString ¶
func (r *DescribeVpcRuleOverviewResponse) ToJsonString() string
type ExpandCfwVerticalRequest ¶
type ExpandCfwVerticalRequest struct {
*tchttp.BaseRequest
// nat:nat防火墙,ew:东西向防火墙
FwType *string `json:"FwType,omitempty" name:"FwType"`
// 带宽值
Width *uint64 `json:"Width,omitempty" name:"Width"`
// 防火墙实例id
CfwInstance *string `json:"CfwInstance,omitempty" name:"CfwInstance"`
}
func NewExpandCfwVerticalRequest ¶
func NewExpandCfwVerticalRequest() (request *ExpandCfwVerticalRequest)
func (*ExpandCfwVerticalRequest) FromJsonString ¶
func (r *ExpandCfwVerticalRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ExpandCfwVerticalRequest) ToJsonString ¶
func (r *ExpandCfwVerticalRequest) ToJsonString() string
type ExpandCfwVerticalResponse ¶
type ExpandCfwVerticalResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewExpandCfwVerticalResponse ¶
func NewExpandCfwVerticalResponse() (response *ExpandCfwVerticalResponse)
func (*ExpandCfwVerticalResponse) FromJsonString ¶
func (r *ExpandCfwVerticalResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ExpandCfwVerticalResponse) ToJsonString ¶
func (r *ExpandCfwVerticalResponse) ToJsonString() string
type IocListData ¶
type ModifyAcRuleRequest ¶
type ModifyAcRuleRequest struct {
*tchttp.BaseRequest
// 规则数组
Data []*RuleInfoData `json:"Data,omitempty" name:"Data" list`
// EdgeId值
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// 访问规则状态
Enable *int64 `json:"Enable,omitempty" name:"Enable"`
// NAT地域
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewModifyAcRuleRequest ¶
func NewModifyAcRuleRequest() (request *ModifyAcRuleRequest)
func (*ModifyAcRuleRequest) FromJsonString ¶
func (r *ModifyAcRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAcRuleRequest) ToJsonString ¶
func (r *ModifyAcRuleRequest) ToJsonString() string
type ModifyAcRuleResponse ¶
type ModifyAcRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态值,0:操作成功,非0:操作失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 返回多余的信息
// 注意:此字段可能返回 null,表示取不到有效值。
Info *string `json:"Info,omitempty" name:"Info"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyAcRuleResponse ¶
func NewModifyAcRuleResponse() (response *ModifyAcRuleResponse)
func (*ModifyAcRuleResponse) FromJsonString ¶
func (r *ModifyAcRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAcRuleResponse) ToJsonString ¶
func (r *ModifyAcRuleResponse) ToJsonString() string
type ModifyAllRuleStatusRequest ¶
type ModifyAllRuleStatusRequest struct {
*tchttp.BaseRequest
// 状态,0:全部停用,1:全部启用
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// Edge ID值
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// NAT地域
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewModifyAllRuleStatusRequest ¶
func NewModifyAllRuleStatusRequest() (request *ModifyAllRuleStatusRequest)
func (*ModifyAllRuleStatusRequest) FromJsonString ¶
func (r *ModifyAllRuleStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAllRuleStatusRequest) ToJsonString ¶
func (r *ModifyAllRuleStatusRequest) ToJsonString() string
type ModifyAllRuleStatusResponse ¶
type ModifyAllRuleStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0: 修改成功, 其他: 修改失败
// 注意:此字段可能返回 null,表示取不到有效值。
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyAllRuleStatusResponse ¶
func NewModifyAllRuleStatusResponse() (response *ModifyAllRuleStatusResponse)
func (*ModifyAllRuleStatusResponse) FromJsonString ¶
func (r *ModifyAllRuleStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAllRuleStatusResponse) ToJsonString ¶
func (r *ModifyAllRuleStatusResponse) ToJsonString() string
type ModifyAllSwitchStatusRequest ¶
type ModifyAllSwitchStatusRequest struct {
*tchttp.BaseRequest
// 状态,0:关闭,1:开启
Status *int64 `json:"Status,omitempty" name:"Status"`
// 0: 互联网边界防火墙开关,1:vpc防火墙开关
Type *uint64 `json:"Type,omitempty" name:"Type"`
// 选中的防火墙开关Id
Ids []*string `json:"Ids,omitempty" name:"Ids" list`
// NAT开关切换类型,1,单个子网,2,同开同关,3,全部
ChangeType *int64 `json:"ChangeType,omitempty" name:"ChangeType"`
// NAT实例所在地域
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewModifyAllSwitchStatusRequest ¶
func NewModifyAllSwitchStatusRequest() (request *ModifyAllSwitchStatusRequest)
func (*ModifyAllSwitchStatusRequest) FromJsonString ¶
func (r *ModifyAllSwitchStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAllSwitchStatusRequest) ToJsonString ¶
func (r *ModifyAllSwitchStatusRequest) ToJsonString() string
type ModifyAllSwitchStatusResponse ¶
type ModifyAllSwitchStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 修改成功与否的状态值 0:修改成功,非 0:修改失败
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyAllSwitchStatusResponse ¶
func NewModifyAllSwitchStatusResponse() (response *ModifyAllSwitchStatusResponse)
func (*ModifyAllSwitchStatusResponse) FromJsonString ¶
func (r *ModifyAllSwitchStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAllSwitchStatusResponse) ToJsonString ¶
func (r *ModifyAllSwitchStatusResponse) ToJsonString() string
type ModifyBlockIgnoreListRequest ¶
type ModifyBlockIgnoreListRequest struct {
*tchttp.BaseRequest
// 1拦截列表 2 忽略列表
RuleType *int64 `json:"RuleType,omitempty" name:"RuleType"`
// IP、Domain二选一,不能同时为空
IOC []*IocListData `json:"IOC,omitempty" name:"IOC" list`
// 默认值:delete(删除)、edit(编辑)、add(添加) 其他值无效
IocAction *string `json:"IocAction,omitempty" name:"IocAction"`
// 时间格式:yyyy-MM-dd HH:mm:ss
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 时间格式:yyyy-MM-dd HH:mm:ss
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}
func NewModifyBlockIgnoreListRequest ¶
func NewModifyBlockIgnoreListRequest() (request *ModifyBlockIgnoreListRequest)
func (*ModifyBlockIgnoreListRequest) FromJsonString ¶
func (r *ModifyBlockIgnoreListRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlockIgnoreListRequest) ToJsonString ¶
func (r *ModifyBlockIgnoreListRequest) ToJsonString() string
type ModifyBlockIgnoreListResponse ¶
type ModifyBlockIgnoreListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 接口返回信息
ReturnMsg *string `json:"ReturnMsg,omitempty" name:"ReturnMsg"`
// 接口返回错误码,0请求成功 非0失败
ReturnCode *uint64 `json:"ReturnCode,omitempty" name:"ReturnCode"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyBlockIgnoreListResponse ¶
func NewModifyBlockIgnoreListResponse() (response *ModifyBlockIgnoreListResponse)
func (*ModifyBlockIgnoreListResponse) FromJsonString ¶
func (r *ModifyBlockIgnoreListResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlockIgnoreListResponse) ToJsonString ¶
func (r *ModifyBlockIgnoreListResponse) ToJsonString() string
type ModifyItemSwitchStatusRequest ¶
type ModifyItemSwitchStatusRequest struct {
*tchttp.BaseRequest
// id值
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 状态值,0: 关闭 ,1:开启
Status *int64 `json:"Status,omitempty" name:"Status"`
// 0: 互联网边界边界防火墙开关,1:vpc防火墙开关
Type *uint64 `json:"Type,omitempty" name:"Type"`
}
func NewModifyItemSwitchStatusRequest ¶
func NewModifyItemSwitchStatusRequest() (request *ModifyItemSwitchStatusRequest)
func (*ModifyItemSwitchStatusRequest) FromJsonString ¶
func (r *ModifyItemSwitchStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyItemSwitchStatusRequest) ToJsonString ¶
func (r *ModifyItemSwitchStatusRequest) ToJsonString() string
type ModifyItemSwitchStatusResponse ¶
type ModifyItemSwitchStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 修改成功与否状态值 0:修改成功,非 0:修改失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyItemSwitchStatusResponse ¶
func NewModifyItemSwitchStatusResponse() (response *ModifyItemSwitchStatusResponse)
func (*ModifyItemSwitchStatusResponse) FromJsonString ¶
func (r *ModifyItemSwitchStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyItemSwitchStatusResponse) ToJsonString ¶
func (r *ModifyItemSwitchStatusResponse) ToJsonString() string
type ModifySecurityGroupAllRuleStatusRequest ¶
type ModifySecurityGroupAllRuleStatusRequest struct {
*tchttp.BaseRequest
// 列表规则状态,0:全部停用,1:全部启用
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// Edge ID值
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// NAT地域, 腾讯云地域的英文简写
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewModifySecurityGroupAllRuleStatusRequest ¶
func NewModifySecurityGroupAllRuleStatusRequest() (request *ModifySecurityGroupAllRuleStatusRequest)
func (*ModifySecurityGroupAllRuleStatusRequest) FromJsonString ¶
func (r *ModifySecurityGroupAllRuleStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySecurityGroupAllRuleStatusRequest) ToJsonString ¶
func (r *ModifySecurityGroupAllRuleStatusRequest) ToJsonString() string
type ModifySecurityGroupAllRuleStatusResponse ¶
type ModifySecurityGroupAllRuleStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0: 修改成功, 其他: 修改失败
// 注意:此字段可能返回 null,表示取不到有效值。
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifySecurityGroupAllRuleStatusResponse ¶
func NewModifySecurityGroupAllRuleStatusResponse() (response *ModifySecurityGroupAllRuleStatusResponse)
func (*ModifySecurityGroupAllRuleStatusResponse) FromJsonString ¶
func (r *ModifySecurityGroupAllRuleStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySecurityGroupAllRuleStatusResponse) ToJsonString ¶
func (r *ModifySecurityGroupAllRuleStatusResponse) ToJsonString() string
type ModifySequenceRulesRequest ¶
type ModifySequenceRulesRequest struct {
*tchttp.BaseRequest
// 边Id值
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// 修改数据
Data []*SequenceData `json:"Data,omitempty" name:"Data" list`
// NAT地域
Area *string `json:"Area,omitempty" name:"Area"`
// 方向,0:出向,1:入向
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
}
func NewModifySequenceRulesRequest ¶
func NewModifySequenceRulesRequest() (request *ModifySequenceRulesRequest)
func (*ModifySequenceRulesRequest) FromJsonString ¶
func (r *ModifySequenceRulesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySequenceRulesRequest) ToJsonString ¶
func (r *ModifySequenceRulesRequest) ToJsonString() string
type ModifySequenceRulesResponse ¶
type ModifySequenceRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0: 修改成功, 非0: 修改失败
// 注意:此字段可能返回 null,表示取不到有效值。
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifySequenceRulesResponse ¶
func NewModifySequenceRulesResponse() (response *ModifySequenceRulesResponse)
func (*ModifySequenceRulesResponse) FromJsonString ¶
func (r *ModifySequenceRulesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySequenceRulesResponse) ToJsonString ¶
func (r *ModifySequenceRulesResponse) ToJsonString() string
type ModifyTableStatusRequest ¶
type ModifyTableStatusRequest struct {
*tchttp.BaseRequest
// EdgeId值两个vpc间的边id
EdgeId *string `json:"EdgeId,omitempty" name:"EdgeId"`
// 状态值,1:锁表,2:解锁表
Status *uint64 `json:"Status,omitempty" name:"Status"`
// Nat所在地域
Area *string `json:"Area,omitempty" name:"Area"`
// 0: 出向,1:入向
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
}
func NewModifyTableStatusRequest ¶
func NewModifyTableStatusRequest() (request *ModifyTableStatusRequest)
func (*ModifyTableStatusRequest) FromJsonString ¶
func (r *ModifyTableStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTableStatusRequest) ToJsonString ¶
func (r *ModifyTableStatusRequest) ToJsonString() string
type ModifyTableStatusResponse ¶
type ModifyTableStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0:正常,-1:不正常
// 注意:此字段可能返回 null,表示取不到有效值。
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyTableStatusResponse ¶
func NewModifyTableStatusResponse() (response *ModifyTableStatusResponse)
func (*ModifyTableStatusResponse) FromJsonString ¶
func (r *ModifyTableStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTableStatusResponse) ToJsonString ¶
func (r *ModifyTableStatusResponse) ToJsonString() string
type NatFwEipsInfo ¶
type NatFwEipsInfo struct {
// 弹性公网ip
Eip *string `json:"Eip,omitempty" name:"Eip"`
// 所属的Nat网关Id
// 注意:此字段可能返回 null,表示取不到有效值。
NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"`
// Nat网关名称
// 注意:此字段可能返回 null,表示取不到有效值。
NatGatewayName *string `json:"NatGatewayName,omitempty" name:"NatGatewayName"`
}
type RuleInfoData ¶
type RuleInfoData struct {
// 执行顺序
OrderIndex *uint64 `json:"OrderIndex,omitempty" name:"OrderIndex"`
// 访问源
SourceIp *string `json:"SourceIp,omitempty" name:"SourceIp"`
// 访问目的
TargetIp *string `json:"TargetIp,omitempty" name:"TargetIp"`
// 协议
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 策略
Strategy *string `json:"Strategy,omitempty" name:"Strategy"`
// 访问源类型,1是IP,3是域名,4是IP地址模版,5是域名地址模版
SourceType *uint64 `json:"SourceType,omitempty" name:"SourceType"`
// 方向,0:出站,1:入站
Direction *uint64 `json:"Direction,omitempty" name:"Direction"`
// 描述
Detail *string `json:"Detail,omitempty" name:"Detail"`
// 访问目的类型,1是IP,3是域名,4是IP地址模版,5是域名地址模版
TargetType *uint64 `json:"TargetType,omitempty" name:"TargetType"`
// 端口
Port *string `json:"Port,omitempty" name:"Port"`
// id值
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 日志id,从告警处创建必传,其它为空
LogId *string `json:"LogId,omitempty" name:"LogId"`
// 城市Code
City *uint64 `json:"City,omitempty" name:"City"`
// 国家Code
Country *uint64 `json:"Country,omitempty" name:"Country"`
// 云厂商,支持多个,以逗号分隔, 1:腾讯云(仅中国香港及海外),2:阿里云,3:亚马逊云,4:华为云,5:微软云
CloudCode *string `json:"CloudCode,omitempty" name:"CloudCode"`
// 是否为地域
IsRegion *uint64 `json:"IsRegion,omitempty" name:"IsRegion"`
// 城市名
CityName *string `json:"CityName,omitempty" name:"CityName"`
// 国家名
CountryName *string `json:"CountryName,omitempty" name:"CountryName"`
}
type RunSyncAssetRequest ¶
type RunSyncAssetRequest struct {
*tchttp.BaseRequest
// 0: 互联网防火墙开关,1:vpc 防火墙开关
Type *uint64 `json:"Type,omitempty" name:"Type"`
}
func NewRunSyncAssetRequest ¶
func NewRunSyncAssetRequest() (request *RunSyncAssetRequest)
func (*RunSyncAssetRequest) FromJsonString ¶
func (r *RunSyncAssetRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RunSyncAssetRequest) ToJsonString ¶
func (r *RunSyncAssetRequest) ToJsonString() string
type RunSyncAssetResponse ¶
type RunSyncAssetResponse struct {
*tchttp.BaseResponse
Response *struct {
// 0:同步成功,1:资产更新中,2:后台同步调用失败
Status *int64 `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRunSyncAssetResponse ¶
func NewRunSyncAssetResponse() (response *RunSyncAssetResponse)
func (*RunSyncAssetResponse) FromJsonString ¶
func (r *RunSyncAssetResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RunSyncAssetResponse) ToJsonString ¶
func (r *RunSyncAssetResponse) ToJsonString() string
type SecurityGroupApiRuleData ¶
type SecurityGroupApiRuleData struct {
// 访问源,入站时为Ip/Cidr,默认为0.0.0.0/0; 出站时当RuleType为1时,支持内网Ip/Cidr, 当RuleType为2时,填实例ID
SourceId *string `json:"SourceId,omitempty" name:"SourceId"`
// 访问目的,出站时为Ip/Cidr,默认为0.0.0.0/0;入站时当RuleType为1时,支持内网Ip/Cidr, 当RuleType为2时,填实例ID
TargetId *string `json:"TargetId,omitempty" name:"TargetId"`
// 协议,支持ANY/TCP/UDP/ICMP
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 端口, 当Protocol为ANY或ICMP时,Port为-1/-1
Port *string `json:"Port,omitempty" name:"Port"`
// 策略, 1:阻断,2:放行
Strategy *string `json:"Strategy,omitempty" name:"Strategy"`
// 描述
Detail *string `json:"Detail,omitempty" name:"Detail"`
// 规则类型,1:VpcId+Ip/Cidr, 2: 实例ID,入站时为访问目的类型,出站时为访问源类型
RuleType *uint64 `json:"RuleType,omitempty" name:"RuleType"`
// 执行顺序,中间插入必传,前插、后插非必传
OrderIndex *uint64 `json:"OrderIndex,omitempty" name:"OrderIndex"`
// 私有网络ID,当RuleType为1时必传
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
}
type SecurityGroupListData ¶
type SecurityGroupListData struct {
// 规则ID
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 执行顺序
OrderIndex *uint64 `json:"OrderIndex,omitempty" name:"OrderIndex"`
// 访问源
SourceId *string `json:"SourceId,omitempty" name:"SourceId"`
// 访问源类型,默认为0,1: VPC, 2: SUBNET, 3: CVM, 4: CLB, 5: ENI, 6: CDB
SourceType *uint64 `json:"SourceType,omitempty" name:"SourceType"`
// 访问目的
TargetId *string `json:"TargetId,omitempty" name:"TargetId"`
// 访问目的类型,默认为0,1: VPC, 2: SUBNET, 3: CVM, 4: CLB, 5: ENI, 6: CDB
TargetType *uint64 `json:"TargetType,omitempty" name:"TargetType"`
// 协议
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 目的端口
Port *string `json:"Port,omitempty" name:"Port"`
// 策略, 1:阻断,2:放行
Strategy *uint64 `json:"Strategy,omitempty" name:"Strategy"`
// 描述
Detail *string `json:"Detail,omitempty" name:"Detail"`
// 是否开关开启,0:未开启,1:开启
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 是否是正常规则,0:正常,1:异常
IsNew *uint64 `json:"IsNew,omitempty" name:"IsNew"`
// 单/双向下发,0:单向下发,1:双向下发
BothWay *uint64 `json:"BothWay,omitempty" name:"BothWay"`
// 私有网络ID
// 注意:此字段可能返回 null,表示取不到有效值。
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// 子网ID
// 注意:此字段可能返回 null,表示取不到有效值。
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// 实例名称
// 注意:此字段可能返回 null,表示取不到有效值。
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// 公网IP,多个以英文逗号分隔
// 注意:此字段可能返回 null,表示取不到有效值。
PublicIp *string `json:"PublicIp,omitempty" name:"PublicIp"`
// 内网IP,多个以英文逗号分隔
// 注意:此字段可能返回 null,表示取不到有效值。
PrivateIp *string `json:"PrivateIp,omitempty" name:"PrivateIp"`
// 掩码地址,多个以英文逗号分隔
// 注意:此字段可能返回 null,表示取不到有效值。
Cidr *string `json:"Cidr,omitempty" name:"Cidr"`
}
type SequenceData ¶
type SetNatFwDnatRuleRequest ¶
type SetNatFwDnatRuleRequest struct {
*tchttp.BaseRequest
// 0:cfw新增模式,1:cfw接入模式。
Mode *uint64 `json:"Mode,omitempty" name:"Mode"`
// 操作类型,可选值:add,del,modify。
OperationType *string `json:"OperationType,omitempty" name:"OperationType"`
// 防火墙实例id。
CfwInstance *string `json:"CfwInstance,omitempty" name:"CfwInstance"`
// 添加或删除操作的Dnat规则列表。
AddOrDelDnatRules []*CfwNatDnatRule `json:"AddOrDelDnatRules,omitempty" name:"AddOrDelDnatRules" list`
// 修改操作的原始Dnat规则
OriginDnat *CfwNatDnatRule `json:"OriginDnat,omitempty" name:"OriginDnat"`
// 修改操作的新的Dnat规则
NewDnat *CfwNatDnatRule `json:"NewDnat,omitempty" name:"NewDnat"`
}
func NewSetNatFwDnatRuleRequest ¶
func NewSetNatFwDnatRuleRequest() (request *SetNatFwDnatRuleRequest)
func (*SetNatFwDnatRuleRequest) FromJsonString ¶
func (r *SetNatFwDnatRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetNatFwDnatRuleRequest) ToJsonString ¶
func (r *SetNatFwDnatRuleRequest) ToJsonString() string
type SetNatFwDnatRuleResponse ¶
type SetNatFwDnatRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSetNatFwDnatRuleResponse ¶
func NewSetNatFwDnatRuleResponse() (response *SetNatFwDnatRuleResponse)
func (*SetNatFwDnatRuleResponse) FromJsonString ¶
func (r *SetNatFwDnatRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetNatFwDnatRuleResponse) ToJsonString ¶
func (r *SetNatFwDnatRuleResponse) ToJsonString() string
type SwitchListsData ¶
type SwitchListsData struct {
// 公网IP
// 注意:此字段可能返回 null,表示取不到有效值。
PublicIp *string `json:"PublicIp,omitempty" name:"PublicIp"`
// 内网IP
// 注意:此字段可能返回 null,表示取不到有效值。
IntranetIp *string `json:"IntranetIp,omitempty" name:"IntranetIp"`
// 实例名
// 注意:此字段可能返回 null,表示取不到有效值。
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
// 实例ID
// 注意:此字段可能返回 null,表示取不到有效值。
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// 资产类型
AssetType *string `json:"AssetType,omitempty" name:"AssetType"`
// 地域
// 注意:此字段可能返回 null,表示取不到有效值。
Area *string `json:"Area,omitempty" name:"Area"`
// 防火墙开关
Switch *int64 `json:"Switch,omitempty" name:"Switch"`
// id值
Id *uint64 `json:"Id,omitempty" name:"Id"`
// 公网 IP 类型
// 注意:此字段可能返回 null,表示取不到有效值。
PublicIpType *uint64 `json:"PublicIpType,omitempty" name:"PublicIpType"`
// 风险端口数
// 注意:此字段可能返回 null,表示取不到有效值。
PortTimes *uint64 `json:"PortTimes,omitempty" name:"PortTimes"`
// 最近扫描时间
// 注意:此字段可能返回 null,表示取不到有效值。
LastTime *string `json:"LastTime,omitempty" name:"LastTime"`
// 扫描深度
// 注意:此字段可能返回 null,表示取不到有效值。
ScanMode *string `json:"ScanMode,omitempty" name:"ScanMode"`
// 扫描状态
// 注意:此字段可能返回 null,表示取不到有效值。
ScanStatus *uint64 `json:"ScanStatus,omitempty" name:"ScanStatus"`
}