UNPKG

tencentcloud-sdk-nodejs

Version:
2,182 lines 74.5 kB
/** * DescribeTaskResult返回参数结构体 */ export interface DescribeTaskResultResponse { /** * 任务状态。 */ Status?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DeleteGlobalAcceleratorAccessLog请求参数结构体 */ export interface DeleteGlobalAcceleratorAccessLogRequest { /** * <p>日志唯一Id</p> */ LogPushTaskId: string; /** * <p>GA实例唯一Id</p> */ GlobalAcceleratorId: string; } /** * DescribeEndpointGroups返回参数结构体 */ export interface DescribeEndpointGroupsResponse { /** * <p>符合条件的终端节点组。</p> */ EndpointGroupConfigurationSet?: Array<EndpointGroupConfigurationSet>; /** * <p>符合条件的实例个数。</p> */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * ReplaceListenerAdditionalCert返回参数结构体 */ export interface ReplaceListenerAdditionalCertResponse { /** * 任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateForwardingRule请求参数结构体 */ export interface CreateForwardingRuleRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>策略ID。</p> */ ForwardingPolicyId: string; /** * <p>七层转发规则条件信息。</p><p>数组长度最大不能超过1。</p> */ RuleConditions: Array<RuleCondition>; /** * <p>七层转发规则行为信息。</p><p>数组长度最大不能超过1。</p> */ RuleActions: Array<RuleAction>; /** * <p>回源Header信息。</p><p>数组长度最大不能超过5。当RuleActions.RuleActionType是ForwardGroup时,此字段必传。</p> */ OriginHeaders?: Array<OriginHeader>; /** * <p>是否开启回源sni。</p><p>默认值:False</p><p>当RuleActions.RuleActionType是ForwardGroup时,此字段必传。</p> */ EnableOriginSni?: boolean; /** * <p>回源sni。</p><p>入参限制:长度不能超过80。</p><p>当EnableOriginSni为True时,此字段必传。当RuleActions.RuleActionType是ForwardGroup时,此字段必传。</p> */ OriginSni?: string; /** * <p>回源host。</p><p>入参限制:长度不超过80。</p><p>当RuleActions.RuleActionType是ForwardGroup时,此字段必传。</p> */ OriginHost?: string; /** * <p>源站响应头</p><p>数组长度不超过5。可以传空数组,代表清空配置。</p> */ ResponseHeaders?: Array<ResponseHeaders>; /** * <p>删除源站响应头</p><p>数组长度不超过5。可以传空数组,代表清空配置。</p> */ HideResponseHeaders?: Array<HideResponseHeaders>; } /** * DescribeGlobalAcceleratorAccessLog返回参数结构体 */ export interface DescribeGlobalAcceleratorAccessLogResponse { /** * <p>返回日志任务详情</p> */ GlobalAcceleratorAccessLog?: Array<GlobalAcceleratorAccessLog>; /** * <p>日志任务条数。</p> */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DescribeForwardingPolicy返回参数结构体 */ export interface DescribeForwardingPolicyResponse { /** * 符合条件的策略信息。 */ ForwardingPolicySet?: Array<ForwardingPolicySet>; /** * 符合条件的实例个数。 */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateGlobalAccelerator请求参数结构体 */ export interface CreateGlobalAcceleratorRequest { /** * <p>名称,最大长度不能超过128个字节,不能为空。</p><p>参数格式:满足正则 ^[a-zA-Z\u4e00-\u9fa5](首字符是英文字母或汉字),并且不满足正则 ^[\d._-]*$(整串不能只由数字/./_/-组成)。</p> */ Name: string; /** * <p>计费模式,PREPAID:表示预付费,即包年包月,POSTPAID:表示后付费,即按量计费。默认:POSTPAID。当前仅支持后付费。</p> */ InstanceChargeType?: string; /** * <p>描述信息,最大长度不能超过100个字节。</p> */ Description?: string; /** * <p>跨境类型;HighQuality:精品BGP-IP跨境;Unicom:联通专线跨境。</p> */ CrossBorderType?: string; /** * <p>此Flag代表签署跨境服务承诺书。当使用跨境服务时候,此字段必传。True:代表签署。</p> */ CrossBorderPromiseFlag?: boolean; /** * <p>标签信息</p> */ Tags?: Array<Tag>; } /** * DescribeCrossBorderSettlement请求参数结构体 */ export interface DescribeCrossBorderSettlementRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 加速地域。 */ AccelerateRegion: string; /** * 终端节点组地域。 */ EndpointGroupRegion: string; /** * 账单年月时间。 */ SettlementMonth: number; } /** * CreateListenerAdditionalCert返回参数结构体 */ export interface CreateListenerAdditionalCertResponse { /** * <p>任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DeleteGlobalAcceleratorAclPolicy返回参数结构体 */ export interface DeleteGlobalAcceleratorAclPolicyResponse { /** * 异步任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateAccelerateAreas返回参数结构体 */ export interface CreateAccelerateAreasResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DescribeEndpointGroups请求参数结构体 */ export interface DescribeEndpointGroupsRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>偏移量,默认为0。</p> */ Offset?: number; /** * <p>返回数量,默认为10,最大值为10。</p> */ Limit?: number; /** * <p>过滤条件。 endpoint-group-id- String -(过滤条件)终端节点组实例ID。endpoint-group-type- String -(过滤条件)终端节点组实例类型。</p> */ Filters?: Array<Filter>; } /** * 响应Header */ export interface ResponseHeaders { /** * <p>key</p><p>参数格式:1、字符串只包含可打印的ASCII字符 2、不能包含这些字符()&lt;&gt;@,;:\&quot;/[ ]?={ }</p><p>入参限制:长度在1-40。</p> */ Key: string; /** * <p>value</p><p>入参限制:长度不能超过128</p><p>如果字符串包含$,那仅能配置&#39;$remote_addr&#39;, &#39;$remote_port&#39;,否则不支持。</p> */ Value: string; } /** * DescribeGlobalAcceleratorAclRules请求参数结构体 */ export interface DescribeGlobalAcceleratorAclRulesRequest { /** * <p>访问控制策略ID。</p> */ GlobalAcceleratorAclPolicyId: string; /** * <p>偏移量,默认为0。</p> */ Offset?: number; /** * <p>返回数量。</p><p>取值范围:[1, 200]</p><p>默认值:20</p> */ Limit?: number; } /** * DeleteGlobalAcceleratorAclRule返回参数结构体 */ export interface DeleteGlobalAcceleratorAclRuleResponse { /** * 异步任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DescribeAccessLogParam返回参数结构体 */ export interface DescribeAccessLogParamResponse { /** * <p>七层可选参数</p> */ L7Param?: Array<string>; /** * <p>四层可选参数</p> */ L4Param?: Array<string>; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * ModifyGlobalAccelerator返回参数结构体 */ export interface ModifyGlobalAcceleratorResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 七层转发规则行为信息 */ export interface RuleAction { /** * <p>七层转发规则行为类型</p><p>枚举值:</p><ul><li>ForwardGroup: 转发策略为转发至终端节点组。</li><li>Drop: 转发策略为丢弃。</li></ul> 注意:此字段可能返回 null,表示取不到有效值。 */ RuleActionType: string; /** * <p>七层转发规则行为值</p><p>当RuleActionType是Drop时,此字段不用传;当RuleActionType是ForwardGroup时,此字段必传,需要填写的是自定义终端节点组ID, 不支持配置默认终端节点组。</p> 注意:此字段可能返回 null,表示取不到有效值。 */ RuleActionValue?: string; } /** * DeleteEndpointGroups请求参数结构体 */ export interface DeleteEndpointGroupsRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 监听器ID。 */ ListenerId: string; /** * 终端节点组ID。 */ EndpointGroupIds: Array<string>; } /** * ModifyEndpointGroup请求参数结构体 */ export interface ModifyEndpointGroupRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>终端节点组ID。</p> */ EndpointGroupId: string; /** * <p>终端节点配置。</p> */ EndpointConfigurations?: Array<EndpointConfigurations>; /** * <p>名称。</p><p>入参限制:最大长度不能超过128个字节。</p><p>以大小写字母或中文开头。</p> */ Name?: string; /** * <p>描述信息。</p><p>入参限制:最大长度不能超过100个字节。</p> */ Description?: string; /** * <p>是否开启健康检查。</p> */ EnableHealthCheck?: boolean; /** * <p>响应超时时间。</p><p>取值范围:[1, 100]</p><p>当开启健康检查时候,此参数必传。</p> */ ConnectTimeout?: number; /** * <p>健康检查间隔。</p><p>取值范围:[5, 300]</p><p>当开启健康检查时,此参数必传。</p> */ HealthCheckInterval?: number; /** * <p>不健康阀值。</p><p>取值范围:[1, 10]</p><p>当开启健康检查时,此字段必传。</p> */ UnhealthyThreshold?: number; /** * <p>健康阀值。</p><p>取值范围:[1, 10]</p><p>当开启健康检查时,此字段必传。</p> */ HealthyThreshold?: number; /** * <p>检查协议。</p><p>入参限制:支持填写:&#39;TCP&#39;, &#39;HTTP&#39;, &#39;PING&#39;, &#39;CUSTOM&#39;。</p><p>1、当监听器是TCP时,可以选CUSTOM+TCP。<br>2、当监听器是UDP时,可以选PING+CUSTOM。<br>3、当监听器是HTTP或HTTPS时,可以选HTTP。</p> */ CheckType?: string; /** * <p>检查端口。</p><p>取值范围:[1, 65535]</p><p>当CheckType是CUSTOM时,此字段必传。</p> */ CheckPort?: number; /** * <p>检查内容。</p><p>入参限制:仅支持TEXT。</p><p>当CheckType是CUSTOM时,此字段必传。</p> */ ContextType?: string; /** * <p>检查请求。</p><p>入参限制:长度范围在1-500。</p><p>当CheckType是CUSTOM时,此字段必传。</p> */ CheckSendContext?: string; /** * <p>检查返回结果。</p><p>入参限制:长度范围在1-500。</p><p>当CheckType是CUSTOM时,此字段必传。</p> */ CheckRecvContext?: string; /** * <p>检查域名。</p><p>入参限制:长度范围在3-80。</p><p>当CheckType是HTTP时,此字段必传。</p> */ CheckDomain?: string; /** * <p>检查URL。</p><p>入参限制:长度范围在3-80。</p><p>当CheckType是HTTP时,此字段必传。</p> */ CheckPath?: string; /** * <p>请求方式。</p><p>入参限制:支持填写 &#39;GET&#39;, &#39;HEAD&#39;。</p><p>当CheckType是HTTP时,此字段必传。</p> */ CheckMethod?: string; /** * <p>状态检测码。</p><p>入参限制:支持选择&#39;http_2xx&#39;, &#39;http_3xx&#39;, &#39;http_4xx&#39;, &#39;http_5xx&#39;。</p><p>当CheckType是HTTP时,此字段必传。</p> */ StatusMask?: Array<string>; /** * <p>回源协议。</p><p>入参限制:支持选择:&#39;HTTP&#39;, &#39;HTTPS&#39;。</p><p>当监听器协议是HTTP时只能配置HTTP,是HTTPS时能配HTTP或HTTPS。</p> */ ForwardProtocol?: string; /** * <p>端口映射。</p><p>当监听器协议是HTTP或HTTPS支持配置一对。当监听器协议是UDP或TCP支持配置最多30对。</p> */ PortOverrides?: Array<PortOverride>; /** * <p>HPPTS加密算法套件</p><p>入参限制:支持选择&#39;tls_policy_1.0-2&#39;, &#39;tls_policy_1.1-2&#39;, &#39;tls_policy_1.2&#39;, &#39;tls_policy_1.2_strict&#39;, &#39;tls_policy_1.2_strict-1.3&#39;。</p><p>当监听器协议是HTTPS时,才支持修改此参数。</p> */ CipherPolicyId?: string; /** * <p>仅HTTPS回源协议支持选择[&#39;HTTP/1.1&#39;, &#39;HTTP/2&#39;]</p><p>枚举值:</p><ul><li>HTTP/1.1: 版本HTTP/1.1</li><li>HTTP/2: 版本HTTP/2</li></ul> */ HttpVersion?: string; } /** * ReplaceListenerAdditionalCert请求参数结构体 */ export interface ReplaceListenerAdditionalCertRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 监听器ID。 */ ListenerId: string; /** * 证书ID。 */ AdditionalCertificate: string; /** * 旧的证书ID。 */ OldCertificate: string; } /** * ModifyGlobalAcceleratorAclPolicy请求参数结构体 */ export interface ModifyGlobalAcceleratorAclPolicyRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>访问控制策略ID。</p> */ GlobalAcceleratorAclPolicyId: string; /** * <p>访问控制策略状态。</p><p>枚举值:</p><ul><li>OPEN: 打开。</li><li>CLOSE: 关闭。</li></ul> */ Status: string; } /** * 终端节点组信息 */ export interface EndpointGroupConfigurationSet { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId?: string; /** * <p>监听器实例ID。</p> */ ListenerId?: string; /** * <p>终端节点组ID。</p> */ EndpointGroupId?: string; /** * <p>名称。</p> */ Name?: string; /** * <p>地域。</p> */ EndpointGroupRegion?: string; /** * <p>描述。</p> */ Description?: string; /** * <p>终端节点信息。</p> */ EndpointConfigurations?: Array<EndpointConfigurations>; /** * <p>是否开启健康检查。</p> */ EnableHealthCheck?: boolean; /** * <p>响应超时时间。</p> */ ConnectTimeout?: number; /** * <p>健康检查间隔。</p> */ HealthCheckInterval?: number; /** * <p>不健康阈值。</p> */ UnhealthyThreshold?: number; /** * <p>健康阈值。</p> */ HealthyThreshold?: number; /** * <p>检查协议。</p> */ CheckType?: string; /** * <p>检查端口。</p> */ CheckPort?: number; /** * <p>检查内容。</p> */ ContextType?: string; /** * <p>检查请求。</p> */ CheckSendContext?: string; /** * <p>检查返回结果。</p> */ CheckRecvContext?: string; /** * <p>检查域名。</p> */ CheckDomain?: string; /** * <p>检查URL。</p> */ CheckPath?: string; /** * <p>请求方式。</p> */ CheckMethod?: string; /** * <p>状态检测码。</p> */ StatusMask?: Array<string>; /** * <p>终端节点组类型。</p> */ EndpointGroupType?: string; /** * <p>回源协议。</p> */ ForwardProtocol?: string; /** * <p>端口映射信息。</p> */ PortOverrides?: Array<PortOverride>; /** * <p>自定义终端节点组是否绑定七层转发规则。</p> */ VirtualExistForwardingRuleFlag?: boolean; /** * <p>出终端节点组公网IP。</p> */ OriginPublicIps?: Array<string>; /** * <p>运营商类型;中国移动(CMCC),中国联通(CUCC),中国电信(CTCC)。</p> */ IspType?: string; /** * <p>HPPTS加密算法套件</p> */ CipherPolicyId?: string; /** * <p>仅HTTPS回源协议支持选择[&#39;HTTP/1.1&#39;, &#39;HTTP/2&#39;]</p><p>枚举值:</p><ul><li>HTTP/1.1: 版本HTTP/1.1</li><li>HTTP/2: 版本HTTP/2</li></ul> */ HttpVersion?: string; } /** * DescribeGlobalAccelerators返回参数结构体 */ export interface DescribeGlobalAcceleratorsResponse { /** * <p>符合条件的全球加速实例。</p> */ GlobalAcceleratorSet?: Array<GlobalAcceleratorSet>; /** * <p>符合条件的实例个数。</p> */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * ModifyGlobalAcceleratorAccessLog请求参数结构体 */ export interface ModifyGlobalAcceleratorAccessLogRequest { /** * <p>日志唯一Id</p> */ LogPushTaskId: string; /** * <p>GA实例唯一Id</p> */ GlobalAcceleratorId: string; /** * <p>日志主题Id</p> */ CloudLogId?: string; /** * <p>日志集Id</p> */ CloudLogSetId?: string; /** * <p>用户可选日志监听字段</p><p>枚举值:</p><ul><li>session_time: 四层,会话持续时间</li><li>upstream_bytes_received: 四层、七层,从终端节点接收的字节数</li><li>upstream_bytes_sent: 四层、七层,发送给终端节点的字节数</li><li>request_method: 七层,GET/POST</li><li>scheme: 七层,http/https</li><li>request_uri: 七层,客户端原始请求的URI</li><li>uri: 七层,当前请求的URI</li><li>host: 七层,客户端访问域名(七层)</li><li>remote_user: 七层,基本认证时的用户名(未认证时为&quot;-&quot;)</li><li>http_user_agent: 七层,客户端浏览器标识</li><li>http_referer: 七层,请求来源URL(直接从地址栏访问时为&quot;-&quot;)</li><li>http_x_forwarded_for: 七层,记录客户端原始IP及经过的代理服务器IP链</li><li>content_type: 七层,content_type</li><li>body_bytes_sent: 七层,发送给客户端的http body大小,不包含header</li><li>request_time: 七层,从接收到客户端请求的第一个字节到发送完响应最后一个字节之间的总时间(单位:秒)</li><li>sent_http_content_type: 七层,响应内容类型</li><li>upstream_header_time: 七层,终端节点的响应头到达时间</li><li>upstream_response_length: 七层,终端节点返回的响应体长度</li><li>upstream_response_time: 七层,终端节点完整响应时间</li><li>upstream_status: 七层,终端节点返回的HTTP状态码</li></ul> */ FieldKeys?: Array<string>; /** * <p>日志描述</p> */ FlowLogDescription?: string; } /** * DescribeListeners返回参数结构体 */ export interface DescribeListenersResponse { /** * 符合条件的监听器实例。 */ ListenerSet?: Array<ListenerSet>; /** * 符合条件的实例个数。 */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateForwardingPolicy请求参数结构体 */ export interface CreateForwardingPolicyRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>域名。</p><p>参数格式:格式,必须满足正则表达式:^(<a href="?:[a-z0-9-]{0,61}[a-z0-9]">a-z0-9</a>?.)+[a-z]{2,}$</p><p>入参限制:长度范围是1-80。</p> */ Host: string; } /** * DeleteListenerAdditionalCert返回参数结构体 */ export interface DeleteListenerAdditionalCertResponse { /** * 任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * Acl信息 */ export interface AclEntries { /** * <p>协议。</p><p>入参限制:支持配置&#39;TCP&#39;, &#39;UDP&#39;, &#39;ALL&#39;;</p> */ Protocol: string; /** * <p>端口。</p> */ Port: string; /** * <p>网段。</p> */ SourceCidrBlock: string; /** * <p>执行动作。</p><p>入参限制:支持配置&#39;ACCEPT&#39;, &#39;DROP&#39;;</p> */ Policy: string; /** * <p>描述信息,最大长度不能超过100个字节。</p> */ Description?: string; } /** * ModifyForwardingPolicy请求参数结构体 */ export interface ModifyForwardingPolicyRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>策略ID。</p> */ ForwardingPolicyId: string; /** * <p>域名。</p><p>入参限制:长度范围在1-80。</p><p>格式必须满足正则表达式:^(<a href="?:[a-z0-9-]{0,61}[a-z0-9]">a-z0-9</a>?.)+[a-z]{2,}$</p> */ Host: string; } /** * DescribeGlobalAcceleratorAccessLog请求参数结构体 */ export interface DescribeGlobalAcceleratorAccessLogRequest { /** * <p>ga实例唯一Id</p> */ GlobalAcceleratorId: string; /** * <p>查询过滤参数。{ &quot;Name&quot;: &quot;listener-id&quot;, &quot;Values&quot;: [&quot;监听器唯一Id&quot;] },{ &quot;Name&quot;: &quot;endpoint-group-id&quot;, &quot;Values&quot;: [&quot;终端节点组唯一Id&quot;] },{ &quot;Name&quot;: &quot;access_log_id&quot;, &quot;Values&quot;: [&quot;日志唯一Id&quot;] }</p> */ Filters?: Array<Filter>; /** * <p>偏移量,默认为0。</p> */ Offset?: number; /** * <p>返回数量。</p><p>取值范围:[0, 200]</p> */ Limit?: number; } /** * CreateListenerAdditionalCert请求参数结构体 */ export interface CreateListenerAdditionalCertRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>证书ID。</p><p>当前只能添加服务器证书。</p> */ AdditionalCertificates: Array<string>; } /** * DeleteListenerAdditionalCert请求参数结构体 */ export interface DeleteListenerAdditionalCertRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 监听器ID。 */ ListenerId: string; /** * 证书ID。 */ AdditionalCertificates: Array<string>; } /** * DescribeGlobalAccelerators请求参数结构体 */ export interface DescribeGlobalAcceleratorsRequest { /** * <p>偏移量,默认为0。</p> */ Offset?: number; /** * <p>返回数量。</p><p>取值范围:[1, 200]</p><p>默认值:20</p> */ Limit?: number; /** * <p>过滤条件。<li>global-accelerator-id - String -(过滤条件)全球加速实例ID。</li> <li>global-accelerator-state - String -(过滤条件)全球加速实例状态。</li></p> */ Filters?: Array<Filter>; } /** * DeleteGlobalAcceleratorAclRule请求参数结构体 */ export interface DeleteGlobalAcceleratorAclRuleRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 安全策略ID */ GlobalAcceleratorAclPolicyId: string; /** * Acl规则ID。 */ GlobalAcceleratorAclRuleIds: Array<string>; } /** * 标签键值对 */ export interface Tag { /** * 标签键 */ Key: string; /** * 标签值 */ Value: string; } /** * ModifyAccelerateAreas返回参数结构体 */ export interface ModifyAccelerateAreasResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 终端节点配置 */ export interface EndpointConfigurations { /** * <p>域名类型。可选值&#39;Domain&#39;, &#39;PublicIp&#39;。</p> */ EndpointType: string; /** * <p>域名。</p> */ EndpointService: string; /** * <p>权重。</p> */ Weight: number; /** * <p>健康检查状态;HEALTH:健康;UNHEALTH:不健康。</p> */ HealthCheckStatus?: string; } /** * 端口范围 */ export interface PortRanges { /** * 起始端口。 注意:此字段可能返回 null,表示取不到有效值。 */ FromPort: number; /** * 终点端口。 注意:此字段可能返回 null,表示取不到有效值。 */ ToPort: number; } /** * ModifyGlobalAcceleratorAclPolicy返回参数结构体 */ export interface ModifyGlobalAcceleratorAclPolicyResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * ModifyAccessLogStatus请求参数结构体 */ export interface ModifyAccessLogStatusRequest { /** * <p>日志唯一Id</p> */ LogPushTaskId: string; /** * <p>状态(启动START, 停止STOP)</p><p>枚举值:</p><ul><li>START: 启动</li><li>STOP: 停止</li></ul> */ Status: string; /** * <p>GA实例唯一Id</p> */ GlobalAcceleratorId: string; } /** * DeleteListener请求参数结构体 */ export interface DeleteListenerRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 监听器ID。 */ ListenerId: string; } /** * CreateGlobalAcceleratorAclPolicy请求参数结构体 */ export interface CreateGlobalAcceleratorAclPolicyRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>默认行为。</p><p>枚举值:</p><ul><li>ACCEPT: 默认准许所有流量访问通道</li><li>DROP: 默认拒绝所有流量访问通道</li></ul> */ DefaultAction: string; } /** * DescribeForwardingRule请求参数结构体 */ export interface DescribeForwardingRuleRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 监听器ID。 */ ListenerId: string; /** * 七层转发规则ID。 */ ForwardingPolicyId: string; /** * 偏移量,默认为0。 */ Offset?: number; /** * 返回数量,默认为20,最大值为100。 */ Limit?: number; } /** * CreateGlobalAcceleratorAccessLog返回参数结构体 */ export interface CreateGlobalAcceleratorAccessLogResponse { /** * <p>日志任务唯一Id</p> */ LogPushTaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DeleteEndpointGroups返回参数结构体 */ export interface DeleteEndpointGroupsResponse { /** * 任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DescribeAccelerateAreas返回参数结构体 */ export interface DescribeAccelerateAreasResponse { /** * <p>加速地域信息。</p> */ AccelerateAreaSet?: Array<AcceleratorAreas>; /** * <p>实例个数。</p> */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 终端节点组配置 */ export interface EndpointGroupConfiguration { /** * <p>终端节点组名称。</p><p>最大长度不能超过128个字节。必须以字母(a-z, A-Z)或中文字符开头。</p> */ Name: string; /** * <p>终端节点组所在地域。</p> */ EndpointGroupRegion: string; /** * <p>终端节点配置。</p> */ EndpointConfigurations: Array<EndpointConfigurations>; /** * <p>检查协议。支持配置&#39;TCP&#39;, &#39;HTTP&#39;, &#39;PING&#39;, &#39;CUSTOM&#39;。</p><p>枚举值:</p><ul><li>TCP: 当终端节点组所在监听器协议是TCP时,可以选择检查协议为TCP。</li><li>HTTP: 当终端节点组所在监听器协议是HTTP或HTTPS时,可以选择检查协议为HTTP。</li><li>PING: 当终端节点组所在监听器协议是UDP时,可以选择检查协议为PING。</li><li>CUSTOM: 当终端节点组所在监听器协议是UDP或TCP时,可以选择检查协议为CUSTOM。</li></ul><p>当开启健康检查时此字段必传。</p> */ CheckType?: string; /** * <p>描述信息。</p><p>默认值:默认值为空,代表不配置描述信息。</p><p>最大长度不能超过100个字节。</p> */ Description?: string; /** * <p>检查端口。</p><p>入参限制:范围是1-65535。</p><p>当CheckType为CUSTOM时候,此字段必传。</p> */ CheckPort?: string; /** * <p>检查内容。支持配置&#39;TEXT&#39;。</p><p>枚举值:</p><ul><li>TEXT: 文本内容。</li></ul><p>当CheckType为CUSTOM时候,此字段必传。</p> */ ContextType?: string; /** * <p>检查请求。</p><p>入参限制:字节长度要在1-500范围内。</p><p>当CheckType为CUSTOM时候,此字段必传。</p> */ CheckSendContext?: string; /** * <p>检查返回结果。</p><p>入参限制:字节长度要在1-500范围内。</p><p>当CheckType为CUSTOM时候,此字段必传。</p> */ CheckRecvContext?: string; /** * <p>是否开启健康检查。</p><p>默认值:False</p> */ EnableHealthCheck?: boolean; /** * <p>响应超时时间。</p><p>取值范围:[1, 100]</p><p>默认值:2</p><p>开启健康检查时,此字段必传。</p> */ ConnectTimeout?: number; /** * <p>健康检查间隔。</p><p>取值范围:[5, 300]</p><p>默认值:30</p><p>开启健康检查,此字段必传。</p> */ HealthCheckInterval?: number; /** * <p>不健康阀值。</p><p>取值范围:[1, 10]</p><p>默认值:3</p><p>开启健康检查,此字段必传。</p> */ UnhealthyThreshold?: number; /** * <p>健康阈值。</p><p>取值范围:[1, 10]</p><p>默认值:3</p><p>开启健康检查,此字段必传。</p> */ HealthyThreshold?: number; /** * <p>回源协议。支持配置&#39;HTTP&#39;, &#39;HTTPS&#39;。</p><p>枚举值:</p><ul><li>HTTP: HTTP回源;当终端节点组所在监听器协议是HTTP或HTTPS时可以配置HTTP。</li><li>HTTPS: HTTPS回源;当终端节点组所在监听器协议是HTTPS时可以配置HTTPS。</li></ul><p>当终端节点组所在监听器协议为HTTP或HTTPS时候,此字段必传。</p> */ ForwardProtocol?: string; /** * <p>检查域名。</p><p>入参限制:字节长度范围是3-80。</p><p>当CheckType是HTTP时,此字段必传。</p> */ CheckDomain?: string; /** * <p>检查URL。</p><p>参数格式:必须满足正则:^[a-zA-Z0-9_.\-\/]{1,80}$</p><p>当CheckType是HTTP时,此字段必传。</p> */ CheckPath?: string; /** * <p>请求方式。支持配置&#39;GET&#39;, &#39;HEAD&#39;。</p><p>枚举值:</p><ul><li>GET: 请求方式为GET。</li><li>HEAD: 请求方式为HEAD。</li></ul><p>当CheckType是HTTP时,此字段必传。</p> */ CheckMethod?: string; /** * <p>状态检测码。支持配置&#39;http_2xx&#39;, &#39;http_3xx&#39;, &#39;http_4xx&#39;, &#39;http_5xx&#39;。</p><p>枚举值:</p><ul><li>http_2xx: 2开头的http code。</li><li>http_3xx: 3开头的http code。</li><li>http_4xx: 4开头的http code。</li><li>http_5xx: 5开头的http code。</li></ul><p>当CheckType是HTTP时,此字段必传。</p> */ StatusMask?: Array<string>; /** * <p>端口映射。</p><p>入参限制:七层支持1个端口映射,四层支持最多30个端口映射。</p> */ PortOverrides?: Array<PortOverride>; /** * <p>运营商类型。支持配置&#39;CMCC&#39;, &#39;CTCC&#39;, &#39;CUCC&#39;。</p><p>枚举值:</p><ul><li>CMCC: 中国移动</li><li>CUCC: 中国联通</li><li>CTCC: 中国电信</li></ul><p>当终端节点组地域为三网地域时,此字段必传。</p> */ IspType?: string; /** * <p>HPPTS加密算法套件;支持配置&#39;tls_policy_1.0-2&#39;, &#39;tls_policy_1.1-2&#39;, &#39;tls_policy_1.2&#39;, &#39;tls_policy_1.2_strict&#39;, &#39;tls_policy_1.2_strict-1.3&#39;;</p><p>枚举值:</p><ul><li>tls_policy_1.0-2: 加密算法套件。</li><li>tls_policy_1.1-2: 加密算法套件。</li><li>tls_policy_1.2: 加密算法套件。</li><li>tls_policy_1.2_strict: 加密算法套件。</li><li>tls_policy_1.2_strict-1.3: 加密算法套件。</li></ul><p>当回源协议为HTTPS,此字段必传。</p> */ CipherPolicyId?: string; /** * <p>回源协议。支持配置&#39;HTTP/1.1&#39;, &#39;HTTP/2&#39;。</p><p>枚举值:</p><ul><li>HTTP/1.1: 版本HTTP/1.1</li><li>HTTP/2: 版本HTTP/2</li></ul><p>当回源协议为HTTPS时,此字段必传。</p> */ HttpVersion?: string; } /** * 全球加速实例信息 */ export interface GlobalAcceleratorSet { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId?: string; /** * <p>全球加速实例名称。</p> */ Name?: string; /** * <p>全球加速实例描述。</p> */ Description?: string; /** * <p>全球加速实例创建时间。</p> */ CreateTime?: string; /** * <p>全球加速实例状态。</p> */ State?: string; /** * <p>全球加速实例付费类型。</p> */ InstanceChargeType?: string; /** * <p>全球加速实例DdosId。</p> */ DdosId?: string; /** * <p>所属加速实例监听器个数。</p> */ ListenerCounts?: number; /** * <p>所属加速实例加速地域个数。</p> */ AcceleratorAreaCounts?: number; /** * <p>全球加速实例状态。</p> */ Status?: string; /** * <p>域名。</p> */ Cname?: string; /** * <p>跨境类型;HighQuality(精品跨境)、Unicom(联通跨境)、NotAvailable(未开通)。</p> 注意:此字段可能返回 null,表示取不到有效值。 */ CrossBorderType?: string; /** * <p>标签信息。</p> */ TagSet?: Array<Tag>; } /** * 加速地域信息 */ export interface AcceleratorAreas { /** * <p>加速地域。</p> */ AccelerateRegion: string; /** * <p>带宽。</p> */ Bandwidth: number; /** * <p>支持&#39;BGP&#39;, &#39;QUALITY_BGP&#39;, &#39;STATIC_IP&#39;,默认BGP。</p><p>枚举值:</p><ul><li>BGP: BGP</li><li>STATIC_IP: 三网</li><li>QUALITY_BGP: 精品BGP</li></ul> */ IspType?: string; /** * <p>仅支持IPv4,默认是IPv4。</p> */ IpVersion?: string; /** * <p>加速地域ID。</p> */ AcceleratorAreaId?: string; /** * <p>IP。</p> */ IpAddress?: Array<string>; /** * <p>IP信息。</p> 注意:此字段可能返回 null,表示取不到有效值。 */ IpAddressInfoSet?: Array<IpAddressInfoSet>; } /** * CreateEndpointGroup请求参数结构体 */ export interface CreateEndpointGroupRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>终端节点组类型。</p><p>枚举值:</p><ul><li>VIRTUAL: 自定义终端节点组</li><li>DEFAULT: 默认终端节点组</li></ul> */ EndpointGroupType: string; /** * <p>终端节点组配置。</p> */ EndpointGroupConfiguration: EndpointGroupConfiguration; } /** * CreateEndpointGroup返回参数结构体 */ export interface CreateEndpointGroupResponse { /** * <p>任务ID。</p> */ TaskId?: string; /** * <p>终端节点组实例ID。</p> */ EndpointGroupId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DeleteGlobalAccelerator返回参数结构体 */ export interface DeleteGlobalAcceleratorResponse { /** * 任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateGlobalAcceleratorAclRule返回参数结构体 */ export interface CreateGlobalAcceleratorAclRuleResponse { /** * 异步任务ID。 */ TaskId?: string; /** * ACL规则ID。 */ GlobalAcceleratorAclRuleIds?: Array<string>; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DescribeAccelerateRegions返回参数结构体 */ export interface DescribeAccelerateRegionsResponse { /** * 加速地域信息。 */ AcceleratorRegionSet?: Array<AcceleratorRegionSet>; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 七层转发规则信息 */ export interface ForwardingRuleSet { /** * <p>七层转发规则条件信息。</p> */ RuleCondition?: Array<RuleCondition>; /** * <p>七层转发规则行为信息。</p> */ RuleAction?: Array<RuleAction>; /** * <p>是否开启回源Sni。</p> */ EnableOriginSni?: boolean; /** * <p>回源Sni。</p> */ OriginSni?: string; /** * <p>回源Herder信息。</p> */ OriginHeaders?: Array<OriginHeader>; /** * <p>回源Host。</p> */ OriginHost?: string; /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId?: string; /** * <p>监听器ID。</p> */ ListenerId?: string; /** * <p>七层转发策略ID。</p> */ ForwardingPolicyId?: string; /** * <p>七层转发规则ID。</p> */ ForwardingRuleId?: string; /** * <p>源站响应头</p> */ HideResponseHeaders?: Array<HideResponseHeaders>; /** * <p>删除源站响应头</p> */ ResponseHeaders?: Array<ResponseHeaders>; } /** * CreateForwardingRule返回参数结构体 */ export interface CreateForwardingRuleResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * <p>七层转发规则ID。</p> */ ForwardingRuleId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateGlobalAcceleratorAclPolicy返回参数结构体 */ export interface CreateGlobalAcceleratorAclPolicyResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * <p>访问控制策略ID。</p> */ GlobalAcceleratorAclPolicyId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateGlobalAcceleratorAccessLog请求参数结构体 */ export interface CreateGlobalAcceleratorAccessLogRequest { /** * <p>GA示例唯一Id</p> */ GlobalAcceleratorId: string; /** * <p>监听器Id</p> */ ListenerId: string; /** * <p>终端节点组Id</p> */ EndpointGroupId: string; /** * <p>日志集所在地域</p> */ CloudRegion: string; /** * <p>日志主题Id</p> */ CloudLogId: string; /** * <p>日志集Id</p> */ CloudLogSetId: string; /** * <p>指定采集字段</p><p>枚举值:</p><ul><li>session_time: 四层,会话持续时间</li><li>upstream_bytes_received: 四层、七层,从终端节点接收的字节数</li><li>upstream_bytes_sent: 四层、七层,发送给终端节点的字节数</li><li>request_method: 七层,GET/POST</li><li>scheme: 七层,http/https</li><li>request_uri: 七层,客户端原始请求的URI</li><li>uri: 七层,当前请求的URI</li><li>host: 七层,客户端访问域名(七层)</li><li>remote_user: 七层,基本认证时的用户名(未认证时为&quot;-&quot;)</li><li>http_user_agent: 七层,客户端浏览器标识</li><li>http_referer: 七层,请求来源URL(直接从地址栏访问时为&quot;-&quot;)</li><li>http_x_forwarded_for: 七层,记录客户端原始IP及经过的代理服务器IP链</li><li>content_type: 七层,content_type</li><li>body_bytes_sent: 七层,发送给客户端的http body大小,不包含header</li><li>request_time: 七层,从接收到客户端请求的第一个字节到发送完响应最后一个字节之间的总时间(单位:秒)</li><li>sent_http_content_type: 七层,响应内容类型</li><li>upstream_header_time: 七层,终端节点的响应头到达时间</li><li>upstream_response_length: 七层,终端节点返回的响应体长度</li><li>upstream_response_time: 七层,终端节点完整响应时间</li><li>upstream_status: 七层,终端节点返回的HTTP状态码</li></ul> */ FieldKeys?: Array<string>; /** * <p>日志描述</p> */ FlowLogDescription?: string; } /** * ModifyGlobalAcceleratorAclRule请求参数结构体 */ export interface ModifyGlobalAcceleratorAclRuleRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>安全策略ID</p> */ GlobalAcceleratorAclPolicyId: string; /** * <p>Acl规则ID。</p> */ GlobalAcceleratorAclRuleId: string; /** * <p>协议。</p><p>入参限制:支持选择&#39;TCP&#39;, &#39;UDP&#39;, &#39;ALL&#39;。</p> */ Protocol?: string; /** * <p>端口。</p> */ Port?: string; /** * <p>网段。</p> */ SourceCidrBlock?: string; /** * <p>动作。</p><p>入参限制:支持选择&#39;ACCEPT&#39;, &#39;DROP&#39;。</p><p>枚举值:</p><ul><li>ACCEPT: 允许。</li><li>DROP: 拒绝。</li></ul> */ Policy?: string; /** * <p>描述信息,最大长度不能超过100个字节。</p> */ Description?: string; } /** * 可加速地域信息 */ export interface AcceleratorRegionSet { /** * <p>地域中文名称。</p> */ Name?: string; /** * <p>是否可用;0:不可用,1:可用。</p> */ IsAvailable?: number; /** * <p>地域信息。</p> */ Region?: string; /** * <p>地区名称。</p> */ AreaName?: string; /** * <p>是否中国地域。</p> */ IsChinaMainland?: number; /** * <p>支持IspType类型。</p> */ SupportIspType?: Array<string>; /** * <p>是否腾讯地域。</p> */ IsTencentRegion?: number; } /** * CreateListener返回参数结构体 */ export interface CreateListenerResponse { /** * <p>任务ID。</p> */ TaskId?: string; /** * <p>监听器ID。</p> */ ListenerId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * ModifyForwardingPolicy返回参数结构体 */ export interface ModifyForwardingPolicyResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateGlobalAcceleratorAclRule请求参数结构体 */ export interface CreateGlobalAcceleratorAclRuleRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 安全策略ID */ GlobalAcceleratorAclPolicyId: string; /** * Acl信息。 */ AclEntries: Array<AclEntries>; } /** * ModifyListener请求参数结构体 */ export interface ModifyListenerRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>名称,最大长度不能超过60个字节。</p> */ Name?: string; /** * <p>描述信息,最大长度不能超过100个字节。</p> */ Description?: string; /** * <p>连接空闲等待时间。</p><p>1、HTTP/HTTPS监听器,支持范围为1-60;2、TCP监听器,支持范围为10-900;3、UDP监听器,支持范围为10-20;</p> */ IdleTimeout?: number; /** * <p>是否开启会话保持。</p><p>枚举值:</p><ul><li>Open: 打开。</li><li>Close: 关闭。</li></ul><p>TCP/UDP监听器支持修改此参数。</p> */ ClientAffinity?: string; /** * <p>会话保持时间。</p><p>取值范围:[60, 3600]</p> */ ClientAffinityTime?: number; /** * <p>请求超时时间。</p><p>取值范围:[1, 180]</p><p>HTTPS监听器才支持此参数修改。</p> */ RequestTimeout?: number; /** * <p>是否打开七层获取源IP方式。</p><p>HTTPS/HTTP监听器才支持此参数修改。</p> */ XForwardedForRealIp?: boolean; /** * <p>解析方式。</p><p>枚举值:</p><ul><li>UNIDIRECTIONAL: 双向。</li><li>MUTUAL: 单向。</li></ul><p>HTTPS/HTTP监听器才支持修改此参数。</p> */ CertificationType?: string; /** * <p>加密算法套件。</p><p>入参限制:支持选择tls_policy_1.0-2&#39;, &#39;tls_policy_1.1-2&#39;, &#39;tls_policy_1.2&#39;, &#39;tls_policy_1.2_strict&#39;, &#39;tls_policy_1.2_strict-1.3&#39;。</p><p>HTTPS监听器才支持此参数修改。</p> */ CipherPolicyId?: string; /** * <p>服务器证书。</p><p>HTTPS监听器才支持此参数修改。</p> */ ServerCertificates?: Array<string>; /** * <p>客户端证书。</p><p>HTTPS监听器才支持此参数修改,并且开启双向认证。</p> */ ClientCaCertificates?: Array<string>; /** * <p>获取源IP方式。</p><p>入参限制:支持选择&#39;ProxyProtocol&#39;, &#39;Close&#39;, &#39;ProxyProtocolV2&#39;, &#39;TOA&#39;。</p><p>TCP监听器才支持此参数修改。</p> */ GetRealIpType?: string; } /** * 七层转发规则条件信息 */ export interface RuleCondition { /** * <p>七层转发规则条件类型</p><p>枚举值:</p><ul><li>Path: Path</li></ul> 注意:此字段可能返回 null,表示取不到有效值。 */ RuleConditionType: string; /** * <p>七层转发规则条件值</p><p>参数格式:格式必须满足正则表达:^[a-zA-Z0-9_.-/]{1,80}$</p><p>数组长度不能超过1。</p> 注意:此字段可能返回 null,表示取不到有效值。 */ RuleConditionValue: Array<string>; } /** * 隐藏Header */ export interface HideResponseHeaders { /** * <p>key</p><p>参数格式:1、字符串只包含可打印的ASCII字符 2、不能包含这些字符()&lt;&gt;@,;:\&quot;/[ ]?={ }</p><p>入参限制:长度在1-40。</p> */ Key: string; /** * <p>value</p><p>当前仅支持传空字符串&quot;&quot;</p> */ Value: string; } /** * DescribeForwardingRule返回参数结构体 */ export interface DescribeForwardingRuleResponse { /** * 符合条件的规则信息。 */ ForwardingRuleSet?: Array<ForwardingRuleSet>; /** * 符合条件的实例个数。 */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 访问控制策略 */ export interface GlobalAcceleratorAclPolicies { /** * 访问控制策略ID。 */ GlobalAcceleratorAclPolicyId?: string; /** * 默认动作。 */ DefaultAction?: string; /** * 状态。 */ Status?: string; } /** * Acl规则信息 */ export interface GlobalAcceleratorAclRuleSet { /** * 访问控制策略ID。 */ GlobalAcceleratorPolicyId?: string; /** * Acl规则ID。 */ GlobalAcceleratorAclRuleId?: string; /** * 协议。 */ Protocol?: string; /** * 端口。 */ Port?: string; /** * 网段。 */ SourceCidrBlock?: string; /** * 动作。 */ Policy?: string; /** * 描述。 */ Description?: string; } /** * DeleteGlobalAccelerator请求参数结构体 */ export interface DeleteGlobalAcceleratorRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; } /** * ModifyForwardingRule请求参数结构体 */ export interface ModifyForwardingRuleRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>监听器ID。</p> */ ListenerId: string; /** * <p>策略ID。</p> */ ForwardingPolicyId: string; /** * <p>七层转发规则ID。</p> */ ForwardingRuleId: string; /** * <p>七层转发规则条件信息。</p><p>入参限制:数组长度不能超过1。</p> */ RuleConditions?: Array<RuleCondition>; /** * <p>七层转发规则行为信息。</p><p>入参限制:数组长度不能超过1。</p> */ RuleActions?: Array<RuleAction>; /** * <p>回源Header信息。</p><p>入参限制:数组长度在1-5。</p> */ OriginHeaders?: Array<OriginHeader>; /** * <p>是否开启回源sni。</p> */ EnableOriginSni?: boolean; /** * <p>回源sni。</p><p>入参限制:长度不能超过80。</p><p>当开启回源sni时,此字段必传。</p> */ OriginSni?: string; /** * <p>回源host。</p><p>入参限制:长度不能超过80。</p><p>当开启回源sni时,此字段必传。</p> */ OriginHost?: string; /** * <p>源站响应头</p><p>入参限制:数组长度不能超过5。</p> */ ResponseHeaders?: Array<ResponseHeaders>; /** * <p>删除源站响应头</p><p>入参限制:数组长度不能超过5。</p> */ HideResponseHeaders?: Array<HideResponseHeaders>; } /** * ModifyListener返回参数结构体 */ export interface ModifyListenerResponse { /** * <p>任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DeleteGlobalAcceleratorAccessLog返回参数结构体 */ export interface DeleteGlobalAcceleratorAccessLogResponse { /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DeleteForwardingPolicy请求参数结构体 */ export interface DeleteForwardingPolicyRequest { /** * 全球加速实例ID。 */ GlobalAcceleratorId: string; /** * 监听器ID。 */ ListenerId: string; /** * 策略ID。 */ ForwardingPolicyId: string; } /** * CreateListener请求参数结构体 */ export interface CreateListenerRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>名称,最大长度不能超过128个字符。</p> */ Name: string; /** * <p>端口范围。</p> */ PortRanges: PortRanges; /** * <p>描述信息,最大长度不能超过100个字符。</p> */ Description?: string; /** * <p>监听类型,默认为智能路由。</p><p>枚举值:</p><ul><li>Standard: 智能路由。</li></ul> */ ListenerType?: string; /** * <p>协议,默认为TCP。支持配置&#39;TCP&#39;, &#39;UDP&#39;, &#39;HTTP&#39;, &#39;HTTPS&#39;。</p> */ Protocol?: string; /** * <p>连接空闲等待时间。</p><p>1、HTTP/HTTPS监听器,默认值为15,支持范围为1-60;<br>2、TCP监听器,默认值为900,支持范围为10-900;<br>3、UDP监听器,默认值为20,支持范围为10-20;</p> */ IdleTimeout?: number; /** * <p>四层获取源IP方式,支持&#39;TOA&#39;, &#39;ProxyProtocol&#39;, &#39;ProxyProtocolV2&#39;。</p><p>需要开启四层获取源IP方式,才填写此参数。</p> */ GetRealIpType?: string; /** * <p>是否开启会话保持。支持配置&#39;Open&#39;, &#39;Close&#39;。</p><p>枚举值:</p><ul><li>Open: 开启。</li><li>Close: 关闭。</li></ul> */ ClientAffinity?: string; /** * <p>请求超时时间。</p><p>取值范围:[1, 180]</p><p>默认值:60</p><p>当HTTPS监听器时才可配置此参数。</p> */ RequestTimeout?: number; /** * <p>是否打开七层获取源IP方式。</p> */ XForwardedForRealIp?: boolean; /** * <p>解析方式。</p><p>枚举值:</p><ul><li>UNIDIRECTIONAL: 双向。</li><li>U: 单向。</li></ul><p>HTTPS监听器,此字段必传。</p> */ CertificationType?: string; /** * <p>加密算法套件。支持配置&#39;tls_policy_1.0-2&#39;, &#39;tls_policy_1.1-2&#39;, &#39;tls_policy_1.2&#39;, &#39;tls_policy_1.2_strict&#39;, &#39;tls_policy_1.2_strict-1.3&#39;。</p> */ CipherPolicyId?: string; /** * <p>服务器证书。</p><p>当是HTTPS监听器时,此字段必传。</p> */ ServerCertificates?: Array<string>; /** * <p>客户端证书。</p><p>当时HTTPS监听器且开启双向认证时,此字段必传。</p> */ ClientCaCertificates?: Array<string>; /** * <p>HTTPS监听器支持选择版本</p><p>枚举值:</p><ul><li>HTTP/1.1: HTTP/1.1</li><li>HTTP/2: HTTP/2</li></ul> */ HttpVersion?: string; } /** * DescribeTaskResult请求参数结构体 */ export interface DescribeTaskResultRequest { /** * 异步任务ID。 */ TaskId: string; } /** * ModifyGlobalAccelerator请求参数结构体 */ export interface ModifyGlobalAcceleratorRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>名称,最大长度不能超过60个字节。</p> */ Name?: string; /** * <p>描述信息,最大长度不能超过100个字节。</p> */ Description?: string; /** * <p>跨境类型。</p><p>枚举值:</p><ul><li>HighQuality: 精品跨境。</li><li>Unicom: 联通跨境。</li></ul> */ CrossBorderType?: string; /** * <p>代表是否填写跨境服务承诺书。</p><p>当CrossBorderType传入时,此字段必须填ture,代表填写跨境承诺书。</p> */ CrossBorderPromiseFlag?: boolean; } /** * 过滤器 */ export interface Filter { /** * 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 */ Name: string; /** * 属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。当值类型为布尔类型时,可直接取值为字符串"TRUE"或 "FALSE"。 */ Values: Array<string>; } /** * DescribeAccelerateRegions请求参数结构体 */ export type DescribeAccelerateRegionsRequest = null; /** * DeleteForwardingRule返回参数结构体 */ export interface DeleteForwardingRuleResponse { /** * 异步任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * CreateForwardingPolicy返回参数结构体 */ export interface CreateForwardingPolicyResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * <p>七层转发策略ID。</p> */ ForwardingPolicyId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 七层转发策略信息 */ export interface ForwardingPolicySet { /** * 全球加速实例ID。 */ GlobalAcceleratorId?: string; /** * 监听器ID。 */ ListenerId?: string; /** * 策略ID。 */ ForwardingPolicyId?: string; /** * 域名。 */ Host?: string; /** * 是否为默认域名。 */ DefaultHostFlag?: boolean; } /** * ModifyGlobalAcceleratorAclRule返回参数结构体 */ export interface ModifyGlobalAcceleratorAclRuleResponse { /** * <p>异步任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 加速地域公网IP信息 */ export interface IpAddressInfoSet { /** * <p>IP地址。</p> */ IpAddress?: string; /** * <p>IP类型。</p> */ IspType?: string; /** * <p>Ddos类型</p> */ DdosProtectionType?: string; } /** * DeleteForwardingPolicy返回参数结构体 */ export interface DeleteForwardingPolicyResponse { /** * 异步任务ID。 */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * ModifyEndpointGroup返回参数结构体 */ export interface ModifyEndpointGroupResponse { /** * <p>任务ID。</p> */ TaskId?: string; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * 监听器信息 */ export interface ListenerSet { /** * 全球加速实例ID。 */ GlobalAcceleratorId?: string; /** * 监听器ID。 */ ListenerId?: string; /** * 监听器名称。 */ Name?: string; /** * 监听器描述。 */ Description?: string; /** * 协议。 */ Protocol?: string; /** * 端口范围。 */ PortRanges?: PortRanges; /** * 是否打开七层获取源IP方式。 */ XForwardedForRealIp?: boolean; /** * 开启会话保持。 */ ClientAffinity?: string; /** * 会话保持时间。 */ ClientAffinityTime?: number; /** * SSL解析方式。 */ CertificationType?: string; /** * 服务器证书。 */ ServerCertificates?: Array<string>; /** * 客户端证书。 */ ClientCaCertificates?: Array<string>; /** * TLS密码套件包。 */ CipherPolicyId?: string; /** * HTTP版本。 */ HttpVersion?: string; /** * 请求超时时间。 */ RequestTimeout?: number; /** * 创建时间。 */ CreateTime?: string; /** * 监听路由类型。 */ ListenerType?: string; /** * 监听器状态。 */ Status?: string; /** * 所属监听器终端节点组个数。 */ EndpointGroupCounts?: number; /** * 四层获取源IP方式。 */ GetRealIpType?: string; /** * 连接超时时间。 */ IdleTimeout?: number; } /** * DescribeGlobalAcceleratorAclRules返回参数结构体 */ export interface DescribeGlobalAcceleratorAclRulesResponse { /** * <p>符合条件的Acl规则实例。</p> */ GlobalAcceleratorAclRuleSet?: Array<GlobalAcceleratorAclRuleSet>; /** * <p>符合条件的实例个数。</p> */ TotalCount?: number; /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * GA访问日志 */ export type GlobalAcceleratorAccessLog = null; /** * ModifyAccessLogStatus返回参数结构体 */ export interface ModifyAccessLogStatusResponse { /** * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string; } /** * DescribeAccelerateAreas请求参数结构体 */ export interface DescribeAccelerateAreasRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>偏移量。默认为0。</p> */ Offset?: number; /** * <p>符合条件实例数量。默认为20,最大200。</p> */ Limit?: number; /** * <p>过滤条件。 accelerate-region- String -(过滤条件)终端节点组地域。</p> */ Filters?: Array<Filter>; } /** * CreateAccelerateAreas请求参数结构体 */ export interface CreateAccelerateAreasRequest { /** * <p>全球加速实例ID。</p> */ GlobalAcceleratorId: string; /** * <p>加速地域信息。一次最多创建10组加速地域。</p> */ AcceleratorAreas: Array<AcceleratorAreas>; } /** * DescribeCrossB