summaryrefslogtreecommitdiff
path: root/data/zh_cn/actiontrail
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
committerZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
commit7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch)
tree0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/zh_cn/actiontrail
downloadacs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz
acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip
Diffstat (limited to 'data/zh_cn/actiontrail')
-rw-r--r--data/zh_cn/actiontrail/2015-09-28/api-docs.php476
-rw-r--r--data/zh_cn/actiontrail/2017-12-04/api-docs.php1701
-rw-r--r--data/zh_cn/actiontrail/2020-07-06/api-docs.php8100
3 files changed, 10277 insertions, 0 deletions
diff --git a/data/zh_cn/actiontrail/2015-09-28/api-docs.php b/data/zh_cn/actiontrail/2015-09-28/api-docs.php
new file mode 100644
index 0000000..e00cd7a
--- /dev/null
+++ b/data/zh_cn/actiontrail/2015-09-28/api-docs.php
@@ -0,0 +1,476 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'Actiontrail',
+ 'version' => '2015-09-28',
+ ],
+ 'directories' => [
+ [
+ 'id' => 0,
+ 'title' => '其它',
+ 'type' => 'directory',
+ 'children' => [
+ 'LookupEvents',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'LookupEvents' => [
+ 'summary' => '检索详细历史事件',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Help',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Event',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Request',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EventType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EventName',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'User',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EventAccessKeyId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'type' => 'string',
+ ],
+ 'NextToken' => [
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Events' => [
+ 'type' => 'string',
+ ],
+ 'StartTime' => [
+ 'type' => 'string',
+ ],
+ 'Param' => [
+ 'type' => 'string',
+ ],
+ 'Result' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterDateOutOfRange',
+ 'errorMessage' => 'Query time range exceeds 30 days.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterEndTime',
+ 'errorMessage' => 'The specified EndTime is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTime',
+ 'errorMessage' => 'The specified StartTime is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeExceedsCurrent',
+ 'errorMessage' => 'The StartTime exceeds the current time. Use GMT time format for queries.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeOutOfDate',
+ 'errorMessage' => 'The StartTime exceeds the limit of 90 days.',
+ ],
+ [
+ 'errorCode' => 'InvalidTimeRangeException',
+ 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ ],
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ ],
+ 404 => [
+ [
+ 'errorCode' => 'InvalidAction',
+ 'errorMessage' => 'The specified action is invalid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'ap-northeast-2-pop',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-pop',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-gov-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-nu16-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-edge-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fujian',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-haidian-cm12-c01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-bj-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-prod-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-2',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-3',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-test-306',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong-finance-pop',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao-nebula',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et15-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et2-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-inner',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-internal-test-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-inner',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-st4-d01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-su18-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-yushanfang',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangbei-na61-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou-na62-a01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-nebula-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1-oxs',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'rus-west-1-pop',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'actiontrail.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'actiontrail.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'actiontrail.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'actiontrail.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'actiontrail.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'actiontrail.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'actiontrail.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'actiontrail.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'actiontrail.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'actiontrail.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'actiontrail.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'actiontrail.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'actiontrail.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'actiontrail.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'actiontrail.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'actiontrail.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'actiontrail.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'endpoint' => 'actiontrail.cn-north-2-gov-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'actiontrail.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'endpoint' => 'actiontrail.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'actiontrail.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'actiontrail.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'actiontrail.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'actiontrail.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'na-south-1',
+ 'endpoint' => 'actiontrail.na-south-1.aliyuncs.com',
+ ],
+ ],
+];
diff --git a/data/zh_cn/actiontrail/2017-12-04/api-docs.php b/data/zh_cn/actiontrail/2017-12-04/api-docs.php
new file mode 100644
index 0000000..9ab5cb2
--- /dev/null
+++ b/data/zh_cn/actiontrail/2017-12-04/api-docs.php
@@ -0,0 +1,1701 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'Actiontrail',
+ 'version' => '2017-12-04',
+ ],
+ 'directories' => [
+ [
+ 'id' => 5314,
+ 'title' => '地域',
+ 'type' => 'directory',
+ 'children' => [
+ 'DescribeRegions',
+ ],
+ ],
+ [
+ 'id' => 5316,
+ 'title' => '跟踪',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateTrail',
+ 'DeleteTrail',
+ 'StartLogging',
+ 'StopLogging',
+ 'UpdateTrail',
+ 'DescribeTrails',
+ 'GetTrailStatus',
+ ],
+ ],
+ [
+ 'id' => 5318,
+ 'title' => '事件',
+ 'type' => 'directory',
+ 'children' => [
+ 'LookupEvents',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'DescribeRegions' => [
+ 'summary' => '查询操作审计支持的阿里云地域。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E551964F5',
+ ],
+ 'Regions' => [
+ 'description' => '地域列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'description' => '地域。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E551964F5\\",\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"RegionId\\": \\"cn-shanghai\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeRegionsResponse>\\n <RequestId>4ABAEA6E-C740-5CE2-A003-643E551964F5</RequestId>\\n <Regions>\\n <Region>\\n <RegionId>cn-hangzhou</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-shanghai</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-nanjing</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-fuzhou</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-qingdao</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-beijing</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-zhangjiakou</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-huhehaote</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-wulanchabu</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-shenzhen</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-heyuan</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-guangzhou</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-chengdu</RegionId>\\n </Region>\\n <Region>\\n <RegionId>cn-hongkong</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-southeast-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-southeast-2</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-northeast-2</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-southeast-3</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-southeast-5</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-northeast-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>eu-central-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>eu-west-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>us-west-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>us-east-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>me-east-1</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-southeast-7</RegionId>\\n </Region>\\n <Region>\\n <RegionId>ap-south-1</RegionId>\\n </Region>\\n </Regions>\\n</DescribeRegionsResponse>","errorExample":""}]',
+ 'title' => '查询可以使用的阿里云地域',
+ 'description' => '更多信息,请参见[地域和可用区](~~40654~~)。',
+ 'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~28837~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateTrail' => [
+ 'summary' => '创建操作审计跟踪。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '创建的跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ .'>同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ [
+ 'name' => 'OssBucketName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间。 '."\n"
+ .'长度为3~63个字符,必须以小写英文字母或者数字开头,可包含小写英文字母、数字和短划线(-)。 '."\n"
+ ."\n"
+ .'> OssBucketName和SlsProjectArn需至少指定其中一个参数。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log',
+ ],
+ ],
+ [
+ 'name' => 'OssKeyPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间文件名的前缀。 '."\n"
+ .'长度为6~32个字符,必须以英文字母开头,可包含英文字母、数字、短划线(-)、正斜线(/)和下划线(_)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'at-product-account-audit-B',
+ ],
+ ],
+ [
+ 'name' => 'RoleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计服务关联角色名称,默认值:aliyunserviceroleforactiontrail。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'SlsProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。 '."\n"
+ ."\n"
+ .'> OssBucketName和SlsProjectArn需至少指定其中一个参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:log:cn-shanghai::project/***',
+ ],
+ ],
+ [
+ 'name' => 'SlsWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ ."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::***:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '投递事件的读写类型,取值:'."\n"
+ .'- Write(默认值):写类型。'."\n"
+ .'- Read:读类型。'."\n"
+ .'- All:读类型和写类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Write',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪的地域。 '."\n"
+ .'默认值为All,表示跟踪全部地域的事件。 '."\n"
+ .'您也可以指定具体的地域。关于地域的更多信息,请调用[DescribeRegions](~~95532~~)接口查询。'."\n"
+ ."\n\n"
+ ."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'MnsTopicArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于接收操作审计事件的轻量消息队列(原 MNS) Topic的ARN,格式为:`acs:mns:<Region>:<Account ID>:/topics/<topicName>`。填写此参数后,向OSS中投递事件时,会产生一条消息投递到该MNS Topic。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name',
+ ],
+ ],
+ [
+ 'name' => 'IsOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否创建多账号跟踪。取值: '."\n"
+ ."\n"
+ .'- true:创建多账号跟踪。 '."\n"
+ ."\n"
+ .'- false(默认值):创建单账号跟踪。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'MnsTopicArn' => [
+ 'description' => '用于接收操作审计事件的MNS Topic的ARN。 ',
+ 'type' => 'string',
+ 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project',
+ ],
+ 'RoleName' => [
+ 'description' => '操作审计服务关联角色名称。',
+ 'type' => 'string',
+ 'example' => 'aliyunserviceroleforactiontrail',
+ ],
+ 'EventRW' => [
+ 'description' => '投递事件的读写类型。',
+ 'type' => 'string',
+ 'example' => 'Write',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'OSS存储空间文件名的前缀。',
+ 'type' => 'string',
+ 'example' => 'at-product-account-audit-B',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'OSS存储空间。',
+ 'type' => 'string',
+ 'example' => 'audit-log',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::***:role/aliyunserviceroleforactiontrail',
+ ],
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'Name' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidDeliveryConfigurationException',
+ 'errorMessage' => 'You must specify at least one Log Service project or OSS bucket for a Trail.',
+ ],
+ [
+ 'errorCode' => 'InvalidPrefixException',
+ 'errorMessage' => 'The specified OSS bucket prefix is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidTrailNameException',
+ 'errorMessage' => 'The specified Trail name is invalid.',
+ ],
+ [
+ 'errorCode' => 'RepeatOssBucket',
+ 'errorMessage' => 'The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket.',
+ ],
+ [
+ 'errorCode' => 'SlsProjectDoesNotExistException',
+ 'errorMessage' => 'The specified Log Service project does not exist.',
+ ],
+ [
+ 'errorCode' => 'TrailAlreadyExistsException',
+ 'errorMessage' => 'The specified Trail name already exists.',
+ ],
+ [
+ 'errorCode' => 'MaximumNumberOfOrganizationTrailExceeded',
+ 'errorMessage' => 'Your account can create only one organization trail.',
+ ],
+ [
+ 'errorCode' => 'NotAllowCreateOrganizationTrail',
+ 'errorMessage' => 'Your account does not allow you to create organization trail. Submit a ticket to get customer support.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InsufficientBucketPolicyException',
+ 'errorMessage' => 'Access to the specified OSS bucket was denied.',
+ ],
+ [
+ 'errorCode' => 'InsufficientSlsPolicyException',
+ 'errorMessage' => 'Access to the specified Log Service project was denied.',
+ ],
+ [
+ 'errorCode' => 'MaximumNumberOfTrailsExceededException',
+ 'errorMessage' => 'The number of Trails in the same region exceeds the upper limit (5).',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'BucketDoesNotExistException',
+ 'errorMessage' => 'The specified OSS bucket does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"MnsTopicArn\\": \\"acs:mns:cn-hangzhou:1111:/topics/your-topic-name\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:151266687691****:project/test-project\\",\\n \\"RoleName\\": \\"aliyunserviceroleforactiontrail\\",\\n \\"EventRW\\": \\"Write\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"OssKeyPrefix\\": \\"at-product-account-audit-B\\",\\n \\"OssBucketName\\": \\"audit-log\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::***:role/aliyunserviceroleforactiontrail\\",\\n \\"TrailRegion\\": \\"All\\",\\n \\"Name\\": \\"trail-test\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateTrailResponse>\\n <RoleName>aliyunserviceroleforactiontrail</RoleName>\\n <EventRW>Write</EventRW>\\n <RequestId>AB7A5AE1-EC3C-4C00-91B0-BE7BDEE354AE</RequestId>\\n <HomeRegion>cn-hangzhou</HomeRegion>\\n <OssBucketName>audit-log</OssBucketName>\\n <TrailRegion>All</TrailRegion>\\n <Name>trail-test</Name>\\n</CreateTrailResponse>","errorExample":""}]',
+ 'title' => '创建跟踪',
+ 'description' => '您可以创建跟踪,将操作事件分别投递到日志服务SLS或对象存储OSS,或者同时进行投递。创建跟踪前请进行以下操作: '."\n"
+ ."\n"
+ .'- 投递到日志服务SLS:请确保您已经创建SLS的Project。 '."\n"
+ .'> 投递成功后操作审计会自动创建一个名为`actiontrail_<跟踪名称>`的日志库(Logstore),该Logstore会自动帮您设置审计最佳配置,创建查询所需索引和仪表盘,并禁止用户写入,保证审计数据的准确性。您无需提前创建Logstore。'."\n"
+ ."\n"
+ .'- 投递到对象存储OSS:请确保您已经创建对象存储OSS的存储空间。'."\n"
+ ."\n"
+ .'本文将提供一个示例,为您创建一个名为`trail-test`的单账号跟踪,将操作事件投递到名为`audit-log`的OSS存储空间中。',
+ 'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~28837~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteTrail' => [
+ 'summary' => '删除操作审计跟踪。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要删除的跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'my-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => '删除跟踪',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'StartLogging' => [
+ 'summary' => '启用跟踪,开始将操作审计事件投递到 OSS 或 SLS。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要启用的跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'>同一个账号内跟踪名称不可重复。 ',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<StartLoggingResponse>\\n <RequestId>1C488B66-B819-4D14-8711-C4EAAA13AC01</RequestId>\\n</StartLoggingResponse>","errorExample":""}]',
+ 'title' => '启用跟踪',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'StopLogging' => [
+ 'summary' => '停止跟踪,停止将操作审计事件投递到 OSS 或 SLS。',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要禁用的跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<StopLoggingResponse>\\n <RequestId>1C488B66-B819-4D14-8711-C4EAAA13AC01</RequestId>\\n</StopLoggingResponse>","errorExample":""}]',
+ 'title' => '禁用跟踪',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateTrail' => [
+ 'summary' => '调整操作审计跟踪的配置信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要更新的跟踪名称。 '."\n"
+ ."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ [
+ 'name' => 'OssBucketName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间。 '."\n"
+ ."\n"
+ .'长度为3~63个字符,必须以小写英文字母或者数字开头,可包含小写英文字母、数字和短划线(-)。 '."\n"
+ ."\n"
+ .'> 更新时必须确保该存储空间已经存在。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log',
+ ],
+ ],
+ [
+ 'name' => 'OssKeyPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间文件名的前缀。 '."\n"
+ ."\n"
+ .'长度为6~32个字符,必须以英文字母开头,可包含英文字母、数字、短划线(-)、正斜线(/)和下划线(_)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'at-product-account-audit-B',
+ ],
+ ],
+ [
+ 'name' => 'RoleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用户允许操作审计服务扮演的RAM角色名称,默认值:`aliyunserviceroleforactiontrail`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'SlsProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:log:cn-hangzhou:159498693826****:project/trail-test',
+ ],
+ ],
+ [
+ 'name' => 'SlsWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ ."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '投递事件的读写类型,取值:'."\n"
+ ."\n"
+ .'- Write(默认值):写类型。'."\n"
+ ."\n"
+ .'- Read:读类型。'."\n"
+ ."\n"
+ .'- All:读类型和写类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪的地域。 '."\n"
+ ."\n"
+ .'默认值为All,表示跟踪全部地域的事件。 '."\n"
+ ."\n"
+ .'您也可以指定具体的地域。关于地域的更多信息,请调用[DescribeRegions](~~95532~~)接口查询。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'MnsTopicArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于接收操作审计事件的MNS Topic的ARN,格式为:`acs:mns:<Region>:<Account ID>:/topics/<topicName>`。填写此参数后,向OSS中投递事件时,会产生一条消息投递到该MNS Topic。 ',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'MnsTopicArn' => [
+ 'description' => '用于接收操作审计事件的MNS Topic的ARN。 ',
+ 'type' => 'string',
+ 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:159498693826****:project/trail-test',
+ ],
+ 'RoleName' => [
+ 'description' => '用户允许操作审计服务扮演的RAM角色名称。',
+ 'type' => 'string',
+ 'example' => 'aliyunserviceroleforactiontrail',
+ ],
+ 'EventRW' => [
+ 'description' => '投递事件的读写类型。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'OSS存储空间文件名的前缀。',
+ 'type' => 'string',
+ 'example' => 'at-product-account-audit-B',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'OSS存储空间的名称。',
+ 'type' => 'string',
+ 'example' => 'audit-log',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'Name' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'RepeatOssBucket',
+ 'errorMessage' => 'The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket.',
+ ],
+ [
+ 'errorCode' => 'SlsProjectDoesNotExistException',
+ 'errorMessage' => 'The specified Log Service project does not exist.',
+ ],
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidDeliveryConfigurationException',
+ 'errorMessage' => 'You must specify at least one Log Service project or OSS bucket for a Trail.',
+ ],
+ [
+ 'errorCode' => 'InvalidPrefixException',
+ 'errorMessage' => 'The specified OSS bucket prefix is invalid.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InsufficientBucketPolicyException',
+ 'errorMessage' => 'Access to the specified OSS bucket was denied.',
+ ],
+ [
+ 'errorCode' => 'InsufficientSlsPolicyException',
+ 'errorMessage' => 'Access to the specified Log Service project was denied.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ ],
+ [
+ 'errorCode' => 'BucketDoesNotExistException',
+ 'errorMessage' => 'The specified OSS bucket does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"MnsTopicArn\\": \\"acs:mns:cn-hangzhou:1111:/topics/your-topic-name\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:159498693826****:project/trail-test\\",\\n \\"RoleName\\": \\"aliyunserviceroleforactiontrail\\",\\n \\"EventRW\\": \\"All\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"OssKeyPrefix\\": \\"at-product-account-audit-B\\",\\n \\"OssBucketName\\": \\"audit-log\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\",\\n \\"TrailRegion\\": \\"All\\",\\n \\"Name\\": \\"trail-test\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateTrailResponse>\\n <SlsProjectArn>acs:log:cn-hangzhou:159498693826****:project/trail-test</SlsProjectArn>\\n <RoleName>aliyunserviceroleforactiontrail</RoleName>\\n <EventRW>All</EventRW>\\n <RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n <HomeRegion>cn-hangzhou</HomeRegion>\\n <OssBucketName>audit-log</OssBucketName>\\n <SlsWriteRoleArn>acs:ram::159498693826****:role/aliyunserviceroleforactiontrail</SlsWriteRoleArn>\\n <TrailRegion>All</TrailRegion>\\n <Name>trail-test</Name>\\n</UpdateTrailResponse>","errorExample":""}]',
+ 'title' => '更新跟踪',
+ 'description' => '本文将提供一个示例,将跟踪`trail-test`投递的OSS存储空间更新为`audit-log`。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DescribeTrails' => [
+ 'summary' => '查看已创建的跟踪列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'IncludeShadowTrails',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否显示影子跟踪,取值:'."\n"
+ ."\n"
+ .'- false(默认值):不显示。'."\n"
+ .'- true:显示。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'NameList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需要查询的跟踪名称列表,以半角逗号(,)分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log,trail-test2',
+ ],
+ ],
+ [
+ 'name' => 'IncludeOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询多账号跟踪。取值: '."\n"
+ ."\n"
+ .'- true:查询多账号跟踪。'."\n"
+ ."\n"
+ .'- false(默认值):不查询多账号跟踪,即查询单账号跟踪。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'default' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '10313D41-C40A-4D53-ACA0-0190334DF81C',
+ ],
+ 'TrailList' => [
+ 'description' => '跟踪列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域,取值示例:'."\n"
+ .'- All(默认值):跟踪全部地域的事件。'."\n"
+ .'- cn-hangzhou :仅跟踪杭州地域的事件 。'."\n"
+ .'- cn-beijing:仅跟踪北京地域的事件。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'Status' => [
+ 'description' => '跟踪状态,取值:'."\n"
+ .'- Disable:停止。'."\n"
+ .'- Enable:开启。 '."\n"
+ ."\n"
+ .'- Fresh:已创建跟踪,但未开启。',
+ 'type' => 'string',
+ 'example' => 'Enable',
+ ],
+ 'UpdateTime' => [
+ 'description' => '跟踪配置上次更新的时间。',
+ 'type' => 'string',
+ 'example' => '1619407012000',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'CreateTime' => [
+ 'description' => '跟踪创建的时间。',
+ 'type' => 'string',
+ 'example' => '1614580048000',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'OSS存储空间文件名的前缀。',
+ 'type' => 'string',
+ 'example' => 'trail1',
+ ],
+ 'EventRW' => [
+ 'description' => '投递事件的读写类型,取值:'."\n"
+ .'- Write(默认值):写类型。'."\n"
+ .'- Read:读类型。'."\n"
+ .'- All:读类型和写类型。',
+ 'type' => 'string',
+ 'example' => 'Write',
+ ],
+ 'StartLoggingTime' => [
+ 'description' => '用户上一次开启该跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '1619407012000',
+ ],
+ 'MnsTopicArn' => [
+ 'description' => '用于接收操作审计事件的MNS Topic的ARN,格式为:`acs:mns:<Region>:<Account ID>:/topics/<topicName>`。填写此参数后,向OSS中投递事件时,会产生一条消息投递到该MNS Topic。 ',
+ 'type' => 'string',
+ 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name',
+ ],
+ 'RoleName' => [
+ 'description' => '用户允许操作审计服务扮演的RAM角色名称。',
+ 'type' => 'string',
+ 'example' => 'aliyunactiontraildefaultrole',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => '跟踪投递目标的日志服务项目在阿里云唯一的资源名称(Aliyun Resource Name,ARN)。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:159498693826****:project/alice-audit-log',
+ ],
+ 'IsOrganizationTrail' => [
+ 'description' => '是否是多账号跟踪,取值:'."\n"
+ ."\n"
+ .'- false(默认值):否。'."\n"
+ .'- true:是。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => '操作审计向目标日志服务项目投递日志时,扮演的角色在阿里云唯一的资源名称(Aliyun Resource Name,ARN)。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'StopLoggingTime' => [
+ 'description' => '用户上一次停止该跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '1617674944000',
+ ],
+ 'Name' => [
+ 'description' => '跟踪名称。 ',
+ 'type' => 'string',
+ 'example' => 'test-4',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'OSS存储空间的名称。',
+ 'type' => 'string',
+ 'example' => 'secloud',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidTrailNameException',
+ 'errorMessage' => 'The specified Trail name is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"10313D41-C40A-4D53-ACA0-0190334DF81C\\",\\n \\"TrailList\\": [\\n {\\n \\"TrailRegion\\": \\"All\\",\\n \\"Status\\": \\"Enable\\",\\n \\"UpdateTime\\": \\"1619407012000\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"CreateTime\\": \\"1614580048000\\",\\n \\"OssKeyPrefix\\": \\"trail1\\",\\n \\"EventRW\\": \\"Write\\",\\n \\"StartLoggingTime\\": \\"1619407012000\\",\\n \\"MnsTopicArn\\": \\"acs:mns:cn-hangzhou:1111:/topics/your-topic-name\\",\\n \\"RoleName\\": \\"aliyunactiontraildefaultrole\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:159498693826****:project/alice-audit-log\\",\\n \\"IsOrganizationTrail\\": false,\\n \\"SlsWriteRoleArn\\": \\"acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\",\\n \\"StopLoggingTime\\": \\"1617674944000\\",\\n \\"Name\\": \\"test-4\\",\\n \\"OssBucketName\\": \\"secloud\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeTrailsResponse>\\n <RequestId>10313D41-C40A-4D53-ACA0-0190334DF81C</RequestId>\\n <TrailList>\\n <Status>Enable</Status>\\n <MnsTopicArn>acs:mns:cn-hangzhou:1111:/topics/your-topic-name</MnsTopicArn>\\n <HomeRegion>cn-hangzhou</HomeRegion>\\n <StartLoggingTime>1619407012000</StartLoggingTime>\\n <CreateTime>1614580048000</CreateTime>\\n <StopLoggingTime>1617674944000</StopLoggingTime>\\n <SlsWriteRoleArn>acs:ram::159498693826****:role/aliyunserviceroleforactiontrail</SlsWriteRoleArn>\\n <TrailRegion>All</TrailRegion>\\n <Name>test-4</Name>\\n <IsOrganizationTrail>false</IsOrganizationTrail>\\n <SlsProjectArn>acs:log:cn-hangzhou:159498693826****:project/alice-audit-log</SlsProjectArn>\\n <RoleName>aliyunactiontraildefaultrole</RoleName>\\n <EventRW>Write</EventRW>\\n <UpdateTime>1619407012000</UpdateTime>\\n <OssKeyPrefix>trail1</OssKeyPrefix>\\n <OssBucketName>secloud</OssBucketName>\\n </TrailList>\\n</DescribeTrailsResponse>","errorExample":""}]',
+ 'title' => '查询某地域的跟踪列表',
+ 'description' => '本文将提供一个示例,查询当前账号的单账号跟踪列表。返回结果显示只有一条名为`test-4`的跟踪。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetTrailStatus' => [
+ 'summary' => '查看跟踪状态。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ .'>同一账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ [
+ 'name' => 'IsOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询多账号跟踪的状态。取值: '."\n"
+ ."\n"
+ .'- true:查询多账号跟踪的状态。 '."\n"
+ ."\n"
+ .'- false(默认值):不查询多账号跟踪的状态,即查询单账号跟踪的状态。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8FFD2DE7-74F0-4582-A4CB-BF6523FEF06C',
+ ],
+ 'StartLoggingTime' => [
+ 'description' => '用户上一次开启该跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '2021-03-31T04:06:41Z',
+ ],
+ 'LatestDeliveryError' => [
+ 'description' => '最后一次行为追踪异常的日志信息。',
+ 'type' => 'string',
+ 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1',
+ ],
+ 'StopLoggingTime' => [
+ 'description' => '用户上一次停止该跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-02T02:36:56Z',
+ ],
+ 'IsLogging' => [
+ 'description' => '是否开启日志记录。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'LatestDeliveryTime' => [
+ 'description' => '最后一次成功记录行为的时间。',
+ 'type' => 'string',
+ 'example' => '1547792223000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"8FFD2DE7-74F0-4582-A4CB-BF6523FEF06C\\",\\n \\"StartLoggingTime\\": \\"2021-03-31T04:06:41Z\\",\\n \\"LatestDeliveryError\\": \\"write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\",\\n \\"StopLoggingTime\\": \\"2021-04-02T02:36:56Z\\",\\n \\"IsLogging\\": false,\\n \\"LatestDeliveryTime\\": \\"1547792223000\\"\\n}","errorExample":""},{"type":"xml","example":"<GetTrailStatusResponse>\\n <RequestId>8FFD2DE7-74F0-4582-A4CB-BF6523FEF06C</RequestId>\\n <StartLoggingTime>2021-03-31T04:06:41Z</StartLoggingTime>\\n <LatestDeliveryError>write sls failed, exception: the parent of sub user must be project owner, itemscount: 1</LatestDeliveryError>\\n <StopLoggingTime>2021-04-02T02:36:56Z</StopLoggingTime>\\n <IsLogging>false</IsLogging>\\n</GetTrailStatusResponse>","errorExample":""}]',
+ 'title' => '查询跟踪状态',
+ 'description' => '本文将提供一个示例,查询名为`trail-test`的跟踪的状态。',
+ 'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~28837~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'LookupEvents' => [
+ 'summary' => '检索历史操作事件。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Event',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '事件ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AD9CD9DA-EC2D-4EB7-A817-C0442A94****',
+ ],
+ ],
+ [
+ 'name' => 'Request',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AD9CD9DA-EC2D-4EB7-A817-C0442A94****',
+ ],
+ ],
+ [
+ 'name' => 'EventType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '事件类型,取值:'."\n"
+ ."\n"
+ .'- ApiCall:API调用事件。'."\n"
+ ."\n"
+ .'- ConsoleOperation:控制台操作事件。'."\n"
+ ."\n"
+ .'- AliyunServiceEvent:阿里云服务事件。 '."\n"
+ ."\n"
+ .'- PasswordReset:密码重置事件。 '."\n"
+ ."\n"
+ .'- ConsoleSignin:控制台登录事件。 '."\n"
+ ."\n"
+ .'- ConsoleSignout:控制台登出事件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ConsoleSignin',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '云服务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AsaSub',
+ ],
+ ],
+ [
+ 'name' => 'EventName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '事件名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ConsoleSignin',
+ ],
+ ],
+ [
+ 'name' => 'User',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '调用者名称,即RAM用户。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'yanjie.wyj',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Instance',
+ ],
+ ],
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'i-bp14664y88udkt45****',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求事件的读写类型,取值: '."\n"
+ ."\n"
+ .'- Read:读类型。 '."\n"
+ ."\n"
+ .'- Write(默认值):写类型。 '."\n"
+ ."\n"
+ .'- All:读类型和写类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Write',
+ ],
+ ],
+ [
+ 'name' => 'EventAccessKeyId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要检索事件的AccessKey ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'LTAI****************',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于请求下一页检索的结果。'."\n"
+ .'>请求参数必须保证和上次请求一致。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。 '."\n"
+ .'取值范围:0~50个。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的开始时间,默认为当前时间7天前的时间点。日期格式按照ISO8601标准,并使用UTC时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。'."\n"
+ .'>支持最长90天内,跨度不超过30天的事件检索。'."\n"
+ ."\n\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2020-06-15T14:00:00Z',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的结束时间,默认为当前时间点。日期格式按照ISO8601标准,并使用UTC时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。'."\n"
+ .'>支持最长90天内,跨度不超过30天的事件检索。'."\n"
+ ."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2020-06-22T14:00:00Z',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => '检索到事件的结束时间。',
+ 'type' => 'string',
+ 'example' => '2020-07-22T14:00:00Z',
+ ],
+ 'NextToken' => [
+ 'description' => '返回下一页的检索结果。'."\n"
+ .'>若无更多结果,则不返回此字段。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FD79665A-CE8B-49D4-82E6-5EE2E0E791DD',
+ ],
+ 'Events' => [
+ 'description' => 'test',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检索到的事件列表。',
+ 'type' => 'object',
+ 'example' => 'AD9CD9DA-EC2D-4EB7-A817-C0442A94****',
+ ],
+ ],
+ 'StartTime' => [
+ 'description' => '检索到事件的开始时间。',
+ 'type' => 'string',
+ 'example' => '2020-07-15T14:00:00Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterDateOutOfRange',
+ 'errorMessage' => 'Query time range exceeds 30 days.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterEndTime',
+ 'errorMessage' => 'The specified EndTime is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTime',
+ 'errorMessage' => 'The specified StartTime is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeExceedsCurrent',
+ 'errorMessage' => 'The StartTime exceeds the current time. Use GMT time format for queries.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeOutOfDate',
+ 'errorMessage' => 'The StartTime exceeds the limit of 90 days.',
+ ],
+ [
+ 'errorCode' => 'InvalidTimeRangeException',
+ 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ ],
+ ],
+ 404 => [
+ [
+ 'errorCode' => 'InvalidAction',
+ 'errorMessage' => 'The specified action is invalid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": \\"2020-07-22T14:00:00Z\\",\\n \\"NextToken\\": \\"1\\",\\n \\"RequestId\\": \\"FD79665A-CE8B-49D4-82E6-5EE2E0E791DD\\",\\n \\"Events\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"StartTime\\": \\"2020-07-15T14:00:00Z\\"\\n}","errorExample":""},{"type":"xml","example":"<LookupEventsResponse>\\n <RequestId>AB6843AF-C07E-4B59-BBF8-A0CEB785E6A2</RequestId>\\n <NextToken>2</NextToken>\\n <EndTime>2020-11-26T01:30:39Z</EndTime>\\n <Events>\\n <eventId>96.227_1606286128938_****</eventId>\\n <eventVersion>1</eventVersion>\\n <errorMessage>success</errorMessage>\\n <eventSource>signin.aliyun.com</eventSource>\\n <sourceIpAddress>42.120.XX.XX</sourceIpAddress>\\n <userAgent>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36</userAgent>\\n <eventType>ConsoleSignin</eventType>\\n <userIdentity>\\n <accountId>159498693826****</accountId>\\n <principalId>24611178745315****</principalId>\\n <type>ram-user</type>\\n <userName>alice</userName>\\n </userIdentity>\\n <serviceName>AasSub</serviceName>\\n <additionalEventData>\\n <callbackUrl>https://api.aliyun.com/new?spm=a2c1g.8271268.10000.9.2d59df259iBwq1</callbackUrl>\\n <mfaChecked>false</mfaChecked>\\n </additionalEventData>\\n <requestId>96.227_1606286128938_2847</requestId>\\n <eventTime>2020-11-25T06:35:29Z</eventTime>\\n <acsRegion>cn-hangzhou</acsRegion>\\n <eventName>ConsoleSignin</eventName>\\n </Events>\\n <Events>\\n <eventId>132.20_1606132532480_****</eventId>\\n <eventVersion>1</eventVersion>\\n <errorMessage>success</errorMessage>\\n <eventSource>signin.aliyun.com</eventSource>\\n <sourceIpAddress>42.120.XX.XX</sourceIpAddress>\\n <userAgent>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36</userAgent>\\n <eventType>ConsoleSignin</eventType>\\n <userIdentity>\\n <accountId>159498693826****</accountId>\\n <principalId>26855899827085****</principalId>\\n <type>ram-user</type>\\n <userName>yuge.****</userName>\\n </userIdentity>\\n <serviceName>AasSub</serviceName>\\n <additionalEventData>\\n <callbackUrl>https://home.console.aliyun.com/</callbackUrl>\\n <mfaChecked>false</mfaChecked>\\n </additionalEventData>\\n <requestId>132.20_1606132532480_7292</requestId>\\n <eventTime>2020-11-23T11:55:32Z</eventTime>\\n <acsRegion>cn-hangzhou</acsRegion>\\n <eventName>ConsoleSignin</eventName>\\n </Events>\\n <StartTime>2020-11-19T01:31:09Z</StartTime>\\n</LookupEventsResponse>","errorExample":""}]',
+ 'title' => '检索详细历史事件',
+ 'description' => '使用LookupEvents检索历史事件时,每秒钟最多调用两次。'."\n"
+ .'注意:请勿频繁调用该接口。您可以创建跟踪,将事件投递到日志服务SLS,通过SLS的实时消费功能来近实时地检索历史事件。'."\n"
+ .'具体操作,请参见[创建单账号跟踪](~~28810~~)、[创建多账号跟踪](~~160661~~)和[实时消费](~~28997~~)。 '."\n"
+ ."\n"
+ .'> 该接口(2017-12-04版本API LookupEvents接口)即将下线,推荐您使用2020-07-06版本API。更多信息,请参见[LookupEvents](~~185722~~)。',
+ 'requestParamsDescription' => 'Event内的子字段说明,请参见[操作事件结构定义](~~28819~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'ap-northeast-2-pop',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-pop',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-gov-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-nu16-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-edge-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fujian',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-haidian-cm12-c01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-bj-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-prod-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-2',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-3',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-test-306',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong-finance-pop',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao-nebula',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et15-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et2-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-inner',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-internal-test-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-inner',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-st4-d01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-su18-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-yushanfang',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangbei-na61-b01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou-na62-a01',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-nebula-1',
+ 'endpoint' => 'actiontrail.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1-oxs',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'rus-west-1-pop',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'actiontrail.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'actiontrail.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'actiontrail.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'actiontrail.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'actiontrail.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'actiontrail.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'actiontrail.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'actiontrail.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'actiontrail.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'actiontrail.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'actiontrail.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'actiontrail.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'actiontrail.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'actiontrail.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'actiontrail.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'actiontrail.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'actiontrail.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'endpoint' => 'actiontrail.cn-north-2-gov-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'actiontrail.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'endpoint' => 'actiontrail.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'actiontrail.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'actiontrail.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'actiontrail.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'actiontrail.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'na-south-1',
+ 'endpoint' => 'actiontrail.na-south-1.aliyuncs.com',
+ ],
+ ],
+];
diff --git a/data/zh_cn/actiontrail/2020-07-06/api-docs.php b/data/zh_cn/actiontrail/2020-07-06/api-docs.php
new file mode 100644
index 0000000..ff8c954
--- /dev/null
+++ b/data/zh_cn/actiontrail/2020-07-06/api-docs.php
@@ -0,0 +1,8100 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'Actiontrail',
+ 'version' => '2020-07-06',
+ ],
+ 'directories' => [
+ [
+ 'children' => [
+ 'DescribeRegions',
+ ],
+ 'type' => 'directory',
+ 'title' => '地域',
+ 'id' => 120953,
+ ],
+ [
+ 'children' => [
+ 'CreateTrail',
+ 'DeleteTrail',
+ 'StartLogging',
+ 'UpdateTrail',
+ 'StopLogging',
+ 'GetTrailStatus',
+ 'DescribeTrails',
+ ],
+ 'type' => 'directory',
+ 'title' => '跟踪',
+ 'id' => 24997,
+ ],
+ [
+ 'children' => [
+ 'LookupEvents',
+ ],
+ 'type' => 'directory',
+ 'title' => '事件',
+ 'id' => 9931,
+ ],
+ [
+ 'children' => [
+ 'CreateDeliveryHistoryJob',
+ 'DeleteDeliveryHistoryJob',
+ 'ListDeliveryHistoryJobs',
+ 'GetDeliveryHistoryJob',
+ ],
+ 'type' => 'directory',
+ 'title' => '数据回补',
+ 'id' => 25007,
+ ],
+ [
+ 'children' => [
+ 'GetAccessKeyLastUsedEvents',
+ 'GetAccessKeyLastUsedInfo',
+ 'GetAccessKeyLastUsedIps',
+ 'GetAccessKeyLastUsedProducts',
+ 'GetAccessKeyLastUsedResources',
+ ],
+ 'type' => 'directory',
+ 'title' => 'AccessKey审计',
+ 'id' => 25012,
+ ],
+ [
+ 'children' => [
+ 'ListDataEventSelectors',
+ 'GetDataEventSelector',
+ 'PutDataEventSelector',
+ 'DeleteDataEventSelector',
+ ],
+ 'type' => 'directory',
+ 'title' => '数据事件选择器',
+ 'id' => 237856,
+ ],
+ [
+ 'children' => [
+ 'EnableInsight',
+ 'DisableInsight',
+ 'GetInsightTypes',
+ 'GetInsightSelectors',
+ 'GetInsightsEventsCount',
+ 'PutInsightSelectors',
+ 'LookupInsightEvents',
+ ],
+ 'type' => 'directory',
+ 'title' => '事件洞察',
+ 'id' => 352239,
+ ],
+ [
+ 'children' => [
+ 'UpdateAdvancedQueryTemplate',
+ 'GetGlobalEventsStorageRegion',
+ 'UpdateGlobalEventsStorageRegion',
+ 'CreateAdvancedQueryTemplate',
+ 'DeleteAdvancedQueryTemplate',
+ 'DescribeAdvancedQueryTemplate',
+ 'DescribeUserAlertCount',
+ 'DescribeUserLogCount',
+ 'GetAdvancedQueryTemplate',
+ 'DeleteAdvancedQueryHistory',
+ 'CreateAdvancedQueryHistory',
+ 'DescribeAdvancedQueryHistory',
+ 'DescribeResourceLifeCycleEvents',
+ 'DescribeScenes',
+ 'DescribeSearchTemplates',
+ 'ListDataEventServices',
+ 'GetGovernanceMetrics',
+ ],
+ 'type' => 'directory',
+ 'title' => '其他',
+ 'id' => 120972,
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'CreateAdvancedQueryHistory' => [
+ 'summary' => '本接口用于创建高级查询历史记录,支持保存自定义查询条件语句以供复用和管理。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'QuerySql',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询条件语句。'."\n"
+ ."\n"
+ .'您可以根据[高级查询的SQL语法](~~2557373~~)编辑查询语句。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ [
+ 'name' => 'SimpleQuery',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'QueryId' => [
+ 'description' => '高级查询记录ID。',
+ 'type' => 'string',
+ 'example' => 'query-uIkIvLiVSuCKqg0yoa****',
+ ],
+ 'QuerySql' => [
+ 'description' => '高级查询语句。',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.accessKeyId: *',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D0227506-AA8C-5998-8A62-74769106****',
+ ],
+ 'SimpleQuery' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '创建高级查询历史',
+ 'description' => '本文将提供一个示例,为您演示如何将查询条件语句保存为一条高级查询历史记录,该查询语句用于在日志中查询所有`AccessKey`访问事件。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QueryId\\": \\"query-uIkIvLiVSuCKqg0yoa****\\",\\n \\"QuerySql\\": \\"event.userIdentity.accessKeyId: *\\",\\n \\"RequestId\\": \\"D0227506-AA8C-5998-8A62-74769106****\\",\\n \\"SimpleQuery\\": false\\n}","type":"json"}]',
+ ],
+ 'CreateAdvancedQueryTemplate' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板名称最大长度64(可不唯一)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test1',
+ ],
+ ],
+ [
+ 'name' => 'TemplateSql',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模版查询语句。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ [
+ 'name' => 'SimpleQuery',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '不开启',
+ ],
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E551964F5',
+ ],
+ 'SimpleQuery' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'string',
+ 'example' => 'false',
+ ],
+ 'TemplateId' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'example' => 'x4a0Tw5dQy2J6IRJxf4kng',
+ ],
+ 'TemplateName' => [
+ 'description' => '模板名称',
+ 'type' => 'string',
+ 'example' => 'test1',
+ ],
+ 'TemplateSql' => [
+ 'description' => '查询语句。',
+ 'type' => 'string',
+ 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '创建高级查询模板',
+ 'summary' => '创建高级查询模板。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E551964F5\\",\\n \\"SimpleQuery\\": \\"false\\",\\n \\"TemplateId\\": \\"x4a0Tw5dQy2J6IRJxf4kng\\",\\n \\"TemplateName\\": \\"test1\\",\\n \\"TemplateSql\\": \\"event.errorCode: * AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
+ ],
+ 'CreateDeliveryHistoryJob' => [
+ 'summary' => '创建数据回补投递任务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-name',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保证请求的幂等性。该值由客户端生成,并且必须全局唯一。 '."\n"
+ .'ClientToken只支持ASCII字符,且不能超过64个字符。'."\n"
+ .'更多信息,请参见[如何保证幂等性](~~25693~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123e4567-e89b-12d3-a456-42665544****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'JobId' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '16602',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9D356A34-D5A9-41CD-9915-837B7F9D8722',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ ],
+ ],
+ 'title' => '创建数据回补投递任务',
+ 'description' => '使用限制:'."\n"
+ ."\n"
+ .'- 请确保您已经调用[CreateTrail](~~212313~~)接口创建了投递到日志服务SLS的单账号跟踪。'."\n"
+ .'- 一个阿里云账号同时只能存在一个正在运行的投递任务。'."\n"
+ ."\n"
+ .'本文将提供一个示例,为跟踪`trail-name`创建数据回补投递任务。',
+ 'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'CreateDeliveryHistoryJob',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"JobId\\": 16602,\\n \\"RequestId\\": \\"9D356A34-D5A9-41CD-9915-837B7F9D8722\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'CreateTrail' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '创建的跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ .'>同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ [
+ 'name' => 'OssBucketName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间。 '."\n"
+ .'长度为3~63个字符,必须以小写英文字母或者数字开头,可包含小写英文字母、数字和短划线(-)。 '."\n"
+ ."\n"
+ .'> OssBucketName、SlsProjectArn、MaxComputeProjectArn需至少指定其中一个参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log',
+ ],
+ ],
+ [
+ 'name' => 'OssKeyPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间文件名的前缀,可为空。 '."\n"
+ .'长度为6~32个字符,必须以英文字母开头,可包含英文字母、数字、短划线(-)、正斜线(/)和下划线(_)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'at-product-account-audit-B',
+ ],
+ ],
+ [
+ 'name' => 'OssWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。 '."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'SlsProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。 '."\n"
+ ."\n"
+ .'> OssBucketName、SlsProjectArn、MaxComputeProjectArn需至少指定其中一个参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:log:cn-shanghai:151266687691****:project/test-project',
+ ],
+ ],
+ [
+ 'name' => 'SlsWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '投递事件的读写类型,取值:'."\n"
+ .'- Write:写类型。'."\n"
+ .'- Read:读类型。'."\n"
+ .'- All(默认值):读类型和写类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Write',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪的地域。 '."\n"
+ .'默认值为All,表示跟踪全部地域的事件。 '."\n"
+ .'您也可以指定具体的地域。关于地域的更多信息,请调用[DescribeRegions](~~213597~~)接口查询。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'IsOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否创建多账号跟踪,取值:'."\n"
+ ."\n"
+ .'- true:创建多账号跟踪。'."\n"
+ .'- false(默认值):创建单账号跟踪。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的大数据计算服务项目的ARN。 '."\n"
+ ."\n"
+ .'> OssBucketName、SlsProjectArn、MaxComputeProjectArn需至少指定其中一个参数。'."\n"
+ ."\n"
+ .'> MaxComputeProjectArn中指定的大数据计算服务项目名称必须以actiontrail_作为前缀。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:odps:cn-hangzhou:15127787691****:project/actiontrail_****',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EventRW' => [
+ 'description' => '投递事件的读写类型。',
+ 'type' => 'string',
+ 'example' => 'Write',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'MaxComputeProjectArn' => [
+ 'description' => '跟踪投递的大数据计算服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****',
+ ],
+ 'MaxComputeWriteRoleArn' => [
+ 'description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'Name' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-test',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'OSS存储空间。',
+ 'type' => 'string',
+ 'example' => 'audit-log',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'OSS存储空间文件名的前缀。',
+ 'type' => 'string',
+ 'example' => 'at-product-account-audit-B',
+ ],
+ 'OssWriteRoleArn' => [
+ 'description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '442DDADF-DA58-4029-8E8B-82C73E9A7A70',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidDeliveryConfigurationException',
+ 'errorMessage' => 'You must specify at least one Log Service project or OSS bucket for a Trail.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidPrefixException',
+ 'errorMessage' => 'The specified OSS bucket prefix is invalid.',
+ 'description' => '指定的OSS前缀无效。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ [
+ 'errorCode' => 'InvalidTrailNameException',
+ 'errorMessage' => 'The specified Trail name is invalid.',
+ 'description' => '跟踪名称无效,请修改。',
+ ],
+ [
+ 'errorCode' => 'RepeatOssBucket',
+ 'errorMessage' => 'The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'SlsProjectDoesNotExistException',
+ 'errorMessage' => 'The specified Log Service project does not exist.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'TrailAlreadyExistsException',
+ 'errorMessage' => 'The specified Trail name already exists.',
+ 'description' => '您输入的跟踪名称已存在,如需创建新跟踪请修改跟踪名称。',
+ ],
+ [
+ 'errorCode' => 'MaximumNumberOfOrganizationTrailExceeded',
+ 'errorMessage' => 'Your account can create only one organization trail.',
+ 'description' => '您的账号只能创建一个多账号跟踪。',
+ ],
+ [
+ 'errorCode' => 'NotAllowCreateOrganizationTrail',
+ 'errorMessage' => 'Your account does not allow you to create organization trail. Submit a ticket to get customer support.',
+ 'description' => '您的账号不允许创建多账号跟踪,请提交工单联系客户支持。',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InsufficientBucketPolicyException',
+ 'errorMessage' => 'Access to the specified OSS bucket was denied.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InsufficientSlsPolicyException',
+ 'errorMessage' => 'Access to the specified Log Service project was denied.',
+ 'description' => '无法访问指定的SLS Project。',
+ ],
+ [
+ 'errorCode' => 'MaximumNumberOfTrailsExceededException',
+ 'errorMessage' => 'The number of Trails in the same region exceeds the upper limit (5).',
+ 'description' => ' 同一地域最多可以创建5个跟踪。',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'BucketDoesNotExistException',
+ 'errorMessage' => 'The specified OSS bucket does not exist.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => '创建跟踪',
+ 'summary' => '操作审计默认为每个阿里云账号记录最近90天的事件。为了能够追溯90天以前的事件,您可以创建跟踪,将操作事件投递到对象存储OSS、日志服务SLS或大数据计算服务MaxCompute,以便对事件进行分析。',
+ 'description' => '> 通过API创建的跟踪默认处于**已关闭**状态,您需要调用接口[StartLogging](~~432246~~)开启跟踪,操作审计才能投递操作事件至目标云产品。'."\n"
+ ."\n"
+ .'### 前提条件'."\n"
+ .'创建跟踪之前,请您确保至少完成下列的一项存储配置:'."\n"
+ .'- 投递到对象存储OSS'."\n"
+ ."\n"
+ .' 请确保您已开通对象存储,且已创建存储空间(Bucket)。'."\n"
+ ."\n"
+ .'- 投递到日志服务SLS'."\n"
+ .' '."\n"
+ .' 请确保您已开通日志服务,且已创建日志项目。 '."\n"
+ .' > 创建跟踪时,操作审计会自动在目标日志项目下创建一个名为`actiontrail_<跟踪名称>`的日志库(Logstore),该日志库禁止其他数据写入,保证审计数据的准确性。'."\n"
+ ."\n"
+ .'- 投递到大数据计算服务MaxCompute'."\n"
+ ."\n"
+ .' 请确保您已开通大数据计算服务MaxCompute。'."\n"
+ ."\n"
+ .' > 创建跟踪时,操作审计会自动在项目管理中创建一个名为`actiontrail_<账号ID>`的项目,该项目禁止其他数据写入,保证审计数据的准确性。'."\n"
+ ."\n"
+ .'### 使用说明'."\n"
+ .'本文将提供一个示例,为您创建一个名为`trail-test`的单账号跟踪,将操作事件投递到名为`audit-log`的OSS存储空间中。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'CreateTrail',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"EventRW\\": \\"Write\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Name\\": \\"trail-test\\",\\n \\"OssBucketName\\": \\"audit-log\\",\\n \\"OssKeyPrefix\\": \\"at-product-account-audit-B\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"RequestId\\": \\"442DDADF-DA58-4029-8E8B-82C73E9A7A70\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:151266687691****:project/test-project\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"TrailRegion\\": \\"All\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'DeleteAdvancedQueryHistory' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'QueryId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '高级查询记录ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'query-uIkIvLiVSuCKqg0yoa****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '04857D99-8B0C-53EB-85F1-E64198E7****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '删除高级查询历史',
+ 'summary' => '本接口用于删除指定高级查询历史记录。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"04857D99-8B0C-53EB-85F1-E64198E7****\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteAdvancedQueryTemplate' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'utpl-QNL3dpYkQcyjZxrIQCciqQ',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '95F2CD1D-9BD3-564A-A74A-743FFC5E46E5',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '删除高级查询模板',
+ 'summary' => '删除高级查询模板',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"95F2CD1D-9BD3-564A-A74A-743FFC5E46E5\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteDataEventSelector' => [
+ 'summary' => '本接口用于删除指定跟踪名称的数据事件选择器。',
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'trail-name',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1D9DD159-DFFF-4882-ACEC-B4A727E9****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '删除数据事件选择器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDataEventSelector',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1D9DD159-DFFF-4882-ACEC-B4A727E9****\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteDeliveryHistoryJob' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'JobId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务ID。 '."\n"
+ .'您可以调用[ListDeliveryHistoryJobs](~~188101~~)接口查询任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'maximum' => '2147483647',
+ 'minimum' => '0',
+ 'example' => '16602',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D74DD20B-6598-429C-873B-B9B449B656B6',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 503 => [
+ [
+ 'errorCode' => 'ServiceUnavailable',
+ 'errorMessage' => 'The service is unavailable. Please try again later.',
+ 'description' => '系统暂时不可用,请稍后重试。',
+ ],
+ ],
+ ],
+ 'title' => '删除数据回补投递任务',
+ 'summary' => '删除数据回补投递任务。',
+ 'description' => '本文将提供一个示例,删除任务ID为`16602`的投递任务。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DeleteDeliveryHistoryJob',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D74DD20B-6598-429C-873B-B9B449B656B6\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'DeleteTrail' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要删除的跟踪名称。'."\n"
+ ."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'my-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ ],
+ ],
+ 'title' => '删除跟踪',
+ 'summary' => '删除操作审计跟踪。',
+ 'description' => '本文将提供一个示例,删除名为`my-test`的跟踪。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DeleteTrail',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'DescribeAdvancedQueryHistory' => [
+ 'summary' => '本接口用于获取所有高级查询历史记录。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'QueryHistoryList' => [
+ 'description' => '高级查询历史记录列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'QueryId' => [
+ 'description' => '高级查询记录ID。',
+ 'type' => 'string',
+ 'example' => 'query-uIkIvLiVSuCKqg0yoa****',
+ ],
+ 'QuerySql' => [
+ 'description' => '查询条件语句。',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.accessKeyId: *',
+ ],
+ 'SimpleQuery' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'TimeStamp' => [
+ 'description' => '数据时间戳,表示高级查询历史记录创建时间。 '."\n"
+ .'日期格式遵循ISO 8601表示法,采用UTC时间。',
+ 'type' => 'string',
+ 'example' => '1753695874000',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '19F032B7-5FD8-5AC9-97FD-ACF54371****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '查询高级查询历史',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QueryHistoryList\\": [\\n {\\n \\"QueryId\\": \\"query-uIkIvLiVSuCKqg0yoa****\\",\\n \\"QuerySql\\": \\"event.userIdentity.accessKeyId: *\\",\\n \\"SimpleQuery\\": false,\\n \\"TimeStamp\\": \\"1753695874000\\"\\n }\\n ],\\n \\"RequestId\\": \\"19F032B7-5FD8-5AC9-97FD-ACF54371****\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeAdvancedQueryTemplate' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板名称。用户可以通过输入部分模板名称来检索符合条件的所有模板。如果输入的内容与多个模板名称的部分字符相匹配,则返回所有这些模板的列表。若不提供任何输入,则默认返回系统中所有可用的模板。'."\n"
+ .'输入: a'."\n"
+ .'输出: [a1, a2]'."\n"
+ .'输入: `` (无输入) 输出: [a1, a2, b1, c1]',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-template',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板列表的页码。起始值:1。默认值:1。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ .'默认值:20。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1EC1FDC7-6D01-559F-852C-30D86E9EEB3F',
+ ],
+ 'TemplatePage' => [
+ 'description' => '模板分页查询列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'description' => '模板列表的页码。',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ .'默认值:20。',
+ 'type' => 'string',
+ 'example' => '20',
+ ],
+ 'TemplateList' => [
+ 'description' => '模板详情列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SimpleQuery' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'TemplateId' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'example' => 'utpl-7OaxbyJATDaoLOgZRc****',
+ ],
+ 'TemplateName' => [
+ 'description' => '模板名称。',
+ 'type' => 'string',
+ 'example' => 'example-template',
+ ],
+ 'TemplateSql' => [
+ 'description' => '查询语句。',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'Total' => [
+ 'description' => '查询的总记录数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => '查询高级查询模板',
+ 'summary' => '查询高级查询模板。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1EC1FDC7-6D01-559F-852C-30D86E9EEB3F\\",\\n \\"TemplatePage\\": {\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"20\\",\\n \\"TemplateList\\": [\\n {\\n \\"SimpleQuery\\": false,\\n \\"TemplateId\\": \\"utpl-7OaxbyJATDaoLOgZRc****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n }\\n ],\\n \\"Total\\": 5\\n }\\n}","type":"json"}]',
+ ],
+ 'DescribeRegions' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域名称支持的语言,取值: '."\n"
+ ."\n"
+ .'- zh-CN:中文。'."\n"
+ .'- en-US(默认值):英文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'en-US',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Regions' => [
+ 'type' => 'object',
+ 'itemNode' => true,
+ 'properties' => [
+ 'Region' => [
+ 'description' => '地域列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LocalName' => [
+ 'title' => '地域名称',
+ 'description' => '地域名称。 '."\n"
+ ."\n"
+ .'> 当AcceptLanguage取值为zh-CN时,返回中文。当AcceptLanguage取值为en-US或不指定时,返回英文。',
+ 'type' => 'string',
+ 'example' => 'China (Hangzhou)',
+ ],
+ 'RegionEndpoint' => [
+ 'title' => '地域链接地址',
+ 'description' => '接入地址。',
+ 'type' => 'string',
+ 'example' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ ],
+ 'RegionId' => [
+ 'title' => '地域ID',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ACA7C814-12BC-4D81-A0D2-72071C9D6D2C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '查询可以使用的阿里云地域',
+ 'summary' => '查询操作审计支持的阿里云地域。',
+ 'description' => '更多信息,请参见[地域和可用区](~~40654~~)。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DescribeRegions',
+ ],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Regions\\": {\\n \\"Region\\": [\\n {\\n \\"LocalName\\": \\"China (Hangzhou)\\",\\n \\"RegionEndpoint\\": \\"actiontrail.cn-hangzhou.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"ACA7C814-12BC-4D81-A0D2-72071C9D6D2C\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'DescribeResourceLifeCycleEvents' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '云产品名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ECS',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS::ECS::Instance',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '生命周期事件数据。 '."\n"
+ .'该字段以JSON序列化字符串的形式返回,内容为结构化的生命周期事件分类层级数据。您可使用对应编程语言的标准JSON反序列化工具将其解析为对象数组。',
+ 'type' => 'string',
+ 'example' => '[{"children":[{"children":[{"label":"Create Events","labelEn":"Create Events","value":"Create,CreateInstance,RunInstances"},{"label":"Delete Events","labelEn":"Delete Events","value":"DeleteInstance,DeleteInstances,Release"}],"label":"ECS Instance","labelEn":"ECS Instance","value":"ACS::ECS::Instance"}],"label":"Elastic Compute Service","labelEn":"Elastic Compute Service","value":"Ecs"}]',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B10969CF-C743-55F8-9710-F0711504****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '查询资源生命周期事件',
+ 'summary' => '本接口用于查询指定资源的生命周期事件。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeResourceLifeCycleEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[{\\\\\\"children\\\\\\":[{\\\\\\"children\\\\\\":[{\\\\\\"label\\\\\\":\\\\\\"Create Events\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Create Events\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Create,CreateInstance,RunInstances\\\\\\"},{\\\\\\"label\\\\\\":\\\\\\"Delete Events\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Delete Events\\\\\\",\\\\\\"value\\\\\\":\\\\\\"DeleteInstance,DeleteInstances,Release\\\\\\"}],\\\\\\"label\\\\\\":\\\\\\"ECS Instance\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"ECS Instance\\\\\\",\\\\\\"value\\\\\\":\\\\\\"ACS::ECS::Instance\\\\\\"}],\\\\\\"label\\\\\\":\\\\\\"Elastic Compute Service\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Elastic Compute Service\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Ecs\\\\\\"}]\\",\\n \\"RequestId\\": \\"B10969CF-C743-55F8-9710-F0711504****\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeScenes' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SearchCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询关键词。支持输入部分场景名称进行模糊匹配,查询时不区分大小写。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ak',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****',
+ ],
+ 'SceneList' => [
+ 'description' => '场景列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => [
+ 'description' => '场景描述。',
+ 'type' => 'string',
+ 'example' => 'Query access events for the primary and sub-accounts and access keys under various scenarios, such as access events occurrence, access without MFA authentication, and failed access attempts.',
+ ],
+ 'Name' => [
+ 'description' => '场景名称。',
+ 'type' => 'string',
+ 'example' => 'Account-related or AccessKey Pair-related Events',
+ ],
+ 'SceneId' => [
+ 'description' => '场景ID。',
+ 'type' => 'string',
+ 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q',
+ ],
+ 'Token' => [
+ 'description' => '场景分类标识。',
+ 'type' => 'string',
+ 'example' => 'identity',
+ ],
+ 'Type' => [
+ 'description' => '场景类型。',
+ 'type' => 'string',
+ 'example' => 'normal',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '查询高级查询场景',
+ 'summary' => '本接口用于查询所有高级查询场景。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeScenes',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7EC26DF0-35AC-5F37-82B3-F5545D0A****\\",\\n \\"SceneList\\": [\\n {\\n \\"Description\\": \\"Query access events for the primary and sub-accounts and access keys under various scenarios, such as access events occurrence, access without MFA authentication, and failed access attempts.\\",\\n \\"Name\\": \\"Account-related or AccessKey Pair-related Events\\",\\n \\"SceneId\\": \\"sc-lpYrjKouRfy3MK-wteJW_Q\\",\\n \\"Token\\": \\"identity\\",\\n \\"Type\\": \\"normal\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'DescribeSearchTemplates' => [
+ 'summary' => '本接口用于查询指定场景下的高级查询系统模版。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SceneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '场景ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '页码。默认值:1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。默认值:20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '允许返回的最大结果数目。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '787DD24A-E322-5C0D-A730-057FE62B****',
+ ],
+ 'TemplateList' => [
+ 'description' => '模板详情列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Charts' => [
+ 'description' => '仪表盘列表(已废弃)。'."\n"
+ .'> 该字段已废弃,不再返回有效数据,当前返回值恒为空数组`[]`。建议您停止使用并从代码中移除对该字段的依赖。',
+ 'type' => 'string',
+ 'example' => '[]',
+ ],
+ 'Description' => [
+ 'description' => '模板描述。',
+ 'type' => 'string',
+ 'example' => 'Events of Console Logons by Using Cloud Account',
+ ],
+ 'Params' => [
+ 'description' => '查询条件参数。 '."\n"
+ .'该字段以JSON序列化字符串的形式返回,内容为结构化的查询条件列表。您可使用对应编程语言的标准JSON反序列化工具将其解析为对象数组。',
+ 'type' => 'string',
+ 'example' => '[{"key":"event.eventName","value":"ConsoleSignin","type":"system","display":true,"displayKey":"event.eventName","displayValue":"ConsoleSignin","displayValueEn":"ConsoleSignin"},{"oper":"AND","key":"event.userIdentity.type","value":"root-account","type":"system","display":true,"displayKey":"event.userIdentity.type","displayValueEn":"Alibaba Cloud Account"}]',
+ ],
+ 'SceneId' => [
+ 'description' => '场景ID。',
+ 'type' => 'string',
+ 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q',
+ ],
+ 'Sql' => [
+ 'description' => '查询条件语句。',
+ 'type' => 'string',
+ 'example' => 'select "event.userIdentity.accountId" as account_id, count(1) as cnt group by account_id limit 1000',
+ ],
+ 'TemplateId' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'example' => 'tpl-wCZAFWx3Spq6CO9Ymp****',
+ ],
+ 'TemplateName' => [
+ 'description' => '模板名称。',
+ 'type' => 'string',
+ 'example' => 'Events of Console Logons by Using Cloud Account',
+ ],
+ 'Token' => [
+ 'description' => '模板分类标识。',
+ 'type' => 'string',
+ 'example' => 'identity.rootLogin',
+ ],
+ 'Type' => [
+ 'description' => '模板类型。',
+ 'type' => 'string',
+ 'example' => 'audit',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '查询高级查询系统模板',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeSearchTemplates',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"RequestId\\": \\"787DD24A-E322-5C0D-A730-057FE62B****\\",\\n \\"TemplateList\\": [\\n {\\n \\"Charts\\": \\"[]\\",\\n \\"Description\\": \\"Events of Console Logons by Using Cloud Account\\",\\n \\"Params\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"event.eventName\\\\\\",\\\\\\"value\\\\\\":\\\\\\"ConsoleSignin\\\\\\",\\\\\\"type\\\\\\":\\\\\\"system\\\\\\",\\\\\\"display\\\\\\":true,\\\\\\"displayKey\\\\\\":\\\\\\"event.eventName\\\\\\",\\\\\\"displayValue\\\\\\":\\\\\\"ConsoleSignin\\\\\\",\\\\\\"displayValueEn\\\\\\":\\\\\\"ConsoleSignin\\\\\\"},{\\\\\\"oper\\\\\\":\\\\\\"AND\\\\\\",\\\\\\"key\\\\\\":\\\\\\"event.userIdentity.type\\\\\\",\\\\\\"value\\\\\\":\\\\\\"root-account\\\\\\",\\\\\\"type\\\\\\":\\\\\\"system\\\\\\",\\\\\\"display\\\\\\":true,\\\\\\"displayKey\\\\\\":\\\\\\"event.userIdentity.type\\\\\\",\\\\\\"displayValueEn\\\\\\":\\\\\\"Alibaba Cloud Account\\\\\\"}]\\",\\n \\"SceneId\\": \\"sc-lpYrjKouRfy3MK-wteJW_Q\\",\\n \\"Sql\\": \\"select \\\\\\"event.userIdentity.accountId\\\\\\" as account_id, count(1) as cnt group by account_id limit 1000\\",\\n \\"TemplateId\\": \\"tpl-wCZAFWx3Spq6CO9Ymp****\\",\\n \\"TemplateName\\": \\"Events of Console Logons by Using Cloud Account\\",\\n \\"Token\\": \\"identity.rootLogin\\",\\n \\"Type\\": \\"audit\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'DescribeTrails' => [
+ 'summary' => '查看已创建的跟踪列表。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'IncludeShadowTrails',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否显示影子跟踪,取值:'."\n"
+ ."\n"
+ .'- false(默认值):不显示。'."\n"
+ .'- true:显示。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'NameList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需要查询的跟踪名称列表。多个名称之间用半角逗号(,)分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc,def',
+ ],
+ ],
+ [
+ 'name' => 'IncludeOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询多账号跟踪,取值:'."\n"
+ ."\n"
+ .'- true:查询多账号跟踪。'."\n"
+ .'- false(默认值):查询单账号跟踪。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ED8BC689-69DA-42AC-855E-3B06C1271194',
+ ],
+ 'TrailList' => [
+ 'description' => '跟踪列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'Status' => [
+ 'description' => '跟踪状态,取值:'."\n"
+ ."\n"
+ .'- Disable:停止。'."\n"
+ .'- Enable:开启。 '."\n"
+ .'- Fresh:已创建跟踪,但未开启。',
+ 'type' => 'string',
+ 'example' => 'Enable',
+ ],
+ 'UpdateTime' => [
+ 'description' => '跟踪配置最近一次更新的时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-06T02:16:24Z',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'CreateTime' => [
+ 'description' => '跟踪创建的时间。',
+ 'type' => 'string',
+ 'example' => '2021-03-01T06:27:28Z',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'OSS存储空间文件名的前缀。',
+ 'type' => 'string',
+ 'example' => 'trail1',
+ ],
+ 'EventRW' => [
+ 'description' => '投递事件的读写类型,取值:'."\n"
+ ."\n"
+ .'- Write(默认值):写类型。'."\n"
+ .'- Read:读类型。'."\n"
+ .'- All:读类型和写类型。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'StartLoggingTime' => [
+ 'description' => '最近一次开启跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-06T02:08:38Z',
+ ],
+ 'OssWriteRoleArn' => [
+ 'description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log',
+ ],
+ 'IsOrganizationTrail' => [
+ 'description' => '是否是多账号跟踪,取值:'."\n"
+ ."\n"
+ .'- false(默认值):否。'."\n"
+ .'- true:是。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'StopLoggingTime' => [
+ 'description' => '最近一次停止跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-06T02:09:04Z',
+ ],
+ 'Name' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'test-4',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'OSS存储空间的名称。',
+ 'type' => 'string',
+ 'example' => 'secloud',
+ ],
+ 'Region' => [
+ 'description' => '跟踪所在地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'OrganizationId' => [
+ 'description' => '资源目录ID。 '."\n"
+ ."\n"
+ .'> 只有多账号跟踪返回该参数。',
+ 'type' => 'string',
+ 'example' => 'rd-EV****',
+ ],
+ 'OssBucketLocation' => [
+ 'description' => 'OSS存储空间所在地域。',
+ 'type' => 'string',
+ 'example' => 'oss-cn-hangzhou',
+ ],
+ 'TrailArn' => [
+ 'description' => '跟踪的资源定位符。',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other',
+ ],
+ 'MaxComputeWriteRoleArn' => [
+ 'description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::141266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'MaxComputeProjectArn' => [
+ 'description' => '跟踪投递的大数据计算服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidTrailNameException',
+ 'errorMessage' => 'The specified Trail name is invalid.',
+ 'description' => '跟踪名称无效,请修改。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询某地域的跟踪列表',
+ 'description' => '本文将提供一个示例,查询当前账号的单账号跟踪列表。返回结果显示只有一条名为`test-4`的跟踪。',
+ 'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DescribeTrails',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeTrails',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"ED8BC689-69DA-42AC-855E-3B06C1271194\\",\\n \\"TrailList\\": [\\n {\\n \\"TrailRegion\\": \\"All\\",\\n \\"Status\\": \\"Enable\\",\\n \\"UpdateTime\\": \\"2021-04-06T02:16:24Z\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"CreateTime\\": \\"2021-03-01T06:27:28Z\\",\\n \\"OssKeyPrefix\\": \\"trail1\\",\\n \\"EventRW\\": \\"All\\",\\n \\"StartLoggingTime\\": \\"2021-04-06T02:08:38Z\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log\\",\\n \\"IsOrganizationTrail\\": false,\\n \\"SlsWriteRoleArn\\": \\"acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\",\\n \\"StopLoggingTime\\": \\"2021-04-06T02:09:04Z\\",\\n \\"Name\\": \\"test-4\\",\\n \\"OssBucketName\\": \\"secloud\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"OrganizationId\\": \\"rd-EV****\\",\\n \\"OssBucketLocation\\": \\"oss-cn-hangzhou\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::141266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'DescribeUserAlertCount' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailR96AQB',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'StartDate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间。格式yyyy-MM-dd',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2025-05-12'."\n"
+ ."\n",
+ ],
+ ],
+ [
+ 'name' => 'EndDate',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => '结束时间。格式yyyy-MM-dd',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2025-06-10'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回的数据内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Counts' => [
+ 'description' => '返回的数据数量统计。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '总记录数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '500',
+ ],
+ ],
+ 'Dates' => [
+ 'description' => '返回的日期列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '生成日期。',
+ 'type' => 'string',
+ 'example' => '2025-01-17'."\n",
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => '结束时间必须晚于开始时间。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询用户时间段内每日告警量',
+ 'summary' => '查询用户时间段内每日告警量。',
+ 'requestParamsDescription' => '><notice>若StartDate与EndDate参数缺失,默认查询过去30天(截止到昨日)每天的日志量。></notice>',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserAlertCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 500\\n ],\\n \\"Dates\\": [\\n \\"2025-01-17\\\\n\\"\\n ]\\n },\\n \\"RequestId\\": \\"90D6CC31-947F-5D8A-BEDC-F312EE9B31EA\\\\n\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeUserLogCount' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'StartDate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '开始时间。格式yyyy-MM-dd',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2025-05-12',
+ ],
+ ],
+ [
+ 'name' => 'EndDate',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => '结束时间。格式yyyy-MM-dd',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2025-06-10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回的数据内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Counts' => [
+ 'description' => '返回的数据数量统计。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '总记录数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '103493'."\n",
+ ],
+ ],
+ 'Dates' => [
+ 'description' => '返回的日期列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '日志生成日期。',
+ 'type' => 'string',
+ 'example' => '2025-05-10',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求id。',
+ 'type' => 'string',
+ 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => '结束时间必须晚于开始时间。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询用户时间段内每日日志量',
+ 'summary' => '查询用户时间段内每日日志量。',
+ 'requestParamsDescription' => '><notice>若StartDate与EndDate参数缺失,默认查询过去30天(截止到昨日)每天的日志量></notice>',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserLogCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 103493\\n ],\\n \\"Dates\\": [\\n \\"2025-05-10\\"\\n ]\\n },\\n \\"RequestId\\": \\"90D6CC31-947F-5D8A-BEDC-F312EE9B31EA\\"\\n}","type":"json"}]',
+ ],
+ 'DisableInsight' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InsightType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Insight事件类型,取值:'."\n"
+ ."\n"
+ .'- IpInsight:IP请求事件。'."\n"
+ .'- ApiCallRateInsight:存在风险的API调用事件。'."\n"
+ .'- ApiErrorRateInsight:API错误事件。'."\n"
+ .'- AkInsight:AccessKey调用事件。'."\n"
+ .'- PolicyChangeInsight:权限变更事件。'."\n"
+ .'- PasswordChangeInsight:密码变更事件。'."\n"
+ .'- TrailConcealmentInsight:隐匿行踪事件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IpInsight',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InsightTypeNotValid',
+ 'errorMessage' => 'The input insightType is not valid',
+ 'description' => '用户输入的参数不合法',
+ ],
+ ],
+ ],
+ 'title' => '关闭审计事件洞察',
+ 'summary' => '关闭特定的InsightType。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]',
+ ],
+ 'EnableInsight' => [
+ 'summary' => '开启审计事件洞察。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InsightType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Insight事件类型,取值:'."\n"
+ ."\n"
+ .'- IpInsight:IP请求事件。'."\n"
+ .'- ApiCallRateInsight:存在风险的API调用事件。'."\n"
+ .'- ApiErrorRateInsight:API错误事件。'."\n"
+ .'- AkInsight:AccessKey调用事件。'."\n"
+ .'- PolicyChangeInsight:权限变更事件。'."\n"
+ .'- PasswordChangeInsight:密码变更事件。'."\n"
+ .'- TrailConcealmentInsight:隐匿行踪事件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IpInsight',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '45AA79B7-0240-52AB-B158-3F9A512228ED',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InsightTypeNotAvailable',
+ 'errorMessage' => 'The input insightType is not available',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"45AA79B7-0240-52AB-B158-3F9A512228ED\\"\\n}","type":"json"}]',
+ 'title' => '开启审计事件洞察',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'EnableInsight',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:EnableInsight',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetAccessKeyLastUsedEvents' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'AccessKey ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于请求下一页检索的结果。 '."\n"
+ ."\n"
+ .'> 请求参数必须保证和上次请求一致。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ .'取值范围:0~100。'."\n"
+ .'默认值:20。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Events' => [
+ 'description' => '检索到的事件列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => '事件详情。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
+ .' "sourceIpAddress": "10.10.**.**",'."\n"
+ .' "eventType": "ApiCall",'."\n"
+ .' "userIdentity": {'."\n"
+ .' "accountId": "104758519118****",'."\n"
+ .' "principalId": "24549429003625****",'."\n"
+ .' "type": "ram-user",'."\n"
+ .' "userName": "alice"'."\n"
+ .' },'."\n"
+ .' "serviceName": "Ecs",'."\n"
+ .' "apiVersion": "2016-01-20",'."\n"
+ .' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
+ .' "eventTime": "2021-08-05T09:21:32Z",'."\n"
+ .' "isGlobal": false,'."\n"
+ .' "acsRegion": "cn-hangzhou",'."\n"
+ .' "eventName": "DescribeInstances"'."\n"
+ .'}',
+ ],
+ 'EventName' => [
+ 'description' => '事件名称。',
+ 'type' => 'string',
+ 'example' => 'DescribeInstances',
+ ],
+ 'Source' => [
+ 'description' => '最后使用记录来源。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => '其他事件',
+ 'ManagementEvent' => '管控事件',
+ 'DataEvent' => '数据事件',
+ ],
+ 'example' => 'ManagementEvent',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => '使用事件的时间戳。'."\n"
+ .'单位:毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ ],
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'NextToken' => [
+ 'description' => '用于请求下一页检索的结果。',
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询指定AccessKey的最后使用的事件记录',
+ 'summary' => '查询指定AccessKey的最后使用的事件记录。',
+ 'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的部分事件记录。关于支持的事件请参见[AccessKey审计支持的云服务及事件](~~419214~~) 。因该数据存在一定的延迟(一般小时级),且仅支持部分事件,请您务必谨慎变更AccessKey。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedEvents',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Events\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"EventName\\": \\"DescribeInstances\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedEventsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Events>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<EventName>DescribeInstances</EventName>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t</Events>\\n\\t<NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedEventsResponse>\\t","errorExample":""}]',
+ ],
+ 'GetAccessKeyLastUsedInfo' => [
+ 'summary' => '查询指定AccessKey的最后使用记录。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'AccessKey ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessKeyId' => [
+ 'description' => 'AccessKey ID。',
+ 'type' => 'string',
+ 'example' => 'LTAI****************',
+ ],
+ 'AccountId' => [
+ 'description' => '阿里云账号ID。',
+ 'type' => 'string',
+ 'example' => '104758519118****',
+ ],
+ 'AccountType' => [
+ 'description' => 'AccessKey所属账号身份类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'root-account' => '阿里云账号',
+ 'ram-user' => 'RAM用户',
+ ],
+ 'example' => 'ram-user',
+ ],
+ 'Detail' => [
+ 'description' => '最后使用事件详情。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
+ .' "sourceIpAddress": "10.10.**.**",'."\n"
+ .' "eventType": "ApiCall",'."\n"
+ .' "userIdentity": {'."\n"
+ .' "accountId": "104758519118****",'."\n"
+ .' "principalId": "24549429003625****",'."\n"
+ .' "type": "ram-user",'."\n"
+ .' "userName": "alice"'."\n"
+ .' },'."\n"
+ .' "serviceName": "Ecs",'."\n"
+ .' "apiVersion": "2016-01-20",'."\n"
+ .' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
+ .' "eventTime": "2021-08-05T09:21:32Z",'."\n"
+ .' "isGlobal": false,'."\n"
+ .' "acsRegion": "cn-hangzhou",'."\n"
+ .' "eventName": "DescribeInstances"'."\n"
+ .'}',
+ ],
+ 'OwnerId' => [
+ 'description' => 'AccessKey所属账号ID。',
+ 'type' => 'string',
+ 'example' => '24549429003625****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '239EB588-CD24-522E-B0B5-174A1A588BE0',
+ ],
+ 'ServiceName' => [
+ 'description' => '最后使用的云服务。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ ],
+ 'ServiceNameCn' => [
+ 'description' => '最后使用的云服务中文名称。',
+ 'type' => 'string',
+ 'example' => '云服务器ECS',
+ ],
+ 'ServiceNameEn' => [
+ 'description' => '最后使用的云服务英文名称。',
+ 'type' => 'string',
+ 'example' => 'Elastic Compute Service',
+ ],
+ 'Source' => [
+ 'description' => '最后使用记录来源。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => '其他事件',
+ 'ManagementEvent' => '管控事件',
+ 'DataEvent' => '数据事件',
+ ],
+ 'example' => 'ManagementEvent',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => '最后使用时间戳。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1657247532000',
+ ],
+ 'UserName' => [
+ 'description' => 'AccessKey所属账号名称。'."\n"
+ .'如果AccountType为root-account,则userName记录为“root”;如果AccountType为ram-user,则userName记录为RAM用户名。',
+ 'type' => 'string',
+ 'enumValueTitles' => [],
+ 'example' => 'alice',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询指定AccessKey的最后使用记录',
+ 'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey的最后使用记录。因该数据存在一定的延迟(一般小时级),请您务必谨慎变更AccessKey。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedInfo',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"AccessKeyId\\": \\"LTAI****************\\",\\n \\"AccountId\\": \\"104758519118****\\",\\n \\"AccountType\\": \\"ram-user\\",\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"OwnerId\\": \\"24549429003625****\\",\\n \\"RequestId\\": \\"239EB588-CD24-522E-B0B5-174A1A588BE0\\",\\n \\"ServiceName\\": \\"Ecs\\",\\n \\"ServiceNameCn\\": \\"云服务器ECS\\",\\n \\"ServiceNameEn\\": \\"Elastic Compute Service\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000,\\n \\"UserName\\": \\"alice\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedInfoResponse>\\n <RequestId>239EB588-CD24-522E-B0B5-174A1A588BE0</RequestId>\\n <AccessKeyId>LTAI4Fz1ykT4qxgNMvN6****</AccessKeyId>\\n <AccountId>104758519118****</AccountId>\\n <OwnerId>24549429003625****</OwnerId>\\n <UserName>alice</UserName>\\n <AccountType>ram-user</AccountType>\\n <UsedTimestamp>1657247532000</UsedTimestamp>\\n <Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n <Source>ManagementEvent</Source>\\n <ServiceName>Ecs</ServiceName>\\n <ServiceNameCn>Elastic Compute Service (ECS)</ServiceNameCn>\\n <ServiceNameEn>Elastic Compute Service</ServiceNameEn>\\n</GetAccessKeyLastUsedInfoResponse>","errorExample":""}]',
+ ],
+ 'GetAccessKeyLastUsedIps' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'AccessKey ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于请求下一页检索的结果。'."\n"
+ ."\n"
+ .'> 请求参数必须保证和上次请求一致。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ .'取值范围:0~100。'."\n"
+ .'默认值:20。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Ips' => [
+ 'description' => '检索到的IP列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => '事件详情。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
+ .' "sourceIpAddress": "10.10.**.**",'."\n"
+ .' "eventType": "ApiCall",'."\n"
+ .' "userIdentity": {'."\n"
+ .' "accountId": "104758519118****",'."\n"
+ .' "principalId": "24549429003625****",'."\n"
+ .' "type": "ram-user",'."\n"
+ .' "userName": "alice"'."\n"
+ .' },'."\n"
+ .' "serviceName": "Ecs",'."\n"
+ .' "apiVersion": "2016-01-20",'."\n"
+ .' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
+ .' "eventTime": "2021-08-05T09:21:32Z",'."\n"
+ .' "isGlobal": false,'."\n"
+ .' "acsRegion": "cn-hangzhou",'."\n"
+ .' "eventName": "DescribeInstances"'."\n"
+ .'}',
+ ],
+ 'Ip' => [
+ 'description' => '最后使用的IP地址。',
+ 'type' => 'string',
+ 'example' => '10.10.**.**',
+ ],
+ 'Source' => [
+ 'description' => '最后使用记录来源。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => '其他事件',
+ 'ManagementEvent' => '管控事件',
+ 'DataEvent' => '数据事件',
+ ],
+ 'example' => 'ManagementEvent',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => '使用IP的时间戳。'."\n"
+ .'单位:毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ ],
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'NextToken' => [
+ 'description' => '用于请求下一页检索的结果。',
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询指定AccessKey的最后使用的IP记录',
+ 'summary' => '查询指定AccessKey的最后使用的IP记录。',
+ 'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的部分IP记录。因该数据存在一定的延迟(一般小时级),且仅支持部分IP,请您务必谨慎变更AccessKey。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedIps',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedIps',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Ips\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"Ip\\": \\"10.10.**.**\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedIpsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Ips>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t\\t<Ip>10.10.XX.XX</Ip>\\n\\t</Ips>\\t\\n <NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedIpsResponse>\\t","errorExample":""}]',
+ ],
+ 'GetAccessKeyLastUsedProducts' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'AccessKey ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Products' => [
+ 'description' => '检索到的云服务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => '事件详情。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
+ .' "sourceIpAddress": "10.10.**.**",'."\n"
+ .' "eventType": "ApiCall",'."\n"
+ .' "userIdentity": {'."\n"
+ .' "accountId": "104758519118****",'."\n"
+ .' "principalId": "24549429003625****",'."\n"
+ .' "type": "ram-user",'."\n"
+ .' "userName": "alice"'."\n"
+ .' },'."\n"
+ .' "serviceName": "Ecs",'."\n"
+ .' "apiVersion": "2016-01-20",'."\n"
+ .' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
+ .' "eventTime": "2021-08-05T09:21:32Z",'."\n"
+ .' "isGlobal": false,'."\n"
+ .' "acsRegion": "cn-hangzhou",'."\n"
+ .' "eventName": "DescribeInstances"'."\n"
+ .'}',
+ ],
+ 'ServiceName' => [
+ 'description' => '使用的云服务。',
+ 'type' => 'string',
+ 'example' => 'Ecs',
+ ],
+ 'ServiceNameCn' => [
+ 'description' => '云服务中文名称。',
+ 'type' => 'string',
+ 'example' => '云服务器ECS',
+ ],
+ 'ServiceNameEn' => [
+ 'description' => '云服务英文名称。',
+ 'type' => 'string',
+ 'example' => 'Elastic Compute Service',
+ ],
+ 'Source' => [
+ 'description' => '最后使用记录来源。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => '其他事件',
+ 'ManagementEvent' => '管控事件',
+ 'DataEvent' => '数据事件',
+ ],
+ 'example' => 'ManagementEvent',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => '使用云服务的时间戳。'."\n"
+ .'单位:毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ ],
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询指定AccessKey的最后使用的云服务记录',
+ 'summary' => '查询指定AccessKey的最后使用的云服务记录。',
+ 'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的云服务记录。因该数据存在一定的延迟(一般小时级),请您务必谨慎变更AccessKey。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedProducts',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedProducts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Products\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"ServiceName\\": \\"Ecs\\",\\n \\"ServiceNameCn\\": \\"云服务器ECS\\",\\n \\"ServiceNameEn\\": \\"Elastic Compute Service\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedProductsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Products>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t\\t<ServiceName>Ecs</ServiceName>\\n\\t\\t<ServiceNameCn>云服务器ECS</ServiceNameCn>\\n\\t\\t<ServiceNameEn>Elastic Compute Service</ServiceNameEn>\\n\\t</Products>\\n</GetAccessKeyLastUsedProductsResponse>\\t","errorExample":""}]',
+ ],
+ 'GetAccessKeyLastUsedResources' => [
+ 'summary' => '查询指定AccessKey的最后使用的资源记录。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'AccessKey ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI4Fz1ykT4qxgNMvN6****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于请求下一页检索的结果。'."\n"
+ .'>请求参数必须保证和上次请求一致。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ ."\n"
+ .'- 取值范围:0~100。'."\n"
+ .'- 默认值:20。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NextToken' => [
+ 'description' => '用于请求下一页检索的结果。',
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ 'Resources' => [
+ 'description' => '检索到的资源列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => '事件详情。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "eventId": "239EB588-CD24-522E-B0B5-174A1A58****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventSource": "ecs.cn-hangzhou.aliyuncs.com",'."\n"
+ .' "sourceIpAddress": "10.10.**.**",'."\n"
+ .' "eventType": "ApiCall",'."\n"
+ .' "userIdentity": {'."\n"
+ .' "accountId": "104758519118****",'."\n"
+ .' "principalId": "24549429003625****",'."\n"
+ .' "type": "ram-user",'."\n"
+ .' "userName": "alice"'."\n"
+ .' },'."\n"
+ .' "serviceName": "Ecs",'."\n"
+ .' "apiVersion": "2016-01-20",'."\n"
+ .' "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0",'."\n"
+ .' "eventTime": "2021-08-05T09:21:32Z",'."\n"
+ .' "isGlobal": false,'."\n"
+ .' "acsRegion": "cn-hangzhou",'."\n"
+ .' "eventName": "DescribeInstances"'."\n"
+ .'}',
+ ],
+ 'ResourceName' => [
+ 'description' => '资源名称。',
+ 'type' => 'string',
+ 'example' => 'i-bp1ltva99x1a****',
+ ],
+ 'ResourceType' => [
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'example' => 'ACS::ECS::Instance',
+ ],
+ 'Source' => [
+ 'description' => '最后使用记录来源。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => '其他事件',
+ 'ManagementEvent' => '管控事件',
+ 'DataEvent' => '数据事件',
+ ],
+ 'example' => 'ManagementEvent',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => '使用该资源的时间戳。'."\n"
+ .'单位:毫秒。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ ],
+ ],
+ ],
+ 'required' => true,
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ ],
+ ],
+ 'title' => '查询指定AccessKey的最后使用的资源记录',
+ 'description' => '本接口仅可查询自2022年02月01日起(最长400天),指定AccessKey最后使用的部分资源记录。因该数据存在一定的延迟(一般小时级),且仅支持部分资源,请您务必谨慎变更AccessKey。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedResources',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"Resources\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"ResourceName\\": \\"i-bp1ltva99x1a****\\",\\n \\"ResourceType\\": \\"ACS::ECS::Instance\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedResourcesResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Resources>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<ResourceName>i-bp1ltva99x1a****</ResourceName>\\n\\t\\t<ResourceType>ACS::ECS::Instance</ResourceType>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t</Resources>\\n\\t<NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedResourcesResponse>\\t","errorExample":""}]',
+ ],
+ 'GetAdvancedQueryTemplate' => [
+ 'summary' => '获取单个高级模版信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'utpl-N9fpjnFBSWauSXhVNP****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '32110C73-0004-5141-9DA7-4B8045C8173A',
+ ],
+ 'SimpleQuery' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'example' => 'false',
+ ],
+ 'TemplateId' => [
+ 'description' => '模板 ID。',
+ 'type' => 'string',
+ 'example' => 'utpl-N9fpjnFBSWauSXhVNP****',
+ ],
+ 'TemplateName' => [
+ 'description' => '模板名称。',
+ 'type' => 'string',
+ 'example' => 'example-template',
+ ],
+ 'TemplateSql' => [
+ 'description' => '查询语句。',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '获取单个高级模版信息',
+ 'responseParamsDescription' => '><notice>接口响应中仅包含 RequestId 而没有其他信息(如 SimpleQuery, TemplateName, TemplateSql 等),这通常意味着请求中的 TemplateId 可能存在错误或未被正确识别。请仔细检查提供的 TemplateId 是否符合预期格式,并确认该 TemplateId 在系统中确实存在。></notice>',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"32110C73-0004-5141-9DA7-4B8045C8173A\\",\\n \\"SimpleQuery\\": false,\\n \\"TemplateId\\": \\"utpl-N9fpjnFBSWauSXhVNP****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
+ ],
+ 'GetDataEventSelector' => [
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'trail-name',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataEventSelectors' => [
+ 'description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
+ ."\n"
+ .'json数组中每个元素字段说明:'."\n"
+ ."\n"
+ .'- `ServiceName`:支持的数据事件云产品名称'."\n"
+ .'- `ReadWriteType`: Read、Write、All'."\n"
+ .'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
+ ."\n"
+ .' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
+ ."\n"
+ .'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ ],
+ 'IsTrailAllRegion' => [
+ 'description' => '是否跟踪所有地域。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '90771C32-635B-529C-950C-75A9607D****',
+ ],
+ 'SlsDeliveryConfigs' => [
+ 'description' => 'SLS投递配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'SLS投递配置信息对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CreateTime' => [
+ 'description' => '跟踪创建的时间。',
+ 'type' => 'string',
+ 'example' => '2024-12-18T03:25:36Z',
+ ],
+ 'ErrorCode' => [
+ 'description' => '资源初始化失败时返回的错误码。',
+ 'type' => 'string',
+ 'example' => 'LogServiceException',
+ ],
+ 'ErrorMessage' => [
+ 'description' => '资源初始化失败时返回的错误信息。',
+ 'type' => 'string',
+ 'example' => 'RequestError Web request failed.',
+ ],
+ 'RegionSlsProjectArn' => [
+ 'description' => '跟踪投递的区域日志服务项目ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai',
+ ],
+ 'Status' => [
+ 'description' => '跟踪的资源初始化状态'."\n"
+ ."\n"
+ .'- success-成功'."\n"
+ .'- failure-失败',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'TrailArn' => [
+ 'description' => '跟踪的资源定位符。',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '获取数据事件选择器',
+ 'summary' => '本接口用于获取指定跟踪名称的数据事件选择器详细信息。',
+ 'responseParamsDescription' => '`EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDataEventSelector',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataEventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"IsTrailAllRegion\\": true,\\n \\"RequestId\\": \\"90771C32-635B-529C-950C-75A9607D****\\",\\n \\"SlsDeliveryConfigs\\": [\\n {\\n \\"CreateTime\\": \\"2024-12-18T03:25:36Z\\",\\n \\"ErrorCode\\": \\"LogServiceException\\",\\n \\"ErrorMessage\\": \\"RequestError Web request failed.\\",\\n \\"RegionSlsProjectArn\\": \\"acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai\\",\\n \\"Status\\": \\"success\\",\\n \\"TrailRegion\\": \\"cn-shanghai\\"\\n }\\n ],\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'GetDeliveryHistoryJob' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'JobId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '16602',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatedTime' => [
+ 'description' => '任务创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-05-27T07:15:03Z',
+ ],
+ 'EndTime' => [
+ 'description' => '任务结束时间。',
+ 'type' => 'string',
+ 'example' => '2021-05-27T07:20:03Z',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'JobId' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '16602',
+ ],
+ 'JobStatus' => [
+ 'description' => '任务状态。取值:'."\n"
+ ."\n"
+ .'- 0:任务正在初始化。'."\n"
+ .'- 1:任务投递中。'."\n"
+ .'- 2:任务投递完成。'."\n"
+ .'- 3:任务投递失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FAFEC427-A00D-5653-B837-D0FA52220D8C',
+ ],
+ 'StartTime' => [
+ 'description' => '任务开始时间。',
+ 'type' => 'string',
+ 'example' => '2021-02-26T07:15:03Z',
+ ],
+ 'Status' => [
+ 'description' => '各地域的任务状态列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'description' => '任务投递的地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Status' => [
+ 'description' => '各地域的任务状态。取值:'."\n"
+ ."\n"
+ .'- 0:任务正在初始化。'."\n"
+ .'- 1:任务投递中。'."\n"
+ .'- 2:任务投递完成。'."\n"
+ .'- 3:任务投递失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ 'TrailName' => [
+ 'description' => '任务关联的跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-name',
+ ],
+ 'UpdatedTime' => [
+ 'description' => '任务更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-05-27T07:28:47Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ ],
+ ],
+ 'title' => '查询数据回补投递任务详情',
+ 'summary' => '查询数据回补投递任务详情。',
+ 'description' => '本文将提供一个示例,查询投递任务ID为`16602`的数据回补投递任务详情。返回结果显示,该任务将跟踪`trail-name`的历史事件投递到日志服务SLS,且任务已经投递完成。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetDeliveryHistoryJob',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"CreatedTime\\": \\"2021-05-27T07:15:03Z\\",\\n \\"EndTime\\": \\"2021-05-27T07:20:03Z\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"JobId\\": 16602,\\n \\"JobStatus\\": 2,\\n \\"RequestId\\": \\"FAFEC427-A00D-5653-B837-D0FA52220D8C\\",\\n \\"StartTime\\": \\"2021-02-26T07:15:03Z\\",\\n \\"Status\\": [\\n {\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Status\\": 2\\n }\\n ],\\n \\"TrailName\\": \\"trail-name\\",\\n \\"UpdatedTime\\": \\"2021-05-27T07:28:47Z\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'GetGlobalEventsStorageRegion' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ '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' => '0474CD9D-DF37-55D4-8383-D265CFBE13A5',
+ ],
+ 'StorageRegion' => [
+ 'description' => '全局事件存储地域。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'ap-southeast-1' => 'ap-southeast-1',
+ 'cn-hangzhou' => 'cn-hangzhou',
+ ],
+ 'example' => 'ap-southeast-1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '查询全局事件存储地域',
+ 'summary' => '查询全局事件存储地域。',
+ 'description' => '默认您的全局事件存储在<props="china">华东1(杭州)</props>'."\n"
+ .'<props="intl">新加坡</props>。'."\n"
+ ."\n"
+ .'您需要通过提交工单,获取该接口的使用权限。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetGlobalEventsStorageRegion',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0474CD9D-DF37-55D4-8383-D265CFBE13A5\\",\\n \\"StorageRegion\\": \\"ap-southeast-1\\"\\n}","type":"json"}]',
+ ],
+ 'GetGovernanceMetrics' => [
+ 'summary' => '本接口用于查询操作审计成熟度。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回的数据内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountId' => [
+ 'description' => '阿里云账号ID。',
+ 'type' => 'string',
+ 'example' => '195622768501****',
+ ],
+ 'GovernanceMetrics' => [
+ 'description' => '治理项集合,包含多个合规评估维度。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ColumnsSchema' => [
+ 'description' => '治理资源详情。'."\n"
+ ."\n"
+ .'包含治理项下所有合规资源的详细配置信息,仅当存在具体资源实例时返回该字段。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "trailName": "trail-test",'."\n"
+ .' "homeRegion": "cn-hangzhou",'."\n"
+ .' "trailRegion": "All",'."\n"
+ .' "trailStatus": "Enable",'."\n"
+ .' "eventRW": "All",'."\n"
+ .' "isOrganizationTrail": false,'."\n"
+ .' "ossDeliveryStatus": "normal",'."\n"
+ .' "deliveryObjectLifeCycle": "999",'."\n"
+ .' "ossBucketLifeCycle": "999",'."\n"
+ .' "trailTotal": 100'."\n"
+ .'}',
+ ],
+ 'GovernanceItem' => [
+ 'description' => '治理项。表示具体的合规检查类别。',
+ 'type' => 'string',
+ 'example' => 'actiontrail_storage_audit_log',
+ ],
+ 'GovernanceScore' => [
+ 'description' => '治理项的合规评分。评分值范围:0~100。',
+ 'type' => 'string',
+ 'example' => '100',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '查询操作审计成熟度',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGovernanceMetrics',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"AccountId\\": \\"195622768501****\\",\\n \\"GovernanceMetrics\\": [\\n {\\n \\"ColumnsSchema\\": \\"{\\\\n \\\\\\"trailName\\\\\\": \\\\\\"trail-test\\\\\\",\\\\n \\\\\\"homeRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"trailRegion\\\\\\": \\\\\\"All\\\\\\",\\\\n \\\\\\"trailStatus\\\\\\": \\\\\\"Enable\\\\\\",\\\\n \\\\\\"eventRW\\\\\\": \\\\\\"All\\\\\\",\\\\n \\\\\\"isOrganizationTrail\\\\\\": false,\\\\n \\\\\\"ossDeliveryStatus\\\\\\": \\\\\\"normal\\\\\\",\\\\n \\\\\\"deliveryObjectLifeCycle\\\\\\": \\\\\\"999\\\\\\",\\\\n \\\\\\"ossBucketLifeCycle\\\\\\": \\\\\\"999\\\\\\",\\\\n \\\\\\"trailTotal\\\\\\": 100\\\\n}\\",\\n \\"GovernanceItem\\": \\"actiontrail_storage_audit_log\\",\\n \\"GovernanceScore\\": \\"100\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A****\\"\\n}","type":"json"}]',
+ ],
+ 'GetInsightSelectors' => [
+ 'summary' => '获取跟踪需投递的InsightTypes。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-name',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InsightSelectors' => [
+ 'description' => 'Insight事件类型数组',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Insight事件类型(JSON格式)。',
+ 'type' => 'string',
+ 'example' => '{"insightType":"AkInsight"}',
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D0227506-AA8C-5998-8A62-74769106****',
+ ],
+ 'TrailArn' => [
+ 'description' => '跟踪的资源定位符。',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => '获取洞察选择器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightSelectors\\": [\\n \\"{\\\\\\"insightType\\\\\\":\\\\\\"AkInsight\\\\\\"}\\"\\n ],\\n \\"RequestId\\": \\"D0227506-AA8C-5998-8A62-74769106****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'GetInsightTypes' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InsightTypes' => [
+ 'description' => 'Insight事件类型。',
+ 'type' => 'object',
+ 'example' => '{\'ApiCallRateInsight\': \'Enable\', \'ApiErrorRateInsight\': \'Enable\', \'IpInsight\': \'Enable\', \'AkInsight\': \'Enable\'}',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'EC4A1F64-4927-5714-B205-5A0B16A2****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => '获取审计事件洞察类型',
+ 'summary' => '获取用户开启的所有InsightTypes。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightTypes\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RequestId\\": \\"EC4A1F64-4927-5714-B205-5A0B16A2****\\"\\n}","type":"json"}]',
+ ],
+ 'GetInsightsEventsCount' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Date',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '指定查询日期。格式:`yyyy-MM-dd`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '检索事件的结束时间。日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。'."\n"
+ ."\n"
+ .'>- - 当Date、StartTime、EndTime都为空时,查询距今24小时内的日志量。'."\n"
+ .'>- - 当Date不为空时,StartTime与EndTime参数无效,查询Date内的日志量。'."\n"
+ .'>- - 当Date为空且StartTime和EndTime都不为空时,查询范围内的日志量。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07T06:00:00Z',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '检索事件的开始时间。日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2025-12-01T02:00:00Z',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回的数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回的数据对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Count' => [
+ 'description' => '事件数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'InsightType' => [
+ 'description' => 'Insight事件类型,取值:'."\n"
+ ."\n"
+ .'- IpInsight:IP请求事件。'."\n"
+ .'- ApiCallRateInsight:存在风险的API调用事件。'."\n"
+ .'- ApiErrorRateInsight:API错误事件。'."\n"
+ .'- AkInsight:AccessKey调用事件。'."\n"
+ .'- PolicyChangeInsight:权限变更事件。'."\n"
+ .'- PasswordChangeInsight:密码变更事件。'."\n"
+ .'- TrailConcealmentInsight:隐匿行踪事件。',
+ 'type' => 'string',
+ 'example' => 'IpInsight',
+ ],
+ 'RegionId' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ ],
+ 'NextToken' => [
+ 'description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidTimeRangeException',
+ 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。',
+ ],
+ ],
+ ],
+ 'title' => '获取洞察事件数量',
+ 'summary' => '获取当前账号的Insights事件数量。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Count\\": 3,\\n \\"InsightType\\": \\"IpInsight\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]',
+ ],
+ 'GetTrailStatus' => [
+ 'summary' => '查询跟踪的状态。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。 '."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。 '."\n"
+ ."\n"
+ .'> 同一账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ [
+ 'name' => 'IsOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询多账号跟踪状态,取值: '."\n"
+ ."\n"
+ .'- true:查询多账号跟踪状态。'."\n"
+ ."\n"
+ .'- false(默认值):查单账号跟踪状态。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8067369B-B923-4D26-85BC-61BF33922505',
+ ],
+ 'StartLoggingTime' => [
+ 'description' => '最近一次开启跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '2021-02-24T09:19:44Z',
+ ],
+ 'LatestDeliveryError' => [
+ 'description' => '最近一次行为跟踪异常的日志信息。',
+ 'type' => 'string',
+ 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1',
+ ],
+ 'StopLoggingTime' => [
+ 'description' => '最近一次停止跟踪的时间。',
+ 'type' => 'string',
+ 'example' => '2021-02-25T09:19:44Z',
+ ],
+ 'IsLogging' => [
+ 'description' => '是否开启日志记录,取值:'."\n"
+ ."\n"
+ .'- true:开启。 '."\n"
+ .'- false:关闭。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'LatestDeliveryTime' => [
+ 'description' => '最近一次成功记录行为的时间。',
+ 'type' => 'string',
+ 'example' => '2021-02-26T09:19:44Z',
+ ],
+ 'LatestDeliveryLogServiceError' => [
+ 'description' => '最近一次投递日志服务的错误信息。',
+ 'type' => 'string',
+ 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1',
+ ],
+ 'LatestDeliveryLogServiceTime' => [
+ 'description' => '最近一次成功投递日志服务的时间。',
+ 'type' => 'string',
+ 'example' => '2021-02-26T09:19:44Z',
+ ],
+ 'OssBucketStatus' => [
+ 'description' => 'OSS存储空间是否可用,取值:'."\n"
+ ."\n"
+ .'- true:可用。'."\n"
+ .'- false:不可用。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'SlsLogStoreStatus' => [
+ 'description' => 'SLS Logstore是否可用,取值:'."\n"
+ ."\n"
+ .'- true:可用。 '."\n"
+ .'- false:不可用。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ ],
+ ],
+ 'title' => '查询跟踪状态',
+ 'description' => '本文将提供一个示例,为您查询单账号跟踪`trail-test`的状态。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetTrailStatus',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetTrailStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"8067369B-B923-4D26-85BC-61BF33922505\\",\\n \\"StartLoggingTime\\": \\"2021-02-24T09:19:44Z\\",\\n \\"LatestDeliveryError\\": \\"write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\",\\n \\"StopLoggingTime\\": \\"2021-02-25T09:19:44Z\\",\\n \\"IsLogging\\": true,\\n \\"LatestDeliveryTime\\": \\"2021-02-26T09:19:44Z\\",\\n \\"LatestDeliveryLogServiceError\\": \\"write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\",\\n \\"LatestDeliveryLogServiceTime\\": \\"2021-02-26T09:19:44Z\\",\\n \\"OssBucketStatus\\": true,\\n \\"SlsLogStoreStatus\\": true\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'ListDataEventSelectors' => [
+ 'summary' => '本接口用于列举所有数据事件选择器。',
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页游标。用于请求下一页检索的结果。'."\n"
+ ."\n"
+ .'- 首次请求时置空。'."\n"
+ .'- 后续请求时传入上一次响应返回的`NextToken`值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'VjE6dLbnNpVmbz06****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ ."\n"
+ .'- 取值范围:1~100。'."\n"
+ .'- 默认值:20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataEventSelectorInfos' => [
+ 'description' => '数据事件选择器信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EventSelectors' => [
+ 'description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
+ ."\n"
+ .'json数组中每个元素字段说明:'."\n"
+ ."\n"
+ .'- `ServiceName`:支持的数据事件云产品名称'."\n"
+ .'- `ReadWriteType`: Read、Write、All'."\n"
+ .'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
+ ."\n"
+ .' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
+ ."\n"
+ .'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ ],
+ 'IsTrailAllRegion' => [
+ 'description' => '是否跟踪所有地域',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'SlsDeliveryConfigs' => [
+ 'description' => 'SLS投递配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'SLS投递配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2023-09-30T16:11Z',
+ ],
+ 'ErrorCode' => [
+ 'description' => '资源初始化失败时返回的错误码。',
+ 'type' => 'string',
+ 'example' => 'LogServiceException',
+ ],
+ 'ErrorMessage' => [
+ 'description' => '资源初始化失败时返回的错误信息。',
+ 'type' => 'string',
+ 'example' => 'RequestError Web request failed.',
+ ],
+ 'RegionSlsProjectArn' => [
+ 'description' => '跟踪投递的区域日志服务项目ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai',
+ ],
+ 'Status' => [
+ 'description' => '跟踪的资源初始化状态。',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ ],
+ ],
+ 'TrailArn' => [
+ 'description' => '跟踪的资源定位符。',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ ],
+ 'TrailName' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-name',
+ ],
+ ],
+ ],
+ ],
+ 'MaxResults' => [
+ 'description' => '本次请求所返回的最大记录条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'NextToken' => [
+ 'description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8A74FD2E-A9B9-461C-BCE9-D9668DF1****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '列举所有数据事件选择器',
+ 'responseParamsDescription' => '`EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventSelectors',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"DataEventSelectorInfos\\": [\\n {\\n \\"EventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"IsTrailAllRegion\\": true,\\n \\"SlsDeliveryConfigs\\": [\\n {\\n \\"CreateTime\\": \\"2023-09-30T16:11Z\\",\\n \\"ErrorCode\\": \\"LogServiceException\\",\\n \\"ErrorMessage\\": \\"RequestError Web request failed.\\",\\n \\"RegionSlsProjectArn\\": \\"acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai\\",\\n \\"Status\\": \\"success\\",\\n \\"TrailRegion\\": \\"cn-shanghai\\"\\n }\\n ],\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\",\\n \\"TrailName\\": \\"trail-name\\"\\n }\\n ],\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\"\\n },\\n \\"RequestId\\": \\"8A74FD2E-A9B9-461C-BCE9-D9668DF1****\\"\\n}","type":"json"}]',
+ ],
+ 'ListDataEventServices' => [
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页游标。用于请求下一页检索的结果。'."\n"
+ .'- 首次请求时置空。'."\n"
+ .'- 后续请求时传入上一次响应返回的`NextToken`值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'VjE6dLbnNpVmbz06****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ .'- 取值范围:1~100。'."\n"
+ .'- 默认值:20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'MaxResults' => [
+ 'description' => '本次请求所返回的最大记录条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'NextToken' => [
+ 'description' => '本次调用返回的查询凭证值。',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ ],
+ 'ServiceInfos' => [
+ 'description' => '支持云产品及对应云产品数据事件集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EventNames' => [
+ 'description' => '云产品支持数据事件集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '事件名称。',
+ 'type' => 'string',
+ 'example' => 'PutHybridMonitorMetricData',
+ ],
+ ],
+ 'ServiceName' => [
+ 'description' => '云产品名称。',
+ 'type' => 'string',
+ 'example' => 'Cms',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '查询数据事件支持服务与事件名称',
+ 'summary' => '本接口用于查询数据事件支持的服务与事件名称。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventServices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"ServiceInfos\\": [\\n {\\n \\"EventNames\\": [\\n \\"PutHybridMonitorMetricData\\"\\n ],\\n \\"ServiceName\\": \\"Cms\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
+ ],
+ 'ListDeliveryHistoryJobs' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时设置的每页行数。'."\n"
+ ."\n"
+ .'- 取值范围:1~100。'."\n"
+ .'- 默认值:20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100',
+ 'minimum' => '0',
+ 'example' => '20',
+ 'default' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务列表的页码。'."\n"
+ ."\n"
+ .'- 起始值:1。'."\n"
+ .'- 默认值:1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '2147483647',
+ 'minimum' => '0',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DeliveryHistoryJobs' => [
+ 'description' => '投递历史事件任务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatedTime' => [
+ 'description' => '任务创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-26T03:17:04Z',
+ ],
+ 'EndTime' => [
+ 'description' => '任务结束时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-26T03:22:04Z',
+ ],
+ 'HomeRegion' => [
+ 'description' => 'Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'JobId' => [
+ 'description' => '任务ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '16602',
+ ],
+ 'JobStatus' => [
+ 'description' => '任务状态。取值:'."\n"
+ ."\n"
+ .'- 0:任务正在初始化。'."\n"
+ .'- 1:任务投递中。'."\n"
+ .'- 2:任务投递完成。'."\n"
+ .'- 3:任务投递失败。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'StartTime' => [
+ 'description' => '任务开始时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-26T03:17:04Z',
+ ],
+ 'TrailName' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-name',
+ ],
+ 'UpdatedTime' => [
+ 'description' => '任务更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-04-26T03:20:08Z',
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => '任务列表的页码。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '分页查询时设置的每页行数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B190816C-6DCA-4DC5-9B8E-EE0367B57CFF',
+ ],
+ 'TotalCount' => [
+ 'description' => '任务数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 503 => [
+ [
+ 'errorCode' => 'ServiceUnavailable',
+ 'errorMessage' => 'The service is unavailable. Please try again later.',
+ 'description' => '系统暂时不可用,请稍后重试。',
+ ],
+ ],
+ ],
+ 'title' => '获取数据回补投递任务',
+ 'summary' => '查询数据回补投递任务列表。',
+ 'description' => '本文将提供一个示例,查询数据回补投递任务列表。返回结果显示有一条任务ID为`16602`的投递任务,它用来将跟踪`trail-name`的历史事件投递到日志服务SLS。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'ListDeliveryHistoryJobs',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDeliveryHistoryJobs',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"DeliveryHistoryJobs\\": [\\n {\\n \\"CreatedTime\\": \\"2021-04-26T03:17:04Z\\",\\n \\"EndTime\\": \\"2021-04-26T03:22:04Z\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"JobId\\": 16602,\\n \\"JobStatus\\": 2,\\n \\"StartTime\\": \\"2021-01-26T03:17:04Z\\",\\n \\"TrailName\\": \\"trail-name\\",\\n \\"UpdatedTime\\": \\"2021-04-26T03:20:08Z\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"RequestId\\": \\"B190816C-6DCA-4DC5-9B8E-EE0367B57CFF\\",\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'LookupEvents' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于请求下一页检索的结果。 '."\n"
+ ."\n"
+ .'> 请求参数必须保证和上次请求一致。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。 '."\n"
+ .'取值范围:1~50。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的开始时间,日期格式按照ISO8601标准,并使用UTC时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。'."\n"
+ .'>StartTime和EndTime需同时设置或均不设置,不设置时StartTime默认为当前时间7天前的时间点。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2020-10-08T11:00:00Z',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的结束时间,日期格式按照ISO8601标准,并使用UTC时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。'."\n"
+ .'>StartTime和EndTime需同时设置或均不设置,不设置时EndTime默认为当前时间点。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2020-10-15T11:00:00Z',
+ ],
+ ],
+ [
+ 'name' => 'Direction',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的读取顺序,取值:'."\n"
+ ."\n"
+ .'- FORWARD:正序。'."\n"
+ .'- BACKWARD(默认值):反序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'BACKWARD',
+ ],
+ ],
+ [
+ 'name' => 'LookupAttribute',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '检索条件。'."\n"
+ .'> 一次只能指定一个或两个检索条件,参考[限制说明](~~2920829~~)。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '检索条件的Key。取值请参见: [调用LookupEvents接口检索事件时如何设置LookupAttribute参数](~~2920829~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ServiceName',
+ ],
+ 'Value' => [
+ 'description' => '检索条件的Value。取值请参见: [调用LookupEvents接口检索事件时如何设置LookupAttribute参数](~~2920829~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Ecs',
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ ],
+ 'required' => false,
+ 'maxItems' => 2,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => '检索到事件的结束时间。',
+ 'type' => 'string',
+ 'example' => '2020-07-22T14:00:00Z',
+ ],
+ 'Events' => [
+ 'description' => '检索到的事件列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检索到的事件列表。'."\n"
+ ."\n"
+ .'关于事件列表中事件字段的说明,请参见[操作事件结构定义](~~28819~~)。',
+ 'type' => 'object',
+ 'example' => ' {'."\n"
+ .' "eventId": "6EEC3A76-C207-5075-889D-A909E62F****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventName": "GetTemplate"'."\n"
+ .' }',
+ ],
+ ],
+ 'NextToken' => [
+ 'description' => '返回下一页的检索结果。'."\n"
+ ."\n"
+ .'> 若无更多结果,则不返回此字段。',
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'FD79665A-CE8B-49D4-82E6-5EE2E0E7****',
+ ],
+ 'StartTime' => [
+ 'description' => '检索到事件的开始时间。',
+ 'type' => 'string',
+ 'example' => '2020-07-15T14:00:00Z',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => '结束时间必须晚于开始时间。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterEndTime',
+ 'errorMessage' => 'The specified EndTime is invalid.',
+ 'description' => '无效的参数EndTime。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTime',
+ 'errorMessage' => 'The specified StartTime is invalid.',
+ 'description' => '无效的参数StartTime。',
+ ],
+ ],
+ ],
+ 'title' => '检索详细事件',
+ 'summary' => '检索详细历史事件。',
+ 'description' => '> 请勿频繁调用该接口。您可以创建跟踪,将事件投递到日志服务SLS,通过SLS的实时消费功能来近实时地检索事件。具体操作,请参见[创建单账号跟踪](~~28810~~)、[创建多账号跟踪](~~160661~~)和[实时消费](~~28997~~)。',
+ 'requestParamsDescription' => ' 关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'LookupEvents',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:LookupEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": \\"2020-07-22T14:00:00Z\\",\\n \\"Events\\": [\\n {\\n \\"eventId\\": \\"6EEC3A76-C207-5075-889D-A909E62F****\\",\\n \\"eventVersion\\": 1,\\n \\"eventName\\": \\"GetTemplate\\"\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"FD79665A-CE8B-49D4-82E6-5EE2E0E7****\\",\\n \\"StartTime\\": \\"2020-07-15T14:00:00Z\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'LookupInsightEvents' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页游标。用于请求下一页检索的结果。'."\n"
+ ."\n"
+ .'- 首次请求时置空。'."\n"
+ .'- 后续请求时传入上一次响应返回的`NextToken`值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'VjE6dLbnNpVmbz06****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '允许返回的最大结果数目。'."\n"
+ ."\n"
+ .'- 取值范围:1~50(包含)。'."\n"
+ .'- 默认值:20。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的开始时间,默认为当前时间7天前的时间点。'."\n"
+ ."\n"
+ .'日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。'."\n"
+ ."\n"
+ .'> - 若时间跨度小于93天,查询范围内的时间。跨度超过93天时,只查询93天的内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07T04:10:00Z',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索事件的结束时间,默认为当前时间点。'."\n"
+ ."\n"
+ .'日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07T07:10:00Z',
+ ],
+ ],
+ [
+ 'name' => 'LookupAttribute',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '检索条件数组。'."\n"
+ ."\n"
+ .'> - 一次只能指定一个或两个检索条件,参考[限制说明](~~3011147~~)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检索条件。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '检索条件的 Key。取值请参见: [调用LookupInsightEvents接口检索Insights事件时如何设置LookupAttribute参数](~~3011147~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'InsightType',
+ ],
+ 'Value' => [
+ 'description' => '检索条件的 Value。取值请参见: [调用LookupInsightEvents接口检索Insights事件时如何设置LookupAttribute参数](~~3011147~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IpInsight',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 2,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Events' => [
+ 'description' => 'Insight事件对象列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Insight事件对象。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "eventId": "408ACD94-4531-4D66-BA14-1F7248AC****",'."\n"
+ .' "eventCategory": "Insight",'."\n"
+ .' "sharedEventId": "55CF0739-97D8-4221-A6BE-8E60E746****",'."\n"
+ .' "eventVersion": "1",'."\n"
+ .' "eventTime": "2026-01-07T05:40:00Z",'."\n"
+ .' "insightDetails": {'."\n"
+ .' "insightContext": {'."\n"
+ .' "attributions": ['."\n"
+ .' {'."\n"
+ .' "insight": ['."\n"
+ .' {'."\n"
+ .' "average": 3,'."\n"
+ .' "value": "AlibabaCloud API Workbench"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "attribute": "userAgent"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "insight": ['."\n"
+ .' {'."\n"
+ .' "average": 3,'."\n"
+ .' "value": "20376656170607****"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "attribute": "principalId"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "insight": ['."\n"
+ .' {'."\n"
+ .' "average": 3,'."\n"
+ .' "value": "Actiontrail/EnableInsight"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "attribute": "apiRelated"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "insight": ['."\n"
+ .' {'."\n"
+ .' "average": 3,'."\n"
+ .' "value": "null"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "attribute": "errorCode"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "statistics": {'."\n"
+ .' "insight": {'."\n"
+ .' "average": 3,'."\n"
+ .' "predict": 0'."\n"
+ .' },'."\n"
+ .' "insightDuration": 1,'."\n"
+ .' "baseline": {'."\n"
+ .' "threshold": 0.6'."\n"
+ .' },'."\n"
+ .' "insightCount": 3'."\n"
+ .' }'."\n"
+ .' },'."\n"
+ .' "state": "Start",'."\n"
+ .' "insightType": "IpInsight",'."\n"
+ .' "insightObject": "xxx.xxx.xxx.xxx"'."\n"
+ .' },'."\n"
+ .' "acsRegion": "cn-qingdao",'."\n"
+ .' "eventType": "ActionTrailInsight"'."\n"
+ .'}',
+ ],
+ ],
+ 'NextToken' => [
+ 'description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => '结束时间必须晚于开始时间。',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => '无效的查询参数。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterDateOutOfRange',
+ 'errorMessage' => 'Query time range exceeds 30 days.',
+ 'description' => '查询时间范围超出30天。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterEndTime',
+ 'errorMessage' => 'The specified EndTime is invalid.',
+ 'description' => '无效的参数EndTime。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTime',
+ 'errorMessage' => 'The specified StartTime is invalid.',
+ 'description' => '无效的参数StartTime。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeExceedsCurrent',
+ 'errorMessage' => 'The StartTime exceeds the current time. Use GMT time format for queries.',
+ 'description' => '开始时间超过当前时间,请使用标准GMT时间查询。',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeOutOfDate',
+ 'errorMessage' => 'The StartTime exceeds the limit of 90 days.',
+ 'description' => '开始时间超出90天限制。',
+ ],
+ [
+ 'errorCode' => 'InvalidTimeRangeException',
+ 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。',
+ ],
+ ],
+ ],
+ 'title' => '查询洞察事件',
+ 'summary' => '查询Insight事件。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Events\\": [\\n {\\n \\"eventId\\": \\"408ACD94-4531-4D66-BA14-1F7248AC****\\",\\n \\"eventCategory\\": \\"Insight\\",\\n \\"sharedEventId\\": \\"55CF0739-97D8-4221-A6BE-8E60E746****\\",\\n \\"eventVersion\\": \\"1\\",\\n \\"eventTime\\": \\"2026-01-07T05:40:00Z\\",\\n \\"insightDetails\\": {\\n \\"insightContext\\": {\\n \\"attributions\\": [\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"AlibabaCloud API Workbench\\"\\n }\\n ],\\n \\"attribute\\": \\"userAgent\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"20376656170607****\\"\\n }\\n ],\\n \\"attribute\\": \\"principalId\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"Actiontrail/EnableInsight\\"\\n }\\n ],\\n \\"attribute\\": \\"apiRelated\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"null\\"\\n }\\n ],\\n \\"attribute\\": \\"errorCode\\"\\n }\\n ],\\n \\"statistics\\": {\\n \\"insight\\": {\\n \\"average\\": 3,\\n \\"predict\\": 0\\n },\\n \\"insightDuration\\": 1,\\n \\"baseline\\": {\\n \\"threshold\\": 0.6\\n },\\n \\"insightCount\\": 3\\n }\\n },\\n \\"state\\": \\"Start\\",\\n \\"insightType\\": \\"IpInsight\\",\\n \\"insightObject\\": \\"xxx.xxx.xxx.xxx\\"\\n },\\n \\"acsRegion\\": \\"cn-qingdao\\",\\n \\"eventType\\": \\"ActionTrailInsight\\"\\n }\\n ],\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
+ ],
+ 'PutDataEventSelector' => [
+ 'path' => '',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'trail-name',
+ ],
+ ],
+ [
+ 'name' => 'EventSelectors',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
+ ."\n"
+ .'json数组中每个元素字段说明:'."\n"
+ ."\n"
+ .'- `ServiceName`:支持的数据事件云产品名称'."\n"
+ .'- `ReadWriteType`: Read、Write、All'."\n"
+ .'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
+ ."\n"
+ .' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
+ ."\n"
+ .'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ ],
+ ],
+ [
+ 'name' => 'IsTrailAllRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否跟踪所有地域。默认值为:`false`。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegionIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪地域列表,逗号分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai,cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataEventSelectors' => [
+ 'description' => '数据事件选择器配置。以json数组形式表示,数组大小上限为20。'."\n"
+ ."\n"
+ .'json数组中每个元素字段说明:'."\n"
+ ."\n"
+ .'- `ServiceName`:支持的数据事件云产品名称'."\n"
+ .'- `ReadWriteType`: Read、Write、All'."\n"
+ .'- `EventName`:内含两种字段,Equals与NotEquals'."\n"
+ ."\n"
+ .' 例如:如下配置代表只有GetObject、CopyObject、AppendObject的事件会被投递:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' 如果是NotEquals,代表不等于GetObject、CopyObject、AppendObject的事件会被投递。'."\n"
+ ."\n"
+ .'- `ResourceArn`:也是内含两种字段,Equals与NotEquals,参考`EventName`。例如:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '243E1250-32DA-493B-9347-3C7EEE07****',
+ ],
+ 'TrailArn' => [
+ 'description' => '跟踪的资源定位符。',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '设置数据事件选择器',
+ 'summary' => '本接口用于创建或设置数据事件选择器。请注意:如要使用本接口创建数据事件选择器,必须保证跟踪名称存在。如不存在,请先调用CreateTrail接口创建跟踪。',
+ 'requestParamsDescription' => '- `EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。'."\n"
+ .'- 如缺省`IsTrailAllRegion`参数或将其设置为`false`,则该参数为必填项。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:PutDataEventSelector',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataEventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"RequestId\\": \\"243E1250-32DA-493B-9347-3C7EEE07****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'PutInsightSelectors' => [
+ 'summary' => '设置跟踪需投递的InsightTypes。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-name',
+ ],
+ ],
+ [
+ 'name' => 'InsightSelectors',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Insight事件类型(JSON格式)数组。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '[{"insightType":"AkInsight"},{"insightType":"IpInsight"}]',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InsightSelectors' => [
+ 'description' => 'Insight事件类型数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Insight事件类型(JSON格式)。',
+ 'type' => 'string',
+ 'example' => '{"insightType":"AkInsight"}',
+ ],
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****',
+ ],
+ 'TrailArn' => [
+ 'description' => '跟踪的资源定位符。',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InsightSelectorDoesNotExistException',
+ 'errorMessage' => 'The special Selector is not existed.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => '设置洞察选择器',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightSelectors\\": [\\n \\"{\\\\\\"insightType\\\\\\":\\\\\\"AkInsight\\\\\\"}\\"\\n ],\\n \\"RequestId\\": \\"7EC26DF0-35AC-5F37-82B3-F5545D0A****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'StartLogging' => [
+ 'summary' => '启用跟踪,开始将操作审计事件投递到 OSS 或 SLS 或 MaxCompute。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要启用的跟踪名称。'."\n"
+ ."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ ],
+ ],
+ 'title' => '启用跟踪',
+ 'description' => '本文将提供一个示例,启用名为`trail-test`的跟踪。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'StartLogging',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StartLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'StopLogging' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要禁用的跟踪名称。'."\n"
+ ."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1C488B66-B819-4D14-8711-C4EAAA13AC01',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ ],
+ ],
+ 'title' => '禁用跟踪',
+ 'summary' => '停止跟踪,停止将操作审计事件投递到 OSS 或 SLS 或 MaxCompute。',
+ 'description' => '本文将提供一个示例,禁用名为`trail-test`的跟踪。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'StopLogging',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StopLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1C488B66-B819-4D14-8711-C4EAAA13AC01\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ 'UpdateAdvancedQueryTemplate' => [
+ 'summary' => '更新高级查询模板。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****',
+ ],
+ ],
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模板名称最大长度64。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-template',
+ ],
+ ],
+ [
+ 'name' => 'TemplateSql',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模版查询语句。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'event.eventName: ConsoleSignin AND event.userIdentity.type: root-account',
+ ],
+ ],
+ [
+ 'name' => 'SimpleQuery',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ 'SimpleQuery' => [
+ 'description' => '是否开启简单查询模式。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'TemplateId' => [
+ 'description' => '模板ID。',
+ 'type' => 'string',
+ 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****',
+ ],
+ 'TemplateName' => [
+ 'description' => '模板名称最大长度64。',
+ 'type' => 'string',
+ 'example' => 'example-template',
+ ],
+ 'TemplateSql' => [
+ 'description' => '模版查询语句。',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'title' => '更新高级查询模板',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"SimpleQuery\\": \\"true\\",\\n \\"TemplateId\\": \\"utpl-QNL3dpYkQcyjZxrIQC****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateGlobalEventsStorageRegion' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'StorageRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '全局事件存储地域。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'ap-southeast-1' => 'ap-southeast-1',
+ 'cn-hangzhou' => 'cn-hangzhou',
+ ],
+ 'example' => 'ap-southeast-1',
+ ],
+ ],
+ ],
+ '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' => 'D7A0694E-C8FE-574E-92E3-63C5B5D23BD4',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '设置全局事件存储地域',
+ 'summary' => '设置全局事件存储地域。',
+ 'description' => '默认您的全局事件存储在<props="china">华东1(杭州)</props>'."\n"
+ .'<props="intl">新加坡</props>。'."\n"
+ ."\n"
+ .'- 您需要通过提交工单,获取该接口的使用权限。'."\n"
+ .'- 当前仅支持设置为华东1(杭州)(cn-hangzhou)或新加坡(ap-southeast-1)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'UpdateGlobalEventsStorageRegion',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7A0694E-C8FE-574E-92E3-63C5B5D23BD4\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateTrail' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '要更新的跟踪名称。'."\n"
+ ."\n"
+ .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n"
+ ."\n"
+ .'> 同一个账号内跟踪名称不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ ],
+ ],
+ [
+ 'name' => 'OssBucketName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间名称。'."\n"
+ ."\n"
+ .'长度为3~63个字符,必须以小写英文字母或者数字开头,可包含小写英文字母、数字和短划线(-)。'."\n"
+ ."\n"
+ .'> 更新时必须确保该存储空间已经存在。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log',
+ ],
+ ],
+ [
+ 'name' => 'OssKeyPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的OSS存储空间文件名的前缀。'."\n"
+ ."\n"
+ .'长度为6~32个字符,必须以英文字母开头,可包含英文字母、数字、短划线(-)、正斜线(/)和下划线(_)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'at-product-account-audit-B',
+ ],
+ ],
+ [
+ 'name' => 'OssWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'SlsProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:log:cn-shanghai:151266687691****:project/test-project',
+ ],
+ ],
+ [
+ 'name' => 'SlsWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '投递事件的读写类型,取值:'."\n"
+ .'- Write(默认值):写类型。'."\n"
+ .'- Read:读类型。'."\n"
+ .'- All:读类型和写类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪的地域。'."\n"
+ .' '."\n"
+ .'- 默认值为All,表示跟踪全部地域的事件。 '."\n"
+ ."\n"
+ .'您也可以指定具体的地域。关于地域的更多信息,请调用[DescribeRegions](~~213597~~)接口查询。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '跟踪投递的大数据计算服务项目的ARN。'."\n"
+ ."\n"
+ .'> MaxComputeProjectArn中指定的大数据计算服务项目名称必须以actiontrail_作为前缀。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:odps:cn-hangzhou:、151277687691****:project/actiontrail_****',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n"
+ ."\n"
+ .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n"
+ .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151277687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SlsProjectArn' => [
+ 'description' => '跟踪投递的日志服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project',
+ ],
+ 'OssWriteRoleArn' => [
+ 'description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'EventRW' => [
+ 'description' => '投递事件的读写类型。',
+ 'type' => 'string',
+ 'example' => 'Write',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2599A180-5236-44D8-9490-50B6F4F8BA35',
+ ],
+ 'HomeRegion' => [
+ 'description' => '跟踪的Home地域。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'OSS存储空间文件名的前缀。',
+ 'type' => 'string',
+ 'example' => 'at-product-account-audit-B',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'OSS存储空间名称。',
+ 'type' => 'string',
+ 'example' => 'audit-log',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ 'TrailRegion' => [
+ 'description' => '跟踪的地域。',
+ 'type' => 'string',
+ 'example' => 'All',
+ ],
+ 'Name' => [
+ 'description' => '跟踪名称。',
+ 'type' => 'string',
+ 'example' => 'trail-test',
+ ],
+ 'MaxComputeProjectArn' => [
+ 'description' => '跟踪投递的大数据计算服务项目的ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****',
+ ],
+ 'MaxComputeWriteRoleArn' => [
+ 'description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'RepeatOssBucket',
+ 'errorMessage' => 'The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'SlsProjectDoesNotExistException',
+ 'errorMessage' => 'The specified Log Service project does not exist.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'errorCode' => 'InvalidDeliveryConfigurationException',
+ 'errorMessage' => 'You must specify at least one Log Service project or OSS bucket for a Trail.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidPrefixException',
+ 'errorMessage' => 'The specified OSS bucket prefix is invalid.',
+ 'description' => '指定的OSS前缀无效。',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InsufficientBucketPolicyException',
+ 'errorMessage' => 'Access to the specified OSS bucket was denied.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InsufficientSlsPolicyException',
+ 'errorMessage' => 'Access to the specified Log Service project was denied.',
+ 'description' => '无法访问指定的SLS Project。',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => '指定的跟踪不存在。',
+ ],
+ [
+ 'errorCode' => 'BucketDoesNotExistException',
+ 'errorMessage' => 'The specified OSS bucket does not exist.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => '更新跟踪',
+ 'summary' => '调整操作审计跟踪的配置信息。',
+ 'description' => '本文将提供一个示例,将跟踪`trail-test`投递的OSS存储空间更新为`audit-log`。',
+ 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'UpdateTrail',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"SlsProjectArn\\": \\"acs:log:cn-hangzhou:151266687691****:project/test-project\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"EventRW\\": \\"Write\\",\\n \\"RequestId\\": \\"2599A180-5236-44D8-9490-50B6F4F8BA35\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"OssKeyPrefix\\": \\"at-product-account-audit-B\\",\\n \\"OssBucketName\\": \\"audit-log\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"TrailRegion\\": \\"All\\",\\n \\"Name\\": \\"trail-test\\",\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'regionName' => '日本(东京)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.ap-northeast-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'regionName' => '韩国(首尔)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.ap-northeast-2.aliyuncs.com',
+ 'endpoint' => 'actiontrail.ap-northeast-2.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'regionName' => '新加坡',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.ap-southeast-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.ap-southeast-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'regionName' => '马来西亚(吉隆坡)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.ap-southeast-3.aliyuncs.com',
+ 'endpoint' => 'actiontrail.ap-southeast-3.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'regionName' => '印度尼西亚(雅加达)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.ap-southeast-5.aliyuncs.com',
+ 'endpoint' => 'actiontrail.ap-southeast-5.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'regionName' => '泰国(曼谷)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.ap-southeast-7.aliyuncs.com',
+ 'endpoint' => 'actiontrail.ap-southeast-7.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'regionName' => '华北2(北京)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-beijing.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-beijing.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'regionName' => '西南1(成都)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-chengdu.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-chengdu.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'regionName' => '华南3(广州)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-guangzhou.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-guangzhou.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'regionName' => '华东1(杭州)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'regionName' => '华南2(河源)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-heyuan.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-heyuan.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'regionName' => '中国香港',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-hongkong.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-hongkong.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'regionName' => '华北5(呼和浩特)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-huhehaote.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-huhehaote.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'regionName' => '华东5(南京-本地地域)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-nanjing.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-nanjing.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'regionName' => '华北1(青岛)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-qingdao.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-qingdao.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'regionName' => '华东2(上海)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-shanghai.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-shanghai.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'regionName' => '华南1(深圳)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-shenzhen.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-shenzhen.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'regionName' => '华北6(乌兰察布)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-wulanchabu.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-wulanchabu.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'regionName' => '华北3(张家口)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => '亚太',
+ 'public' => 'actiontrail.cn-zhangjiakou.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-zhangjiakou.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'regionName' => '美国(硅谷)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => '欧洲与美洲',
+ 'public' => 'actiontrail.us-west-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.us-west-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'regionName' => '美国(弗吉尼亚)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => '欧洲与美洲',
+ 'public' => 'actiontrail.us-east-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.us-east-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'na-south-1',
+ 'regionName' => '墨西哥',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => '欧洲与美洲',
+ 'public' => 'actiontrail.na-south-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.na-south-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.na-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'regionName' => '英国(伦敦)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => '欧洲与美洲',
+ 'public' => 'actiontrail.eu-west-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.eu-west-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'regionName' => '德国(法兰克福)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => '欧洲与美洲',
+ 'public' => 'actiontrail.eu-central-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.eu-central-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'regionName' => '阿联酋(迪拜)',
+ 'areaId' => 'middleEast',
+ 'areaName' => '中东',
+ 'public' => 'actiontrail.me-east-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.me-east-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'regionName' => '华东2 金融云',
+ 'areaId' => 'industryCloud',
+ 'areaName' => '行业云',
+ 'public' => 'actiontrail.cn-shanghai-finance-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-shanghai-finance-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'regionName' => '北京政务云',
+ 'areaId' => 'industryCloud',
+ 'areaName' => '行业云',
+ 'public' => 'actiontrail.cn-north-2-gov-1.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-north-2-gov-1.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-north-2-gov-1.aliyuncs.com',
+ ],
+ ],
+ 'errorCodes' => [
+ [
+ 'code' => 'BucketDoesNotExistException',
+ 'message' => 'The specified OSS Bucket does not exist.',
+ 'http_code' => 404,
+ 'description' => '指定的OSS Bucket不存在。',
+ ],
+ [
+ 'code' => 'CreateLogStoreError',
+ 'message' => 'Failed to create or update the logstore.',
+ 'http_code' => 400,
+ 'description' => '创建或更新logstore失败。',
+ ],
+ [
+ 'code' => 'DeliveryHistoryJobNotFound',
+ 'message' => 'The special DeliveryHistoryJob is not found',
+ 'http_code' => 404,
+ 'description' => '没有找到对应的历史投递任务',
+ ],
+ [
+ 'code' => 'ForbiddenDeleteTrail',
+ 'message' => 'This Trail has a running deliveryHistoryJob. Please remove the deliveryHistoryJob before deleting it.',
+ 'http_code' => 400,
+ 'description' => '该跟踪正在执行历史投递任务。请先删除历史投递任务。',
+ ],
+ [
+ 'code' => 'IncompleteSignature',
+ 'message' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'http_code' => 400,
+ 'description' => '签名不匹配。请检查AcceseKey ID和AccessKey Secret是否正确;检查签名方法是否正确。详细信息参见“签名机制”。',
+ ],
+ [
+ 'code' => 'InsightTypeNotValid',
+ 'message' => 'The input insightType is not valid',
+ 'http_code' => 400,
+ 'description' => '用户输入的参数不合法',
+ ],
+ [
+ 'code' => 'InsufficientBucketPolicyException',
+ 'message' => 'Access to the specified OSS Bucket was denied.',
+ 'http_code' => 403,
+ 'description' => '无法访问指定的OSS Bucket。',
+ ],
+ [
+ 'code' => 'InsufficientSlsPolicyException',
+ 'message' => 'Access to the specified Log Service project was denied.',
+ 'http_code' => 403,
+ 'description' => '无法访问指定的SLS Project。',
+ ],
+ [
+ 'code' => 'InternalError',
+ 'message' => 'An error occurred while processing your request. Please try again. If the problem still exists, submit a ticket.',
+ 'http_code' => 500,
+ 'description' => '内部错误,请重试。如果多次尝试失败,请提交工单。',
+ ],
+ [
+ 'code' => 'InternalFailure',
+ 'message' => 'The request has failed due to a temporary failure of the server',
+ 'http_code' => 500,
+ 'description' => '请求失败',
+ ],
+ [
+ 'code' => 'InternalServerError',
+ 'message' => 'The target server failed to respond',
+ 'http_code' => 500,
+ 'description' => '目标服务器未响应',
+ ],
+ [
+ 'code' => 'InvalidAcceptLanguage',
+ 'message' => 'Only Chinese (zh-CN), English (en-US) are allowed.',
+ 'http_code' => 400,
+ 'description' => '您选择的语言类型无效,现在只支持中文、英语',
+ ],
+ [
+ 'code' => 'InvalidAction',
+ 'message' => 'The specified Action is invalid.',
+ 'http_code' => 404,
+ 'description' => '指定的Action无效。',
+ ],
+ [
+ 'code' => 'InvalidDeliveryConfigurationException',
+ 'message' => 'You must specify at least one Log Service Project or OSS Bucket for a Trail.',
+ 'http_code' => 400,
+ 'description' => '跟踪至少指定一个投递的SLS Project或OSS Bucket。',
+ ],
+ [
+ 'code' => 'InvalidLookupAttributesException',
+ 'message' => 'LookupAttribute Key is not valid. Only support specific values or combinations.',
+ 'http_code' => 400,
+ 'description' => '检索条件的Key设置不正确。仅支持设置指定的检索条件或组合。',
+ ],
+ [
+ 'code' => 'InvalidNextToken',
+ 'message' => 'NextToken is not valid.',
+ 'http_code' => 400,
+ 'description' => 'NextToken不合法。',
+ ],
+ [
+ 'code' => 'InvalidParameterCombination',
+ 'message' => 'The end time must be later than the start time.',
+ 'http_code' => 400,
+ 'description' => '结束时间必须晚于开始时间。',
+ ],
+ [
+ 'code' => 'InvalidParameterDateOutOfRange',
+ 'message' => 'Query time range exceeds 30 days.',
+ 'http_code' => 400,
+ 'description' => '查询时间范围超出30天。',
+ ],
+ [
+ 'code' => 'InvalidParameterEndTime',
+ 'message' => 'The specified EndTime is invalid.',
+ 'http_code' => 400,
+ 'description' => '无效的参数EndTime。',
+ ],
+ [
+ 'code' => 'InvalidParameterStartTime',
+ 'message' => 'The specified StartTime is invalid.',
+ 'http_code' => 400,
+ 'description' => '无效的参数StartTime。',
+ ],
+ [
+ 'code' => 'InvalidParameterStartTimeExceedsCurrent',
+ 'message' => 'The StartTime exceeds the current time. Use GMT time format for queries.',
+ 'http_code' => 400,
+ 'description' => '开始时间超过当前时间,请使用标准GMT时间查询。',
+ ],
+ [
+ 'code' => 'InvalidParameterStartTimeOutOfDate',
+ 'message' => 'The StartTime exceeds the limit of 90 days.',
+ 'http_code' => 400,
+ 'description' => '开始时间超出90天限制。',
+ ],
+ [
+ 'code' => 'InvalidParameterValue',
+ 'message' => 'The specified parameter is invalid.',
+ 'http_code' => 400,
+ 'description' => '参数不合法。',
+ ],
+ [
+ 'code' => 'InvalidPrefixException',
+ 'message' => 'The specified OSS bucket prefix is invalid.',
+ 'http_code' => 400,
+ 'description' => '指定的OSS前缀无效。',
+ ],
+ [
+ 'code' => 'InvalidQueryParameter',
+ 'message' => 'The specified query parameter is invalid.',
+ 'http_code' => 400,
+ 'description' => '无效的查询参数。',
+ ],
+ [
+ 'code' => 'InvalidTimeRangeException',
+ 'message' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ 'http_code' => 400,
+ 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。',
+ ],
+ [
+ 'code' => 'InvalidTrailNameException',
+ 'message' => 'The specified Trail name is invalid.',
+ 'http_code' => 400,
+ 'description' => '跟踪名称无效,请修改。',
+ ],
+ [
+ 'code' => 'LogServiceException',
+ 'message' => 'RequestError Web request failed.',
+ 'http_code' => 400,
+ 'description' => '请求SLS服务失败。',
+ ],
+ [
+ 'code' => 'LookupEventsParameterError',
+ 'message' => 'LookupEvents params error.',
+ 'http_code' => 400,
+ 'description' => 'LookupEvents请求参数错误。',
+ ],
+ [
+ 'code' => 'MaximumNumberOfDeliveryHistoryJobsExceededException',
+ 'message' => 'There can only be one running deliveryHistoryJob',
+ 'http_code' => 400,
+ 'description' => '最多只能有一个正在执行的历史投递任务',
+ ],
+ [
+ 'code' => 'MaximumNumberOfOrganizationTrailExceeded',
+ 'message' => 'Your account can create only one organization trail.',
+ 'http_code' => 400,
+ 'description' => '您的账号只能创建一个多账号跟踪。',
+ ],
+ [
+ 'code' => 'MaximumNumberOfTrailsExceededException',
+ 'message' => 'The number of Trails in the same region exceeds the upper limit (5).',
+ 'http_code' => 403,
+ 'description' => ' 同一地域最多可以创建5个跟踪。',
+ ],
+ [
+ 'code' => 'NeedOssRamAuthorize',
+ 'message' => 'The role not exists',
+ 'http_code' => 403,
+ 'description' => '角色不存在',
+ ],
+ [
+ 'code' => 'NeedServiceLinkedRole',
+ 'message' => 'The role not exists: acs:ram::[accountid]:role/aliyunserviceroleforactiontrail.',
+ 'http_code' => 403,
+ 'description' => '缺少操作审计服务关联角色。',
+ ],
+ [
+ 'code' => 'NeedSlsRamAuthorize',
+ 'message' => 'The role not exists',
+ 'http_code' => 403,
+ 'description' => '角色不存在',
+ ],
+ [
+ 'code' => 'NoPermission',
+ 'message' => 'You are not authorized to perform this operation. Please apply for access in RAM first.',
+ 'http_code' => 403,
+ 'description' => '无权执行该操作,请您先在RAM中申请授权,再进行此操作。',
+ ],
+ [
+ 'code' => 'NotAllowCreateOrganizationTrail',
+ 'message' => 'Your account does not allow you to create organization trail. Submit a ticket to get customer support.',
+ 'http_code' => 400,
+ 'description' => '您的账号不允许创建多账号跟踪,请提交工单联系客户支持。',
+ ],
+ [
+ 'code' => 'NotSupportDeliveryHistoryJob',
+ 'message' => 'Your account does not allow you to use deliveryHistoryJob feature. Submit a ticket to get customer support.',
+ 'http_code' => 400,
+ 'description' => '您的帐号目前不能使用投递历史任务功能,请提交工单申请开通。',
+ ],
+ [
+ 'code' => 'RepeatOssBucket',
+ 'message' => 'The specified OSS Bucket is already in use. We recommend that you modify the existing Trail or specify another Bucket.',
+ 'http_code' => 400,
+ 'description' => '当前指定的OSS Bucket已经被使用,建议您修改之前的跟踪或指定新的Bucket。',
+ ],
+ [
+ 'code' => 'ServiceTrailNotExist',
+ 'message' => 'This account serviceTrail not existed.',
+ 'http_code' => 400,
+ 'description' => '账号下指定的服务跟踪不存在。',
+ ],
+ [
+ 'code' => 'ServiceUnavailable',
+ 'message' => 'The service is unavailable. Please try again later.',
+ 'http_code' => 503,
+ 'description' => '系统暂时不可用,请稍后重试。',
+ ],
+ [
+ 'code' => 'SlsLogStoreDoesNotExistException',
+ 'message' => 'LogStoreDoesNotExist.',
+ 'http_code' => 404,
+ 'description' => '指定的Logstore不存在。',
+ ],
+ [
+ 'code' => 'SlsProjectDoesNotExistException',
+ 'message' => 'The specified Log Service Project does not exist.',
+ 'http_code' => 400,
+ 'description' => '当前指定的SLS Project 不存在。',
+ ],
+ [
+ 'code' => 'TrailAlreadyExistsException',
+ 'message' => 'The specified Trail name already exists.',
+ 'http_code' => 400,
+ 'description' => '您输入的跟踪名称已存在,如需创建新跟踪请修改跟踪名称。',
+ ],
+ [
+ 'code' => 'TrailNotFoundException',
+ 'message' => 'The specified Trail does not exist.',
+ 'http_code' => 404,
+ 'description' => '指定的跟踪不存在。',
+ ],
+ [
+ 'code' => 'TrailNotValid',
+ 'message' => 'The special Trail is not valid.',
+ 'http_code' => 400,
+ 'description' => '不支持的跟踪。',
+ ],
+ [
+ 'code' => 'AnalysisTimeRangeExceeded',
+ 'message' => 'The time range between StartTime and EndTime cannot exceed 7 days.',
+ 'http_code' => 400,
+ 'description' => 'StartTime 和 EndTime 之间的时间范围不能超过 7 天。',
+ ],
+ ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'StopLogging',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'UpdateTrail',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'CreateTrail',
+ ],
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DescribeTrails',
+ ],
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetGlobalEventsStorageRegion',
+ ],
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetTrailStatus',
+ ],
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedResources',
+ ],
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetDeliveryHistoryJob',
+ ],
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedProducts',
+ ],
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedInfo',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'StartLogging',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'CreateDeliveryHistoryJob',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DeleteTrail',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'UpdateGlobalEventsStorageRegion',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'EnableInsight',
+ ],
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedIps',
+ ],
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'ListDeliveryHistoryJobs',
+ ],
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DescribeRegions',
+ ],
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'LookupEvents',
+ ],
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DeleteDeliveryHistoryJob',
+ ],
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedEvents',
+ ],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'ActionTrail',
+ 'productName' => '操作审计',
+ 'ramCodes' => [
+ 'actiontrail',
+ ],
+ 'ramLevel' => '操作级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetAccessKeyLastUsedEvents',
+ 'description' => '查询指定AccessKey的最后使用的事件记录',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAdvancedQueryHistory',
+ 'description' => '删除高级查询历史',
+ 'operationType' => 'delete',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateDeliveryHistoryJob',
+ 'description' => '创建数据回补投递任务',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteDeliveryHistoryJob',
+ 'description' => '删除数据回补投递任务',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeSearchTemplates',
+ 'description' => '查询高级查询系统模板',
+ 'operationType' => 'list',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeSearchTemplates',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StartLogging',
+ 'description' => '启用跟踪',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StartLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateGlobalEventsStorageRegion',
+ 'description' => '设置全局事件存储地域',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'ActionTrailVirtual',
+ 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetGovernanceMetrics',
+ 'description' => '查询操作审计成熟度',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGovernanceMetrics',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDeliveryHistoryJobs',
+ 'description' => '获取数据回补投递任务',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDeliveryHistoryJobs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeTrails',
+ 'description' => '查询某地域的跟踪列表',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeTrails',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeUserLogCount',
+ 'description' => '查询用户时间段内每日日志量',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserLogCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAdvancedQueryHistory',
+ 'description' => '创建高级查询历史',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'EnableInsight',
+ 'description' => '开启审计事件洞察',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:EnableInsight',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StopLogging',
+ 'description' => '禁用跟踪',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StopLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAdvancedQueryTemplate',
+ 'description' => '获取单个高级模版信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetGlobalEventsStorageRegion',
+ 'description' => '查询全局事件存储地域',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'ActionTrailVirtual',
+ 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedProducts',
+ 'description' => '查询指定AccessKey的最后使用的云服务记录',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedProducts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedInfo',
+ 'description' => '查询指定AccessKey的最后使用记录',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTrailStatus',
+ 'description' => '查询跟踪状态',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetTrailStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDeliveryHistoryJob',
+ 'description' => '查询数据回补投递任务详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeScenes',
+ 'description' => '查询高级查询场景',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeScenes',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDataEventSelector',
+ 'description' => '获取数据事件选择器',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutDataEventSelector',
+ 'description' => '设置数据事件选择器',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:PutDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'LookupEvents',
+ 'description' => '检索详细事件',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:LookupEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAdvancedQueryTemplate',
+ 'description' => '删除高级查询模板',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteTrail',
+ 'description' => '删除跟踪',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateTrail',
+ 'description' => '更新跟踪',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedResources',
+ 'description' => '查询指定AccessKey的最后使用的资源记录',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvancedQueryTemplate',
+ 'description' => '查询高级查询模板',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeResourceLifeCycleEvents',
+ 'description' => '查询资源生命周期事件',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeResourceLifeCycleEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteDataEventSelector',
+ 'description' => '删除数据事件选择器',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAdvancedQueryTemplate',
+ 'description' => '创建高级查询模板',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDataEventSelectors',
+ 'description' => '列举所有数据事件选择器',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventSelectors',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedIps',
+ 'description' => '查询指定AccessKey的最后使用的IP记录',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedIps',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateTrail',
+ 'description' => '创建跟踪',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeUserAlertCount',
+ 'description' => '查询用户时间段内每日告警量',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserAlertCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDataEventServices',
+ 'description' => '查询数据事件支持服务与事件名称',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventServices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvancedQueryHistory',
+ 'description' => '查询高级查询历史',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => '全部资源',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAdvancedQueryTemplate',
+ 'description' => '更新高级查询模板',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'ActionTrailVirtual',
+ 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+];