summaryrefslogtreecommitdiff
path: root/data/zh_cn/advisor/2018-01-20
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/advisor/2018-01-20
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/zh_cn/advisor/2018-01-20')
-rw-r--r--data/zh_cn/advisor/2018-01-20/api-docs.php6741
1 files changed, 3816 insertions, 2925 deletions
diff --git a/data/zh_cn/advisor/2018-01-20/api-docs.php b/data/zh_cn/advisor/2018-01-20/api-docs.php
index a1b1d18..80bdc15 100644
--- a/data/zh_cn/advisor/2018-01-20/api-docs.php
+++ b/data/zh_cn/advisor/2018-01-20/api-docs.php
@@ -1,313 +1,28 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'Advisor',
- 'version' => '2018-01-20',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'Advisor', 'version' => '2018-01-20'],
'directories' => [
[
- 'id' => 204006,
- 'title' => '多维巡检',
+ 'children' => ['DescribeAdvisorChecks', 'DescribeAdvices', 'DescribeAdvisorResources', 'RefreshAdvisorCheck', 'RefreshAdvisorResource', 'DescribeAdvicesPage', 'GetTaskStatusById', 'GetHistoryAdvices', 'DescribeAdvicesFlatPage'],
'type' => 'directory',
- 'children' => [
- 'DescribeAdvisorChecks',
- 'DescribeAdvices',
- 'DescribeAdvisorResources',
- 'RefreshAdvisorCheck',
- 'RefreshAdvisorResource',
- 'DescribeAdvicesPage',
- 'GetTaskStatusById',
- 'GetHistoryAdvices',
- 'DescribeAdvicesFlatPage',
- ],
+ 'title' => '多维巡检',
+ 'id' => 35571,
],
[
- 'id' => 204007,
- 'title' => '成本优化',
+ 'children' => ['GetProductList', 'DescribeCostCheckResults', 'DescribeCostCheckAdvices', 'GetInspectProgress', 'RefreshAdvisorCostCheck', 'DescribeAdvisorChecksFoPages', 'DescribeCostOptimizationOverview'],
'type' => 'directory',
- 'children' => [
- 'GetProductList',
- 'DescribeCostCheckResults',
- 'DescribeCostCheckAdvices',
- 'GetInspectProgress',
- 'RefreshAdvisorCostCheck',
- 'DescribeAdvisorChecksFoPages',
- 'DescribeCostOptimizationOverview',
- ],
+ 'title' => '成本优化',
+ 'id' => 35581,
],
],
'components' => [
- 'schemas' => [
- 'RdAccountDTO' => [
- 'title' => 'A short description of struct',
- 'description' => 'Rd成员账号对象',
- 'type' => 'object',
- 'properties' => [
- 'Id' => [
- 'title' => '成员账号UID',
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'Name' => [
- 'title' => '成员账号名称',
- 'type' => 'string',
- ],
- 'DisplayName' => [
- 'title' => '展示名称',
- 'type' => 'string',
- ],
- 'AccountType' => [
- 'title' => '账号类型',
- 'type' => 'string',
- ],
- 'Checked' => [
- 'title' => '是否选中',
- 'type' => 'boolean',
- ],
- 'Tags' => [
- 'title' => '标签信息',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'title' => '标签键',
- 'type' => 'string',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'type' => 'string',
- ],
- ],
- ],
- ],
- ],
- ],
- 'RdAccountFolderDTO' => [
- 'title' => 'A short description of struct',
- 'description' => 'Rd多账号文件夹',
- 'type' => 'object',
- 'properties' => [
- 'ResourceDirectoryId' => [
- 'title' => 'RD ID',
- 'type' => 'string',
- ],
- 'FolderId' => [
- 'title' => '文件夹ID',
- 'type' => 'string',
- ],
- 'FolderName' => [
- 'title' => '文件夹展示名',
- 'type' => 'string',
- ],
- 'ResourceDirectoryPath' => [
- 'title' => '文件夹路径',
- 'type' => 'string',
- ],
- 'ResourceDirectoryPathName' => [
- 'title' => '文件夹路径名',
- 'type' => 'string',
- ],
- 'AccountCount' => [
- 'title' => '文件夹节点账号数量',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'SelectedCount' => [
- 'title' => '文件夹节点选中数量',
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'FolderList' => [
- 'title' => '文件夹节点下属子文件夹',
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/RdAccountFolderDTO',
- ],
- ],
- 'AccountList' => [
- 'title' => '文件夹节点下述账号列表',
- 'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/RdAccountDTO',
- ],
- ],
- ],
- ],
- ],
+ 'schemas' => [],
],
'apis' => [
- 'DescribeAdvisorChecks' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'Language',
- 'in' => 'query',
- 'schema' => [
- 'description' => '使用的语言。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
- ],
- [
- 'name' => 'Product',
- 'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
- 'Data' => [
- 'type' => 'object',
- 'itemNode' => true,
- 'properties' => [
- 'AdvisorCheck' => [
- 'description' => '查询结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询结果对象体。',
- 'type' => 'object',
- 'properties' => [
- 'Status' => [
- 'description' => '诊断项是否被禁用状态:'."\n"
- ."\n"
- .'- **enabled**: 可用'."\n"
- ."\n"
- .'- **disabled**: 禁用',
- 'type' => 'string',
- 'example' => 'enabled',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'OperateColumn' => [
- 'description' => '操作字段,使用前端模板或诊断建议action中定义json字段。',
- 'type' => 'string',
- 'example' => '[{"key": "Detail", "value": "/diagnosis?product=${Product}&resourceId=${Resource.resourceId}", "type": "template"} ]',
- ],
- 'GmtModified' => [
- 'description' => '巡检项配置更新时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'ViewColumn' => [
- 'description' => '展示列,即控制台展示巡检项详情的具体配置。',
- 'type' => 'string',
- 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, {"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, {"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, ]',
- ],
- 'GmtCreated' => [
- 'description' => '巡检项配置创建时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明。',
- 'type' => 'string',
- 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高',
- ],
- 'Tips' => [
- 'description' => '巡检建议一句话简述。',
- 'type' => 'string',
- 'example' => '请排查实例资源占用情况或升级实例规格',
- ],
- 'Code' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsHighCpuUtilization',
- ],
- 'Category' => [
- 'description' => '巡检项分类:'."\n"
- ."\n"
- .'- **1**: 安全合规'."\n"
- ."\n"
- .'- **2**: 性能效率'."\n"
- ."\n"
- .'- **3**: 业务稳定'."\n"
- ."\n"
- .'- **4**: 成本优化'."\n"
- ."\n"
- .'- **5**: 服务限制',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'Name' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => 'ECS 性能负载巡检',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
- ],
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"AdvisorCheck\\": [\\n {\\n \\"Status\\": \\"enabled\\",\\n \\"Product\\": \\"ecs\\",\\n \\"OperateColumn\\": \\"[{\\\\\\"key\\\\\\": \\\\\\"Detail\\\\\\", \\\\\\"value\\\\\\": \\\\\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\\\\\", \\\\\\"type\\\\\\": \\\\\\"template\\\\\\"} ]\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"ViewColumn\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"type\\\\\\":\\\\\\"DEFAULT\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"type\\\\\\":\\\\\\"DEFAULT\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"type\\\\\\":\\\\\\"DEFAULT\\\\\\"}, ]\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"Tips\\": \\"请排查实例资源占用情况或升级实例规格\\",\\n \\"Code\\": \\"EcsHighCpuUtilization\\",\\n \\"Category\\": \\"1\\",\\n \\"Name\\": \\"ECS 性能负载巡检\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvisorChecksResponse>\\n <Code>200</Code>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <Status>enabled</Status>\\n <Product>ecs</Product>\\n <OperateColumn>[{\\"key\\": \\"Detail\\", \\"value\\": \\"/diagnosis?product=${Product}&amp;resourceId=${Resource.resourceId}\\", \\"type\\": \\"template\\"} ]</OperateColumn>\\n <GmtModified>2023-07-01 00:00:00</GmtModified>\\n <ViewColumn>[{\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"type\\":\\"DEFAULT\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"type\\":\\"DEFAULT\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"type\\":\\"DEFAULT\\"}, ]</ViewColumn>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <Tips>请排查实例资源占用情况或升级实例规格</Tips>\\n <Code>EcsHighCpuUtilization</Code>\\n <Category>1</Category>\\n <Name>ECS 性能负载巡检</Name>\\n </Data>\\n</DescribeAdvisorChecksResponse>","errorExample":""}]',
- 'title' => '获取巡检项',
- 'summary' => '获取用户当前可用的巡检项。',
- ],
'DescribeAdvices' => [
'summary' => '可根据多个维度获取用户最新的巡检结果,全量返回。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -318,83 +33,43 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
'name' => 'AdviceId',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '40200899',
- ],
+ 'schema' => ['description' => '巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '40200899'],
],
[
'name' => 'CheckId',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'EcsHighCpuUtilization',
- ],
+ 'schema' => ['description' => '巡检项Code。', 'type' => 'string', 'required' => false, 'example' => 'EcsHighCpuUtilization'],
],
[
'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
+ 'schema' => ['description' => '资源/实例ID。', 'type' => 'string', 'required' => false, 'example' => 'i-2zecnwitr2s7aca6****'],
],
[
'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '请求使用的语言。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
+ 'schema' => ['description' => '请求使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
'name' => 'ExcludeAdviceId',
'in' => 'query',
- 'schema' => [
- 'description' => '不包含的巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '40200889',
- ],
+ 'schema' => ['description' => '不包含的巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '40200889'],
],
[
'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
[
'name' => 'CheckPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检方案ID(不填则默认为系统方案)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '111',
- ],
+ 'schema' => ['description' => '巡检方案ID(不填则默认为系统方案)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '111'],
],
],
'responses' => [
@@ -402,11 +77,7 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
'Data' => [
'type' => 'object',
'itemNode' => true,
@@ -418,199 +89,121 @@
'description' => '查询结果对象体。',
'type' => 'object',
'properties' => [
- 'Severity' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'GmtModified' => [
- 'description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'IsExpired' => [
- 'description' => '是否已过期:'."\n"
- ."\n"
- .'- **false**: 未过期,'."\n"
- .'- **true**: 已过期',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'GmtCreated' => [
- 'description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'Resource' => [
- 'description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档。',
- 'type' => 'string',
- 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明。',
- 'type' => 'string',
- 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高',
- ],
- 'CheckId' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsHighCpuUtilization',
- ],
- 'AliyunId' => [
- 'description' => '阿里云用户ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '192895059480****',
- ],
- 'ResourceId' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
- 'Content' => [
- 'description' => '结果Json详情,与控制台配置的展示列格式保持一致。',
- 'type' => 'string',
- 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}]',
- ],
- 'Id' => [
- 'description' => '巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '40200899',
- ],
- 'CheckName' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => 'ECS 性能负载巡检'."\n",
- ],
- 'CheckPlanId' => [
- 'description' => '巡检方案ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '111',
- ],
+ 'Severity' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'GmtModified' => ['description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'IsExpired' => ['description' => '是否已过期:'."\n"
+ ."\n"
+ .'- **false**: 未过期,'."\n"
+ .'- **true**: 已过期', 'type' => 'boolean', 'example' => 'false'],
+ 'GmtCreated' => ['description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'Resource' => ['description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档。', 'type' => 'string', 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明。', 'type' => 'string', 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高'],
+ 'CheckId' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsHighCpuUtilization'],
+ 'AliyunId' => ['description' => '阿里云用户ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '192895059480****'],
+ 'ResourceId' => ['description' => '资源/实例ID。', 'type' => 'string', 'example' => 'i-2zecnwitr2s7aca6****'],
+ 'Content' => ['description' => '结果Json详情,与控制台配置的展示列格式保持一致。', 'type' => 'string', 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}]'],
+ 'Id' => ['description' => '巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '40200899'],
+ 'CheckName' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => 'ECS 性能负载巡检'."\n"],
+ 'CheckPlanId' => ['description' => '巡检方案ID', 'type' => 'integer', 'format' => 'int64', 'example' => '111'],
],
],
],
],
+ 'description' => '',
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"Advice\\": [\\n {\\n \\"Severity\\": 1,\\n \\"Product\\": \\"ecs\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"IsExpired\\": false,\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"Resource\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"AliyunId\\": 0,\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"Content\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}]\\",\\n \\"Id\\": 40200899,\\n \\"CheckName\\": \\"ECS 性能负载巡检\\\\n\\",\\n \\"CheckPlanId\\": 111\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvicesResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <Severity>1</Severity>\\n <Product>ecs</Product>\\n <GmtModified>2023-07-01 00:00:00</GmtModified>\\n <IsExpired>false</IsExpired>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <Resource>{\\"resourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\"resourceName\\": \\"ecs-20230701\\",\\"regionId\\": \\"cn-hangzhou\\",...}</Resource>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <CheckId>EcsHighCpuUtilization</CheckId>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <Content>[{\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}]</Content>\\n <Id>40200899</Id>\\n <CheckName>ECS 性能负载巡检\\n</CheckName>\\n </Data>\\n</DescribeAdvicesResponse>","errorExample":""}]',
'title' => '获取最新巡检结果',
'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
- ],
- 'DescribeAdvisorResources' => [
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAdvices'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"Advice\\": [\\n {\\n \\"Severity\\": 1,\\n \\"Product\\": \\"ecs\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"IsExpired\\": false,\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"Resource\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"AliyunId\\": 0,\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"Content\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}]\\",\\n \\"Id\\": 40200899,\\n \\"CheckName\\": \\"ECS 性能负载巡检\\\\n\\",\\n \\"CheckPlanId\\": 111\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvicesResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <Severity>1</Severity>\\n <Product>ecs</Product>\\n <GmtModified>2023-07-01 00:00:00</GmtModified>\\n <IsExpired>false</IsExpired>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <Resource>{\\"resourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\"resourceName\\": \\"ecs-20230701\\",\\"regionId\\": \\"cn-hangzhou\\",...}</Resource>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <CheckId>EcsHighCpuUtilization</CheckId>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <Content>[{\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}]</Content>\\n <Id>40200899</Id>\\n <CheckName>ECS 性能负载巡检\\n</CheckName>\\n </Data>\\n</DescribeAdvicesResponse>","errorExample":""}]',
+ ],
+ 'DescribeAdvicesFlatPage' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
+ ],
'parameters' => [
[
- 'name' => 'ResourceId',
+ 'name' => 'AdviceId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'i-2zecnwitr2s7aca6****'."\n",
- ],
+ 'schema' => ['description' => '巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12345678'],
],
[
- 'name' => 'Keyword',
+ 'name' => 'CheckId',
'in' => 'query',
- 'schema' => [
- 'description' => '查询关键词,可用来模糊匹配资源/实例ID或资源/实例名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs001',
- ],
+ 'schema' => ['description' => '巡检项Code。', 'type' => 'string', 'required' => false, 'example' => 'EcsHighCpuUtilization'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['description' => '资源/实例ID。', 'type' => 'string', 'required' => false, 'example' => 'i-2zecnwitr2s7aca6****'."\n"],
],
[
'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '请求的语言。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
+ 'schema' => ['description' => '请求使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
@@ -618,235 +211,136 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
'Data' => [
'description' => '查询结果。',
'type' => 'object',
'properties' => [
- 'PageNo' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'Total' => [
- 'description' => '数据总条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
+ 'PageNo' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'PageSize' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'Total' => ['description' => '数据总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'Result' => [
- 'type' => 'object',
- 'itemNode' => true,
- 'properties' => [
- 'Resource' => [
- 'description' => '查询结果数组。',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询结果对象体。',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档。',
- 'type' => 'string',
- 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}',
- ],
- 'ResourceId' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'ResourceName' => [
- 'description' => '资源名称。',
- 'type' => 'string',
- 'example' => 'ecs-20230701',
- ],
- 'RegionId' => [
- 'description' => '地域信息。',
- 'type' => 'string',
- 'example' => 'cn-hangzhou',
- ],
- ],
- ],
+ 'description' => '查询结果对象数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AliyunId' => ['description' => '阿里云用户ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '192895059480****'],
+ 'CheckId' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsHighCpuUtilization'],
+ 'CheckName' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => 'ECS 性能负载巡检'],
+ 'Content' => ['description' => '结果Json详情,与控制台配置的展示列格式保持一致,展平返回。', 'type' => 'string', 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, ]'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明。', 'type' => 'string', 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高'],
+ 'GmtCreated' => ['description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'GmtModified' => ['description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'Id' => ['description' => '巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '40200899'],
+ 'IsExpired' => ['description' => '是否已过期:'."\n"
+ ."\n"
+ .'- **false**: 未过期,'."\n"
+ .'- **true**: 已过期', 'type' => 'boolean', 'example' => 'false'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'Resource' => ['description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档,展平返回。', 'type' => 'string', 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}'],
+ 'ResourceId' => ['description' => '资源/实例ID。', 'type' => 'string', 'example' => 'i-bp67acfmxazb4p****'],
+ 'Severity' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
],
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": {\\n \\"Resource\\": [\\n {\\n \\"Data\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"Product\\": \\"ecs\\",\\n \\"ResourceName\\": \\"ecs-20230701\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvisorResourcesResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <PageNo>1</PageNo>\\n <PageSize>10</PageSize>\\n <Total>100</Total>\\n <Result>\\n <Data>{\\"resourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\"resourceName\\": \\"ecs-20230701\\",\\"regionId\\": \\"cn-hangzhou\\",...}</Data>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <Product>ecs</Product>\\n <ResourceName>ecs-20230701</ResourceName>\\n <RegionId>cn-hangzhou</RegionId>\\n </Result>\\n </Data>\\n</DescribeAdvisorResourcesResponse>","errorExample":""}]',
- 'title' => '获取资源列表',
- 'summary' => '拉取巡检资源列表(需要在触发资源信息同步后才能获取最新结果)。',
- ],
- 'RefreshAdvisorCheck' => [
- 'summary' => '刷新诊断项,触发该巡检项的资源指标同步并重新巡检。'."\n"
- .'该API会按照输入的多个维度(云产品、云资源、诊断项名称)创建巡检任务,都为空则默认按照该用户下所有资源为所有诊断项创建巡检任务。',
- 'methods' => [
- 'post',
- 'get',
+ 'title' => '分页获取最新巡检结果(展平)',
+ 'summary' => '可根据多个维度获取用户最新的巡检结果,分页返回(部分字段展平)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvicesFlatPage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"AliyunId\\": 0,\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"CheckName\\": \\"ECS 性能负载巡检\\",\\n \\"Content\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, ]\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"Id\\": 40200899,\\n \\"IsExpired\\": false,\\n \\"Product\\": \\"ecs\\",\\n \\"Resource\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"ResourceId\\": \\"i-bp67acfmxazb4p****\\",\\n \\"Severity\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'DescribeAdvicesPage' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
- 'name' => 'ResourceId',
+ 'name' => 'AdviceId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
+ 'schema' => ['description' => '巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12345678'],
],
[
'name' => 'CheckId',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'EcsHighCpuUtilization',
- ],
+ 'schema' => ['description' => '巡检项Code。', 'type' => 'string', 'required' => false, 'example' => 'EcsHighCpuUtilization'],
],
[
- 'name' => 'Product',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '资源/实例ID。', 'type' => 'string', 'required' => false, 'example' => 'i-2zecnwitr2s7aca6****'."\n"],
],
[
'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '使用的语言。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
+ 'schema' => ['description' => '请求使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
- 'name' => 'ResourceDimensionList',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Product' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Security' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'Performance' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'Reliablility' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'Cost' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'Service' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'ProductName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'name' => 'Product',
+ 'in' => 'query',
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
[
- 'name' => 'AssumeAliyunId',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'CheckPlanId',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检方案ID(不填则默认为系统方案)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '111',
- ],
+ 'schema' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
- 'name' => 'Token',
+ 'name' => 'CheckPlanId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '巡检方案ID(不填则默认为系统方案)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '111'],
],
],
'responses' => [
@@ -854,105 +348,106 @@
'schema' => [
'type' => 'object',
'properties' => [
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
'Data' => [
- 'description' => '请求返回数据。',
+ 'description' => '查询结果。',
'type' => 'object',
'properties' => [
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'TraceId' => [
- 'description' => '链路追踪ID。',
- 'type' => 'string',
- 'example' => 'manual-1be17af1121b4974822e69daee4f2481',
- ],
- 'TaskId' => [
- 'description' => '后台生成的任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '95906135',
- ],
- 'Message' => [
- 'type' => 'string',
+ 'PageNo' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'PageSize' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'Total' => ['description' => '数据总条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'Result' => [
+ 'description' => '查询结果对象数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AliyunId' => ['description' => '阿里云用户ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '192895059480****'],
+ 'CheckId' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsHighCpuUtilization'],
+ 'CheckName' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => 'ECS 性能负载巡检'],
+ 'Content' => ['description' => '结果Json详情,与控制台配置的展示列格式保持一致。', 'type' => 'string', 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, ]'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明。', 'type' => 'string', 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高'],
+ 'GmtCreated' => ['description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'GmtModified' => ['description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'Id' => ['description' => '巡检结果ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '40200899'],
+ 'IsExpired' => ['description' => '是否已过期:'."\n"
+ ."\n"
+ .'- **false**: 未过期,'."\n"
+ .'- **true**: 已过期', 'type' => 'boolean', 'example' => 'false'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'Resource' => ['description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档。', 'type' => 'string', 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}'],
+ 'ResourceId' => ['description' => '资源/实例ID。', 'type' => 'string', 'example' => 'i-2zecnwitr2s7aca6****'],
+ 'Severity' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ ],
+ ],
],
],
],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"TraceId\\": \\"manual-1be17af1121b4974822e69daee4f2481\\",\\n \\"TaskId\\": 95906135,\\n \\"Message\\": \\"\\"\\n },\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\"\\n}","errorExample":""},{"type":"xml","example":"<RefreshAdvisorCheckResponse>\\n <Data>\\n <Success>true</Success>\\n <TraceId>manual-1be17af1121b4974822e69daee4f2481</TraceId>\\n <TaskId>95906135</TaskId>\\n </Data>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n</RefreshAdvisorCheckResponse>","errorExample":""}]',
- 'title' => '刷新并触发巡检',
- ],
- 'RefreshAdvisorResource' => [
- 'summary' => '根据具体的产品+资源ID,触发资源信息同步任务,返回创建的任务ID。',
- 'methods' => [
- 'post',
- 'get',
+ 'title' => '分页获取最新巡检结果',
+ 'summary' => '可根据多个维度获取用户最新的巡检结果,分页返回。',
+ 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvicesPage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"AliyunId\\": 0,\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"CheckName\\": \\"ECS 性能负载巡检\\",\\n \\"Content\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, ]\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"Id\\": 40200899,\\n \\"IsExpired\\": false,\\n \\"Product\\": \\"ecs\\",\\n \\"Resource\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"Severity\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvicesPageResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <PageNo>1</PageNo>\\n <PageSize>10</PageSize>\\n <Total>100</Total>\\n <Result>\\n <CheckId>EcsHighCpuUtilization</CheckId>\\n <CheckName>ECS 性能负载巡检</CheckName>\\n <Content>[{\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, ]</Content>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <GmtModified>2023-07-01 00:00:00</GmtModified>\\n <Id>40200899</Id>\\n <IsExpired>false</IsExpired>\\n <Product>ecs</Product>\\n <Resource>{\\"resourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\"resourceName\\": \\"ecs-20230701\\",\\"regionId\\": \\"cn-hangzhou\\",...}</Resource>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <Severity>1</Severity>\\n </Result>\\n </Data>\\n</DescribeAdvicesPageResponse>","errorExample":""}]',
+ ],
+ 'DescribeAdvisorChecks' => [
+ 'summary' => '获取用户当前可用的巡检项',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
- 'name' => 'Product',
+ 'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'title' => '',
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
],
'responses' => [
@@ -960,64 +455,89 @@
'schema' => [
'type' => 'object',
'properties' => [
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
'Data' => [
- 'description' => '后台生成的任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '95906134',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
+ 'type' => 'object',
+ 'itemNode' => true,
+ 'properties' => [
+ 'AdvisorCheck' => [
+ 'description' => '查询结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => ['description' => '诊断项是否被禁用状态:'."\n"
+ ."\n"
+ .'- **enabled**: 可用'."\n"
+ ."\n"
+ .'- **disabled**: 禁用', 'type' => 'string', 'example' => 'enabled'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'OperateColumn' => ['description' => '操作字段,使用前端模板或诊断建议action中定义json字段。', 'type' => 'string', 'example' => '[{"key": "Detail", "value": "/diagnosis?product=${Product}&resourceId=${Resource.resourceId}", "type": "template"} ]'],
+ 'GmtModified' => ['description' => '巡检项配置更新时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'ViewColumn' => ['description' => '展示列,即控制台展示巡检项详情的具体配置。', 'type' => 'string', 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, {"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, {"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, ]'],
+ 'GmtCreated' => ['description' => '巡检项配置创建时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明。', 'type' => 'string', 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高'],
+ 'Tips' => ['description' => '巡检建议一句话简述。', 'type' => 'string', 'example' => '请排查实例资源占用情况或升级实例规格'],
+ 'Code' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsHighCpuUtilization'],
+ 'Category' => ['description' => '巡检项分类:'."\n"
+ ."\n"
+ .'- **1**: 安全合规'."\n"
+ ."\n"
+ .'- **2**: 性能效率'."\n"
+ ."\n"
+ .'- **3**: 业务稳定'."\n"
+ ."\n"
+ .'- **4**: 成本优化'."\n"
+ ."\n"
+ .'- **5**: 服务限制', 'type' => 'string', 'example' => '1'],
+ 'Name' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => 'ECS 性能负载巡检'],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": 95906134,\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\"\\n}","errorExample":""},{"type":"xml","example":"<RefreshAdvisorResourceResponse>\\n <Data>95906134</Data>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n</RefreshAdvisorResourceResponse>","errorExample":""}]',
- 'title' => '资源信息同步',
- ],
- 'DescribeAdvicesPage' => [
- 'summary' => '可根据多个维度获取用户最新的巡检结果,分页返回。',
- 'methods' => [
- 'post',
- 'get',
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"AdvisorCheck\\": [\\n {\\n \\"Status\\": \\"enabled\\",\\n \\"Product\\": \\"ecs\\",\\n \\"OperateColumn\\": \\"[{\\\\\\"key\\\\\\": \\\\\\"Detail\\\\\\", \\\\\\"value\\\\\\": \\\\\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\\\\\", \\\\\\"type\\\\\\": \\\\\\"template\\\\\\"} ]\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"ViewColumn\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"type\\\\\\":\\\\\\"DEFAULT\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"type\\\\\\":\\\\\\"DEFAULT\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"type\\\\\\":\\\\\\"DEFAULT\\\\\\"}, ]\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"Tips\\": \\"请排查实例资源占用情况或升级实例规格\\",\\n \\"Code\\": \\"EcsHighCpuUtilization\\",\\n \\"Category\\": \\"1\\",\\n \\"Name\\": \\"ECS 性能负载巡检\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvisorChecksResponse>\\n <Code>200</Code>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <Status>enabled</Status>\\n <Product>ecs</Product>\\n <OperateColumn>[{\\"key\\": \\"Detail\\", \\"value\\": \\"/diagnosis?product=${Product}&amp;resourceId=${Resource.resourceId}\\", \\"type\\": \\"template\\"} ]</OperateColumn>\\n <GmtModified>2023-07-01 00:00:00</GmtModified>\\n <ViewColumn>[{\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"type\\":\\"DEFAULT\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"type\\":\\"DEFAULT\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"type\\":\\"DEFAULT\\"}, ]</ViewColumn>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <Tips>请排查实例资源占用情况或升级实例规格</Tips>\\n <Code>EcsHighCpuUtilization</Code>\\n <Category>1</Category>\\n <Name>ECS 性能负载巡检</Name>\\n </Data>\\n</DescribeAdvisorChecksResponse>","errorExample":""}]',
+ 'title' => '获取巡检项',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAdvisorChecks'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorChecks',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'DescribeAdvisorChecksFoPages' => [
+ 'summary' => '巡检项设置-分页',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1029,968 +549,578 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
+ 'abilityTreeCode' => '218228',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
- 'name' => 'AdviceId',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '12345678',
- ],
+ 'schema' => ['description' => '算法库列表的页码。起始值:1。默认值:1 。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'CheckId',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'EcsHighCpuUtilization',
- ],
+ 'schema' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'i-2zecnwitr2s7aca6****'."\n",
- ],
+ 'schema' => ['description' => '巡检项名称。', 'type' => 'string', 'required' => false, 'example' => '****'],
],
[
- 'name' => 'Language',
+ 'name' => 'Category',
'in' => 'query',
'schema' => [
- 'description' => '请求使用的语言。',
+ 'description' => '该参数为无效参数,成本优化暂不支持',
'type' => 'string',
'required' => false,
- 'example' => 'zh',
+ 'enumValueTitles' => [],
+ 'example' => '*',
],
],
[
'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '诊断项是否被禁用状态:'."\n"
+ ."\n"
+ .'- **enabled**: 可用'."\n"
+ ."\n"
+ .'- **disabled**: 禁用', 'type' => 'string', 'required' => false, 'example' => 'enabled'],
],
[
- 'name' => 'PageSize',
+ 'name' => 'Token',
'in' => 'query',
- 'schema' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => '凭证Token内容。', 'type' => 'string', 'required' => false, 'example' => '***'],
],
[
- 'name' => 'CheckPlanId',
+ 'name' => 'BizCategory',
+ 'in' => 'query',
+ 'schema' => ['description' => '巡检类型', 'type' => 'string', 'required' => false, 'example' => '2'],
+ ],
+ [
+ 'name' => 'AssumeAliyunId',
+ 'in' => 'query',
+ 'schema' => ['description' => '巡检主账号', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '11*********35'],
+ ],
+ [
+ 'name' => 'CheckTypes',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '巡检方案ID(不填则默认为系统方案)',
- 'type' => 'integer',
- 'format' => 'int64',
+ 'description' => '该参数为无效参数,成本优化暂不支持',
+ 'type' => 'array',
+ 'items' => ['description' => '巡检分类', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '*'],
'required' => false,
- 'example' => '111',
],
],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => ['description' => '该参数为无效参数,成本优化暂不支持', 'type' => 'string', 'required' => false, 'example' => '*'],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
+ ],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
'Data' => [
- 'description' => '查询结果。',
- 'type' => 'object',
- 'properties' => [
- 'PageNo' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'Total' => [
- 'description' => '数据总条数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'Result' => [
- 'description' => '查询结果对象数组。',
- 'type' => 'array',
- 'items' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNo' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'PageSize' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'Total' => ['description' => '数据总条数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'Result' => [
'description' => '查询结果对象体。',
- 'type' => 'object',
- 'properties' => [
- 'AliyunId' => [
- 'description' => '阿里云用户ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '192895059480****',
- ],
- 'CheckId' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsHighCpuUtilization',
- ],
- 'CheckName' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => 'ECS 性能负载巡检',
- ],
- 'Content' => [
- 'description' => '结果Json详情,与控制台配置的展示列格式保持一致。',
- 'type' => 'string',
- 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, ]',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明。',
- 'type' => 'string',
- 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高',
- ],
- 'GmtCreated' => [
- 'description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'GmtModified' => [
- 'description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'Id' => [
- 'description' => '巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '40200899',
- ],
- 'IsExpired' => [
- 'description' => '是否已过期:'."\n"
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => 'ECS低利用率检查'],
+ 'Code' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsCostLowUtilizationCheck'],
+ 'Tips' => ['description' => '巡检建议一句话简述', 'type' => 'string', 'example' => 'ECS低利用率建议结合实际业务考虑对实例进行降配操作,<a href = \\"https://help.aliyun.com/zh/ecs/user-guide/overview-of-instance-configuration-changes\\" target =\\"_blank\\">参考文档</a>。'],
+ 'Category' => ['description' => '巡检项分类:'."\n"
."\n"
- .'- **false**: 未过期,'."\n"
- .'- **true**: 已过期',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'Resource' => [
- 'description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档。',
- 'type' => 'string',
- 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}',
- ],
- 'ResourceId' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
- 'Severity' => [
- 'description' => '严重级别:'."\n"
+ .'- **21**: 低资源利用率'."\n"
+ ."\n"
+ .'- **22**: 闲置资源'."\n"
+ ."\n"
+ .'- **23**: 付费方式'."\n"
+ ."\n"
+ .'- **24**: 代次升级', 'type' => 'string', 'example' => '21'],
+ 'SubCategory' => [
+ 'description' => '暂不支持返回',
+ 'type' => 'array',
+ 'items' => ['description' => '暂不支持', 'type' => 'integer', 'format' => 'int64', 'example' => '*'],
+ ],
+ 'Status' => ['description' => '诊断项是否被禁用状态:'."\n"
+ ."\n"
+ .'- **enabled**: 可用'."\n"
+ ."\n"
+ .'- **disabled**: 禁用', 'type' => 'string', 'example' => 'enabled'],
+ 'ConfigSupport' => ['description' => '是否支持自定义配置', 'type' => 'string', 'example' => 'false'],
+ 'ViewColumn' => ['description' => '展示列,即控制台展示巡检项详情的具体配置。', 'type' => 'string', 'example' => '[{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_resourceId\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_resourceName\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_regionId\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_instanceChargeType\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_instanceType\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_severity\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_costBefore\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_costAfter\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_costSavings\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"First_time\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"Duration_time\\"}]'],
+ 'OperateColumn' => ['description' => '操作字段,使用前端模板或诊断建议action中定义json字段。', 'type' => 'string', 'example' => '[{\\"type\\":\\"template\\",\\"value\\":\\"cloudmonitor.console.aliyun.com/index.htm?custom_trace=ecs_console#/hostDetail/chart/instanceId=${Resource.resourceId}&system=Linux&region=${Resource.regionId}&aliyunhost=true\\",\\"key\\":\\"Detail\\"},{\\"type\\":\\"template\\",\\"value\\":\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\",\\"key\\":\\"Refresh\\"}]'."\n"],
+ 'InspectionScope' => ['description' => '巡检范围', 'type' => 'string', 'example' => 'false'],
+ 'Product' => ['description' => '云产品Code', 'type' => 'string', 'example' => 'ECS'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明', 'type' => 'string', 'example' => 'Advisor 将检查账号下所有ECS实例,规格为r5或g5规格的ECS,建议升级为r6或g6'],
+ 'Source' => ['description' => '巡检项来源。'."\n"
+ .'- **Advisor**: 智能顾问自建巡检项'."\n"
."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ .'- **Governance**: 云治理中心'."\n"
+ ."\n"
+ .'- **Config**: 配置审计', 'type' => 'string', 'example' => 'Advisor'],
+ 'RiskLevel' => ['description' => '风险等级'."\n"
+ .'- 1:预警'."\n"
+ ."\n"
+ .'- 2:严重', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
],
],
],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'],
+ 'Message' => ['description' => '消息详情', 'type' => 'string', 'example' => 'OK'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"AliyunId\\": 0,\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"CheckName\\": \\"ECS 性能负载巡检\\",\\n \\"Content\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, ]\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"Id\\": 40200899,\\n \\"IsExpired\\": false,\\n \\"Product\\": \\"ecs\\",\\n \\"Resource\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"Severity\\": 1\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvicesPageResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <PageNo>1</PageNo>\\n <PageSize>10</PageSize>\\n <Total>100</Total>\\n <Result>\\n <CheckId>EcsHighCpuUtilization</CheckId>\\n <CheckName>ECS 性能负载巡检</CheckName>\\n <Content>[{\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, {\\"key\\":\\"EcsHighCpuUtilization_xxxx\\", \\"value\\":\\"xxx\\"}, ]</Content>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <GmtModified>2023-07-01 00:00:00</GmtModified>\\n <Id>40200899</Id>\\n <IsExpired>false</IsExpired>\\n <Product>ecs</Product>\\n <Resource>{\\"resourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\"resourceName\\": \\"ecs-20230701\\",\\"regionId\\": \\"cn-hangzhou\\",...}</Resource>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <Severity>1</Severity>\\n </Result>\\n </Data>\\n</DescribeAdvicesPageResponse>","errorExample":""}]',
- 'title' => '分页获取最新巡检结果',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => '分页获取巡检项',
'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
- ],
- 'GetTaskStatusById' => [
- 'summary' => '根据任务ID查询任务执行状态。',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorChecksFoPages',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": [\\n {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"Name\\": \\"ECS低利用率检查\\",\\n \\"Code\\": \\"EcsCostLowUtilizationCheck\\",\\n \\"Tips\\": \\"ECS低利用率建议结合实际业务考虑对实例进行降配操作,<a href = \\\\\\\\\\\\\\"https://help.aliyun.com/zh/ecs/user-guide/overview-of-instance-configuration-changes\\\\\\\\\\\\\\" target =\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\">参考文档</a>。\\",\\n \\"Category\\": \\"21\\",\\n \\"SubCategory\\": [\\n 0\\n ],\\n \\"Status\\": \\"enabled\\",\\n \\"ConfigSupport\\": \\"false\\",\\n \\"ViewColumn\\": \\"[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_resourceId\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_resourceName\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_regionId\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_instanceChargeType\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_instanceType\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_severity\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_costBefore\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_costAfter\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_costSavings\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"First_time\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Duration_time\\\\\\\\\\\\\\"}]\\",\\n \\"OperateColumn\\": \\"[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"template\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"cloudmonitor.console.aliyun.com/index.htm?custom_trace=ecs_console#/hostDetail/chart/instanceId=${Resource.resourceId}&system=Linux&region=${Resource.regionId}&aliyunhost=true\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Detail\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"template\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Refresh\\\\\\\\\\\\\\"}]\\\\n\\",\\n \\"InspectionScope\\": \\"false\\",\\n \\"Product\\": \\"ECS\\",\\n \\"Description\\": \\"Advisor 将检查账号下所有ECS实例,规格为r5或g5规格的ECS,建议升级为r6或g6\\",\\n \\"Source\\": \\"Advisor\\",\\n \\"RiskLevel\\": 1\\n }\\n ]\\n }\\n ],\\n \\"Success\\": true,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeAdvisorResources' => [
+ 'summary' => '拉取巡检资源列表(需要在触发资源信息同步后才能获取最新结果)。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
- 'name' => 'TaskId',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '所要查询的任务ID。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '95906135',
- ],
+ 'schema' => ['description' => '资源/实例ID。', 'type' => 'string', 'required' => false, 'example' => 'i-2zecnwitr2s7aca6****'."\n"],
+ ],
+ [
+ 'name' => 'Keyword',
+ 'in' => 'query',
+ 'schema' => ['description' => '查询关键词,可用来模糊匹配资源/实例ID或资源/实例名称。', 'type' => 'string', 'required' => false, 'example' => 'ecs001'],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => ['description' => '请求的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
+ ],
+ [
+ 'name' => 'Product',
+ 'in' => 'query',
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'."\n",
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
'Data' => [
- 'description' => '请求返回数据。',
+ 'description' => '查询结果。',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '95906135',
- ],
- 'TaskStatus' => [
- 'description' => '任务状态:'."\n"
- .'- **1**: 任务进行中'."\n"
- .'- **2**: 任务已完成'."\n"
- .'- **3**: 任务执行失败',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ 'PageNo' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'PageSize' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'Total' => ['description' => '数据总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'Result' => [
+ 'type' => 'object',
+ 'itemNode' => true,
+ 'properties' => [
+ 'Resource' => [
+ 'description' => '查询结果数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档。', 'type' => 'string', 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}'],
+ 'ResourceId' => ['description' => '资源/实例ID。', 'type' => 'string', 'example' => 'i-2zecnwitr2s7aca6****'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'ResourceName' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'ecs-20230701'],
+ 'RegionId' => ['description' => '地域信息。', 'type' => 'string', 'example' => 'cn-hangzhou'],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
],
],
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\\\n\\",\\n \\"Data\\": {\\n \\"TaskId\\": 95906135,\\n \\"TaskStatus\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetTaskStatusByIdResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9\\n</RequestId>\\n <Data>\\n <TaskId>95906135</TaskId>\\n <TaskStatus>1</TaskStatus>\\n </Data>\\n</GetTaskStatusByIdResponse>","errorExample":""}]',
- 'title' => '查询任务状态',
- ],
- 'GetHistoryAdvices' => [
- 'methods' => [
- 'get',
- 'post',
+ 'title' => '获取资源列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAdvisorResources'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": {\\n \\"Resource\\": [\\n {\\n \\"Data\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"Product\\": \\"ecs\\",\\n \\"ResourceName\\": \\"ecs-20230701\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAdvisorResourcesResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <PageNo>1</PageNo>\\n <PageSize>10</PageSize>\\n <Total>100</Total>\\n <Result>\\n <Data>{\\"resourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\"resourceName\\": \\"ecs-20230701\\",\\"regionId\\": \\"cn-hangzhou\\",...}</Data>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <Product>ecs</Product>\\n <ResourceName>ecs-20230701</ResourceName>\\n <RegionId>cn-hangzhou</RegionId>\\n </Result>\\n </Data>\\n</DescribeAdvisorResourcesResponse>","errorExample":""}]',
+ ],
+ 'DescribeCostCheckAdvices' => [
+ 'summary' => '查询成本优化结果详情',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
+ ],
'parameters' => [
[
- 'name' => 'Language',
+ 'name' => 'CheckId',
'in' => 'query',
- 'schema' => [
- 'description' => '请求使用的语言。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
+ 'schema' => ['description' => '巡检项Code。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'EcsCostLowUtilizationCheck'],
],
[
- 'name' => 'Product',
+ 'name' => 'ResourceName',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '资源名称。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
'name' => 'Severity',
'in' => 'query',
- 'schema' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'PageSize',
+ 'name' => 'RegionIds',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'description' => '边缘节点ID列表;属于查询的过滤条件,支持多选,以","号分割;默认查询所有。',
+ 'type' => 'array',
+ 'items' => ['description' => '地域信息列表。', 'type' => 'string', 'required' => false, 'example' => '[\\"cn-beijing\\"]'],
'required' => false,
- 'example' => '10',
],
],
[
- 'name' => 'PageNum',
+ 'name' => 'ResourceIds',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'description' => '资源ID列表(即实例名称列表)。',
+ 'type' => 'array',
+ 'items' => ['description' => '要查询的实例的ID列表。', 'type' => 'string', 'required' => false, 'example' => '[\\"trigger_hotfix_install\\"]'],
'required' => false,
- 'example' => '1',
],
],
[
- 'name' => 'StartDate',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '时间范围查询条件起始时间,输入日期格式为 yyyy-mm-dd。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-07-01',
- ],
+ 'schema' => ['description' => '实例状态列表的页码。起始值:1。默认值:1 。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '6'],
],
[
- 'name' => 'EndDate',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '时间范围查询条件结束时间,输入日期格式为 yyyy-mm-dd。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-07-01'."\n",
- ],
+ 'schema' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
- 'name' => 'Reverse',
+ 'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '是否降序:'."\n"
- ."\n"
- .' - **true**:按降序排序'."\n"
- .' - **false**:按升序排序',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
- 'Data' => [
- 'description' => '查询结果。',
- 'type' => 'object',
- 'properties' => [
- 'PageNo' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Total' => [
- 'description' => '数据总条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'Result' => [
- 'description' => '查询结果对象数组。',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询结果对象体。',
- 'type' => 'object',
- 'properties' => [
- 'Severity' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'GmtCreated' => [
- 'description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明。',
- 'type' => 'string',
- 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高',
- ],
- 'CheckId' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsHighCpuUtilization',
- ],
- 'ResourceId' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'example' => 'i-2zecnwitr2s7aca6****',
- ],
- 'CheckName' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => 'ECS 性能负载巡检',
- ],
- 'Url' => [
- 'description' => '巡检项对应资源跳转url。',
- 'type' => 'string',
- 'example' => 'https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.',
- ],
+ 'schema' => ['description' => '使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
- 500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
- ],
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"Severity\\": 1,\\n \\"Product\\": \\"ecs\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"CheckName\\": \\"ECS 性能负载巡检\\",\\n \\"Url\\": \\"https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetHistoryAdvicesResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <PageNo>1</PageNo>\\n <Total>100</Total>\\n <Result>\\n <Severity>1</Severity>\\n <Product>ecs</Product>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <CheckId>EcsHighCpuUtilization</CheckId>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <CheckName>ECS 性能负载巡检</CheckName>\\n <Url>https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou</Url>\\n </Result>\\n </Data>\\n</GetHistoryAdvicesResponse>","errorExample":""}]',
- 'title' => '分页获取历史巡检结果',
- 'summary' => '分页获取历史巡检结果,按产品、日期、严重级别查询。',
- ],
- 'DescribeAdvicesFlatPage' => [
- 'summary' => '可根据多个维度获取用户最新的巡检结果,分页返回(部分字段展平)。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
- [
- 'name' => 'AdviceId',
+ 'name' => 'TagKeys',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
+ 'description' => '符合条件的标签键列表。',
+ 'type' => 'array',
+ 'items' => ['description' => '标签键集合。', 'type' => 'string', 'required' => false, 'example' => '[]'],
'required' => false,
- 'example' => '12345678',
],
],
[
- 'name' => 'CheckId',
+ 'name' => 'TagValues',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
+ 'description' => '标签值',
+ 'type' => 'array',
+ 'items' => ['description' => '标签值', 'type' => 'string', 'required' => false, 'example' => '[\'x20\', \'x29\', \'x30\']'],
'required' => false,
- 'example' => 'EcsHighCpuUtilization',
],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'AssumeAliyunIdList',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
+ 'description' => '查询成员账号id集合',
+ 'type' => 'array',
+ 'items' => ['description' => '查询成员账号id集合', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '[1802******3100]'],
'required' => false,
- 'example' => 'i-2zecnwitr2s7aca6****'."\n",
],
],
[
- 'name' => 'Language',
+ 'name' => 'TagList',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '请求使用的语言。',
- 'type' => 'string',
+ 'description' => '标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['description' => '标签键', 'type' => 'string', 'required' => false, 'example' => 'ecs_***_shanghai'],
+ 'TagValue' => [
+ 'description' => '标签值',
+ 'type' => 'array',
+ 'items' => ['description' => '标签值', 'type' => 'string', 'required' => false, 'example' => 'region'],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
'required' => false,
- 'example' => 'zh',
],
],
[
- 'name' => 'Product',
+ 'name' => 'CheckPlanId',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'ResourceGroupIdList',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'required' => false, 'description' => ''],
'required' => false,
- 'example' => '1',
+ 'description' => '',
],
],
[
- 'name' => 'PageSize',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
'Data' => [
- 'description' => '查询结果。',
+ 'description' => '查询结果对象体。',
'type' => 'object',
'properties' => [
- 'PageNo' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'Total' => [
- 'description' => '数据总条数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'Result' => [
- 'description' => '查询结果对象数组。',
+ 'TotalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'PageNumber' => ['description' => '分页信息:当前页数', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ 'PageSize' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'CheckId' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsHighCpuUtilization'],
+ 'AdviceList' => [
+ 'description' => '巡检结果集合',
'type' => 'array',
'items' => [
- 'description' => '查询结果对象体。',
+ 'description' => '巡检结果',
'type' => 'object',
'properties' => [
- 'AliyunId' => [
- 'description' => '阿里云用户ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '192895059480****',
- ],
- 'CheckId' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsHighCpuUtilization',
- ],
- 'CheckName' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => 'ECS 性能负载巡检',
- ],
- 'Content' => [
- 'description' => '结果Json详情,与控制台配置的展示列格式保持一致,展平返回。',
- 'type' => 'string',
- 'example' => '[{"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, {"key":"EcsHighCpuUtilization_xxxx", "value":"xxx"}, ]',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明。',
- 'type' => 'string',
- 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高',
- ],
- 'GmtCreated' => [
- 'description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'GmtModified' => [
- 'description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss',
- 'type' => 'string',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'Id' => [
- 'description' => '巡检结果ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '40200899',
- ],
- 'IsExpired' => [
- 'description' => '是否已过期:'."\n"
- ."\n"
- .'- **false**: 未过期,'."\n"
- .'- **true**: 已过期',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'Resource' => [
- 'description' => '资源详情Json,具体请参考各个云产品实例详情查询相关api文档,展平返回。',
- 'type' => 'string',
- 'example' => '{"resourceId": "i-2zecnwitr2s7aca6****","resourceName": "ecs-20230701","regionId": "cn-hangzhou",...}',
- ],
- 'ResourceId' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'example' => 'i-bp67acfmxazb4p****',
- ],
- 'Severity' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
+ 'AliyunId' => ['description' => '阿里云用户ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '111******767'],
+ 'ResourceId' => ['description' => '资源/实例ID。', 'type' => 'string', 'example' => 'i-2ze5*****ef7d2lk63in'],
+ 'ResourceName' => ['description' => '资源名称。', 'type' => 'string', 'example' => '1200***bles_df'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'RegionId' => ['description' => '地域信息。', 'type' => 'string', 'example' => 'cn-shanghai'],
+ 'Severity' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'string', 'example' => '1'],
+ 'Content' => ['description' => '结果Json详情,与控制台配置的展示列格式保持一致。', 'type' => 'string', 'example' => '{\'Domains\': [{\'Status\': \'success\', \'\': \'cn\', \'DomainName\': \'www.****.com\', Region\'Desc\': \'ok\'}]}'],
+ 'StartTime' => ['description' => '开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-02-04T16:00:00Z'],
+ 'EndTime' => ['description' => '查询的结束时间。'."\n"
+ ."\n"
+ .'日期格式按照ISO8601表示法,并使用UTC+0时间,格式为yyyy-MM-ddTHH:mm:ssZ。', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-03-05T02:02:00Z'],
+ 'GmtDeleted' => ['description' => '删除时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-03-05T02:02:00Z'."\n"],
+ 'Url' => ['description' => '巡检项对应资源跳转url。', 'type' => 'string', 'example' => 'https://fs1.xuece.cn/exam/import/***/30***0-9d16-c07b43c8ca6a.png'],
+ 'UserName' => ['description' => '用户名称', 'type' => 'string', 'example' => 'test'],
+ 'ZoneId' => ['description' => '可用区ID。', 'type' => 'string', 'example' => 'cn-beijing-h'],
+ 'Tags' => [
+ 'description' => '服务标签键',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Tag的键。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['description' => '标签键。', 'type' => 'string', 'example' => 'autoTest-7'],
+ 'TagValue' => ['description' => '标签值。', 'type' => 'string', 'example' => 'basic'],
+ ],
+ ],
],
+ 'AccountFolderId' => ['description' => '资源夹id', 'type' => 'string', 'example' => '1'],
+ 'AccountFolderName' => ['description' => '资源夹名称', 'type' => 'string', 'example' => '1'],
+ 'Email' => ['description' => 'Email', 'type' => 'string', 'example' => 'xxx'],
],
],
],
],
],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '566331F9-****-550F-B745-A730331F97A9'],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'string', 'example' => 'True'],
+ 'Message' => ['description' => '消息。', 'type' => 'string', 'example' => 'OK'],
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"AliyunId\\": 0,\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"CheckName\\": \\"ECS 性能负载巡检\\",\\n \\"Content\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, {\\\\\\"key\\\\\\":\\\\\\"EcsHighCpuUtilization_xxxx\\\\\\", \\\\\\"value\\\\\\":\\\\\\"xxx\\\\\\"}, ]\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"GmtModified\\": \\"2023-07-01 00:00:00\\",\\n \\"Id\\": 40200899,\\n \\"IsExpired\\": false,\\n \\"Product\\": \\"ecs\\",\\n \\"Resource\\": \\"{\\\\\\"resourceId\\\\\\": \\\\\\"i-2zecnwitr2s7aca6****\\\\\\",\\\\\\"resourceName\\\\\\": \\\\\\"ecs-20230701\\\\\\",\\\\\\"regionId\\\\\\": \\\\\\"cn-hangzhou\\\\\\",...}\\",\\n \\"ResourceId\\": \\"i-bp67acfmxazb4p****\\",\\n \\"Severity\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '分页获取最新巡检结果(展平)',
- ],
- 'GetProductList' => [
- 'summary' => '获取云产品的列表',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '成本优化结果详情',
+ 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'Token',
- 'in' => 'query',
- 'schema' => [
- 'description' => '所需的Token。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '****',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '566331F9-****-550F-B745-A730331F97A9'."\n",
- ],
- 'Data' => [
- 'description' => '请求返回数据。',
- 'type' => 'array',
- 'items' => [
- 'description' => '请求返回数据。',
- 'type' => 'object',
- 'properties' => [
- 'Category' => [
- 'description' => '云产品分类:',
- 'type' => 'string',
- 'example' => '"大数据计算"'."\n",
- ],
- 'ProductList' => [
- 'description' => '阿里云产品列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '接入的产品列表。',
- 'type' => 'object',
- 'properties' => [
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'hologres',
- ],
- 'NewLabel' => [
- 'description' => '云产品中文描述',
- 'type' => 'string',
- 'example' => '实时数仓 Hologres',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'Code' => [
- 'description' => '请求编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '详细信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'UserMessage' => [
- 'description' => '提示详情',
- 'type' => 'string',
- 'example' => '*',
- ],
- 'AccessDeniedDetail' => [
- 'description' => '权限校验失败详情。',
- 'type' => 'object',
- 'properties' => [
- 'AuthAction' => [
- 'description' => '鉴权Action',
- 'type' => 'string',
- 'example' => '*',
- ],
- 'AuthPrincipalDisplayName' => [
- 'description' => '授权主体显示名称。',
- 'type' => 'string',
- 'example' => '*',
- ],
- 'AuthPrincipalOwnerId' => [
- 'description' => '鉴权主账号id。',
- 'type' => 'string',
- 'example' => '*',
- ],
- 'AuthPrincipalType' => [
- 'description' => '授权类型',
- 'type' => 'string',
- 'example' => '*',
- ],
- 'EncodedDiagnosticMessage' => [
- 'description' => '异常信息',
- 'type' => 'string',
- 'example' => '****',
- ],
- 'NoPermissionType' => [
- 'description' => '无权限类型。',
- 'type' => 'string',
- 'example' => '*',
- ],
- 'PolicyType' => [
- 'description' => '鉴权类型',
- 'type' => 'string',
- 'example' => '*',
- ],
- ],
- ],
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCostCheckAdvices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
- ],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\\\n\\",\\n \\"Data\\": [\\n {\\n \\"Category\\": \\"\\\\\\"大数据计算\\\\\\"\\\\n\\",\\n \\"ProductList\\": [\\n {\\n \\"Product\\": \\"hologres\\",\\n \\"NewLabel\\": \\"实时数仓 Hologres\\"\\n }\\n ]\\n }\\n ],\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"UserMessage\\": \\"*\\",\\n \\"AccessDeniedDetail\\": {\\n \\"AuthAction\\": \\"*\\",\\n \\"AuthPrincipalDisplayName\\": \\"*\\",\\n \\"AuthPrincipalOwnerId\\": \\"*\\",\\n \\"AuthPrincipalType\\": \\"*\\",\\n \\"EncodedDiagnosticMessage\\": \\"****\\",\\n \\"NoPermissionType\\": \\"*\\",\\n \\"PolicyType\\": \\"*\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取全量产品',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"TotalCount\\": 0,\\n \\"PageNumber\\": 4,\\n \\"PageSize\\": 10,\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"AdviceList\\": [\\n {\\n \\"AliyunId\\": 0,\\n \\"ResourceId\\": \\"i-2ze5*****ef7d2lk63in\\",\\n \\"ResourceName\\": \\"1200***bles_df\\",\\n \\"Product\\": \\"ecs\\",\\n \\"RegionId\\": \\"cn-shanghai\\",\\n \\"Severity\\": \\"1\\",\\n \\"Content\\": \\"{\'Domains\': [{\'Status\': \'success\', \'\': \'cn\', \'DomainName\': \'www.****.com\', Region\'Desc\': \'ok\'}]}\\",\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 0,\\n \\"GmtDeleted\\": 0,\\n \\"Url\\": \\"https://fs1.xuece.cn/exam/import/***/30***0-9d16-c07b43c8ca6a.png\\",\\n \\"UserName\\": \\"test\\",\\n \\"ZoneId\\": \\"cn-beijing-h\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"autoTest-7\\",\\n \\"TagValue\\": \\"basic\\"\\n }\\n ],\\n \\"AccountFolderId\\": \\"1\\",\\n \\"AccountFolderName\\": \\"1\\",\\n \\"Email\\": \\"xxx\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Success\\": \\"True\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
],
'DescribeCostCheckResults' => [
- 'summary' => '查询巡检项聚合成本优化结果概览',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2002,21 +1132,13 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'ecs'],
],
[
'name' => 'CheckIds',
@@ -2025,12 +1147,7 @@
'schema' => [
'description' => '检查项的ID列表。',
'type' => 'array',
- 'items' => [
- 'description' => '检查项的ID列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'EcsCostLowUtilizationCheck',
- ],
+ 'items' => ['description' => '检查项的ID列表。', 'type' => 'string', 'required' => false, 'example' => 'EcsCostLowUtilizationCheck'],
'required' => false,
'docRequired' => false,
],
@@ -2038,26 +1155,15 @@
[
'name' => 'Severity',
'in' => 'query',
- 'schema' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'ResourceName',
'in' => 'query',
- 'schema' => [
- 'description' => '资源名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'SYNC_********_TASK',
- ],
+ 'schema' => ['description' => '资源名称。', 'type' => 'string', 'required' => false, 'example' => 'SYNC_********_TASK'],
],
[
'name' => 'RegionIds',
@@ -2066,12 +1172,7 @@
'schema' => [
'description' => '地域ID集合 为数组格式对象',
'type' => 'array',
- 'items' => [
- 'description' => '地域ID列表;属于查询的过滤条件,支持多选,以","号分割;默认查询所有。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"ap-southeast-1\\"]',
- ],
+ 'items' => ['description' => '地域ID列表;属于查询的过滤条件,支持多选,以","号分割;默认查询所有。', 'type' => 'string', 'required' => false, 'example' => '[\\"ap-southeast-1\\"]'],
'required' => false,
],
],
@@ -2082,12 +1183,7 @@
'schema' => [
'description' => '资源ID列表。最多支持100个ID。',
'type' => 'array',
- 'items' => [
- 'description' => '要查询的DDoS高防(中国内地)实例的ID列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"Create-cpdprod\\"]',
- ],
+ 'items' => ['description' => '要查询的DDoS高防(中国内地)实例的ID列表。', 'type' => 'string', 'required' => false, 'example' => '[\\"Create-cpdprod\\"]'],
'required' => false,
],
],
@@ -2098,27 +1194,16 @@
'schema' => [
'description' => '查询成员账号id集合',
'type' => 'array',
- 'items' => [
- 'description' => '查询成员账号id集合',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '[180*********100]',
- ],
+ 'items' => ['description' => '查询成员账号id集合', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '[180*********100]'],
'required' => false,
],
],
[
'name' => 'GroupBy',
'in' => 'query',
- 'schema' => [
- 'description' => '指定分组的维度,各场景取值:'."\n"
- .'- Category:按类型分组(默认值)。 '."\n"
- .'- Product:按产品分组。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Category',
- ],
+ 'schema' => ['description' => '指定分组的维度,各场景取值:'."\n"
+ .'- Category:按类型分组(默认值)。 '."\n"
+ .'- Product:按产品分组。', 'type' => 'string', 'required' => false, 'example' => 'Category'],
],
[
'name' => 'TagKeys',
@@ -2127,12 +1212,7 @@
'schema' => [
'description' => '符合条件的标签键列表。',
'type' => 'array',
- 'items' => [
- 'description' => '标签键详情列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[{\'TagKey\': \'acs:tag:createdby\', \'TagCount\': 1}]',
- ],
+ 'items' => ['description' => '标签键详情列表。', 'type' => 'string', 'required' => false, 'example' => '[{\'TagKey\': \'acs:tag:createdby\', \'TagCount\': 1}]'],
'required' => false,
],
],
@@ -2143,12 +1223,7 @@
'schema' => [
'description' => '标签值',
'type' => 'array',
- 'items' => [
- 'description' => '标签值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\'TagValue\': []}',
- ],
+ 'items' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => '{\'TagValue\': []}'],
'required' => false,
],
],
@@ -2163,21 +1238,11 @@
'description' => '业务标签',
'type' => 'object',
'properties' => [
- 'TagKey' => [
- 'description' => '标签键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ERP',
- ],
+ 'TagKey' => ['description' => '标签键', 'type' => 'string', 'required' => false, 'example' => 'ERP'],
'TagValue' => [
'description' => '标签值',
'type' => 'array',
- 'items' => [
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'items' => ['description' => '标签值', 'type' => 'string', 'required' => false, 'example' => '1'],
'required' => false,
],
],
@@ -2193,31 +1258,24 @@
'schema' => [
'description' => '资源组id筛选项',
'type' => 'array',
- 'items' => [
- 'description' => '资源组id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'xxxx',
- ],
+ 'items' => ['description' => '资源组id', 'type' => 'string', 'required' => false, 'example' => 'xxxx'],
'required' => false,
],
],
[
'name' => 'CheckPlanId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
],
[
'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -2231,78 +1289,31 @@
'description' => '查询结果对象体。',
'type' => 'object',
'properties' => [
- 'ResourceCount' => [
- 'description' => '各类型资源数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '76',
- ],
- 'AdviceResourceCount' => [
- 'description' => '巡检资源数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '巡检资源数量',
- ],
- 'TotalCount' => [
- 'description' => '分页信息:总数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
- 'WarningCount' => [
- 'description' => 'Warning事件数量。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'NormalCount' => [
- 'description' => '正常数量。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'GroupBy' => [
- 'description' => '指定分组的维度,各场景取值:'."\n"
- .'- Category:按类型分组(默认值)。 '."\n"
- .'- Product:按产品分组。',
- 'type' => 'string',
- 'example' => 'Category',
- ],
+ 'ResourceCount' => ['description' => '各类型资源数量', 'type' => 'integer', 'format' => 'int32', 'example' => '76'],
+ 'AdviceResourceCount' => ['description' => '巡检资源数', 'type' => 'integer', 'format' => 'int32', 'example' => '巡检资源数量'],
+ 'TotalCount' => ['description' => '分页信息:总数量', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ 'WarningCount' => ['description' => 'Warning事件数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'NormalCount' => ['description' => '正常数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'GroupBy' => ['description' => '指定分组的维度,各场景取值:'."\n"
+ .'- Category:按类型分组(默认值)。 '."\n"
+ .'- Product:按产品分组。', 'type' => 'string', 'example' => 'Category'],
'ViewGroup' => [
'description' => '分组展示项',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'GroupCode' => [
- 'description' => '分组code,按照GroupBy入参不同分为两种情况:'."\n"
- .'- **Product**: '."\n"
- .' * 产品code'."\n"
- ."\n"
- .'- **Category**: '."\n"
- .' * 21 低资源利用率'."\n"
- .' * 22 闲置资源'."\n"
- .' * 23 付费方式',
- 'type' => 'string',
- 'example' => '22',
- ],
- 'GroupName' => [
- 'description' => '分组名称',
- 'type' => 'string',
- 'example' => 'aut***8ainRh1',
- ],
- 'GroupCount' => [
- 'description' => '分组数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'GroupExpectedSavingCost' => [
- 'description' => '分组预计可节省金额',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '1',
- ],
+ 'GroupCode' => ['description' => '分组code,按照GroupBy入参不同分为两种情况:'."\n"
+ .'- **Product**: '."\n"
+ .' * 产品code'."\n"
+ ."\n"
+ .'- **Category**: '."\n"
+ .' * 21 低资源利用率'."\n"
+ .' * 22 闲置资源'."\n"
+ .' * 23 付费方式', 'type' => 'string', 'example' => '22'],
+ 'GroupName' => ['description' => '分组名称', 'type' => 'string', 'example' => 'aut***8ainRh1'],
+ 'GroupCount' => ['description' => '分组数量', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'GroupExpectedSavingCost' => ['description' => '分组预计可节省金额', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'CheckItems' => [
'description' => '用户自定义检查配置名称。',
'type' => 'array',
@@ -2310,169 +1321,88 @@
'description' => '检查项风险的描述类型为text时的文本内容。',
'type' => 'object',
'properties' => [
- 'Severity' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'AdviceCount' => [
- 'description' => '满足该巡检规则的云产品实例数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'Summary' => [
- 'description' => '按照product分类,各产品有多少个诊断建议',
- 'type' => 'string',
- 'example' => 'true',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'slb',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明。',
- 'type' => 'string',
- 'example' => '云盘创建时间超过设置的阈值天,未挂载实例',
- ],
- 'Tips' => [
- 'description' => '巡检建议一句话简述。',
- 'type' => 'string',
- 'example' => '云盘闲置资源建议结合实际业务考虑对实例进行释放,<a href = \\"https://help.aliyun.com/zh/ecs/user-guide/release-a-disk\\" target =\\"_blank\\">参考文档</a>。',
- ],
- 'CheckId' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EbsCostIdleCheck',
- ],
- 'Category' => [
- 'description' => '巡检项分类:'."\n"
- ."\n"
- .'- **1**: 安全合规'."\n"
- ."\n"
- .'- **2**: 性能效率'."\n"
- ."\n"
- .'- **3**: 业务稳定'."\n"
- ."\n"
- .'- **4**: 成本优化'."\n"
- ."\n"
- .'- **5**: 服务限制',
- 'type' => 'string',
- 'example' => '4',
- ],
- 'CheckName' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => '云盘闲置资源检查',
- ],
- 'AdviceResourceCount' => [
- 'description' => '巡检资源数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CurrentCost' => [
- 'description' => '当前费用',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '1',
- ],
- 'OptimizedCost' => [
- 'description' => '优化后费用',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '1',
- ],
- 'ExpectedSavingCost' => [
- 'description' => '预计可节省',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '1',
- ],
+ 'Severity' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'AdviceCount' => ['description' => '满足该巡检规则的云产品实例数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'Summary' => ['description' => '按照product分类,各产品有多少个诊断建议', 'type' => 'string', 'example' => 'true'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'slb'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明。', 'type' => 'string', 'example' => '云盘创建时间超过设置的阈值天,未挂载实例'],
+ 'Tips' => ['description' => '巡检建议一句话简述。', 'type' => 'string', 'example' => '云盘闲置资源建议结合实际业务考虑对实例进行释放,<a href = \\"https://help.aliyun.com/zh/ecs/user-guide/release-a-disk\\" target =\\"_blank\\">参考文档</a>。'],
+ 'CheckId' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EbsCostIdleCheck'],
+ 'Category' => ['description' => '巡检项分类:'."\n"
+ ."\n"
+ .'- **1**: 安全合规'."\n"
+ ."\n"
+ .'- **2**: 性能效率'."\n"
+ ."\n"
+ .'- **3**: 业务稳定'."\n"
+ ."\n"
+ .'- **4**: 成本优化'."\n"
+ ."\n"
+ .'- **5**: 服务限制', 'type' => 'string', 'example' => '4'],
+ 'CheckName' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => '云盘闲置资源检查'],
+ 'AdviceResourceCount' => ['description' => '巡检资源数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CurrentCost' => ['description' => '当前费用', 'type' => 'number', 'format' => 'float', 'example' => '1'],
+ 'OptimizedCost' => ['description' => '优化后费用', 'type' => 'number', 'format' => 'float', 'example' => '1'],
+ 'ExpectedSavingCost' => ['description' => '预计可节省', 'type' => 'number', 'format' => 'float', 'example' => '1'],
],
],
],
],
+ 'description' => '',
],
],
],
],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '566331F9-****-550F-B745-A730331F97A9',
- ],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'string',
- 'example' => 'True',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'OK',
- ],
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '566331F9-****-550F-B745-A730331F97A9'],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'string', 'example' => 'True'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'OK'],
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"ResourceCount\\": 76,\\n \\"AdviceResourceCount\\": 0,\\n \\"TotalCount\\": 4,\\n \\"WarningCount\\": 1,\\n \\"NormalCount\\": 1,\\n \\"GroupBy\\": \\"Category\\",\\n \\"ViewGroup\\": [\\n {\\n \\"GroupCode\\": \\"22\\",\\n \\"GroupName\\": \\"aut***8ainRh1\\",\\n \\"GroupCount\\": 0,\\n \\"GroupExpectedSavingCost\\": 1,\\n \\"CheckItems\\": [\\n {\\n \\"Severity\\": 1,\\n \\"AdviceCount\\": 100,\\n \\"Summary\\": \\"true\\",\\n \\"Product\\": \\"slb\\",\\n \\"Description\\": \\"云盘创建时间超过设置的阈值天,未挂载实例\\",\\n \\"Tips\\": \\"云盘闲置资源建议结合实际业务考虑对实例进行释放,<a href = \\\\\\\\\\\\\\"https://help.aliyun.com/zh/ecs/user-guide/release-a-disk\\\\\\\\\\\\\\" target =\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\">参考文档</a>。\\",\\n \\"CheckId\\": \\"EbsCostIdleCheck\\",\\n \\"Category\\": \\"4\\",\\n \\"CheckName\\": \\"云盘闲置资源检查\\",\\n \\"AdviceResourceCount\\": 1,\\n \\"CurrentCost\\": 1,\\n \\"OptimizedCost\\": 1,\\n \\"ExpectedSavingCost\\": 1\\n }\\n ]\\n }\\n ]\\n },\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Success\\": \\"True\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '巡检项聚合成本优化结果概览',
+ 'summary' => '查询巡检项聚合成本优化结果概览',
'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
- ],
- 'DescribeCostCheckAdvices' => [
- 'summary' => '查询成本优化结果详情',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCostCheckResults',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"ResourceCount\\": 76,\\n \\"AdviceResourceCount\\": 0,\\n \\"TotalCount\\": 4,\\n \\"WarningCount\\": 1,\\n \\"NormalCount\\": 1,\\n \\"GroupBy\\": \\"Category\\",\\n \\"ViewGroup\\": [\\n {\\n \\"GroupCode\\": \\"22\\",\\n \\"GroupName\\": \\"aut***8ainRh1\\",\\n \\"GroupCount\\": 0,\\n \\"GroupExpectedSavingCost\\": 1,\\n \\"CheckItems\\": [\\n {\\n \\"Severity\\": 1,\\n \\"AdviceCount\\": 100,\\n \\"Summary\\": \\"true\\",\\n \\"Product\\": \\"slb\\",\\n \\"Description\\": \\"云盘创建时间超过设置的阈值天,未挂载实例\\",\\n \\"Tips\\": \\"云盘闲置资源建议结合实际业务考虑对实例进行释放,<a href = \\\\\\\\\\\\\\"https://help.aliyun.com/zh/ecs/user-guide/release-a-disk\\\\\\\\\\\\\\" target =\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\">参考文档</a>。\\",\\n \\"CheckId\\": \\"EbsCostIdleCheck\\",\\n \\"Category\\": \\"4\\",\\n \\"CheckName\\": \\"云盘闲置资源检查\\",\\n \\"AdviceResourceCount\\": 1,\\n \\"CurrentCost\\": 1,\\n \\"OptimizedCost\\": 1,\\n \\"ExpectedSavingCost\\": 1\\n }\\n ]\\n }\\n ]\\n },\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Success\\": \\"True\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeCostOptimizationOverview' => [
+ 'summary' => '成本优化-概览',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -2484,450 +1414,246 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
+ 'abilityTreeCode' => '218237',
+ 'abilityTreeNodes' => ['FEATUREadvisorP5QXH3'],
],
'parameters' => [
[
- 'name' => 'CheckId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => 'EcsCostLowUtilizationCheck',
- ],
- ],
- [
- 'name' => 'ResourceName',
+ 'name' => 'AssumeAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '资源名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '巡检主账号', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '11***********35'],
],
[
- 'name' => 'Severity',
+ 'name' => 'Token',
'in' => 'query',
- 'schema' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '请求所需的Token(暂不支持)。', 'type' => 'string', 'required' => false, 'example' => '***'],
],
[
- 'name' => 'RegionIds',
+ 'name' => 'AssumeAliyunIdList',
'in' => 'query',
'style' => 'json',
'schema' => [
- 'description' => '边缘节点ID列表;属于查询的过滤条件,支持多选,以","号分割;默认查询所有。',
+ 'description' => '查询成员账号id集合',
'type' => 'array',
- 'items' => [
- 'description' => '地域信息列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"cn-beijing\\"]',
- ],
+ 'items' => ['description' => '查询成员账号id集合', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '[18**********00]'],
'required' => false,
],
],
[
- 'name' => 'ResourceIds',
+ 'name' => 'CheckPlanId',
'in' => 'query',
- 'style' => 'json',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '资源ID列表(即实例名称列表)。',
- 'type' => 'array',
- 'items' => [
- 'description' => '要查询的实例的ID列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"trigger_hotfix_install\\"]',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '566331F9-****-550F-B745-A730331F97A9'],
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
+ 'Data' => [
+ 'description' => '查询结果对象体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => ['description' => '后台生成的任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '95***135'],
+ 'CurrentBillingCost' => ['description' => '上一月支出金额', 'type' => 'string', 'example' => '100'],
+ 'BillingCycleDate' => ['description' => '账单周期(yyyy-MM)', 'type' => 'string', 'example' => '100'],
+ 'OptCheckItemNum' => ['description' => '可优化巡检项数量', 'type' => 'string', 'example' => '100'],
+ 'OptResourceNum' => ['description' => '最多可优化资源数量', 'type' => 'string', 'example' => '100'],
+ 'ExpectedSavingCost' => ['description' => '预计最多可节省金额', 'type' => 'string', 'example' => '100'],
+ 'GmtModified' => ['description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-07-01 00:00:00'],
+ 'WaitProcessResourceCount' => ['type' => 'string', 'description' => ''],
+ 'ProcessedResourceCount' => ['type' => 'string', 'description' => ''],
+ 'ProcessedSaveAmount' => ['type' => 'string', 'description' => ''],
+ ],
+ ],
+ 'Message' => ['description' => '消息。', 'type' => 'string', 'example' => 'Internal service issue. Detail:.'],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'],
+ 'AccessDeniedDetail' => [
+ 'description' => '访问被拒绝详细信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AuthAction' => ['description' => 'AuthAction', 'type' => 'string', 'example' => 'null'],
+ 'AuthPrincipalDisplayName' => ['description' => '鉴权主体信息。', 'type' => 'string', 'example' => 'null'],
+ 'AuthPrincipalOwnerId' => ['description' => '鉴权主账号id。', 'type' => 'string', 'example' => 'null'],
+ 'AuthPrincipalType' => ['description' => '授权主体类型。', 'type' => 'string', 'example' => 'null'],
+ 'EncodedDiagnosticMessage' => ['description' => '异常信息', 'type' => 'string', 'example' => '*****'],
+ 'NoPermissionType' => ['description' => '无权限类型。', 'type' => 'string', 'example' => 'null'],
+ 'PolicyType' => ['description' => '策略类型。', 'type' => 'string', 'example' => 'PauseNotify'],
+ ],
+ ],
],
- 'required' => false,
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.', 'description' => '未授权错误。'],
+ ],
+ 500 => [
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '成本数据概览',
+ 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '实例状态列表的页码。起始值:1。默认值:1 。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '6',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCostOptimizationOverview',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"TaskId\\": 0,\\n \\"CurrentBillingCost\\": \\"100\\",\\n \\"BillingCycleDate\\": \\"100\\",\\n \\"OptCheckItemNum\\": \\"100\\",\\n \\"OptResourceNum\\": \\"100\\",\\n \\"ExpectedSavingCost\\": \\"100\\",\\n \\"GmtModified\\": 0,\\n \\"WaitProcessResourceCount\\": \\"\\",\\n \\"ProcessedResourceCount\\": \\"\\",\\n \\"ProcessedSaveAmount\\": \\"\\"\\n },\\n \\"Message\\": \\"Internal service issue. Detail:.\\",\\n \\"Success\\": true,\\n \\"AccessDeniedDetail\\": {\\n \\"AuthAction\\": \\"null\\",\\n \\"AuthPrincipalDisplayName\\": \\"null\\",\\n \\"AuthPrincipalOwnerId\\": \\"null\\",\\n \\"AuthPrincipalType\\": \\"null\\",\\n \\"EncodedDiagnosticMessage\\": \\"*****\\",\\n \\"NoPermissionType\\": \\"null\\",\\n \\"PolicyType\\": \\"PauseNotify\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetHistoryAdvices' => [
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [],
+ 'parameters' => [
[
'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '使用的语言。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh',
- ],
+ 'schema' => ['description' => '请求使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
- 'name' => 'TagKeys',
+ 'name' => 'Product',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '符合条件的标签键列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签键集合。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[]',
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
[
- 'name' => 'TagValues',
+ 'name' => 'Severity',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '标签值',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\'x20\', \'x29\', \'x30\']',
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'AssumeAliyunIdList',
+ 'name' => 'PageSize',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '查询成员账号id集合',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询成员账号id集合',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '[1802******3100]',
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '每页数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
[
- 'name' => 'TagList',
+ 'name' => 'PageNum',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '标签列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签列表',
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'description' => '标签键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs_***_shanghai',
- ],
- 'TagValue' => [
- 'description' => '标签值',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'region',
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
- 'name' => 'CheckPlanId',
+ 'name' => 'StartDate',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['description' => '时间范围查询条件起始时间,输入日期格式为 yyyy-mm-dd。', 'type' => 'string', 'required' => false, 'example' => '2023-07-01'],
],
[
- 'name' => 'ResourceGroupIdList',
+ 'name' => 'EndDate',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '时间范围查询条件结束时间,输入日期格式为 yyyy-mm-dd。', 'type' => 'string', 'required' => false, 'example' => '2023-07-01'."\n"],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'Reverse',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '是否降序:'."\n"
+ ."\n"
+ .' - **true**:按降序排序'."\n"
+ .' - **false**:按升序排序', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
'Data' => [
- 'description' => '查询结果对象体。',
+ 'description' => '查询结果。',
'type' => 'object',
'properties' => [
- 'TotalCount' => [
- 'description' => '总记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'PageNumber' => [
- 'description' => '分页信息:当前页数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
- ],
- 'PageSize' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'CheckId' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsHighCpuUtilization',
- ],
- 'AdviceList' => [
- 'description' => '巡检结果集合',
+ 'PageNo' => ['description' => '分页号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Total' => ['description' => '数据总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'Result' => [
+ 'description' => '查询结果对象数组。',
'type' => 'array',
'items' => [
- 'description' => '巡检结果',
+ 'description' => '查询结果对象体。',
'type' => 'object',
'properties' => [
- 'AliyunId' => [
- 'description' => '阿里云用户ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '111******767',
- ],
- 'ResourceId' => [
- 'description' => '资源/实例ID。',
- 'type' => 'string',
- 'example' => 'i-2ze5*****ef7d2lk63in',
- ],
- 'ResourceName' => [
- 'description' => '资源名称。',
- 'type' => 'string',
- 'example' => '1200***bles_df',
- ],
- 'Product' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'example' => 'ecs',
- ],
- 'RegionId' => [
- 'description' => '地域信息。',
- 'type' => 'string',
- 'example' => 'cn-shanghai',
- ],
- 'Severity' => [
- 'description' => '严重级别:'."\n"
- ."\n"
- .'- **1**: 警告'."\n"
- .'- **2**: 严重',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'Content' => [
- 'description' => '结果Json详情,与控制台配置的展示列格式保持一致。',
- 'type' => 'string',
- 'example' => '{\'Domains\': [{\'Status\': \'success\', \'\': \'cn\', \'DomainName\': \'www.****.com\', Region\'Desc\': \'ok\'}]}',
- ],
- 'StartTime' => [
- 'description' => '开始时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2025-02-04T16:00:00Z',
- ],
- 'EndTime' => [
- 'description' => '查询的结束时间。'."\n"
- ."\n"
- .'日期格式按照ISO8601表示法,并使用UTC+0时间,格式为yyyy-MM-ddTHH:mm:ssZ。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2025-03-05T02:02:00Z',
- ],
- 'GmtDeleted' => [
- 'description' => '删除时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2025-03-05T02:02:00Z'."\n",
- ],
- 'Url' => [
- 'description' => '巡检项对应资源跳转url。',
- 'type' => 'string',
- 'example' => 'https://fs1.xuece.cn/exam/import/***/30***0-9d16-c07b43c8ca6a.png',
- ],
- 'UserName' => [
- 'description' => '用户名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ZoneId' => [
- 'description' => '可用区ID。',
- 'type' => 'string',
- 'example' => 'cn-beijing-h',
- ],
- 'Tags' => [
- 'description' => '服务标签键',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Tag的键。',
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'description' => '标签键。',
- 'type' => 'string',
- 'example' => 'autoTest-7',
- ],
- 'TagValue' => [
- 'description' => '标签值。',
- 'type' => 'string',
- 'example' => 'basic',
- ],
- ],
- ],
- ],
- 'AccountFolderId' => [
- 'description' => '资源夹id',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'AccountFolderName' => [
- 'description' => '资源夹名称',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'Email' => [
- 'description' => 'Email',
- 'type' => 'string',
- 'example' => 'xxx',
- ],
+ 'Severity' => ['description' => '严重级别:'."\n"
+ ."\n"
+ .'- **1**: 警告'."\n"
+ .'- **2**: 严重', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'ecs'],
+ 'GmtCreated' => ['description' => '巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。', 'type' => 'string', 'example' => '2023-07-01 00:00:00'],
+ 'Description' => ['description' => '巡检项描述,推荐操作和操作说明。', 'type' => 'string', 'example' => 'CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高'],
+ 'CheckId' => ['description' => '巡检项Code。', 'type' => 'string', 'example' => 'EcsHighCpuUtilization'],
+ 'ResourceId' => ['description' => '资源/实例ID。', 'type' => 'string', 'example' => 'i-2zecnwitr2s7aca6****'],
+ 'CheckName' => ['description' => '巡检项名称。', 'type' => 'string', 'example' => 'ECS 性能负载巡检'],
+ 'Url' => ['description' => '巡检项对应资源跳转url。', 'type' => 'string', 'example' => 'https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou'],
],
],
],
],
],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '566331F9-****-550F-B745-A730331F97A9',
- ],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'string',
- 'example' => 'True',
- ],
- 'Message' => [
- 'description' => '消息。',
- 'type' => 'string',
- 'example' => 'OK',
- ],
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.', 'description' => '未授权错误。'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '分页获取历史巡检结果',
+ 'summary' => '分页获取历史巡检结果,按产品、日期、严重级别查询。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"TotalCount\\": 0,\\n \\"PageNumber\\": 4,\\n \\"PageSize\\": 10,\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"AdviceList\\": [\\n {\\n \\"AliyunId\\": 0,\\n \\"ResourceId\\": \\"i-2ze5*****ef7d2lk63in\\",\\n \\"ResourceName\\": \\"1200***bles_df\\",\\n \\"Product\\": \\"ecs\\",\\n \\"RegionId\\": \\"cn-shanghai\\",\\n \\"Severity\\": \\"1\\",\\n \\"Content\\": \\"{\'Domains\': [{\'Status\': \'success\', \'\': \'cn\', \'DomainName\': \'www.****.com\', Region\'Desc\': \'ok\'}]}\\",\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 0,\\n \\"GmtDeleted\\": 0,\\n \\"Url\\": \\"https://fs1.xuece.cn/exam/import/***/30***0-9d16-c07b43c8ca6a.png\\",\\n \\"UserName\\": \\"test\\",\\n \\"ZoneId\\": \\"cn-beijing-h\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"autoTest-7\\",\\n \\"TagValue\\": \\"basic\\"\\n }\\n ],\\n \\"AccountFolderId\\": \\"1\\",\\n \\"AccountFolderName\\": \\"1\\",\\n \\"Email\\": \\"xxx\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Success\\": \\"True\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
- 'title' => '成本优化结果详情',
- 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:GetHistoryAdvices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"Severity\\": 1,\\n \\"Product\\": \\"ecs\\",\\n \\"GmtCreated\\": \\"2023-07-01 00:00:00\\",\\n \\"Description\\": \\"CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高\\",\\n \\"CheckId\\": \\"EcsHighCpuUtilization\\",\\n \\"ResourceId\\": \\"i-2zecnwitr2s7aca6****\\",\\n \\"CheckName\\": \\"ECS 性能负载巡检\\",\\n \\"Url\\": \\"https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetHistoryAdvicesResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n <Data>\\n <PageNo>1</PageNo>\\n <Total>100</Total>\\n <Result>\\n <Severity>1</Severity>\\n <Product>ecs</Product>\\n <GmtCreated>2023-07-01 00:00:00</GmtCreated>\\n <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>\\n <CheckId>EcsHighCpuUtilization</CheckId>\\n <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>\\n <CheckName>ECS 性能负载巡检</CheckName>\\n <Url>https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou</Url>\\n </Result>\\n </Data>\\n</GetHistoryAdvicesResponse>","errorExample":""}]',
],
'GetInspectProgress' => [
'summary' => '获取任务执行进度(普通用户、RD单账号)',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2939,43 +1665,23 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- 'FEATUREadvisorKJHIKI',
- ],
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY', 'FEATUREadvisorKJHIKI'],
],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => '所要查询的任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '95***135',
- ],
+ 'schema' => ['description' => '所要查询的任务ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '95***135'],
],
[
'name' => 'AssumeAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检主账号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '14********37',
- ],
+ 'schema' => ['description' => '巡检主账号', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '14********37'],
],
[
'name' => 'Token',
'in' => 'query',
- 'schema' => [
- 'description' => '集成ARMS Prometheus监控所需的Token。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***',
- ],
+ 'schema' => ['description' => '集成ARMS Prometheus监控所需的Token。', 'type' => 'string', 'required' => false, 'example' => '***'],
],
],
'responses' => [
@@ -2983,221 +1689,201 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '566331F9-****-550F-B745-A730331F97A9'."\n",
- ],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回结果的提示信息。',
- 'type' => 'string',
- 'example' => 'Successful',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '566331F9-****-550F-B745-A730331F97A9'."\n"],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'],
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回结果的提示信息。', 'type' => 'string', 'example' => 'Successful'],
'Data' => [
'description' => '查询结果。',
'type' => 'object',
'properties' => [
- 'AllSubtaskCount' => [
- 'description' => '所有子任务数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'Finish' => [
- 'description' => '任务是否结束:'."\n"
- ."\n"
- .'- **true**:任务结束。'."\n"
- .'- **false**:任务未结束。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'FinishRate' => [
- 'description' => '任务完成率。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '1',
- ],
- 'FinishSubtaskCount' => [
- 'description' => '完成子任务计数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'LastInspectDate' => [
- 'description' => '上次检查日期',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '111',
- ],
- 'TaskId' => [
- 'description' => '后台生成的任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '95***135',
- ],
- 'UsedTime' => [
- 'description' => '耗时。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'AllSubtaskCount' => ['description' => '所有子任务数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'Finish' => ['description' => '任务是否结束:'."\n"
+ ."\n"
+ .'- **true**:任务结束。'."\n"
+ .'- **false**:任务未结束。', 'type' => 'boolean', 'example' => 'True'],
+ 'FinishRate' => ['description' => '任务完成率。', 'type' => 'number', 'format' => 'double', 'example' => '1'],
+ 'FinishSubtaskCount' => ['description' => '完成子任务计数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'LastInspectDate' => ['description' => '上次检查日期', 'type' => 'integer', 'format' => 'int64', 'example' => '111'],
+ 'TaskId' => ['description' => '后台生成的任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '95***135'],
+ 'UsedTime' => ['description' => '耗时。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\\\n\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"AllSubtaskCount\\": 100,\\n \\"Finish\\": true,\\n \\"FinishRate\\": 1,\\n \\"FinishSubtaskCount\\": 1,\\n \\"LastInspectDate\\": 111,\\n \\"TaskId\\": 0,\\n \\"UsedTime\\": 1\\n }\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取任务执行进度',
'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
- ],
- 'RefreshAdvisorCostCheck' => [
- 'summary' => '发起成本优化巡检',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetInspectProgress',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\\\n\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"AllSubtaskCount\\": 100,\\n \\"Finish\\": true,\\n \\"FinishRate\\": 1,\\n \\"FinishSubtaskCount\\": 1,\\n \\"LastInspectDate\\": 111,\\n \\"TaskId\\": 0,\\n \\"UsedTime\\": 1\\n }\\n}","type":"json"}]',
+ ],
+ 'GetProductList' => [
+ 'summary' => '获取云产品的列表',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'Product',
+ 'name' => 'Token',
'in' => 'query',
- 'schema' => [
- 'description' => '产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '所需的Token。', 'type' => 'string', 'required' => false, 'example' => '****'],
],
[
- 'name' => 'ResourceIds',
+ 'name' => 'Language',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '这次更新的资源ID。',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源ID列表, 列表的长度范围为1~20,JSON数组格式。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'asg-8*********0yv8lph44',
- ],
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string'],
],
- [
- 'name' => 'CheckIds',
- 'in' => 'query',
- 'style' => 'json',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '检查项的ID列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '检查项的ID列表。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '["EcsCostLowUtilizationCheck"]',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-****-550F-B745-A730331F97A9'."\n"],
+ 'Data' => [
+ 'description' => '请求返回数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '请求返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Category' => ['description' => '云产品分类:', 'type' => 'string', 'example' => '"大数据计算"'."\n"],
+ 'ProductList' => [
+ 'description' => '阿里云产品列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '接入的产品列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Product' => ['description' => '云产品Code。', 'type' => 'string', 'example' => 'hologres'],
+ 'NewLabel' => ['description' => '云产品中文描述', 'type' => 'string', 'example' => '实时数仓 Hologres'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'],
+ 'Code' => ['description' => '请求编码。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '详细信息', 'type' => 'string', 'example' => 'success'],
+ 'UserMessage' => ['description' => '提示详情', 'type' => 'string', 'example' => '*'],
+ 'AccessDeniedDetail' => [
+ 'description' => '权限校验失败详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AuthAction' => ['description' => '鉴权Action', 'type' => 'string', 'example' => '*'],
+ 'AuthPrincipalDisplayName' => ['description' => '授权主体显示名称。', 'type' => 'string', 'example' => '*'],
+ 'AuthPrincipalOwnerId' => ['description' => '鉴权主账号id。', 'type' => 'string', 'example' => '*'],
+ 'AuthPrincipalType' => ['description' => '授权类型', 'type' => 'string', 'example' => '*'],
+ 'EncodedDiagnosticMessage' => ['description' => '异常信息', 'type' => 'string', 'example' => '****'],
+ 'NoPermissionType' => ['description' => '无权限类型。', 'type' => 'string', 'example' => '*'],
+ 'PolicyType' => ['description' => '鉴权类型', 'type' => 'string', 'example' => '*'],
+ ],
+ ],
],
- 'required' => false,
- 'docRequired' => true,
],
],
- [
- 'name' => 'RefreshResource',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否刷新资源状态 默认false',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.', 'description' => '未授权错误。'],
],
+ 500 => [
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取全量产品',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
[
- 'name' => 'AssumeAliyunIdList',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '查询成员账号id集合',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询成员账号id集合',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '[1802*****3100]',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetProductList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
],
- 'required' => false,
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\\\n\\",\\n \\"Data\\": [\\n {\\n \\"Category\\": \\"\\\\\\"大数据计算\\\\\\"\\\\n\\",\\n \\"ProductList\\": [\\n {\\n \\"Product\\": \\"hologres\\",\\n \\"NewLabel\\": \\"实时数仓 Hologres\\"\\n }\\n ]\\n }\\n ],\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"UserMessage\\": \\"*\\",\\n \\"AccessDeniedDetail\\": {\\n \\"AuthAction\\": \\"*\\",\\n \\"AuthPrincipalDisplayName\\": \\"*\\",\\n \\"AuthPrincipalOwnerId\\": \\"*\\",\\n \\"AuthPrincipalType\\": \\"*\\",\\n \\"EncodedDiagnosticMessage\\": \\"****\\",\\n \\"NoPermissionType\\": \\"*\\",\\n \\"PolicyType\\": \\"*\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetTaskStatusById' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'CheckPlanId',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['description' => '所要查询的任务ID。', 'type' => 'string', 'required' => true, 'example' => '95906135'],
],
],
'responses' => [
@@ -3207,528 +1893,250 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'."\n"],
'Data' => [
'description' => '请求返回数据。',
'type' => 'object',
'properties' => [
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'CommandId' => [
- 'description' => '命令ID。',
- 'type' => 'string',
- 'example' => 'c-wl*****n0g',
- ],
- 'TaskId' => [
- 'description' => '后台生成的任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '959***135',
- ],
- 'ManagerTaskId' => [
- 'description' => '后台生成的主任务ID(RD账号专用)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '11***********35',
- ],
+ 'TaskId' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '95906135'],
+ 'TaskStatus' => ['description' => '任务状态:'."\n"
+ .'- **1**: 任务进行中'."\n"
+ .'- **2**: 任务已完成'."\n"
+ .'- **3**: 任务执行失败', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '566331F9-****-550F-B745-A730331F97A9',
- ],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'Message' => [
- 'description' => '返回消息',
- 'type' => 'string',
- 'example' => 'OK',
- ],
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.', 'description' => '未授权错误。'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"CommandId\\": \\"c-wl*****n0g\\",\\n \\"TaskId\\": 0,\\n \\"ManagerTaskId\\": 0\\n },\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Success\\": true,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
- 'title' => '发起成本优化巡检',
- 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
- ],
- 'DescribeAdvisorChecksFoPages' => [
- 'summary' => '巡检项设置-分页',
- 'methods' => [
- 'get',
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询任务状态',
+ 'summary' => '根据任务ID查询任务执行状态。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTaskStatusById'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTaskStatusById',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\\\n\\",\\n \\"Data\\": {\\n \\"TaskId\\": 95906135,\\n \\"TaskStatus\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetTaskStatusByIdResponse>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9\\n</RequestId>\\n <Data>\\n <TaskId>95906135</TaskId>\\n <TaskStatus>1</TaskStatus>\\n </Data>\\n</GetTaskStatusByIdResponse>","errorExample":""}]',
+ ],
+ 'RefreshAdvisorCheck' => [
+ 'summary' => '刷新诊断项,触发该巡检项的资源指标同步并重新巡检。'."\n"
+ .'该API会按照输入的多个维度(云产品、云资源、诊断项名称)创建巡检任务,都为空则默认按照该用户下所有资源为所有诊断项创建巡检任务。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '218228',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorZ01KCY',
- ],
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '算法库列表的页码。起始值:1。默认值:1 。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'PageSize',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => '资源/实例ID。', 'type' => 'string', 'required' => false, 'example' => 'i-2zecnwitr2s7aca6****'],
],
[
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '****',
- ],
- ],
- [
- 'name' => 'Category',
+ 'name' => 'CheckId',
'in' => 'query',
- 'schema' => [
- 'description' => '该参数为无效参数,成本优化暂不支持',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [],
- 'example' => '*',
- ],
+ 'schema' => ['description' => '巡检项Code。', 'type' => 'string', 'required' => false, 'example' => 'EcsHighCpuUtilization'],
],
[
'name' => 'Product',
'in' => 'query',
- 'schema' => [
- 'description' => '云产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs',
- ],
+ 'schema' => ['description' => '产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
],
[
- 'name' => 'Status',
+ 'name' => 'Language',
'in' => 'query',
- 'schema' => [
- 'description' => '诊断项是否被禁用状态:'."\n"
- ."\n"
- .'- **enabled**: 可用'."\n"
- ."\n"
- .'- **disabled**: 禁用',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'enabled',
- ],
+ 'schema' => ['description' => '使用的语言。', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
- 'name' => 'Token',
- 'in' => 'query',
- 'schema' => [
- 'description' => '凭证Token内容。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***',
- ],
- ],
- [
- 'name' => 'BizCategory',
- 'in' => 'query',
+ 'name' => 'ResourceDimensionList',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'description' => '巡检类型',
- 'type' => 'string',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Product' => ['type' => 'string', 'required' => false, 'description' => ''],
+ 'Security' => ['type' => 'boolean', 'required' => false, 'description' => ''],
+ 'Performance' => ['type' => 'boolean', 'required' => false, 'description' => ''],
+ 'Reliablility' => ['type' => 'boolean', 'required' => false, 'description' => ''],
+ 'Cost' => ['type' => 'boolean', 'required' => false, 'description' => ''],
+ 'Service' => ['type' => 'boolean', 'required' => false, 'description' => ''],
+ 'ProductName' => ['type' => 'string', 'required' => false, 'description' => ''],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
'required' => false,
- 'example' => '2',
+ 'description' => '',
],
],
[
'name' => 'AssumeAliyunId',
'in' => 'query',
- 'schema' => [
- 'description' => '巡检主账号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '11*********35',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
],
[
- 'name' => 'CheckTypes',
+ 'name' => 'CheckPlanId',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => '该参数为无效参数,成本优化暂不支持',
- 'type' => 'array',
- 'items' => [
- 'description' => '巡检分类',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '*',
- ],
- 'required' => false,
- ],
+ 'schema' => ['description' => '巡检方案ID(不填则默认为系统方案)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '111'],
],
[
- 'name' => 'Source',
+ 'name' => 'Token',
'in' => 'query',
- 'schema' => [
- 'description' => '该参数为无效参数,成本优化暂不支持',
- 'type' => 'string',
- 'required' => false,
- 'example' => '*',
- ],
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '566331F9-5AB3-550F-B745-A730331F97A9',
- ],
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
'Data' => [
- 'description' => '查询结果对象体。',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询结果。',
- 'type' => 'object',
- 'properties' => [
- 'PageNo' => [
- 'description' => '分页号。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '每页数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'Total' => [
- 'description' => '数据总条数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'Result' => [
- 'description' => '查询结果对象体。',
- 'type' => 'array',
- 'items' => [
- 'description' => '查询结果对象体。',
- 'type' => 'object',
- 'properties' => [
- 'Name' => [
- 'description' => '巡检项名称。',
- 'type' => 'string',
- 'example' => 'ECS低利用率检查',
- ],
- 'Code' => [
- 'description' => '巡检项Code。',
- 'type' => 'string',
- 'example' => 'EcsCostLowUtilizationCheck',
- ],
- 'Tips' => [
- 'description' => '巡检建议一句话简述',
- 'type' => 'string',
- 'example' => 'ECS低利用率建议结合实际业务考虑对实例进行降配操作,<a href = \\"https://help.aliyun.com/zh/ecs/user-guide/overview-of-instance-configuration-changes\\" target =\\"_blank\\">参考文档</a>。',
- ],
- 'Category' => [
- 'description' => '巡检项分类:'."\n"
- ."\n"
- .'- **21**: 低资源利用率'."\n"
- ."\n"
- .'- **22**: 闲置资源'."\n"
- ."\n"
- .'- **23**: 付费方式'."\n"
- ."\n"
- .'- **24**: 代次升级',
- 'type' => 'string',
- 'example' => '21',
- ],
- 'SubCategory' => [
- 'description' => '暂不支持返回',
- 'type' => 'array',
- 'items' => [
- 'description' => '暂不支持',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '*',
- ],
- ],
- 'Status' => [
- 'description' => '诊断项是否被禁用状态:'."\n"
- ."\n"
- .'- **enabled**: 可用'."\n"
- ."\n"
- .'- **disabled**: 禁用',
- 'type' => 'string',
- 'example' => 'enabled',
- ],
- 'ConfigSupport' => [
- 'description' => '是否支持自定义配置',
- 'type' => 'string',
- 'example' => 'false',
- ],
- 'ViewColumn' => [
- 'description' => '展示列,即控制台展示巡检项详情的具体配置。',
- 'type' => 'string',
- 'example' => '[{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_resourceId\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_resourceName\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_regionId\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_instanceChargeType\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_instanceType\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_severity\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_costBefore\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_costAfter\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"EcsCostIdleCheck_costSavings\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"First_time\\"},{\\"type\\":\\"DEFAULT\\",\\"key\\":\\"Duration_time\\"}]',
- ],
- 'OperateColumn' => [
- 'description' => '操作字段,使用前端模板或诊断建议action中定义json字段。',
- 'type' => 'string',
- 'example' => '[{\\"type\\":\\"template\\",\\"value\\":\\"cloudmonitor.console.aliyun.com/index.htm?custom_trace=ecs_console#/hostDetail/chart/instanceId=${Resource.resourceId}&system=Linux&region=${Resource.regionId}&aliyunhost=true\\",\\"key\\":\\"Detail\\"},{\\"type\\":\\"template\\",\\"value\\":\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\",\\"key\\":\\"Refresh\\"}]'."\n",
- ],
- 'InspectionScope' => [
- 'description' => '巡检范围',
- 'type' => 'string',
- 'example' => 'false',
- ],
- 'Product' => [
- 'description' => '云产品Code',
- 'type' => 'string',
- 'example' => 'ECS',
- ],
- 'Description' => [
- 'description' => '巡检项描述,推荐操作和操作说明',
- 'type' => 'string',
- 'example' => 'Advisor 将检查账号下所有ECS实例,规格为r5或g5规格的ECS,建议升级为r6或g6',
- ],
- 'Source' => [
- 'description' => '巡检项来源。'."\n"
- .'- **Advisor**: 智能顾问自建巡检项'."\n"
- ."\n"
- .'- **Governance**: 云治理中心'."\n"
- ."\n"
- .'- **Config**: 配置审计',
- 'type' => 'string',
- 'example' => 'Advisor',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级'."\n"
- .'- 1:预警'."\n"
- ."\n"
- .'- 2:严重',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- ],
- ],
+ 'description' => '请求返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'TraceId' => ['description' => '链路追踪ID。', 'type' => 'string', 'example' => 'manual-1be17af1121b4974822e69daee4f2481'],
+ 'TaskId' => ['description' => '后台生成的任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '95906135'],
+ 'Message' => ['type' => 'string', 'description' => ''],
],
],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'Message' => [
- 'description' => '消息详情',
- 'type' => 'string',
- 'example' => 'OK',
- ],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
],
+ 'description' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
- ],
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.',
- ],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '刷新并触发巡检',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RefreshAdvisorCheck'],
+ ],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": [\\n {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 100,\\n \\"Result\\": [\\n {\\n \\"Name\\": \\"ECS低利用率检查\\",\\n \\"Code\\": \\"EcsCostLowUtilizationCheck\\",\\n \\"Tips\\": \\"ECS低利用率建议结合实际业务考虑对实例进行降配操作,<a href = \\\\\\\\\\\\\\"https://help.aliyun.com/zh/ecs/user-guide/overview-of-instance-configuration-changes\\\\\\\\\\\\\\" target =\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\">参考文档</a>。\\",\\n \\"Category\\": \\"21\\",\\n \\"SubCategory\\": [\\n 0\\n ],\\n \\"Status\\": \\"enabled\\",\\n \\"ConfigSupport\\": \\"false\\",\\n \\"ViewColumn\\": \\"[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_resourceId\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_resourceName\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_regionId\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_instanceChargeType\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_instanceType\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_severity\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_costBefore\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_costAfter\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"EcsCostIdleCheck_costSavings\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"First_time\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"DEFAULT\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Duration_time\\\\\\\\\\\\\\"}]\\",\\n \\"OperateColumn\\": \\"[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"template\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"cloudmonitor.console.aliyun.com/index.htm?custom_trace=ecs_console#/hostDetail/chart/instanceId=${Resource.resourceId}&system=Linux&region=${Resource.regionId}&aliyunhost=true\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Detail\\\\\\\\\\\\\\"},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"template\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Refresh\\\\\\\\\\\\\\"}]\\\\n\\",\\n \\"InspectionScope\\": \\"false\\",\\n \\"Product\\": \\"ECS\\",\\n \\"Description\\": \\"Advisor 将检查账号下所有ECS实例,规格为r5或g5规格的ECS,建议升级为r6或g6\\",\\n \\"Source\\": \\"Advisor\\",\\n \\"RiskLevel\\": 1\\n }\\n ]\\n }\\n ],\\n \\"Success\\": true,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]',
- 'title' => '分页获取巡检项',
- 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"TraceId\\": \\"manual-1be17af1121b4974822e69daee4f2481\\",\\n \\"TaskId\\": 95906135,\\n \\"Message\\": \\"\\"\\n },\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\"\\n}","errorExample":""},{"type":"xml","example":"<RefreshAdvisorCheckResponse>\\n <Data>\\n <Success>true</Success>\\n <TraceId>manual-1be17af1121b4974822e69daee4f2481</TraceId>\\n <TaskId>95906135</TaskId>\\n </Data>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n</RefreshAdvisorCheckResponse>","errorExample":""}]',
],
- 'DescribeCostOptimizationOverview' => [
- 'summary' => '成本优化-概览',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'RefreshAdvisorCostCheck' => [
+ 'summary' => '发起成本优化巡检',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '218237',
- 'abilityTreeNodes' => [
- 'FEATUREadvisorP5QXH3',
- ],
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
],
'parameters' => [
[
- 'name' => 'AssumeAliyunId',
+ 'name' => 'Product',
'in' => 'query',
+ 'schema' => ['description' => '产品Code。', 'type' => 'string', 'required' => false, 'example' => 'ecs'],
+ ],
+ [
+ 'name' => 'ResourceIds',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '巡检主账号',
- 'type' => 'integer',
- 'format' => 'int64',
+ 'description' => '这次更新的资源ID。',
+ 'type' => 'array',
+ 'items' => ['description' => '资源ID列表, 列表的长度范围为1~20,JSON数组格式。', 'type' => 'string', 'required' => false, 'example' => 'asg-8*********0yv8lph44'],
'required' => false,
- 'example' => '11***********35',
],
],
[
- 'name' => 'Token',
+ 'name' => 'CheckIds',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '请求所需的Token(暂不支持)。',
- 'type' => 'string',
+ 'description' => '检查项的ID列表。',
+ 'type' => 'array',
+ 'items' => ['description' => '检查项的ID列表。', 'type' => 'string', 'required' => false, 'example' => '["EcsCostLowUtilizationCheck"]'],
'required' => false,
- 'example' => '***',
+ 'docRequired' => true,
],
],
[
+ 'name' => 'RefreshResource',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否刷新资源状态 默认false', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
+ ],
+ [
'name' => 'AssumeAliyunIdList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '查询成员账号id集合',
'type' => 'array',
- 'items' => [
- 'description' => '查询成员账号id集合',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '[18**********00]',
- ],
+ 'items' => ['description' => '查询成员账号id集合', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '[1802*****3100]'],
'required' => false,
],
],
[
'name' => 'CheckPlanId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
],
],
'responses' => [
@@ -3738,166 +2146,2649 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '566331F9-****-550F-B745-A730331F97A9',
- ],
- 'Code' => [
- 'description' => '错误编码。',
- 'type' => 'string',
- 'example' => '200',
- ],
'Data' => [
- 'description' => '查询结果对象体。',
- 'type' => 'object',
- 'properties' => [
- 'TaskId' => [
- 'description' => '后台生成的任务ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '95***135',
- ],
- 'CurrentBillingCost' => [
- 'description' => '上一月支出金额',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'BillingCycleDate' => [
- 'description' => '账单周期(yyyy-MM)',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'OptCheckItemNum' => [
- 'description' => '可优化巡检项数量',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'OptResourceNum' => [
- 'description' => '最多可优化资源数量',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ExpectedSavingCost' => [
- 'description' => '预计最多可节省金额',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'GmtModified' => [
- 'description' => '巡检项结果更新时间,格式为yyyy-mm-dd hh:mm:ss',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2023-07-01 00:00:00',
- ],
- 'WaitProcessResourceCount' => [
- 'type' => 'string',
- ],
- 'ProcessedResourceCount' => [
- 'type' => 'string',
- ],
- 'ProcessedSaveAmount' => [
- 'type' => 'string',
- ],
- ],
- ],
- 'Message' => [
- 'description' => '消息。',
- 'type' => 'string',
- 'example' => 'Internal service issue. Detail:.',
- ],
- 'Success' => [
- 'description' => '请求是否成功。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'AccessDeniedDetail' => [
- 'description' => '访问被拒绝详细信息。',
+ 'description' => '请求返回数据。',
'type' => 'object',
'properties' => [
- 'AuthAction' => [
- 'description' => 'AuthAction',
- 'type' => 'string',
- 'example' => 'null',
- ],
- 'AuthPrincipalDisplayName' => [
- 'description' => '鉴权主体信息。',
- 'type' => 'string',
- 'example' => 'null',
- ],
- 'AuthPrincipalOwnerId' => [
- 'description' => '鉴权主账号id。',
- 'type' => 'string',
- 'example' => 'null',
- ],
- 'AuthPrincipalType' => [
- 'description' => '授权主体类型。',
- 'type' => 'string',
- 'example' => 'null',
- ],
- 'EncodedDiagnosticMessage' => [
- 'description' => '异常信息',
- 'type' => 'string',
- 'example' => '*****',
- ],
- 'NoPermissionType' => [
- 'description' => '无权限类型。',
- 'type' => 'string',
- 'example' => 'null',
- ],
- 'PolicyType' => [
- 'description' => '策略类型。',
- 'type' => 'string',
- 'example' => 'PauseNotify',
- ],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'],
+ 'CommandId' => ['description' => '命令ID。', 'type' => 'string', 'example' => 'c-wl*****n0g'],
+ 'TaskId' => ['description' => '后台生成的任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '959***135'],
+ 'ManagerTaskId' => ['description' => '后台生成的主任务ID(RD账号专用)', 'type' => 'integer', 'format' => 'int64', 'example' => '11***********35'],
],
],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '566331F9-****-550F-B745-A730331F97A9'],
+ 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'True'],
+ 'Message' => ['description' => '返回消息', 'type' => 'string', 'example' => 'OK'],
+ 'Code' => ['description' => '错误编码。', 'type' => 'string', 'example' => '200'],
],
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'Rd.NoMasterRole',
- 'errorMessage' => 'Login account is not RD management or co-management role.',
- ],
- [
- 'errorCode' => 'Forbidden.NotActivated',
- 'errorMessage' => 'User has not activated Advisor Service.',
- ],
- [
- 'errorCode' => 'Forbidden.NotAuthorized',
- 'errorMessage' => 'User has not authorized Advisor to provide services.',
- ],
- [
- 'errorCode' => 'Rd.NoManagePermission',
- 'errorMessage' => 'The RD management account does not have the specified member account management permission.',
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ],
+ 500 => [
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '发起成本优化巡检',
+ 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorCostCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- [
- 'errorCode' => 'Forbidden.RAM',
- 'errorMessage' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.',
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"CommandId\\": \\"c-wl*****n0g\\",\\n \\"TaskId\\": 0,\\n \\"ManagerTaskId\\": 0\\n },\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Success\\": true,\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
+ ],
+ 'RefreshAdvisorResource' => [
+ 'summary' => '根据具体的产品+资源ID,触发资源信息同步任务,返回创建的任务ID。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREadvisorZ01KCY'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Product',
+ 'in' => 'query',
+ 'schema' => ['description' => '云产品Code。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ecs'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => '资源/实例ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'i-2zecnwitr2s7aca6****'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['description' => '后台生成的任务ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '95906134'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '566331F9-5AB3-550F-B745-A730331F97A9'],
+ ],
+ 'description' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'Forbidden.RAM', 'errorMessage' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'description' => '未通过鉴权'],
+ ['errorCode' => 'Forbidden.NotActivated', 'errorMessage' => 'User has not activated Advisor Service.', 'description' => '用户未开通Advisor产品。'],
+ ['errorCode' => 'Forbidden.NotAuthorized', 'errorMessage' => 'User has not authorized Advisor to provide services.', 'description' => ''],
+ ['errorCode' => 'Rd.NoManagePermission', 'errorMessage' => 'The RD management account does not have the specified member account management permission.', 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['errorCode' => 'Rd.NoMasterRole', 'errorMessage' => 'Login account is not RD management or co-management role.', 'description' => '登录账号不是RD管理或协管角色'],
+ ],
500 => [
- [
- 'errorCode' => 'InternalError',
- 'errorMessage' => 'The request processing has failed due to some unknown error.',
- ],
+ ['errorCode' => 'InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error.', 'description' => '服务端错误。'],
+ ],
+ ],
+ 'title' => '资源信息同步',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RefreshAdvisorResource'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorResource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"566331F9-****-550F-B745-A730331F97A9\\",\\n \\"Code\\": \\"200\\",\\n \\"Data\\": {\\n \\"TaskId\\": 0,\\n \\"CurrentBillingCost\\": \\"100\\",\\n \\"BillingCycleDate\\": \\"100\\",\\n \\"OptCheckItemNum\\": \\"100\\",\\n \\"OptResourceNum\\": \\"100\\",\\n \\"ExpectedSavingCost\\": \\"100\\",\\n \\"GmtModified\\": 0,\\n \\"WaitProcessResourceCount\\": \\"\\",\\n \\"ProcessedResourceCount\\": \\"\\",\\n \\"ProcessedSaveAmount\\": \\"\\"\\n },\\n \\"Message\\": \\"Internal service issue. Detail:.\\",\\n \\"Success\\": true,\\n \\"AccessDeniedDetail\\": {\\n \\"AuthAction\\": \\"null\\",\\n \\"AuthPrincipalDisplayName\\": \\"null\\",\\n \\"AuthPrincipalOwnerId\\": \\"null\\",\\n \\"AuthPrincipalType\\": \\"null\\",\\n \\"EncodedDiagnosticMessage\\": \\"*****\\",\\n \\"NoPermissionType\\": \\"null\\",\\n \\"PolicyType\\": \\"PauseNotify\\"\\n }\\n}","type":"json"}]',
- 'title' => '成本数据概览',
- 'description' => '不兼容Go SDK,如需要Go SDK请使用DescribeAdvicesFlatPage API。',
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": 95906134,\\n \\"RequestId\\": \\"566331F9-5AB3-550F-B745-A730331F97A9\\"\\n}","errorExample":""},{"type":"xml","example":"<RefreshAdvisorResourceResponse>\\n <Data>95906134</Data>\\n <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>\\n</RefreshAdvisorResourceResponse>","errorExample":""}]',
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'advisor.cn-hangzhou.aliyuncs.com',
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'advisor.cn-hangzhou.aliyuncs.com', 'endpoint' => 'advisor.cn-hangzhou.aliyuncs.com', 'vpc' => ''],
+ ],
+ 'errorCodes' => [
+ ['code' => 'ApiCallError.%s', 'message' => 'Api call error: %s .', 'http_code' => 500, 'description' => 'API调用错误'],
+ ['code' => 'Forbidden.NotActivated', 'message' => 'User has not activated Advisor Service.', 'http_code' => 403, 'description' => '用户未开通Advisor产品。'],
+ ['code' => 'Forbidden.RAM', 'message' => 'The user is not authorized to operate on the specified resource, or this API does not support RAM.', 'http_code' => 403, 'description' => '未授权错误。'],
+ ['code' => 'Forbidden.RAM', 'message' => 'User not authorized to operate on the specified resource, or this API doesn\'t support RAM.', 'http_code' => 403, 'description' => '未通过鉴权'],
+ ['code' => 'InternalError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => '服务端错误。'],
+ ['code' => 'Rd.NoManagePermission', 'message' => 'The RD management account does not have the specified member account management permission.', 'http_code' => 403, 'description' => 'RD管理账号没有指定成员账号管理权限'],
+ ['code' => 'Rd.NoMasterRole', 'message' => 'Login account is not RD management or co-management role.', 'http_code' => 403, 'description' => '登录账号不是RD管理或协管角色'],
+ ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '60', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RefreshAdvisorResource'],
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTaskStatusById'],
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAdvices'],
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RefreshAdvisorCheck'],
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAdvisorResources'],
+ ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeAdvisorChecks'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'Advisor',
+ 'productName' => '智能顾问',
+ 'ramCodes' => ['advisor'],
+ 'ramLevel' => '操作级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetTodoItemByCheckItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTodoItemByCheckItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceTopology',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetResourceTopology',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetWaterLevelAnalysisHistory',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:GetWaterLevelAnalysisHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetUserId',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SetUserId',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetHistoryCheckReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetHistoryCheckReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCheckResultOverview',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCheckResultOverview',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckConnectivitySecurityGroup',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckConnectivitySecurityGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvicesFlatPage',
+ 'description' => '分页获取最新巡检结果(展平)',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvicesFlatPage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceListForProduct',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetResourceListForProduct',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshAdvisorCostCheck',
+ 'description' => '发起成本优化巡检',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorCostCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeResourceStatusCheckResultsSummary',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeResourceStatusCheckResultsSummary',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeRegions',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeRegions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetSubDomainList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetSubDomainList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'AddChecksPlanObjectList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:AddChecksPlanObjectList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetAdvisorCheck',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SetAdvisorCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTagsByKey',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListTagsByKey',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetUserReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetUserReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckConnectivitySecurityPun',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckConnectivitySecurityPun',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetGlobalMemberUserScope',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SetGlobalMemberUserScope',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetProductListAboutTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:GetProductListAboutTask',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeProductTags',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeProductTags',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SynchronizeTags',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SynchronizeTags',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'BuildTopology',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:BuildTopology',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutChecksPlanObjectStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:PutChecksPlanObjectStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateServiceLinkedRole',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateServiceLinkedRole',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckConnectivity',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckConnectivity',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateExportInstanceListDetailList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateExportInstanceListDetailList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDomainList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetDomainList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCheckItemStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetCheckItemStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetRiskCount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetRiskCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRdMembersAccount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListRdMembersAccount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStatusCheckResultsHistory',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStatusCheckResultsHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetUserReportSubscription',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SetUserReportSubscription',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryInspectStrategyWhite',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryInspectStrategyWhite',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvisorUser',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorUser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryInstanceListDetailList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryInstanceListDetailList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeResourceAdvicesByTaskId',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeResourceAdvicesByTaskId',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListSubAccountList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListSubAccountList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAllProduct',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetAllProduct',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdviceDetails',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdviceDetails',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateCheckPlan',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:UpdateCheckPlan',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeSuppressedChecks',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeSuppressedChecks',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTamServiceStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTamServiceStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetUserReportSubscriptionInfoNew',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SetUserReportSubscriptionInfoNew',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetMuInitTaskStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetMuInitTaskStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PhysicalDeleteResource',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:PhysicalDeleteResource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetInspectProgress',
+ 'description' => '获取任务执行进度',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetInspectProgress',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SaveInstanceLoadThresholdRule',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SaveInstanceLoadThresholdRule',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTaskStatusById',
+ 'description' => '查询任务状态',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTaskStatusById',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ActivateAdvisorUser',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ActivateAdvisorUser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAdvisorUser',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DeleteAdvisorUser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryMetricPointByTime',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryMetricPointByTime',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStabilityProducts',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStabilityProducts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetManualTrigger',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetManualTrigger',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvicesPage',
+ 'description' => '分页获取最新巡检结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvicesPage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetGlobalMemberUserScope',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetGlobalMemberUserScope',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCostCheckResults',
+ 'description' => '巡检项聚合成本优化结果概览',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCostCheckResults',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetProductRiskCount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetProductRiskCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetIdentity',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:GetIdentity',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvisorResources',
+ 'description' => '获取资源列表',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'BuildAccountAssociationFromResourceDirectory',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'advisor:BuildAccountAssociationFromResourceDirectory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckResource',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckResource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetAdvisorAuthorization',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:SetAdvisorAuthorization',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetRiskClassification',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetRiskClassification',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetUserDrillAuthorization',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetUserDrillAuthorization',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshAdvisorCheck',
+ 'description' => '刷新并触发巡检',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateResourceProductStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:UpdateResourceProductStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAllReports',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetAllReports',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCostOptimizationOverview',
+ 'description' => '成本数据概览',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCostOptimizationOverview',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckConnectivityWhiteList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckConnectivityWhiteList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetWaterLevelAnalysisStatus',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:GetWaterLevelAnalysisStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateCheckPlan',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateCheckPlan',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryWaterLevelOneChart',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryWaterLevelOneChart',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'FinishItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:FinishItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetInstanceLoadThresholdRule',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetInstanceLoadThresholdRule',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetSeverityLevel',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetSeverityLevel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryWaterLevelChart',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryWaterLevelChart',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'IgnoreItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:IgnoreItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetProductList',
+ 'description' => '获取全量产品',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetProductList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceDistribution',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetResourceDistribution',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCheckItemAll',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetCheckItemAll',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetLastInspectedManagerTask',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetLastInspectedManagerTask',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'NumberOfRiskClosedLoops',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:NumberOfRiskClosedLoops',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryRdAssociation',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryRdAssociation',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetUserReportSubscription',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetUserReportSubscription',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetStatusEnum',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:GetStatusEnum',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTagInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTagInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceDirectory',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetResourceDirectory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'AddInspectStrategyWhite',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:AddInspectStrategyWhite',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateHistoryCheckReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateHistoryCheckReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAssociateAccount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAssociateAccount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetHistoryAdviceNew',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'advisor:GetHistoryAdviceNew',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeLastTaskOnToday',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeLastTaskOnToday',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DoResign',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'advisor:DoResign',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DisableCheckItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DisableCheckItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCostCheckAdvices',
+ 'description' => '成本优化结果详情',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCostCheckAdvices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshAdvisorResource',
+ 'description' => '资源信息同步',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorResource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeResourceDistribution',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeResourceDistribution',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetHealthyScore',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetHealthyScore',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetHistoryOverviewInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetHistoryOverviewInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetLookupEvents',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetLookupEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckConnectivityNetwork',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckConnectivityNetwork',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteTodoItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DeleteTodoItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteInspectStrategyWhite',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DeleteInspectStrategyWhite',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryAccountRoleInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryAccountRoleInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshAdvisorStatusCheck',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshAdvisorStatusCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetLatestCostCheckReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetLatestCostCheckReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStatusCheckResultsByTaskId',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStatusCheckResultsByTaskId',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeResourceAdvicesHistory',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeResourceAdvicesHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetAdvisorAuthorizationAll',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'advisor:SetAdvisorAuthorizationAll',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListSubAccounts',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListSubAccounts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'InsertItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:InsertItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'MonthlyCostBillExpenseComparativeStatisticalChart',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:MonthlyCostBillExpenseComparativeStatisticalChart',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRdAccountTags',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListRdAccountTags',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetProductRiskTrend',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetProductRiskTrend',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRdAccountFolder',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListRdAccountFolder',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateInspectItemThresholdParamSetting',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:UpdateInspectItemThresholdParamSetting',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckConnectivityStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckConnectivityStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetRdAccountInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetRdAccountInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateBatchExportInstanceListDetailList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateBatchExportInstanceListDetailList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteChecksPlanObjectList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DeleteChecksPlanObjectList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTagForResource',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTagForResource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckServiceLinkedRoleForDeleting',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CheckServiceLinkedRoleForDeleting',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'LogicalDeleteResource',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:LogicalDeleteResource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutChecksPlanObjectRiskLevel',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:PutChecksPlanObjectRiskLevel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStabilityRegions',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStabilityRegions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCheckItems',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCheckItems',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStatusCheckResultsByDate',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStatusCheckResultsByDate',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshUserResources',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshUserResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateGovernancePermission',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateGovernancePermission',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetMuTaskStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetMuTaskStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvices',
+ 'description' => '获取最新巡检结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'SetAutoEnabledAdForTeamMember',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'advisor:SetAutoEnabledAdForTeamMember',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryResourceForRiskItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryResourceForRiskItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCheckPlanPage',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetCheckPlanPage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'OpenAdvisorForMember',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:OpenAdvisorForMember',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetHistoryAdvices',
+ 'description' => '分页获取历史巡检结果',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:GetHistoryAdvices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListResourceInfoWithWhiteFlag',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'advisor:ListResourceInfoWithWhiteFlag',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetManageTaskStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetManageTaskStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RestoreIgnoredTodoItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RestoreIgnoredTodoItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteCheckPlan',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'advisor:DeleteCheckPlan',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetRegionForProductList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetRegionForProductList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'OpenServiceAndCreateSLR',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:OpenServiceAndCreateSLR',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CancelShieldForCheckItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CancelShieldForCheckItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceGroupList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetResourceGroupList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QuerySeriousAndWarningRiskItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QuerySeriousAndWarningRiskItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetSummaryReportUrl',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetSummaryReportUrl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTodoItemWithRd',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTodoItemWithRd',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshUserResourcesWithRd',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshUserResourcesWithRd',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTaskStatus',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTaskStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryResourceInfoForHistory',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryResourceInfoForHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStatusCheckResultsHistoryConsole',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStatusCheckResultsHistoryConsole',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListResourceInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListResourceInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'InsertItemList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:InsertItemList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTagKeys',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListTagKeys',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ServiceAccess',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'advisor:ServiceAccess',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetGlobalStatusCheckUserSummary',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetGlobalStatusCheckUserSummary',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetChecksPlanObjectScope',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetChecksPlanObjectScope',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GlobalShieldConfirm',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GlobalShieldConfirm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetOverrunResourceProducts',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetOverrunResourceProducts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryAuthorizations',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryAuthorizations',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeStatusCheckAdvicesHistory',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeStatusCheckAdvicesHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceInfoForCheckItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetResourceInfoForCheckItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCheckPlanObjectPage',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetCheckPlanObjectPage',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetUserCheckReport',
+ 'description' => '获取用户最新巡检报告',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetUserCheckReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GenerateSummaryReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GenerateSummaryReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvisorChecksFoPages',
+ 'description' => '分页获取巡检项',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorChecksFoPages',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ReportBizAlertInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ReportBizAlertInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeInspectItemThresholdParamSetting',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeInspectItemThresholdParamSetting',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeEcsUpgradeRecommend',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeEcsUpgradeRecommend',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCheckResults',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCheckResults',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateCostCheckReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:CreateCostCheckReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshWaterLevel',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshWaterLevel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutChecksPlanObjectScope',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:PutChecksPlanObjectScope',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetJudgeFirstyUser',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetJudgeFirstyUser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetEachReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetEachReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'EnableCheckItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:EnableCheckItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTodoItemCount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTodoItemCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetMultiAccountsCheckReport',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetMultiAccountsCheckReport',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryCaseDetailStatistics',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryCaseDetailStatistics',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetCheckPlanById',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetCheckPlanById',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'QueryRiskItemDetailInfo',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:QueryRiskItemDetailInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvisorChecks',
+ 'description' => '获取巡检项',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeAdvisorChecks',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeCheckItemsSource',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'advisor:DescribeCheckItemsSource',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RefreshMembersCheck',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:RefreshMembersCheck',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetUserList',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetUserList',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'BuildAdvisorDrill',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetAdvisorDrill',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTodoItem',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetTodoItem',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetJudgeActiveUser',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetJudgeActiveUser',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRdAccountFolderNew',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:ListRdAccountFolderNew',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetUserReportSubscriptionInfoNew',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'advisor:GetUserReportSubscriptionInfoNew',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Advisor', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'resourceTypes' => [],
],
];