diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
| commit | 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch) | |
| tree | 5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/ddosdiversion/2023-07-01/api-docs.php | |
| parent | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff) | |
| download | afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip | |
update APIs 20260712
Diffstat (limited to 'data/zh_cn/ddosdiversion/2023-07-01/api-docs.php')
| -rw-r--r-- | data/zh_cn/ddosdiversion/2023-07-01/api-docs.php | 1320 |
1 files changed, 396 insertions, 924 deletions
diff --git a/data/zh_cn/ddosdiversion/2023-07-01/api-docs.php b/data/zh_cn/ddosdiversion/2023-07-01/api-docs.php index 1e2d2e6..07c92b0 100644 --- a/data/zh_cn/ddosdiversion/2023-07-01/api-docs.php +++ b/data/zh_cn/ddosdiversion/2023-07-01/api-docs.php @@ -1,29 +1,15 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'DdosDiversion', - 'version' => '2023-07-01', - ], - 'directories' => [ - 'ConfigNetStatus', - 'ListInstance', - 'QueryNetList', - ], + 'info' => ['style' => 'RPC', 'product' => 'DdosDiversion', 'version' => '2023-07-01'], + 'directories' => ['ConfigNetStatus', 'QueryNetList', 'ListInstance'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'ConfigNetStatus' => [ 'summary' => '进行网段宣告配置。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -33,10 +19,10 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', 'abilityTreeCode' => '186873', - 'abilityTreeNodes' => [ - 'FEATUREddosPJT0YW', - ], + 'abilityTreeNodes' => ['FEATUREddosPJT0YW'], 'autoTest' => false, 'notSupportAutoTestReason' => '代播API 涉及IP网段的路由配置,支持宣告/撤销等操作,需要客户真实网段操作,无法进行自动化调度与验证。', 'tenantRelevance' => 'publicInformation', @@ -45,12 +31,7 @@ [ 'name' => 'SaleId', 'in' => 'query', - 'schema' => [ - 'description' => '代播实例的ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', - ], + 'schema' => ['description' => '代播实例的ID。', 'type' => 'string', 'required' => true, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'], ], [ 'name' => 'Net', @@ -74,10 +55,7 @@ 'type' => 'string', 'required' => true, 'example' => 'enable', - 'enum' => [ - 'enable', - 'disable', - ], + 'enum' => ['enable', 'disable'], ], ], [ @@ -89,12 +67,7 @@ ."\n" .'> 您可以调用[QueryNetList](~~2639086~~)获取网段配置的区域信息。', 'type' => 'array', - 'items' => [ - 'description' => '网段需要宣告或者撤销的区域。', - 'type' => 'string', - 'required' => false, - 'example' => 'oe26', - ], + 'items' => ['description' => '网段需要宣告或者撤销的区域。', 'type' => 'string', 'required' => false, 'example' => 'oe26'], 'required' => false, ], ], @@ -105,12 +78,7 @@ 'schema' => [ 'description' => '代播实例网段的子网段列表。', 'type' => 'array', - 'items' => [ - 'description' => '代播实例网段的子网段。', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.XX.XX/24', - ], + 'items' => ['description' => '代播实例网段的子网段。', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/24'], 'required' => false, ], ], @@ -120,213 +88,87 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口返回码:'."\n" - ."\n" - .'- **200**:表示成功。'."\n" - .'- 其它:表示错误码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - 'RequestId' => [ - 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', - 'type' => 'string', - 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'Code' => ['description' => '接口返回码:'."\n" + ."\n" + .'- **200**:表示成功。'."\n" + .'- 其它:表示错误码。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + 'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'AuthenticationFailed', - 'errorMessage' => 'User authentication failed.', - ], - [ - 'errorCode' => 'AutoScheduleRuleExist', - 'errorMessage' => 'The auto schedule rule already exists.', - ], - [ - 'errorCode' => 'AutoScheduleRuleNotExist', - 'errorMessage' => 'The auto schedule rule dose not exist.', - ], - [ - 'errorCode' => 'BlackHoleConfigurationError', - 'errorMessage' => 'A black hole configuration error occurred.', - ], - [ - 'errorCode' => 'CleanConfigurationError', - 'errorMessage' => 'A clean configuration error occurred.', - ], - [ - 'errorCode' => 'CoveredNet', - 'errorMessage' => 'The CIDR block is overwritten.', - ], - [ - 'errorCode' => 'DatabaseError', - 'errorMessage' => 'A database error.', - ], - [ - 'errorCode' => 'DeclaredNet', - 'errorMessage' => 'The CIDR block has been advertised.', - ], - [ - 'errorCode' => 'DefenseConfigurationError', - 'errorMessage' => 'A defense configuration error occurred.', - ], - [ - 'errorCode' => 'ForwardConfigurationNotExist', - 'errorMessage' => 'The CIDR block forwarding configuration is not found.', - ], - [ - 'errorCode' => 'ForwardNotExist', - 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', - ], - [ - 'errorCode' => 'ForwardRuleNotExist', - 'errorMessage' => 'The CIDR block forwarding rule is not found.', - ], - [ - 'errorCode' => 'HttpFailed', - 'errorMessage' => 'HTTP request failed.', - ], - [ - 'errorCode' => 'IDNSubnetsCountLimit', - 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', - ], - [ - 'errorCode' => 'InstanceExist', - 'errorMessage' => 'The instance already exists.', - ], - [ - 'errorCode' => 'InstanceNetConfigurationExist', - 'errorMessage' => 'The instance CIDR block configuration already exists.', - ], - [ - 'errorCode' => 'InstanceNotExist', - 'errorMessage' => 'The instance is not found.', - ], - [ - 'errorCode' => 'InstanceUpstreamLimit', - 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An internal error occurred.', - ], - [ - 'errorCode' => 'InvalidNet', - 'errorMessage' => 'Invalid CIDR block.', - ], - [ - 'errorCode' => 'InvalidParam', - 'errorMessage' => 'Invalid parameter value.', - ], - [ - 'errorCode' => 'IPSubnetsCountLimit', - 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', - ], - [ - 'errorCode' => 'NetCannotExtend', - 'errorMessage' => 'The CIDR block cannot be extended.', - ], - [ - 'errorCode' => 'NetConfigurationExist', - 'errorMessage' => 'The CIDR block configuration already exists.', - ], - [ - 'errorCode' => 'NetConfigurationNotExist', - 'errorMessage' => 'The CIDR block configuration is not found.', - ], - [ - 'errorCode' => 'NetForwardDelete', - 'errorMessage' => 'The CIDR block forwarding is being deleted.', - ], - [ - 'errorCode' => 'NetMaskOutOfRange', - 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', - ], - [ - 'errorCode' => 'NetNeedExtend', - 'errorMessage' => 'The CIDR block needs to be extended.', - ], - [ - 'errorCode' => 'NetStatusNotReady', - 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', - ], - [ - 'errorCode' => 'NetworkDeclearedFailed', - 'errorMessage' => 'Failed to advertise the CIDR block.', - ], - [ - 'errorCode' => 'NetWorkNotExist', - 'errorMessage' => 'The CIDR block is not found.', - ], - [ - 'errorCode' => 'NetworkUndeclearedFailed', - 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', - ], - [ - 'errorCode' => 'ParameterNotEnough', - 'errorMessage' => 'Required parameters are not specified.', - ], - [ - 'errorCode' => 'ParameterOutOfRange', - 'errorMessage' => 'Invalid parameter value.', - ], - [ - 'errorCode' => 'RegionNotExist', - 'errorMessage' => 'The region does not exist.', - ], - [ - 'errorCode' => 'RequestMethodError', - 'errorMessage' => 'An incorrect request method.', - ], - [ - 'errorCode' => 'SubnetCountLimit', - 'errorMessage' => 'The maximum number of subnets is exceeded.', - ], - [ - 'errorCode' => 'UnKnownError', - 'errorMessage' => 'An unknown error occurred.', - ], - [ - 'errorCode' => 'UpsteamNotComplete', - 'errorMessage' => 'The reinjection configuration has not been completed.', - ], - [ - 'errorCode' => 'UpstreamConfigurationNotExist', - 'errorMessage' => 'The reinjection configuration is not found.', - ], - [ - 'errorCode' => 'JsonDecodeError', - 'errorMessage' => 'JSON string decoding failed.', - ], + ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => '用户认证失败。'], + ['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => '调度规则已存在。'], + ['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => '调度规则不存在。'], + ['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => '黑洞配置错误。'], + ['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => '清洗配置错误。'], + ['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => '网段被其他网段覆盖。'], + ['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => '数据库错误。'], + ['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => '网段处于宣告状态。'], + ['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => '防护配置错误。'], + ['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => '网段转发配置不存在。'], + ['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => '网段可用区转发配置不存在。'], + ['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => '网段转发规则不存在。'], + ['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'HTTP 请求失败。'], + ['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => '实例的IDC数量达到上限'], + ['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => '实例已经存在。'], + ['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => '实例网段配置已存在。'], + ['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => '实例不存在。'], + ['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => '实例的回注配置数量受限。'], + ['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '内部错误。'], + ['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => '网段不合法。'."\n"], + ['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数非法。'], + ['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => '实例的网段数量达到上限。'."\n"], + ['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => '网段不能被扩容。'."\n"], + ['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => '网段配置已存在。'."\n"], + ['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => '网段配置不存在。'], + ['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => '网段转发删除中。'."\n"], + ['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => '网段掩码超出范围。'."\n"], + ['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => '网段需要扩容。'."\n"], + ['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => '网段回注配置未完成'."\n"], + ['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => '网段宣告失败。'."\n"], + ['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => '网段不存在。'], + ['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => '网段解除宣告失败。'."\n"], + ['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => '必填参数缺失。'], + ['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数超出指定取值范围'], + ['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => '可用区不存在。'."\n"], + ['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => '请求方式错误。'], + ['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => '子网数量达到上限。'."\n"], + ['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => '未知错误。'], + ['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => '网段回注配置未完成。'."\n"], + ['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => '回注配置不存在。'."\n"], + ['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'JSON字符串转JSON对象失败。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '网段宣告配置', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'ddosdiversion:ConfigNetStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '网段宣告配置', ], 'ListInstance' => [ 'summary' => '查询实例列表。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -336,10 +178,10 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', 'abilityTreeCode' => '186870', - 'abilityTreeNodes' => [ - 'FEATUREddos37DGH1', - ], + 'abilityTreeNodes' => ['FEATUREddos37DGH1'], 'autoTest' => false, 'notSupportAutoTestReason' => '代播API 涉及IP网段的路由配置,支持宣告/撤销等操作,需要客户真实网段操作,无法进行自动化调度与验证。', 'tenantRelevance' => 'publicInformation', @@ -348,61 +190,32 @@ [ 'name' => 'SaleId', 'in' => 'query', - 'schema' => [ - 'description' => '代播实例的ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', - ], + 'schema' => ['description' => '代播实例的ID。', 'type' => 'string', 'required' => false, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '实例名称。', - 'type' => 'string', - 'required' => false, - 'example' => '测试实例。', - ], + 'schema' => ['description' => '实例名称。', 'type' => 'string', 'required' => false, 'example' => 'Test instance.'], ], [ 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'description' => '实例状态。取值:'."\n" - ."\n" - .'- normal:表示正常运行的实例。'."\n" - .'- expired:表示过期的实例。'."\n" - .'- deleting:表示处于删除中的实例。'."\n" - .'- stopped:表示停止的实例。', - 'type' => 'string', - 'required' => false, - 'example' => 'normal', - ], + 'schema' => ['description' => '实例状态。取值:'."\n" + ."\n" + .'- normal:表示正常运行的实例。'."\n" + .'- expired:表示过期的实例。'."\n" + .'- deleting:表示处于删除中的实例。'."\n" + .'- stopped:表示停止的实例。', 'type' => 'string', 'required' => false, 'example' => 'normal'], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'description' => '页码。 默认值:1。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '页码。 默认值:1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'default' => '1'], ], [ 'name' => 'Num', 'in' => 'query', - 'schema' => [ - 'description' => '数量。默认值:100。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '100', - 'default' => '100', - ], + 'schema' => ['description' => '数量。默认值:100。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100', 'default' => '100'], ], ], 'responses' => [ @@ -410,366 +223,137 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口返回码:'."\n" - ."\n" - .'- **200**:表示成功。'."\n" - .'- 其它:表示错误码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - 'RequestId' => [ - 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', - 'type' => 'string', - 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'Code' => ['description' => '接口返回码:'."\n" + ."\n" + .'- **200**:表示成功。'."\n" + .'- 其它:表示错误码。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + 'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => 'B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], 'Data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'Total' => [ - 'description' => '返回数据的总条数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'Page' => [ - 'description' => '页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Num' => [ - 'description' => '数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], + 'Total' => ['description' => '返回数据的总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'Page' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Num' => ['description' => '数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], 'Instances' => [ 'description' => '代播实例详情数组。', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'UserId' => [ - 'description' => '用户ID。', - 'type' => 'string', - 'example' => '177xxxxxxxxxxxxx', - ], - 'SaleId' => [ - 'description' => '代播实例的ID。', - 'type' => 'string', - 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', - ], - 'InstanceId' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx', - ], - 'Name' => [ - 'description' => '实例名称。', - 'type' => 'string', - 'example' => '测试实例。', - ], - 'Status' => [ - 'description' => '实例状态。取值:'."\n" - .'- normal:表示正常运行的实例。'."\n" - .'- expired:表示过期的实例。'."\n" - .'- deleting:表示处于删除中的实例。'."\n" - .'- stopped:表示停止的实例。', - 'type' => 'string', - 'example' => 'normal', - ], - 'Comment' => [ - 'description' => '备注。', - 'type' => 'string', - 'example' => '测试实例。', - ], - 'Message' => [ - 'description' => '实例配置信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'UserId' => ['description' => '用户ID。', 'type' => 'string', 'example' => '177xxxxxxxxxxxxx'], + 'SaleId' => ['description' => '代播实例的ID。', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'], + 'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx'], + 'Name' => ['description' => '实例名称。', 'type' => 'string', 'example' => 'Test instance.'], + 'Status' => ['description' => '实例状态。取值:'."\n" + .'- normal:表示正常运行的实例。'."\n" + .'- expired:表示过期的实例。'."\n" + .'- deleting:表示处于删除中的实例。'."\n" + .'- stopped:表示停止的实例。', 'type' => 'string', 'example' => 'normal'], + 'Comment' => ['description' => '备注。', 'type' => 'string', 'example' => 'Test instance.'], + 'Message' => ['description' => '实例配置信息。', 'type' => 'string', 'example' => 'successful'], 'Spec' => [ 'description' => '规格信息。', 'type' => 'object', 'properties' => [ - 'IdcNumbers' => [ - 'description' => 'Idc数量。取值范围:1-10。', - 'type' => 'string', - 'example' => '1', - ], - 'NormalBandwidth' => [ - 'description' => '干净带宽。单位:Mbps。', - 'type' => 'string', - 'example' => '100', - ], - 'IpSubnetNums' => [ - 'description' => '网段(C段)数量。取值范围:1-10000。', - 'type' => 'string', - 'example' => '1', - ], - 'Coverage' => [ - 'description' => '资产区域。', - 'type' => 'string', - 'example' => 'international_and_hmt', - ], - 'Edition' => [ - 'description' => '防护套餐。', - 'type' => 'string', - 'example' => 'enterprise', - ], - 'MitigationCapacity' => [ - 'description' => '最大防护能力。', - 'type' => 'string', - 'example' => 'unlimited', - ], - 'MitigationNums' => [ - 'description' => '防护次数。', - 'type' => 'string', - 'example' => 'unlimited', - ], - 'DiversionType' => [ - 'description' => '代播模式。取值: on-demand; always-on。', - 'type' => 'string', - 'example' => 'on-demand', - ], - 'MitigationAnalysis' => [ - 'description' => '防护日志。', - 'type' => 'string', - 'example' => 'off', - ], - 'MitigationAnalysisCapacity' => [ - 'description' => '防护日志容量。', - 'type' => 'string', - 'example' => '3T', - ], - 'InitialInstallation' => [ - 'description' => '初装模式。', - 'type' => 'string', - 'example' => 'gre_tunnel_by_pccw', - ], - 'InitialQty' => [ - 'description' => '初装数量。', - 'type' => 'string', - 'example' => '1', - ], + 'IdcNumbers' => ['description' => 'Idc数量。取值范围:1-10。', 'type' => 'string', 'example' => '1'], + 'NormalBandwidth' => ['description' => '干净带宽。单位:Mbps。', 'type' => 'string', 'example' => '100'], + 'IpSubnetNums' => ['description' => '网段(C段)数量。取值范围:1-10000。', 'type' => 'string', 'example' => '1'], + 'Coverage' => ['description' => '资产区域。', 'type' => 'string', 'example' => 'international_and_hmt'], + 'Edition' => ['description' => '防护套餐。', 'type' => 'string', 'example' => 'enterprise'], + 'MitigationCapacity' => ['description' => '最大防护能力。', 'type' => 'string', 'example' => 'unlimited'], + 'MitigationNums' => ['description' => '防护次数。', 'type' => 'string', 'example' => 'unlimited'], + 'DiversionType' => ['description' => '代播模式。取值: on-demand; always-on。', 'type' => 'string', 'example' => 'on-demand'], + 'MitigationAnalysis' => ['description' => '防护日志。', 'type' => 'string', 'example' => 'off'], + 'MitigationAnalysisCapacity' => ['description' => '防护日志容量。', 'type' => 'string', 'example' => '3T'], + 'InitialInstallation' => ['description' => '初装模式。', 'type' => 'string', 'example' => 'gre_tunnel_by_pccw'], + 'InitialQty' => ['description' => '初装数量。', 'type' => 'string', 'example' => '1'], ], ], - 'GmtExpire' => [ - 'description' => '到期时间。', - 'type' => 'string', - 'example' => '2022-12-15 11:10:42', - ], - 'GmtCreate' => [ - 'description' => '购买时间。', - 'type' => 'string', - 'example' => '2022-12-15 11:10:42', - ], - 'GmtModify' => [ - 'description' => '更新时间。', - 'type' => 'string', - 'example' => '2022-12-15 11:10:42', - ], + 'GmtExpire' => ['description' => '到期时间。', 'type' => 'string', 'example' => '2022-12-15 11:10:42'], + 'GmtCreate' => ['description' => '购买时间。', 'type' => 'string', 'example' => '2022-12-15 11:10:42'], + 'GmtModify' => ['description' => '更新时间。', 'type' => 'string', 'example' => '2022-12-15 11:10:42'], ], + 'description' => '', ], ], ], ], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'AuthenticationFailed', - 'errorMessage' => 'User authentication failed.', - ], - [ - 'errorCode' => 'AutoScheduleRuleExist', - 'errorMessage' => 'The auto schedule rule already exists.', - ], - [ - 'errorCode' => 'AutoScheduleRuleNotExist', - 'errorMessage' => 'The auto schedule rule dose not exist.', - ], - [ - 'errorCode' => 'BlackHoleConfigurationError', - 'errorMessage' => 'A black hole configuration error occurred.', - ], - [ - 'errorCode' => 'CleanConfigurationError', - 'errorMessage' => 'A clean configuration error occurred.', - ], - [ - 'errorCode' => 'CoveredNet', - 'errorMessage' => 'The CIDR block is overwritten.', - ], - [ - 'errorCode' => 'DatabaseError', - 'errorMessage' => 'A database error.', - ], - [ - 'errorCode' => 'DeclaredNet', - 'errorMessage' => 'The CIDR block has been advertised.', - ], - [ - 'errorCode' => 'DefenseConfigurationError', - 'errorMessage' => 'A defense configuration error occurred.', - ], - [ - 'errorCode' => 'ForwardConfigurationNotExist', - 'errorMessage' => 'The CIDR block forwarding configuration is not found.', - ], - [ - 'errorCode' => 'ForwardNotExist', - 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', - ], - [ - 'errorCode' => 'ForwardRuleNotExist', - 'errorMessage' => 'The CIDR block forwarding rule is not found.', - ], - [ - 'errorCode' => 'HttpFailed', - 'errorMessage' => 'HTTP request failed.', - ], - [ - 'errorCode' => 'IDNSubnetsCountLimit', - 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', - ], - [ - 'errorCode' => 'InstanceExist', - 'errorMessage' => 'The instance already exists.', - ], - [ - 'errorCode' => 'InstanceNetConfigurationExist', - 'errorMessage' => 'The instance CIDR block configuration already exists.', - ], - [ - 'errorCode' => 'InstanceNotExist', - 'errorMessage' => 'The instance is not found.', - ], - [ - 'errorCode' => 'InstanceUpstreamLimit', - 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An internal error occurred.', - ], - [ - 'errorCode' => 'InvalidNet', - 'errorMessage' => 'Invalid CIDR block.', - ], - [ - 'errorCode' => 'InvalidParam', - 'errorMessage' => 'Invalid parameter value.', - ], - [ - 'errorCode' => 'IPSubnetsCountLimit', - 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', - ], - [ - 'errorCode' => 'NetCannotExtend', - 'errorMessage' => 'The CIDR block cannot be extended.', - ], - [ - 'errorCode' => 'NetConfigurationExist', - 'errorMessage' => 'The CIDR block configuration already exists.', - ], - [ - 'errorCode' => 'NetConfigurationNotExist', - 'errorMessage' => 'The CIDR block configuration is not found.', - ], - [ - 'errorCode' => 'NetForwardDelete', - 'errorMessage' => 'The CIDR block forwarding is being deleted.', - ], - [ - 'errorCode' => 'NetMaskOutOfRange', - 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', - ], - [ - 'errorCode' => 'NetNeedExtend', - 'errorMessage' => 'The CIDR block needs to be extended.', - ], - [ - 'errorCode' => 'NetStatusNotReady', - 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', - ], - [ - 'errorCode' => 'NetworkDeclearedFailed', - 'errorMessage' => 'Failed to advertise the CIDR block.', - ], - [ - 'errorCode' => 'NetWorkNotExist', - 'errorMessage' => 'The CIDR block is not found.', - ], - [ - 'errorCode' => 'NetworkUndeclearedFailed', - 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', - ], - [ - 'errorCode' => 'ParameterNotEnough', - 'errorMessage' => 'Required parameters are not specified.', - ], - [ - 'errorCode' => 'ParameterOutOfRange', - 'errorMessage' => 'Invalid parameter value.', - ], - [ - 'errorCode' => 'RegionNotExist', - 'errorMessage' => 'The region does not exist.', - ], - [ - 'errorCode' => 'RequestMethodError', - 'errorMessage' => 'An incorrect request method.', - ], - [ - 'errorCode' => 'SubnetCountLimit', - 'errorMessage' => 'The maximum number of subnets is exceeded.', - ], - [ - 'errorCode' => 'UnKnownError', - 'errorMessage' => 'An unknown error occurred.', - ], - [ - 'errorCode' => 'UpsteamNotComplete', - 'errorMessage' => 'The reinjection configuration has not been completed.', - ], - [ - 'errorCode' => 'UpstreamConfigurationNotExist', - 'errorMessage' => 'The reinjection configuration is not found.', - ], - [ - 'errorCode' => 'JsonDecodeError', - 'errorMessage' => 'JSON string decoding failed.', - ], + ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => '用户认证失败。'], + ['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => '调度规则已存在。'], + ['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => '调度规则不存在。'], + ['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => '黑洞配置错误。'], + ['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => '清洗配置错误。'], + ['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => '网段被其他网段覆盖。'], + ['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => '数据库错误。'], + ['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => '网段处于宣告状态。'], + ['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => '防护配置错误。'], + ['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => '网段转发配置不存在。'], + ['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => '网段可用区转发配置不存在。'], + ['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => '网段转发规则不存在。'], + ['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'HTTP 请求失败。'], + ['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => '实例的IDC数量达到上限'], + ['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => '实例已经存在。'], + ['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => '实例网段配置已存在。'], + ['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => '实例不存在。'], + ['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => '实例的回注配置数量受限。'], + ['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '内部错误。'], + ['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => '网段不合法。'."\n"], + ['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数非法。'], + ['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => '实例的网段数量达到上限。'."\n"], + ['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => '网段不能被扩容。'."\n"], + ['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => '网段配置已存在。'."\n"], + ['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => '网段配置不存在。'], + ['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => '网段转发删除中。'."\n"], + ['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => '网段掩码超出范围。'."\n"], + ['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => '网段需要扩容。'."\n"], + ['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => '网段回注配置未完成'."\n"], + ['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => '网段宣告失败。'."\n"], + ['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => '网段不存在。'], + ['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => '网段解除宣告失败。'."\n"], + ['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => '必填参数缺失。'], + ['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数超出指定取值范围'], + ['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => '可用区不存在。'."\n"], + ['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => '请求方式错误。'], + ['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => '子网数量达到上限。'."\n"], + ['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => '未知错误。'], + ['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => '网段回注配置未完成。'."\n"], + ['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => '回注配置不存在。'."\n"], + ['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'JSON字符串转JSON对象失败。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Total\\": 10,\\n \\"Page\\": 1,\\n \\"Num\\": 100,\\n \\"Instances\\": [\\n {\\n \\"UserId\\": \\"177xxxxxxxxxxxxx\\",\\n \\"SaleId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx\\",\\n \\"InstanceId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx\\",\\n \\"Name\\": \\"测试实例。\\",\\n \\"Status\\": \\"normal\\",\\n \\"Comment\\": \\"测试实例。\\",\\n \\"Message\\": \\"successful\\",\\n \\"Spec\\": {\\n \\"IdcNumbers\\": \\"1\\",\\n \\"NormalBandwidth\\": \\"100\\",\\n \\"IpSubnetNums\\": \\"1\\",\\n \\"Coverage\\": \\"international_and_hmt\\",\\n \\"Edition\\": \\"enterprise\\",\\n \\"MitigationCapacity\\": \\"unlimited\\",\\n \\"MitigationNums\\": \\"unlimited\\",\\n \\"DiversionType\\": \\"on-demand\\",\\n \\"MitigationAnalysis\\": \\"off\\",\\n \\"MitigationAnalysisCapacity\\": \\"3T\\",\\n \\"InitialInstallation\\": \\"gre_tunnel_by_pccw\\",\\n \\"InitialQty\\": \\"1\\"\\n },\\n \\"GmtExpire\\": \\"2022-12-15 11:10:42\\",\\n \\"GmtCreate\\": \\"2022-12-15 11:10:42\\",\\n \\"GmtModify\\": \\"2022-12-15 11:10:42\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"B0949F09-B9C1-1D5E-8F27-0A5BF3CD5D95\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Total\\": 10,\\n \\"Page\\": 1,\\n \\"Num\\": 100,\\n \\"Instances\\": [\\n {\\n \\"UserId\\": \\"177xxxxxxxxxxxxx\\",\\n \\"SaleId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx\\",\\n \\"InstanceId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx_xxxxxx\\",\\n \\"Name\\": \\"Test instance.\\",\\n \\"Status\\": \\"normal\\",\\n \\"Comment\\": \\"Test instance.\\",\\n \\"Message\\": \\"successful\\",\\n \\"Spec\\": {\\n \\"IdcNumbers\\": \\"1\\",\\n \\"NormalBandwidth\\": \\"100\\",\\n \\"IpSubnetNums\\": \\"1\\",\\n \\"Coverage\\": \\"international_and_hmt\\",\\n \\"Edition\\": \\"enterprise\\",\\n \\"MitigationCapacity\\": \\"unlimited\\",\\n \\"MitigationNums\\": \\"unlimited\\",\\n \\"DiversionType\\": \\"on-demand\\",\\n \\"MitigationAnalysis\\": \\"off\\",\\n \\"MitigationAnalysisCapacity\\": \\"3T\\",\\n \\"InitialInstallation\\": \\"gre_tunnel_by_pccw\\",\\n \\"InitialQty\\": \\"1\\"\\n },\\n \\"GmtExpire\\": \\"2022-12-15 11:10:42\\",\\n \\"GmtCreate\\": \\"2022-12-15 11:10:42\\",\\n \\"GmtModify\\": \\"2022-12-15 11:10:42\\"\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => '查询实例列表', - ], - 'QueryNetList' => [ - 'summary' => '查询代播的网段列表。', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'ddosdiversion:ListInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'QueryNetList' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -779,10 +363,10 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', 'abilityTreeCode' => '186874', - 'abilityTreeNodes' => [ - 'FEATUREddosPJT0YW', - ], + 'abilityTreeNodes' => ['FEATUREddosPJT0YW'], 'autoTest' => false, 'notSupportAutoTestReason' => '代播API 涉及IP网段的路由配置,支持宣告/撤销等操作,需要客户真实网段操作,无法进行自动化调度与验证。', 'tenantRelevance' => 'publicInformation', @@ -791,12 +375,7 @@ [ 'name' => 'SaleId', 'in' => 'query', - 'schema' => [ - 'description' => '代播实例的ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', - ], + 'schema' => ['description' => '代播实例的ID。', 'type' => 'string', 'required' => false, 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'], ], [ 'name' => 'Net', @@ -820,51 +399,25 @@ .'- netflow-auto:netflow自动调度。', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'netflow-auto' => 'netflow-auto', - 'manual' => 'manual', - ], + 'enumValueTitles' => ['netflow-auto' => 'netflow-auto', 'manual' => 'manual'], 'example' => 'netflow-auto', - 'enum' => [ - 'manual', - 'netflow-auto', - 'beaver-auto', - ], + 'enum' => ['manual', 'netflow-auto', 'beaver-auto'], ], ], [ 'name' => 'MainNet', 'in' => 'query', - 'schema' => [ - 'description' => '具有扩展网段的代播实例的主网段。如果查询的代播实例没有扩展网段,此参数为空。', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.XX.XX/22', - ], + 'schema' => ['description' => '具有扩展网段的代播实例的主网段。如果查询的代播实例没有扩展网段,此参数为空。', 'type' => 'string', 'required' => false, 'example' => '192.168.XX.XX/22'], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'description' => '页码。 默认值:1。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '页码。 默认值:1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'default' => '1'], ], [ 'name' => 'Num', 'in' => 'query', - 'schema' => [ - 'description' => '数量。默认值:100。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '100', - 'default' => '100', - ], + 'schema' => ['description' => '数量。默认值:100。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100', 'default' => '100'], ], ], 'responses' => [ @@ -872,63 +425,27 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '接口返回码:'."\n" - ."\n" - .'- **200**:表示成功。'."\n" - .'- 其它:表示错误码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - 'RequestId' => [ - 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', - 'type' => 'string', - 'example' => '24B652B5-AEFF-3F03-9114-00D053C42277', - ], - 'Message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'Code' => ['description' => '接口返回码:'."\n" + ."\n" + .'- **200**:表示成功。'."\n" + .'- 其它:表示错误码。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + 'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => '24B652B5-AEFF-3F03-9114-00D053C42277'], + 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'], 'Data' => [ 'description' => '网段列表。', 'type' => 'object', 'properties' => [ - 'Total' => [ - 'description' => '网段总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'Page' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Num' => [ - 'description' => '每页展示的网段数量。取值范围:1~100,默认值为100。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], + 'Total' => ['description' => '网段总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'Page' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Num' => ['description' => '每页展示的网段数量。取值范围:1~100,默认值为100。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], 'Nets' => [ 'description' => '网段列表。', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'UserId' => [ - 'description' => '用户ID。', - 'type' => 'string', - 'example' => '57690941xxxxxxxx', - ], - 'SaleId' => [ - 'description' => '代播实例的ID。', - 'type' => 'string', - 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx', - ], + 'UserId' => ['description' => '用户ID。', 'type' => 'string', 'example' => '57690941xxxxxxxx'], + 'SaleId' => ['description' => '代播实例的ID。', 'type' => 'string', 'example' => 'ddos_diversion_public_cn-xxxxxxxxxxxxx'], 'UpstreamType' => [ 'description' => '回注类型。枚举值:'."\n" .'- aliyun_line:阿里云专线。'."\n" @@ -939,16 +456,8 @@ 'enumValueTitles' => [], 'example' => 'aliyun_line', ], - 'Net' => [ - 'description' => '代播实例的网段。', - 'type' => 'string', - 'example' => '192.168.XX.XX/24', - ], - 'NetType' => [ - 'description' => '网段类型。', - 'type' => 'string', - 'example' => 'ipv4', - ], + 'Net' => ['description' => '代播实例的网段。', 'type' => 'string', 'example' => '192.168.XX.XX/24'], + 'NetType' => ['description' => '网段类型。', 'type' => 'string', 'example' => 'ipv4'], 'Mode' => [ 'description' => '代播启动模式。枚举值:'."\n" .'- netflow-auto:NetFlow自动。'."\n" @@ -972,18 +481,14 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Region' => [ - 'description' => '牵引区域。枚举值:'."\n" - .'- oe26:香港。'."\n" - .'- us50:美东。'."\n" - .'- oe24:美西。'."\n" - .'- oe28:新加坡。'."\n" - .'- jp141:日本。'."\n" - .'- gb145:英国。'."\n" - .'- oi39:德国。', - 'type' => 'string', - 'example' => 'oe26', - ], + 'Region' => ['description' => '牵引区域。枚举值:'."\n" + .'- oe26:香港。'."\n" + .'- us50:美东。'."\n" + .'- oe24:美西。'."\n" + .'- oe28:新加坡。'."\n" + .'- jp141:日本。'."\n" + .'- gb145:英国。'."\n" + .'- oi39:德国。', 'type' => 'string', 'example' => 'oe26'], 'Declared' => [ 'description' => '区域牵引状态。枚举值:'."\n" .'- 0:未牵引。'."\n" @@ -993,18 +498,11 @@ 'example' => '0', ], ], + 'description' => '', ], ], - 'GmtCreate' => [ - 'description' => '添加时间。', - 'type' => 'string', - 'example' => '2024-09-05 13:52:50', - ], - 'GmtModify' => [ - 'description' => '修改时间。', - 'type' => 'string', - 'example' => '2024-09-05 13:59:55', - ], + 'GmtCreate' => ['description' => '添加时间。', 'type' => 'string', 'example' => '2024-09-05 13:52:50'], + 'GmtModify' => ['description' => '修改时间。', 'type' => 'string', 'example' => '2024-09-05 13:59:55'], 'NetExtend' => [ 'description' => '是否需要扩展。枚举值:'."\n" .'- 0:不扩展。'."\n" @@ -1021,41 +519,22 @@ 'description' => '防护模板。', 'type' => 'object', 'properties' => [ - 'PolicyName' => [ - 'description' => '模板名称。', - 'type' => 'string', - 'example' => 'gf_origin_xxxxx', - ], + 'PolicyName' => ['description' => '模板名称。', 'type' => 'string', 'example' => 'gf_origin_xxxxx'], ], ], 'CleanTh' => [ 'description' => '清洗阈值。', 'type' => 'object', 'properties' => [ - 'Mbps' => [ - 'description' => '每秒带宽清洗阈值。单位:Mbps。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Pps' => [ - 'description' => '每秒报文数清洗阈值。单位:Pps。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], + 'Mbps' => ['description' => '每秒带宽清洗阈值。单位:Mbps。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Pps' => ['description' => '每秒报文数清洗阈值。单位:Pps。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], ], ], 'HoleTh' => [ 'description' => '黑洞阈值。', 'type' => 'object', 'properties' => [ - 'ThreshMbps' => [ - 'description' => '黑洞阈值。单位:Mbps。0代表全力防护。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], + 'ThreshMbps' => ['description' => '黑洞阈值。单位:Mbps。0代表全力防护。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], ], ], ], @@ -1069,11 +548,7 @@ 'enumValueTitles' => [], 'example' => '1', ], - 'NetMain' => [ - 'description' => '子网段展示,主网段默认为空字符串。', - 'type' => 'string', - 'example' => '192.168.XX.XX/22', - ], + 'NetMain' => ['description' => '子网段展示,主网段默认为空字符串。', 'type' => 'string', 'example' => '192.168.XX.XX/22'], 'Permit' => [ 'description' => '审核状态。'."\n" .'枚举值:'."\n" @@ -1086,193 +561,190 @@ 'example' => '2', ], ], + 'description' => '', ], ], ], ], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'AuthenticationFailed', - 'errorMessage' => 'User authentication failed.', - ], - [ - 'errorCode' => 'AutoScheduleRuleExist', - 'errorMessage' => 'The auto schedule rule already exists.', - ], - [ - 'errorCode' => 'AutoScheduleRuleNotExist', - 'errorMessage' => 'The auto schedule rule dose not exist.', - ], - [ - 'errorCode' => 'BlackHoleConfigurationError', - 'errorMessage' => 'A black hole configuration error occurred.', - ], - [ - 'errorCode' => 'CleanConfigurationError', - 'errorMessage' => 'A clean configuration error occurred.', - ], - [ - 'errorCode' => 'CoveredNet', - 'errorMessage' => 'The CIDR block is overwritten.', - ], - [ - 'errorCode' => 'DatabaseError', - 'errorMessage' => 'A database error.', - ], - [ - 'errorCode' => 'DeclaredNet', - 'errorMessage' => 'The CIDR block has been advertised.', - ], - [ - 'errorCode' => 'DefenseConfigurationError', - 'errorMessage' => 'A defense configuration error occurred.', - ], - [ - 'errorCode' => 'ForwardConfigurationNotExist', - 'errorMessage' => 'The CIDR block forwarding configuration is not found.', - ], - [ - 'errorCode' => 'ForwardNotExist', - 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', - ], - [ - 'errorCode' => 'ForwardRuleNotExist', - 'errorMessage' => 'The CIDR block forwarding rule is not found.', - ], - [ - 'errorCode' => 'HttpFailed', - 'errorMessage' => 'HTTP request failed.', - ], - [ - 'errorCode' => 'IDNSubnetsCountLimit', - 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', - ], - [ - 'errorCode' => 'InstanceExist', - 'errorMessage' => 'The instance already exists.', - ], - [ - 'errorCode' => 'InstanceNetConfigurationExist', - 'errorMessage' => 'The instance CIDR block configuration already exists.', - ], - [ - 'errorCode' => 'InstanceNotExist', - 'errorMessage' => 'The instance is not found.', - ], - [ - 'errorCode' => 'InstanceUpstreamLimit', - 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', - ], - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'An internal error occurred.', - ], - [ - 'errorCode' => 'InvalidNet', - 'errorMessage' => 'Invalid CIDR block.', - ], - [ - 'errorCode' => 'InvalidParam', - 'errorMessage' => 'Invalid parameter value.', - ], - [ - 'errorCode' => 'IPSubnetsCountLimit', - 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', - ], - [ - 'errorCode' => 'NetCannotExtend', - 'errorMessage' => 'The CIDR block cannot be extended.', - ], - [ - 'errorCode' => 'NetConfigurationExist', - 'errorMessage' => 'The CIDR block configuration already exists.', - ], - [ - 'errorCode' => 'NetConfigurationNotExist', - 'errorMessage' => 'The CIDR block configuration is not found.', - ], - [ - 'errorCode' => 'NetForwardDelete', - 'errorMessage' => 'The CIDR block forwarding is being deleted.', - ], - [ - 'errorCode' => 'NetMaskOutOfRange', - 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', - ], - [ - 'errorCode' => 'NetNeedExtend', - 'errorMessage' => 'The CIDR block needs to be extended.', - ], - [ - 'errorCode' => 'NetStatusNotReady', - 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', - ], - [ - 'errorCode' => 'NetworkDeclearedFailed', - 'errorMessage' => 'Failed to advertise the CIDR block.', - ], - [ - 'errorCode' => 'NetWorkNotExist', - 'errorMessage' => 'The CIDR block is not found.', - ], - [ - 'errorCode' => 'NetworkUndeclearedFailed', - 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', - ], - [ - 'errorCode' => 'ParameterNotEnough', - 'errorMessage' => 'Required parameters are not specified.', - ], - [ - 'errorCode' => 'ParameterOutOfRange', - 'errorMessage' => 'Invalid parameter value.', - ], - [ - 'errorCode' => 'RegionNotExist', - 'errorMessage' => 'The region does not exist.', - ], - [ - 'errorCode' => 'RequestMethodError', - 'errorMessage' => 'An incorrect request method.', - ], - [ - 'errorCode' => 'SubnetCountLimit', - 'errorMessage' => 'The maximum number of subnets is exceeded.', - ], - [ - 'errorCode' => 'UnKnownError', - 'errorMessage' => 'An unknown error occurred.', - ], - [ - 'errorCode' => 'UpsteamNotComplete', - 'errorMessage' => 'The reinjection configuration has not been completed.', - ], - [ - 'errorCode' => 'UpstreamConfigurationNotExist', - 'errorMessage' => 'The reinjection configuration is not found.', - ], - [ - 'errorCode' => 'JsonDecodeError', - 'errorMessage' => 'JSON string decoding failed.', - ], + ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'User authentication failed.', 'description' => '用户认证失败。'], + ['errorCode' => 'AutoScheduleRuleExist', 'errorMessage' => 'The auto schedule rule already exists.', 'description' => '调度规则已存在。'], + ['errorCode' => 'AutoScheduleRuleNotExist', 'errorMessage' => 'The auto schedule rule dose not exist.', 'description' => '调度规则不存在。'], + ['errorCode' => 'BlackHoleConfigurationError', 'errorMessage' => 'A black hole configuration error occurred.', 'description' => '黑洞配置错误。'], + ['errorCode' => 'CleanConfigurationError', 'errorMessage' => 'A clean configuration error occurred.', 'description' => '清洗配置错误。'], + ['errorCode' => 'CoveredNet', 'errorMessage' => 'The CIDR block is overwritten.', 'description' => '网段被其他网段覆盖。'], + ['errorCode' => 'DatabaseError', 'errorMessage' => 'A database error.', 'description' => '数据库错误。'], + ['errorCode' => 'DeclaredNet', 'errorMessage' => 'The CIDR block has been advertised.', 'description' => '网段处于宣告状态。'], + ['errorCode' => 'DefenseConfigurationError', 'errorMessage' => 'A defense configuration error occurred.', 'description' => '防护配置错误。'], + ['errorCode' => 'ForwardConfigurationNotExist', 'errorMessage' => 'The CIDR block forwarding configuration is not found.', 'description' => '网段转发配置不存在。'], + ['errorCode' => 'ForwardNotExist', 'errorMessage' => 'The CIDR block zone forwarding configuration is not found.', 'description' => '网段可用区转发配置不存在。'], + ['errorCode' => 'ForwardRuleNotExist', 'errorMessage' => 'The CIDR block forwarding rule is not found.', 'description' => '网段转发规则不存在。'], + ['errorCode' => 'HttpFailed', 'errorMessage' => 'HTTP request failed.', 'description' => 'HTTP 请求失败。'], + ['errorCode' => 'IDNSubnetsCountLimit', 'errorMessage' => 'The maximum number of IDCs of the instance is exceeded.', 'description' => '实例的IDC数量达到上限'], + ['errorCode' => 'InstanceExist', 'errorMessage' => 'The instance already exists.', 'description' => '实例已经存在。'], + ['errorCode' => 'InstanceNetConfigurationExist', 'errorMessage' => 'The instance CIDR block configuration already exists.', 'description' => '实例网段配置已存在。'], + ['errorCode' => 'InstanceNotExist', 'errorMessage' => 'The instance is not found.', 'description' => '实例不存在。'], + ['errorCode' => 'InstanceUpstreamLimit', 'errorMessage' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'description' => '实例的回注配置数量受限。'], + ['errorCode' => 'InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '内部错误。'], + ['errorCode' => 'InvalidNet', 'errorMessage' => 'Invalid CIDR block.', 'description' => '网段不合法。'."\n"], + ['errorCode' => 'InvalidParam', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数非法。'], + ['errorCode' => 'IPSubnetsCountLimit', 'errorMessage' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'description' => '实例的网段数量达到上限。'."\n"], + ['errorCode' => 'NetCannotExtend', 'errorMessage' => 'The CIDR block cannot be extended.', 'description' => '网段不能被扩容。'."\n"], + ['errorCode' => 'NetConfigurationExist', 'errorMessage' => 'The CIDR block configuration already exists.', 'description' => '网段配置已存在。'."\n"], + ['errorCode' => 'NetConfigurationNotExist', 'errorMessage' => 'The CIDR block configuration is not found.', 'description' => '网段配置不存在。'], + ['errorCode' => 'NetForwardDelete', 'errorMessage' => 'The CIDR block forwarding is being deleted.', 'description' => '网段转发删除中。'."\n"], + ['errorCode' => 'NetMaskOutOfRange', 'errorMessage' => 'The subnet mask of the CIDR block is invalid.', 'description' => '网段掩码超出范围。'."\n"], + ['errorCode' => 'NetNeedExtend', 'errorMessage' => 'The CIDR block needs to be extended.', 'description' => '网段需要扩容。'."\n"], + ['errorCode' => 'NetStatusNotReady', 'errorMessage' => 'The CIDR block reinjection configuration has not been completed.', 'description' => '网段回注配置未完成'."\n"], + ['errorCode' => 'NetworkDeclearedFailed', 'errorMessage' => 'Failed to advertise the CIDR block.', 'description' => '网段宣告失败。'."\n"], + ['errorCode' => 'NetWorkNotExist', 'errorMessage' => 'The CIDR block is not found.', 'description' => '网段不存在。'], + ['errorCode' => 'NetworkUndeclearedFailed', 'errorMessage' => 'Failed to cancel the advertisement of the CIDR block.', 'description' => '网段解除宣告失败。'."\n"], + ['errorCode' => 'ParameterNotEnough', 'errorMessage' => 'Required parameters are not specified.', 'description' => '必填参数缺失。'], + ['errorCode' => 'ParameterOutOfRange', 'errorMessage' => 'Invalid parameter value.', 'description' => '参数超出指定取值范围'], + ['errorCode' => 'RegionNotExist', 'errorMessage' => 'The region does not exist.', 'description' => '可用区不存在。'."\n"], + ['errorCode' => 'RequestMethodError', 'errorMessage' => 'An incorrect request method.', 'description' => '请求方式错误。'], + ['errorCode' => 'SubnetCountLimit', 'errorMessage' => 'The maximum number of subnets is exceeded.', 'description' => '子网数量达到上限。'."\n"], + ['errorCode' => 'UnKnownError', 'errorMessage' => 'An unknown error occurred.', 'description' => '未知错误。'], + ['errorCode' => 'UpsteamNotComplete', 'errorMessage' => 'The reinjection configuration has not been completed.', 'description' => '网段回注配置未完成。'."\n"], + ['errorCode' => 'UpstreamConfigurationNotExist', 'errorMessage' => 'The reinjection configuration is not found.', 'description' => '回注配置不存在。'."\n"], + ['errorCode' => 'JsonDecodeError', 'errorMessage' => 'JSON string decoding failed.', 'description' => 'JSON字符串转JSON对象失败。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询网段列表', + 'summary' => '查询代播的网段列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'ddosdiversion:QueryNetList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"RequestId\\": \\"24B652B5-AEFF-3F03-9114-00D053C42277\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Total\\": 10,\\n \\"Page\\": 1,\\n \\"Num\\": 100,\\n \\"Nets\\": [\\n {\\n \\"UserId\\": \\"57690941xxxxxxxx\\",\\n \\"SaleId\\": \\"ddos_diversion_public_cn-xxxxxxxxxxxxx\\",\\n \\"UpstreamType\\": \\"aliyun_line\\",\\n \\"Net\\": \\"192.168.XX.XX/24\\",\\n \\"NetType\\": \\"ipv4\\",\\n \\"Mode\\": \\"manual\\",\\n \\"DeclaredState\\": 0,\\n \\"Declared\\": [\\n {\\n \\"Region\\": \\"oe26\\",\\n \\"Declared\\": \\"0\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2024-09-05 13:52:50\\",\\n \\"GmtModify\\": \\"2024-09-05 13:59:55\\",\\n \\"NetExtend\\": \\"0\\",\\n \\"DDoSDefense\\": {\\n \\"DjPolicy\\": {\\n \\"PolicyName\\": \\"gf_origin_xxxxx\\"\\n },\\n \\"CleanTh\\": {\\n \\"Mbps\\": 0,\\n \\"Pps\\": 0\\n },\\n \\"HoleTh\\": {\\n \\"ThreshMbps\\": 0\\n }\\n },\\n \\"FwdEffect\\": 1,\\n \\"NetMain\\": \\"192.168.XX.XX/22\\",\\n \\"Permit\\": 2\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询网段列表', ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'ddosdiversion.cn-hongkong.aliyuncs.com', + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ddosdiversion.cn-hongkong.aliyuncs.com', 'endpoint' => 'ddosdiversion.cn-hongkong.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => 'AuthenticationFailed', 'message' => 'User authentication failed.', 'http_code' => 400, 'description' => '用户认证失败。'], + ['code' => 'AutoScheduleRuleExist', 'message' => 'The auto schedule rule already exists.', 'http_code' => 400, 'description' => '调度规则已存在。'], + ['code' => 'AutoScheduleRuleNotExist', 'message' => 'The auto schedule rule dose not exist.', 'http_code' => 400, 'description' => '调度规则不存在。'], + ['code' => 'BlackHoleConfigurationError', 'message' => 'A black hole configuration error occurred.', 'http_code' => 400, 'description' => '黑洞配置错误。'], + ['code' => 'CleanConfigurationError', 'message' => 'A clean configuration error occurred.', 'http_code' => 400, 'description' => '清洗配置错误。'], + ['code' => 'CoveredNet', 'message' => 'The CIDR block is overwritten.', 'http_code' => 400, 'description' => '网段被其他网段覆盖。'], + ['code' => 'DatabaseError', 'message' => 'A database error.', 'http_code' => 400, 'description' => '数据库错误。'], + ['code' => 'DeclaredNet', 'message' => 'The CIDR block has been advertised.', 'http_code' => 400, 'description' => '网段处于宣告状态。'], + ['code' => 'DefenseConfigurationError', 'message' => 'A defense configuration error occurred.', 'http_code' => 400, 'description' => '防护配置错误。'], + ['code' => 'ForwardConfigurationNotExist', 'message' => 'The CIDR block forwarding configuration is not found.', 'http_code' => 400, 'description' => '网段转发配置不存在。'], + ['code' => 'ForwardNotExist', 'message' => 'The CIDR block zone forwarding configuration is not found.', 'http_code' => 400, 'description' => '网段可用区转发配置不存在。'], + ['code' => 'ForwardRuleNotExist', 'message' => 'The CIDR block forwarding rule is not found.', 'http_code' => 400, 'description' => '网段转发规则不存在。'], + ['code' => 'GreLineExist', 'message' => 'local gre line still exist.', 'http_code' => 400, 'description' => '本地gre线路仍然存在'], + ['code' => 'GreLineNotExist', 'message' => 'local gre line not exist.', 'http_code' => 400, 'description' => 'gre线路不存在'], + ['code' => 'GreRemoteAddrUsed', 'message' => 'GRE remote IP already in use.', 'http_code' => 400, 'description' => 'GRE隧道远端IP已被使用。'], + ['code' => 'HttpFailed', 'message' => 'HTTP request failed.', 'http_code' => 400, 'description' => 'HTTP 请求失败。'], + ['code' => 'IDNSubnetsCountLimit', 'message' => 'The maximum number of IDCs of the instance is exceeded.', 'http_code' => 400, 'description' => '实例的IDC数量达到上限'], + ['code' => 'InstanceExist', 'message' => 'The instance already exists.', 'http_code' => 400, 'description' => '实例已经存在。'], + ['code' => 'InstanceNetConfigurationExist', 'message' => 'The instance CIDR block configuration already exists.', 'http_code' => 400, 'description' => '实例网段配置已存在。'], + ['code' => 'InstanceNotExist', 'message' => 'The instance is not found.', 'http_code' => 400, 'description' => '实例不存在。'], + ['code' => 'InstanceUpstreamLimit', 'message' => 'The maximum number of reinjection configurations for the instance is exceeded.', 'http_code' => 400, 'description' => '实例的回注配置数量受限。'], + ['code' => 'InternalError', 'message' => 'An internal error occurred.', 'http_code' => 400, 'description' => '内部错误。'], + ['code' => 'InvalidNet', 'message' => 'Invalid CIDR block.', 'http_code' => 400, 'description' => '网段不合法。'."\n"], + ['code' => 'InvalidParam', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => '参数非法。'], + ['code' => 'IPSubnetsCountLimit', 'message' => 'The maximum number of CIDR blocks of the instance is exceeded.', 'http_code' => 400, 'description' => '实例的网段数量达到上限。'."\n"], + ['code' => 'JsonDecodeError', 'message' => 'JSON string decoding failed.', 'http_code' => 400, 'description' => 'JSON字符串转JSON对象失败。'], + ['code' => 'NetCannotExtend', 'message' => 'The CIDR block cannot be extended.', 'http_code' => 400, 'description' => '网段不能被扩容。'."\n"], + ['code' => 'NetConfigNotPermit', 'message' => 'Network segment configuration not approved.', 'http_code' => 400, 'description' => '网段配置未审核'], + ['code' => 'NetConfigurationExist', 'message' => 'The CIDR block configuration already exists.', 'http_code' => 400, 'description' => '网段配置已存在。'."\n"], + ['code' => 'NetConfigurationNotExist', 'message' => 'The CIDR block configuration is not found.', 'http_code' => 400, 'description' => '网段配置不存在。'], + ['code' => 'NetForwardDelete', 'message' => 'The CIDR block forwarding is being deleted.', 'http_code' => 400, 'description' => '网段转发删除中。'."\n"], + ['code' => 'NetMaskOutOfRange', 'message' => 'The subnet mask of the CIDR block is invalid.', 'http_code' => 400, 'description' => '网段掩码超出范围。'."\n"], + ['code' => 'NetNeedExtend', 'message' => 'The CIDR block needs to be extended.', 'http_code' => 400, 'description' => '网段需要扩容。'."\n"], + ['code' => 'NetNhpoolUsedByNet', 'message' => 'Nh Pool is Used By Net.', 'http_code' => 400, 'description' => 'GRE回注线路已绑定网段,不能删除'], + ['code' => 'NetStatusNotReady', 'message' => 'The CIDR block reinjection configuration has not been completed.', 'http_code' => 400, 'description' => '网段回注配置未完成'."\n"], + ['code' => 'NetworkDeclearedFailed', 'message' => 'Failed to advertise the CIDR block.', 'http_code' => 400, 'description' => '网段宣告失败。'."\n"], + ['code' => 'NetWorkNotExist', 'message' => 'The CIDR block is not found.', 'http_code' => 400, 'description' => '网段不存在。'], + ['code' => 'NetworkUndeclearedFailed', 'message' => 'Failed to cancel the advertisement of the CIDR block.', 'http_code' => 400, 'description' => '网段解除宣告失败。'."\n"], + ['code' => 'NhPoolMemberExist', 'message' => 'nh pool member already exist.', 'http_code' => 400, 'description' => 'nh pool成员已经存在。'], + ['code' => 'NhPoolMemberNotExist', 'message' => 'nh pool member not exist.', 'http_code' => 400, 'description' => 'nh pool 不存在'], + ['code' => 'NhpoolNotExist', 'message' => 'nh pool not exist.', 'http_code' => 400, 'description' => 'nh_pool不存在'], + ['code' => 'ParameterNotEnough', 'message' => 'Required parameters are not specified.', 'http_code' => 400, 'description' => '必填参数缺失。'], + ['code' => 'ParameterOutOfRange', 'message' => 'Invalid parameter value.', 'http_code' => 400, 'description' => '参数超出指定取值范围'], + ['code' => 'RegionNotExist', 'message' => 'The region does not exist.', 'http_code' => 400, 'description' => '可用区不存在。'."\n"], + ['code' => 'RequestMethodError', 'message' => 'An incorrect request method.', 'http_code' => 400, 'description' => '请求方式错误。'], + ['code' => 'SubnetCountLimit', 'message' => 'The maximum number of subnets is exceeded.', 'http_code' => 400, 'description' => '子网数量达到上限。'."\n"], + ['code' => 'UnKnownError', 'message' => 'An unknown error occurred.', 'http_code' => 400, 'description' => '未知错误。'], + ['code' => 'UpsteamNotComplete', 'message' => 'The reinjection configuration has not been completed.', 'http_code' => 400, 'description' => '网段回注配置未完成。'."\n"], + ['code' => 'UpstreamConfigurationNotExist', 'message' => 'The reinjection configuration is not found.', 'http_code' => 400, 'description' => '回注配置不存在。'."\n"], + ['code' => 'UpstreamRegionUsedByNet', 'message' => 'The reinjection region configuration is still used by CIDR block.', 'http_code' => 400, 'description' => '回注区域仍被网段关联使用中'], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ram' => [ + 'productCode' => 'DdosDiversion', + 'productName' => 'DDoS防护', + 'ramCodes' => ['ddosdiversion'], + 'ramLevel' => '操作级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'ListInstance', + 'description' => '查询实例列表', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'ddosdiversion:ListInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ConfigNetStatus', + 'description' => '网段宣告配置', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'ddosdiversion:ConfigNetStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'QueryNetList', + 'description' => '查询网段列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'ddosdiversion:QueryNetList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DdosDiversion', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'resourceTypes' => [], ], ]; |
