From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/zh_cn/actiontrail/2015-09-28/api-docs.php | 456 +- data/zh_cn/actiontrail/2017-12-04/api-docs.php | 1459 ++---- data/zh_cn/actiontrail/2020-07-06/api-docs.php | 6584 +++++++----------------- 3 files changed, 2169 insertions(+), 6330 deletions(-) (limited to 'data/zh_cn/actiontrail') diff --git a/data/zh_cn/actiontrail/2015-09-28/api-docs.php b/data/zh_cn/actiontrail/2015-09-28/api-docs.php index e00cd7a..7465294 100644 --- a/data/zh_cn/actiontrail/2015-09-28/api-docs.php +++ b/data/zh_cn/actiontrail/2015-09-28/api-docs.php @@ -1,18 +1,12 @@ '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Actiontrail', - 'version' => '2015-09-28', - ], + 'info' => ['style' => 'RPC', 'product' => 'Actiontrail', 'version' => '2015-09-28'], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', - 'children' => [ - 'LookupEvents', - ], + 'children' => ['LookupEvents'], ], ], 'components' => [ @@ -21,13 +15,8 @@ 'apis' => [ 'LookupEvents' => [ 'summary' => '检索详细历史事件', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -38,138 +27,88 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], ], 'parameters' => [ [ 'name' => 'Type', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Help', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Event', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Request', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EventType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ServiceName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EventName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'User', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EventRW', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EventAccessKeyId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -177,300 +116,91 @@ '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', - ], + '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.', - ], + ['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.', - ], + ['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', - ], + ['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 index 9ab5cb2..2382f09 100644 --- a/data/zh_cn/actiontrail/2017-12-04/api-docs.php +++ b/data/zh_cn/actiontrail/2017-12-04/api-docs.php @@ -1,40 +1,24 @@ '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Actiontrail', - 'version' => '2017-12-04', - ], + 'info' => ['style' => 'RPC', 'product' => 'Actiontrail', 'version' => '2017-12-04'], 'directories' => [ [ 'id' => 5314, 'title' => '地域', 'type' => 'directory', - 'children' => [ - 'DescribeRegions', - ], + 'children' => ['DescribeRegions'], ], [ 'id' => 5316, 'title' => '跟踪', 'type' => 'directory', - 'children' => [ - 'CreateTrail', - 'DeleteTrail', - 'StartLogging', - 'StopLogging', - 'UpdateTrail', - 'DescribeTrails', - 'GetTrailStatus', - ], + 'children' => ['CreateTrail', 'DeleteTrail', 'StartLogging', 'StopLogging', 'UpdateTrail', 'DescribeTrails', 'GetTrailStatus'], ], [ 'id' => 5318, 'title' => '事件', 'type' => 'directory', - 'children' => [ - 'LookupEvents', - ], + 'children' => ['LookupEvents'], ], ], 'components' => [ @@ -43,14 +27,8 @@ 'apis' => [ 'DescribeRegions' => [ 'summary' => '查询操作审计支持的阿里云地域。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -62,9 +40,7 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [], @@ -74,11 +50,7 @@ 'description' => 'test', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '4ABAEA6E-C740-5CE2-A003-643E551964F5', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4ABAEA6E-C740-5CE2-A003-643E551964F5'], 'Regions' => [ 'description' => '地域列表。', 'type' => 'object', @@ -90,11 +62,7 @@ 'description' => 'test', 'type' => 'object', 'properties' => [ - 'RegionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], + 'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-shanghai'], ], ], ], @@ -113,14 +81,8 @@ ], 'CreateTrail' => [ 'summary' => '创建操作审计跟踪。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -132,136 +94,82 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '创建的跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" - .'>同一个账号内跟踪名称不可重复。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-test', - ], + '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', - ], + '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', - ], + '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', - ], + '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/***', - ], + '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', - ], + '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', - ], + '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', - ], + '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:::/topics/`。填写此参数后,向OSS中投递事件时,会产生一条消息投递到该MNS Topic。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name', - ], + 'schema' => ['description' => '用于接收操作审计事件的轻量消息队列(原 MNS) Topic的ARN,格式为:`acs:mns:::/topics/`。填写此参数后,向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', - ], + 'schema' => ['description' => '是否创建多账号跟踪。取值: '."\n" + ."\n" + .'- true:创建多账号跟踪。 '."\n" + ."\n" + .'- false(默认值):创建单账号跟踪。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ @@ -270,123 +178,40 @@ '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', - ], + '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.', - ], + ['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' => '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.', - ], + ['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":"\\n aliyunserviceroleforactiontrail\\n Write\\n AB7A5AE1-EC3C-4C00-91B0-BE7BDEE354AE\\n cn-hangzhou\\n audit-log\\n All\\n trail-test\\n","errorExample":""}]', @@ -405,14 +230,8 @@ ], 'DeleteTrail' => [ 'summary' => '删除操作审计跟踪。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -424,24 +243,16 @@ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], ], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '要删除的跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" - ."\n" - .'> 同一个账号内跟踪名称不可重复。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'my-test', - ], + 'schema' => ['description' => '要删除的跟踪名称。 '."\n" + .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" + ."\n" + .'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my-test'], ], ], 'responses' => [ @@ -450,21 +261,14 @@ 'description' => 'test', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - ], + ['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":""}]', @@ -475,13 +279,8 @@ ], 'StartLogging' => [ 'summary' => '启用跟踪,开始将操作审计事件投递到 OSS 或 SLS。', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -493,25 +292,16 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - 'FEATUREactiontrailK0OCFQ', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI', 'FEATUREactiontrailK0OCFQ'], ], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '要启用的跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" - ."\n" - .'>同一个账号内跟踪名称不可重复。 ', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-test', - ], + 'schema' => ['description' => '要启用的跟踪名称。 '."\n" + .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" + ."\n" + .'>同一个账号内跟踪名称不可重复。 ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'], ], ], 'responses' => [ @@ -520,21 +310,14 @@ 'description' => 'test', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - ], + ['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":"\\n 1C488B66-B819-4D14-8711-C4EAAA13AC01\\n","errorExample":""}]', @@ -545,13 +328,8 @@ ], 'StopLogging' => [ 'summary' => '停止跟踪,停止将操作审计事件投递到 OSS 或 SLS。', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -563,24 +341,16 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], ], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '要禁用的跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" - ."\n" - .'> 同一个账号内跟踪名称不可重复。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-test', - ], + 'schema' => ['description' => '要禁用的跟踪名称。 '."\n" + .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" + ."\n" + .'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'], ], ], 'responses' => [ @@ -589,21 +359,14 @@ 'description' => 'test', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - ], + ['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":"\\n 1C488B66-B819-4D14-8711-C4EAAA13AC01\\n","errorExample":""}]', @@ -614,14 +377,8 @@ ], 'UpdateTrail' => [ 'summary' => '调整操作审计跟踪的配置信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -633,126 +390,77 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - 'FEATUREactiontrailK0OCFQ', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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:::/topics/`。填写此参数后,向OSS中投递事件时,会产生一条消息投递到该MNS Topic。 ', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name', - ], + 'schema' => ['description' => '用于接收操作审计事件的MNS Topic的ARN,格式为:`acs:mns:::/topics/`。填写此参数后,向OSS中投递事件时,会产生一条消息投递到该MNS Topic。 ', 'type' => 'string', 'required' => false, 'example' => 'acs:mns:cn-hangzhou:1111:/topics/your-topic-name'], ], ], 'responses' => [ @@ -761,107 +469,36 @@ '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', - ], + '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.', - ], + ['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' => '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.', - ], + ['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":"\\n acs:log:cn-hangzhou:159498693826****:project/trail-test\\n aliyunserviceroleforactiontrail\\n All\\n 145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\n cn-hangzhou\\n audit-log\\n acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\n All\\n trail-test\\n","errorExample":""}]', @@ -873,14 +510,8 @@ ], 'DescribeTrails' => [ 'summary' => '查看已创建的跟踪列表。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -892,48 +523,30 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], ], 'parameters' => [ [ 'name' => 'IncludeShadowTrails', 'in' => 'query', - 'schema' => [ - 'description' => '是否显示影子跟踪,取值:'."\n" - ."\n" - .'- false(默认值):不显示。'."\n" - .'- true:显示。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '是否查询多账号跟踪。取值: '."\n" + ."\n" + .'- true:查询多账号跟踪。'."\n" + ."\n" + .'- false(默认值):不查询多账号跟踪,即查询单账号跟踪。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'true'], ], ], 'responses' => [ @@ -942,11 +555,7 @@ 'description' => 'test', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '10313D41-C40A-4D53-ACA0-0190334DF81C', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '10313D41-C40A-4D53-ACA0-0190334DF81C'], 'TrailList' => [ 'description' => '跟踪列表。', 'type' => 'array', @@ -954,99 +563,35 @@ '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:::/topics/`。填写此参数后,向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', - ], + '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:::/topics/`。填写此参数后,向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'], ], ], ], @@ -1056,14 +601,8 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidTrailNameException', - 'errorMessage' => 'The specified Trail name is invalid.', - ], - [ - 'errorCode' => 'InvalidQueryParameter', - 'errorMessage' => 'The specified query parameter is invalid.', - ], + ['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":"\\n 10313D41-C40A-4D53-ACA0-0190334DF81C\\n \\n Enable\\n acs:mns:cn-hangzhou:1111:/topics/your-topic-name\\n cn-hangzhou\\n 1619407012000\\n 1614580048000\\n 1617674944000\\n acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\n All\\n test-4\\n false\\n acs:log:cn-hangzhou:159498693826****:project/alice-audit-log\\n aliyunactiontraildefaultrole\\n Write\\n 1619407012000\\n trail1\\n secloud\\n \\n","errorExample":""}]', @@ -1075,14 +614,8 @@ ], 'GetTrailStatus' => [ 'summary' => '查看跟踪状态。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1094,37 +627,24 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], ], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" - .'>同一账号内跟踪名称不可重复。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-test', - ], + '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', - ], + 'schema' => ['description' => '是否查询多账号跟踪的状态。取值: '."\n" + ."\n" + .'- true:查询多账号跟踪的状态。 '."\n" + ."\n" + .'- false(默认值):不查询多账号跟踪的状态,即查询单账号跟踪的状态。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ @@ -1133,46 +653,19 @@ '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', - ], + '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.', - ], + ['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":"\\n 8FFD2DE7-74F0-4582-A4CB-BF6523FEF06C\\n 2021-03-31T04:06:41Z\\n write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\n 2021-04-02T02:36:56Z\\n false\\n","errorExample":""}]', @@ -1184,14 +677,8 @@ ], 'LookupEvents' => [ 'summary' => '检索历史操作事件。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1203,175 +690,103 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'Event', 'in' => 'query', - 'schema' => [ - 'description' => '事件ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'AD9CD9DA-EC2D-4EB7-A817-C0442A94****', - ], + '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****', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '云服务名称。', 'type' => 'string', 'required' => false, 'example' => 'AsaSub'], ], [ 'name' => 'EventName', 'in' => 'query', - 'schema' => [ - 'description' => '事件名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'ConsoleSignin', - ], + 'schema' => ['description' => '事件名称。', 'type' => 'string', 'required' => false, 'example' => 'ConsoleSignin'], ], [ 'name' => 'User', 'in' => 'query', - 'schema' => [ - 'description' => '调用者名称,即RAM用户。', - 'type' => 'string', - 'required' => false, - 'example' => 'yanjie.wyj', - ], + 'schema' => ['description' => '调用者名称,即RAM用户。', 'type' => 'string', 'required' => false, 'example' => 'yanjie.wyj'], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'description' => '资源类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'Instance', - ], + 'schema' => ['description' => '资源类型。', 'type' => 'string', 'required' => false, 'example' => 'Instance'], ], [ 'name' => 'ResourceName', 'in' => 'query', - 'schema' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'i-bp14664y88udkt45****', - ], + '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', - ], + '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****************', - ], + 'schema' => ['description' => '要检索事件的AccessKey ID。', 'type' => 'string', 'required' => false, 'example' => 'LTAI****************'], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '用于请求下一页检索的结果。'."\n" - .'>请求参数必须保证和上次请求一致。', - 'type' => 'string', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '用于请求下一页检索的结果。'."\n" + .'>请求参数必须保证和上次请求一致。', 'type' => 'string', 'required' => false, 'example' => '20'], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'description' => '允许返回的最大结果数目。 '."\n" - .'取值范围:0~50个。', - 'type' => 'string', - 'required' => false, - 'example' => '20', - ], + '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', - ], + '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', - ], + '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' => [ @@ -1380,84 +795,34 @@ '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', - ], + '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', + '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.', - ], + ['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.', - ], + ['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":"\\n AB6843AF-C07E-4B59-BBF8-A0CEB785E6A2\\n 2\\n 2020-11-26T01:30:39Z\\n \\n 96.227_1606286128938_****\\n 1\\n success\\n signin.aliyun.com\\n 42.120.XX.XX\\n Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36\\n ConsoleSignin\\n \\n 159498693826****\\n 24611178745315****\\n ram-user\\n alice\\n \\n AasSub\\n \\n https://api.aliyun.com/new?spm=a2c1g.8271268.10000.9.2d59df259iBwq1\\n false\\n \\n 96.227_1606286128938_2847\\n 2020-11-25T06:35:29Z\\n cn-hangzhou\\n ConsoleSignin\\n \\n \\n 132.20_1606132532480_****\\n 1\\n success\\n signin.aliyun.com\\n 42.120.XX.XX\\n 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\\n ConsoleSignin\\n \\n 159498693826****\\n 26855899827085****\\n ram-user\\n yuge.****\\n \\n AasSub\\n \\n https://home.console.aliyun.com/\\n false\\n \\n 132.20_1606132532480_7292\\n 2020-11-23T11:55:32Z\\n cn-hangzhou\\n ConsoleSignin\\n \\n 2020-11-19T01:31:09Z\\n","errorExample":""}]', @@ -1473,229 +838,61 @@ ], ], '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', - ], + ['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 index ff8c954..9484b32 100644 --- a/data/zh_cn/actiontrail/2020-07-06/api-docs.php +++ b/data/zh_cn/actiontrail/2020-07-06/api-docs.php @@ -1,109 +1,45 @@ '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Actiontrail', - 'version' => '2020-07-06', - ], + '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', - ], + 'children' => ['CreateTrail', 'DeleteTrail', 'StartLogging', 'UpdateTrail', 'StopLogging', 'GetTrailStatus', 'DescribeTrails', 'DescribeUserTrailCount', 'DescribeTrailDeliveryMetricData'], 'type' => 'directory', 'title' => '跟踪', 'id' => 24997, ], [ - 'children' => [ - 'LookupEvents', - ], + 'children' => ['LookupEvents'], 'type' => 'directory', 'title' => '事件', 'id' => 9931, ], [ - 'children' => [ - 'CreateDeliveryHistoryJob', - 'DeleteDeliveryHistoryJob', - 'ListDeliveryHistoryJobs', - 'GetDeliveryHistoryJob', - ], + 'children' => ['CreateDeliveryHistoryJob', 'DeleteDeliveryHistoryJob', 'ListDeliveryHistoryJobs', 'GetDeliveryHistoryJob'], 'type' => 'directory', 'title' => '数据回补', 'id' => 25007, ], [ - 'children' => [ - 'GetAccessKeyLastUsedEvents', - 'GetAccessKeyLastUsedInfo', - 'GetAccessKeyLastUsedIps', - 'GetAccessKeyLastUsedProducts', - 'GetAccessKeyLastUsedResources', - ], + 'children' => ['GetAccessKeyLastUsedEvents', 'GetAccessKeyLastUsedInfo', 'GetAccessKeyLastUsedIps', 'GetAccessKeyLastUsedProducts', 'GetAccessKeyLastUsedResources'], 'type' => 'directory', 'title' => 'AccessKey审计', 'id' => 25012, ], [ - 'children' => [ - 'ListDataEventSelectors', - 'GetDataEventSelector', - 'PutDataEventSelector', - 'DeleteDataEventSelector', - ], + 'children' => ['ListDataEventSelectors', 'GetDataEventSelector', 'PutDataEventSelector', 'DeleteDataEventSelector'], 'type' => 'directory', 'title' => '数据事件选择器', 'id' => 237856, ], [ - 'children' => [ - 'EnableInsight', - 'DisableInsight', - 'GetInsightTypes', - 'GetInsightSelectors', - 'GetInsightsEventsCount', - 'PutInsightSelectors', - 'LookupInsightEvents', - ], + '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', - ], + 'children' => ['UpdateAdvancedQueryTemplate', 'GetGlobalEventsStorageRegion', 'UpdateGlobalEventsStorageRegion', 'CreateAdvancedQueryTemplate', 'DeleteAdvancedQueryTemplate', 'DescribeAdvancedQueryTemplate', 'DescribeUserAlertCount', 'DescribeUserLogCount', 'GetAdvancedQueryTemplate', 'DeleteAdvancedQueryHistory', 'CreateAdvancedQueryHistory', 'DescribeAdvancedQueryHistory', 'DescribeResourceLifeCycleEvents', 'DescribeScenes', 'DescribeSearchTemplates', 'ListDataEventServices', 'GetGovernanceMetrics', 'DescribeRegions'], 'type' => 'directory', 'title' => '其他', 'id' => 120972, @@ -115,14 +51,8 @@ 'apis' => [ 'CreateAdvancedQueryHistory' => [ 'summary' => '本接口用于创建高级查询历史记录,支持保存自定义查询条件语句以供复用和管理。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -134,33 +64,21 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'QuerySql', 'in' => 'query', - 'schema' => [ - 'description' => '查询条件语句。'."\n" - ."\n" - .'您可以根据[高级查询的SQL语法](~~2557373~~)编辑查询语句。', - 'type' => 'string', - 'required' => false, - 'example' => 'event.userIdentity.accessKeyId: *', - ], + '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', - ], + 'schema' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'required' => true, 'example' => 'false'], ], ], 'responses' => [ @@ -168,27 +86,12 @@ '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', - ], + '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'], ], + 'description' => '', ], ], ], @@ -206,12 +109,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -219,14 +117,9 @@ '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', - ], + 'summary' => '创建高级查询模板。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -238,31 +131,19 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'TemplateName', 'in' => 'query', - 'schema' => [ - 'description' => '模板名称最大长度64(可不唯一)。', - 'type' => 'string', - 'required' => false, - 'example' => 'test1', - ], + '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: *', - ], + 'schema' => ['description' => '模版查询语句。', 'type' => 'string', 'required' => true, 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *'], ], [ 'name' => 'SimpleQuery', @@ -271,10 +152,7 @@ 'description' => '是否开启简单查询模式。', 'type' => 'boolean', 'required' => true, - 'enumValueTitles' => [ - 'true' => '开启', - 'false' => '不开启', - ], + 'enumValueTitles' => ['true' => '开启', 'false' => '不开启'], 'example' => 'false', ], ], @@ -284,37 +162,17 @@ '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: *', - ], + '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: *'], ], + 'description' => '', ], ], ], 'title' => '创建高级查询模板', - 'summary' => '创建高级查询模板。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -327,12 +185,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'], ], ], ], @@ -341,14 +194,8 @@ ], 'CreateDeliveryHistoryJob' => [ 'summary' => '创建数据回补投递任务。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -360,34 +207,21 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailQSIVKF', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailQSIVKF'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-name', - ], + '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****', - ], + 'schema' => ['description' => '保证请求的幂等性。该值由客户端生成,并且必须全局唯一。 '."\n" + .'ClientToken只支持ASCII字符,且不能超过64个字符。'."\n" + .'更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-42665544****'], ], ], 'responses' => [ @@ -395,28 +229,16 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'JobId' => [ - 'description' => '任务ID。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '16602', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '9D356A34-D5A9-41CD-9915-837B7F9D8722', - ], + 'JobId' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '16602'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9D356A34-D5A9-41CD-9915-837B7F9D8722'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - 'description' => '指定的跟踪不存在。', - ], + ['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'], ], ], 'title' => '创建数据回补投递任务', @@ -432,12 +254,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'CreateDeliveryHistoryJob', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeliveryHistoryJob'], ], ], 'ramActions' => [ @@ -448,12 +265,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'], ], ], ], @@ -461,14 +273,9 @@ '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', - ], + 'summary' => '操作审计默认为每个阿里云账号记录最近90天的事件。为了能够追溯90天以前的事件,您可以创建跟踪,将操作事件投递到对象存储OSS、日志服务SLS或大数据计算服务MaxCompute,以便对事件进行分析。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -480,152 +287,93 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '创建的跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" - .'>同一个账号内跟踪名称不可重复。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-test', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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_****', - ], + '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', - ], + 'schema' => ['description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。'."\n" + ."\n" + .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n" + .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail'], ], ], 'responses' => [ @@ -633,145 +381,45 @@ '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', - ], + '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'], ], + 'description' => '', ], ], ], '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' => '您的账号不允许创建多账号跟踪,请提交工单联系客户支持。', - ], + ['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' => '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' => '', - ], + ['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" @@ -799,12 +447,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'CreateTrail', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrail'], ], ], 'ramActions' => [ @@ -815,12 +458,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'], ], ], ], @@ -828,14 +466,9 @@ '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', - ], + 'summary' => '本接口用于删除指定高级查询历史记录。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -847,21 +480,14 @@ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'QueryId', 'in' => 'query', - 'schema' => [ - 'description' => '高级查询记录ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'query-uIkIvLiVSuCKqg0yoa****', - ], + 'schema' => ['description' => '高级查询记录ID。', 'type' => 'string', 'required' => true, 'example' => 'query-uIkIvLiVSuCKqg0yoa****'], ], ], 'responses' => [ @@ -869,21 +495,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '04857D99-8B0C-53EB-85F1-E64198E7****', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '04857D99-8B0C-53EB-85F1-E64198E7****'], ], + 'description' => '', ], ], ], 'errorCodes' => [], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '删除高级查询历史', - 'summary' => '本接口用于删除指定高级查询历史记录。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -896,12 +516,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], 'additionalActions' => [], @@ -910,14 +525,9 @@ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"04857D99-8B0C-53EB-85F1-E64198E7****\\"\\n}","type":"json"}]', ], 'DeleteAdvancedQueryTemplate' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'summary' => '删除高级查询模板', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -929,21 +539,14 @@ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'TemplateId', 'in' => 'query', - 'schema' => [ - 'description' => '模板ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'utpl-QNL3dpYkQcyjZxrIQCciqQ', - ], + 'schema' => ['description' => '模板ID。', 'type' => 'string', 'required' => false, 'example' => 'utpl-QNL3dpYkQcyjZxrIQCciqQ'], ], ], 'responses' => [ @@ -951,17 +554,13 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '95F2CD1D-9BD3-564A-A74A-743FFC5E46E5', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '95F2CD1D-9BD3-564A-A74A-743FFC5E46E5'], ], + 'description' => '', ], ], ], 'title' => '删除高级查询模板', - 'summary' => '删除高级查询模板', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -974,12 +573,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], ], ], ], @@ -989,13 +583,8 @@ 'DeleteDataEventSelector' => [ 'summary' => '本接口用于删除指定跟踪名称的数据事件选择器。', 'path' => '', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -1007,20 +596,13 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailK0OCFQ', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'], ], 'parameters' => [ [ 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'trail-name', - ], + 'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'], ], ], 'responses' => [ @@ -1030,18 +612,12 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1D9DD159-DFFF-4882-ACEC-B4A727E9****', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1D9DD159-DFFF-4882-ACEC-B4A727E9****'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '删除数据事件选择器', 'changeSet' => [], 'flowControl' => [ @@ -1052,15 +628,10 @@ 'operationType' => 'create', 'ramAction' => [ 'action' => 'actiontrail:DeleteDataEventSelector', - 'authLevel' => 'operate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], @@ -1068,14 +639,8 @@ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1D9DD159-DFFF-4882-ACEC-B4A727E9****\\"\\n}","type":"json"}]', ], 'DeleteDeliveryHistoryJob' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1087,25 +652,14 @@ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailQSIVKF', - ], + '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', - ], + 'schema' => ['description' => '任务ID。 '."\n" + .'您可以调用[ListDeliveryHistoryJobs](~~188101~~)接口查询任务ID。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '0', 'example' => '16602'], ], ], 'responses' => [ @@ -1113,22 +667,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'D74DD20B-6598-429C-873B-B9B449B656B6', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D74DD20B-6598-429C-873B-B9B449B656B6'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable. Please try again later.', - 'description' => '系统暂时不可用,请稍后重试。', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable. Please try again later.', 'description' => '系统暂时不可用,请稍后重试。'], ], ], 'title' => '删除数据回补投递任务', @@ -1138,12 +685,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'DeleteDeliveryHistoryJob', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeliveryHistoryJob'], ], ], 'ramActions' => [ @@ -1154,12 +696,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'], ], ], ], @@ -1167,38 +704,25 @@ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D74DD20B-6598-429C-873B-B9B449B656B6\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], 'DeleteTrail' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'summary' => '删除操作审计跟踪。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + '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', - ], + 'schema' => ['description' => '要删除的跟踪名称。'."\n" + ."\n" + .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" + ."\n" + .'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'my-test'], ], ], 'responses' => [ @@ -1206,26 +730,18 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - 'description' => '指定的跟踪不存在。', - ], + ['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'], ], ], 'title' => '删除跟踪', - 'summary' => '删除操作审计跟踪。', 'description' => '本文将提供一个示例,删除名为`my-test`的跟踪。', 'requestParamsDescription' => '关于公共请求参数的详情,请参见[公共参数](~~185885~~)。', 'responseParamsDescription' => ' ', @@ -1233,12 +749,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'DeleteTrail', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrail'], ], ], 'ramActions' => [ @@ -1249,12 +760,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], @@ -1262,15 +768,8 @@ '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', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1282,9 +781,7 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [], @@ -1299,40 +796,23 @@ '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', - ], + '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'], ], + 'description' => '', ], ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '19F032B7-5FD8-5AC9-97FD-ACF54371****', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '19F032B7-5FD8-5AC9-97FD-ACF54371****'], ], + 'description' => '', ], ], ], 'title' => '查询高级查询历史', + 'summary' => '本接口用于获取所有高级查询历史记录。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -1345,12 +825,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -1358,14 +833,9 @@ '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', - ], + 'summary' => '查询高级查询模板。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1377,47 +847,28 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + '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', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。'."\n" + .'默认值:20。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -1425,62 +876,29 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1EC1FDC7-6D01-559F-852C-30D86E9EEB3F', - ], + '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', - ], + '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: *', - ], + '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', - ], + 'Total' => ['description' => '查询的总记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'], ], ], ], @@ -1489,7 +907,6 @@ ], ], 'title' => '查询高级查询模板', - 'summary' => '查询高级查询模板。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -1502,12 +919,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'], ], ], ], @@ -1515,14 +927,8 @@ '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', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1534,24 +940,17 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + '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', - ], + 'schema' => ['description' => '地域名称支持的语言,取值: '."\n" + ."\n" + .'- zh-CN:中文。'."\n" + .'- en-US(默认值):英文。', 'type' => 'string', 'required' => false, 'example' => 'en-US'], ], ], 'responses' => [ @@ -1569,37 +968,21 @@ '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', - ], + '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'], ], + 'description' => '', ], ], ], + 'description' => '', ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'ACA7C814-12BC-4D81-A0D2-72071C9D6D2C', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'ACA7C814-12BC-4D81-A0D2-72071C9D6D2C'], ], + 'description' => '', ], ], ], @@ -1610,26 +993,16 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '100', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'DescribeRegions', - ], + ['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', - ], + 'summary' => '本接口用于查询指定资源的生命周期事件。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1640,31 +1013,19 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'ServiceName', 'in' => 'query', - 'schema' => [ - 'description' => '云产品名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'ECS', - ], + 'schema' => ['description' => '云产品名称。', 'type' => 'string', 'required' => false, 'example' => 'ECS'], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'description' => '资源类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'ACS::ECS::Instance', - ], + 'schema' => ['description' => '资源类型。', 'type' => 'string', 'required' => false, 'example' => 'ACS::ECS::Instance'], ], ], 'responses' => [ @@ -1672,23 +1033,15 @@ '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****', - ], + '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****'], ], + 'description' => '', ], ], ], 'title' => '查询资源生命周期事件', - 'summary' => '本接口用于查询指定资源的生命周期事件。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -1701,12 +1054,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -1714,14 +1062,9 @@ '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', - ], + 'summary' => '本接口用于查询所有高级查询场景。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1732,21 +1075,14 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'SearchCode', 'in' => 'query', - 'schema' => [ - 'description' => '查询关键词。支持输入部分场景名称进行模糊匹配,查询时不区分大小写。', - 'type' => 'string', - 'required' => false, - 'example' => 'ak', - ], + 'schema' => ['description' => '查询关键词。支持输入部分场景名称进行模糊匹配,查询时不区分大小写。', 'type' => 'string', 'required' => false, 'example' => 'ak'], ], ], 'responses' => [ @@ -1754,51 +1090,28 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****', - ], + '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', - ], + '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'], ], + 'description' => '', ], ], ], + 'description' => '', ], ], ], 'title' => '查询高级查询场景', - 'summary' => '本接口用于查询所有高级查询场景。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -1811,12 +1124,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -1824,15 +1132,8 @@ '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', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1844,43 +1145,24 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -1888,88 +1170,39 @@ '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****', - ], + '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', - ], + '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'], ], + 'description' => '', ], ], ], + 'description' => '', ], ], ], 'errorCodes' => [], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '查询高级查询系统模板', + 'summary' => '本接口用于查询指定场景下的高级查询系统模版。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -1982,12 +1215,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], 'additionalActions' => [], @@ -1995,16 +1223,10 @@ ], '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', - ], + 'DescribeTrailDeliveryMetricData' => [ + 'summary' => '获取投递监控指标。', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2014,245 +1236,203 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], ], 'parameters' => [ [ - 'name' => 'IncludeShadowTrails', + 'name' => 'MetricName', 'in' => 'query', - 'schema' => [ - 'description' => '是否显示影子跟踪,取值:'."\n" - ."\n" - .'- false(默认值):不显示。'."\n" - .'- true:显示。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '监控指标名称:'."\n" + .'- delivery_sls_success_count:投递SLS成功日志数量'."\n" + .'- delivery_sls_fail_count:投递SLS失败日志数量'."\n" + .'- delivery_oss_success_count:投递OSS成功日志数量'."\n" + .'- delivery_oss_fail_count:投递OSS失败日志数量', 'type' => 'string', 'required' => true, 'example' => 'delivery_sls_success_count'], ], [ - 'name' => 'NameList', + 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '需要查询的跟踪名称列表。多个名称之间用半角逗号(,)分隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'abc,def', - ], + 'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'], ], [ - 'name' => 'IncludeOrganizationTrail', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => '是否查询多账号跟踪,取值:'."\n" - ."\n" - .'- true:查询多账号跟踪。'."\n" - .'- false(默认值):查询单账号跟踪。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '开始时间。格式:2026-02-25T00:35:00Z。', 'type' => 'string', 'required' => true, 'example' => '2026-04-09T01:00:00Z'], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => '结束时间。格式同上。', 'type' => 'string', 'required' => true, 'example' => '2026-04-10T01:00:00Z'], + ], + [ + 'name' => 'Period', + 'in' => 'query', + 'schema' => ['description' => '监控数据的统计周期。最小值60,支持60的倍数。'."\n" + ."\n" + .'推荐取值:60、900 和 3600。单位:秒。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '3600'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'ED8BC689-69DA-42AC-855E-3B06C1271194', - ], - 'TrailList' => [ - 'description' => '跟踪列表。', + 'MetricList' => [ + 'description' => '监控指标列表。', 'type' => 'array', 'items' => [ + 'description' => '监控指标对象。', '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_****', - ], + 'Count' => ['description' => '监控指标数量。具体含义由入参MetricName决定。'."\n" + ."\n" + .'例如:MetricName入参为`delivery_sls_success_count`时,返回中的`Count`代表投递SLS成功日志数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '21'], + 'Timestamp' => ['description' => 'Count对应的时间窗口。', 'type' => 'integer', 'format' => 'int64', 'example' => '1775721600000'], ], ], ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求 ID。', 'type' => 'string', 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****'], ], ], ], ], - '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' => ' ', + 'title' => '获取投递监控指标', 'changeSet' => [], 'flowControl' => [ - 'flowControlList' => [ - [ - 'threshold' => '100', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'DescribeTrails', - ], - ], + 'flowControlList' => [], ], - 'ramActions' => [ + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MetricList\\": [\\n {\\n \\"Count\\": 21,\\n \\"Timestamp\\": 1775721600000\\n }\\n ],\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]', + ], + 'DescribeTrails' => [ + 'summary' => '查看已创建的跟踪列表。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'operationType' => 'get', - 'ramAction' => [ - 'action' => 'actiontrail:DescribeTrails', - 'authLevel' => 'operate', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*', - ], - ], - ], + 'AK' => [], ], ], - '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', + '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' => [ + 'CreateTime' => ['description' => '跟踪创建的时间。', 'type' => 'string', 'example' => '2021-03-01T06:27:28Z'], + 'EventRW' => ['description' => '投递事件的读写类型,取值:'."\n" + ."\n" + .'- Write(默认值):写类型。'."\n" + .'- Read:读类型。'."\n" + .'- All:读类型和写类型。', 'type' => 'string', 'example' => 'All'], + 'HomeRegion' => ['description' => '跟踪的Home地域。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'IsOrganizationTrail' => ['description' => '是否是多账号跟踪,取值:'."\n" + ."\n" + .'- false(默认值):否。'."\n" + .'- true:是。', 'type' => 'boolean', 'example' => 'false'], + 'MaxComputeProjectArn' => ['description' => '跟踪投递的大数据计算服务项目的ARN。', 'type' => 'string', 'example' => 'acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****'], + 'MaxComputeWriteRoleArn' => ['description' => '操作审计向大数据计算服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::141266687691****:role/aliyunserviceroleforactiontrail'], + 'Name' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'test-4'], + 'OrganizationId' => ['description' => '资源目录ID。 '."\n" + ."\n" + .'> 只有多账号跟踪返回该参数。', 'type' => 'string', 'example' => 'rd-EV****'], + 'OssBucketLocation' => ['description' => 'OSS存储空间所在地域。', 'type' => 'string', 'example' => 'oss-cn-hangzhou'], + 'OssBucketName' => ['description' => 'OSS存储空间的名称。', 'type' => 'string', 'example' => 'secloud'], + 'OssKeyPrefix' => ['description' => 'OSS存储空间文件名的前缀。', 'type' => 'string', 'example' => 'trail1'], + 'OssWriteRoleArn' => ['description' => '操作审计向对象存储OSS存储空间投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail'], + 'Region' => ['description' => '跟踪所在地域。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'SlsProjectArn' => ['description' => '跟踪投递的日志服务项目的ARN。', 'type' => 'string', 'example' => 'acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log'], + 'SlsWriteRoleArn' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。', 'type' => 'string', 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail'], + 'StartLoggingTime' => ['description' => '最近一次开启跟踪的时间。', 'type' => 'string', 'example' => '2021-04-06T02:08:38Z'], + 'Status' => ['description' => '跟踪状态,取值:'."\n" + ."\n" + .'- Disable:停止。'."\n" + .'- Enable:开启。 '."\n" + .'- Fresh:已创建跟踪,但未开启。', 'type' => 'string', 'example' => 'Enable'], + 'StopLoggingTime' => ['description' => '最近一次停止跟踪的时间。', 'type' => 'string', 'example' => '2021-04-06T02:09:04Z'], + 'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other'], + 'TrailRegion' => ['description' => '跟踪的地域。', 'type' => 'string', 'example' => 'All'], + 'UpdateTime' => ['description' => '跟踪配置最近一次更新的时间。', 'type' => 'string', 'example' => '2021-04-06T02:16:24Z'], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], + ], + ], + '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'], + ], ], - 'schemes' => [ - 'http', - 'https', + '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 \\"CreateTime\\": \\"2021-03-01T06:27:28Z\\",\\n \\"EventRW\\": \\"All\\",\\n \\"HomeRegion\\": \\"cn-hangzhou\\",\\n \\"IsOrganizationTrail\\": false,\\n \\"MaxComputeProjectArn\\": \\"acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****\\",\\n \\"MaxComputeWriteRoleArn\\": \\"acs:ram::141266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Name\\": \\"test-4\\",\\n \\"OrganizationId\\": \\"rd-EV****\\",\\n \\"OssBucketLocation\\": \\"oss-cn-hangzhou\\",\\n \\"OssBucketName\\": \\"secloud\\",\\n \\"OssKeyPrefix\\": \\"trail1\\",\\n \\"OssWriteRoleArn\\": \\"acs:ram::151266687691****:role/aliyunserviceroleforactiontrail\\",\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"SlsProjectArn\\": \\"acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log\\",\\n \\"SlsWriteRoleArn\\": \\"acs:ram::159498693826****:role/aliyunserviceroleforactiontrail\\",\\n \\"StartLoggingTime\\": \\"2021-04-06T02:08:38Z\\",\\n \\"Status\\": \\"Enable\\",\\n \\"StopLoggingTime\\": \\"2021-04-06T02:09:04Z\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other\\",\\n \\"TrailRegion\\": \\"All\\",\\n \\"UpdateTime\\": \\"2021-04-06T02:16:24Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DescribeUserAlertCount' => [ + 'summary' => '查询用户时间段内每日告警量。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2264,33 +1444,21 @@ 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailR96AQB', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailR96AQB'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'StartDate', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间。格式yyyy-MM-dd', - 'type' => 'string', - 'required' => false, - 'example' => '2025-05-12'."\n" - ."\n", - ], + '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", - ], + 'schema' => ['description' => '结束时间。格式yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-06-10'."\n"], ], ], 'responses' => [ @@ -2305,54 +1473,29 @@ 'Counts' => [ 'description' => '返回的数据数量统计。', 'type' => 'array', - 'items' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '500', - ], + 'items' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '500'], ], 'Dates' => [ 'description' => '返回的日期列表。', 'type' => 'array', - 'items' => [ - 'description' => '生成日期。', - 'type' => 'string', - 'example' => '2025-01-17'."\n", - ], + 'items' => ['description' => '生成日期。', 'type' => 'string', 'example' => '2025-01-17'."\n"], ], ], ], - 'RequestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'."\n", - ], + 'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'."\n"], ], + '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' => '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' => '>若StartDate与EndDate参数缺失,默认查询过去30天(截止到昨日)每天的日志量。>', 'changeSet' => [], 'flowControl' => [ @@ -2366,12 +1509,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -2379,14 +1517,8 @@ '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', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2398,32 +1530,20 @@ 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'StartDate', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间。格式yyyy-MM-dd', - 'type' => 'string', - 'required' => false, - 'example' => '2025-05-12', - ], + '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', - ], + 'schema' => ['description' => '结束时间。格式yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-06-10'], ], ], 'responses' => [ @@ -2438,29 +1558,16 @@ 'Counts' => [ 'description' => '返回的数据数量统计。', 'type' => 'array', - 'items' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '103493'."\n", - ], + 'items' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '103493'."\n"], ], 'Dates' => [ 'description' => '返回的日期列表。', 'type' => 'array', - 'items' => [ - 'description' => '日志生成日期。', - 'type' => 'string', - 'example' => '2025-05-10', - ], + 'items' => ['description' => '日志生成日期。', 'type' => 'string', 'example' => '2025-05-10'], ], ], ], - 'RequestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA', - ], + 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'], ], 'description' => '', ], @@ -2468,21 +1575,9 @@ ], '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' => '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' => '查询用户时间段内每日日志量', @@ -2500,27 +1595,77 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['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', + 'DescribeUserTrailCount' => [ + 'summary' => '查询开启的跟踪个数,包含组织跟踪。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI', 'FEATUREactiontrailK0OCFQ', 'FEATUREactiontrailFXSRM0'], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Data' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'Counts' => [ + 'description' => '跟踪数量。', + 'type' => 'array', + 'items' => ['description' => '跟踪数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '4'], + ], + 'Dates' => [ + 'description' => '日期列表。', + 'type' => 'array', + 'items' => ['description' => '当前日期。', 'type' => 'string', 'example' => '2025-05-10'], + ], + ], + ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EDDEBA6B-FFE2-4EF6-8BAB-2A6B98DC****'], + ], + 'description' => '', + ], + ], ], - 'schemes' => [ - 'http', - 'https', + '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' => '查询用户跟踪数量', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 4\\n ],\\n \\"Dates\\": [\\n \\"2025-05-10\\"\\n ]\\n },\\n \\"RequestId\\": \\"EDDEBA6B-FFE2-4EF6-8BAB-2A6B98DC****\\"\\n}","type":"json"}]', + ], + 'DisableInsight' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2532,29 +1677,22 @@ 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail3ODDBG', - ], + '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', - ], + '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' => [ @@ -2562,11 +1700,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****'], ], 'description' => '', ], @@ -2574,11 +1708,7 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InsightTypeNotValid', - 'errorMessage' => 'The input insightType is not valid', - 'description' => '用户输入的参数不合法', - ], + ['errorCode' => 'InsightTypeNotValid', 'errorMessage' => 'The input insightType is not valid', 'description' => '用户输入的参数不合法'], ], ], 'title' => '关闭审计事件洞察', @@ -2591,15 +1721,8 @@ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]', ], 'EnableInsight' => [ - 'summary' => '开启审计事件洞察。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2611,29 +1734,22 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail3ODDBG', - ], + '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', - ], + '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' => [ @@ -2642,11 +1758,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '45AA79B7-0240-52AB-B158-3F9A512228ED', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '45AA79B7-0240-52AB-B158-3F9A512228ED'], ], 'description' => '', ], @@ -2654,24 +1766,15 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InsightTypeNotAvailable', - 'errorMessage' => 'The input insightType is not available', - 'description' => '', - ], + ['errorCode' => 'InsightTypeNotAvailable', 'errorMessage' => 'The input insightType is not available', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"45AA79B7-0240-52AB-B158-3F9A512228ED\\"\\n}","type":"json"}]', 'title' => '开启审计事件洞察', + 'summary' => '开启审计事件洞察。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'EnableInsight', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EnableInsight'], ], ], 'ramActions' => [ @@ -2682,26 +1785,17 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"45AA79B7-0240-52AB-B158-3F9A512228ED\\"\\n}","type":"json"}]', ], 'GetAccessKeyLastUsedEvents' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'summary' => '查询指定AccessKey的最后使用的事件记录。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2713,54 +1807,32 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailO4RAWP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'], ], 'parameters' => [ [ 'name' => 'AccessKey', 'in' => 'query', - 'schema' => [ - 'description' => 'AccessKey ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'LTAI****************', - ], + 'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'], ], [ 'name' => 'ServiceName', 'in' => 'query', - 'schema' => [ - 'description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', - 'type' => 'string', - 'required' => true, - 'example' => 'Ecs', - ], + 'schema' => ['description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '用于请求下一页检索的结果。 '."\n" - ."\n" - .'> 请求参数必须保证和上次请求一致。', - 'type' => 'string', - 'required' => false, - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。'."\n" + .'取值范围:0~100。'."\n" + .'默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -2774,97 +1846,59 @@ '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', - ], + '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' => '数据事件', - ], + 'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'], 'example' => 'ManagementEvent', ], - 'UsedTimestamp' => [ - 'description' => '使用事件的时间戳。'."\n" - .'单位:毫秒。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1657247532000', - ], + 'UsedTimestamp' => ['description' => '使用事件的时间戳。'."\n" + .'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'], ], + 'description' => '', ], 'required' => true, ], - 'NextToken' => [ - 'description' => '用于请求下一页检索的结果。', - 'type' => 'string', - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'required' => true, - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'NextToken' => ['description' => '用于请求下一页检索的结果。', 'type' => 'string', 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], + 'description' => '', ], ], ], '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' => '无效的查询参数。', - ], + ['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', - ], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedEvents'], ], ], 'ramActions' => [ @@ -2875,12 +1909,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -2889,14 +1918,8 @@ ], 'GetAccessKeyLastUsedInfo' => [ 'summary' => '查询指定AccessKey的最后使用记录。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2908,20 +1931,13 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailO4RAWP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'], ], 'parameters' => [ [ 'name' => 'AccessKey', 'in' => 'query', - 'schema' => [ - 'description' => 'AccessKey ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'LTAI****************', - ], + 'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'], ], ], 'responses' => [ @@ -2929,93 +1945,46 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'AccessKeyId' => [ - 'description' => 'AccessKey ID。', - 'type' => 'string', - 'example' => 'LTAI****************', - ], - 'AccountId' => [ - 'description' => '阿里云账号ID。', - 'type' => 'string', - 'example' => '104758519118****', - ], + '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用户', - ], + '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', - ], + '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' => '数据事件', - ], + 'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'], 'example' => 'ManagementEvent', ], - 'UsedTimestamp' => [ - 'description' => '最后使用时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1657247532000', - ], + 'UsedTimestamp' => ['description' => '最后使用时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1657247532000'], 'UserName' => [ 'description' => 'AccessKey所属账号名称。'."\n" .'如果AccountType为root-account,则userName记录为“root”;如果AccountType为ram-user,则userName记录为RAM用户名。', @@ -3024,21 +1993,14 @@ 'example' => 'alice', ], ], + 'description' => '', ], ], ], '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' => '无效的查询参数。', - ], + ['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的最后使用记录', @@ -3046,12 +2008,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '50', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'GetAccessKeyLastUsedInfo', - ], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedInfo'], ], ], 'ramActions' => [ @@ -3062,12 +2019,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -3075,14 +2027,8 @@ '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":"\\n 239EB588-CD24-522E-B0B5-174A1A588BE0\\n LTAI4Fz1ykT4qxgNMvN6****\\n 104758519118****\\n 24549429003625****\\n alice\\n ram-user\\n 1657247532000\\n {\\\\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 ManagementEvent\\n Ecs\\n Elastic Compute Service (ECS)\\n Elastic Compute Service\\n","errorExample":""}]', ], 'GetAccessKeyLastUsedIps' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3094,54 +2040,32 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailO4RAWP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'], ], 'parameters' => [ [ 'name' => 'AccessKey', 'in' => 'query', - 'schema' => [ - 'description' => 'AccessKey ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'LTAI****************', - ], + 'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'], ], [ 'name' => 'ServiceName', 'in' => 'query', - 'schema' => [ - 'description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', - 'type' => 'string', - 'required' => true, - 'example' => 'Ecs', - ], + 'schema' => ['description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '用于请求下一页检索的结果。'."\n" - ."\n" - .'> 请求参数必须保证和上次请求一致。', - 'type' => 'string', - 'required' => false, - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。'."\n" + .'取值范围:0~100。'."\n" + .'默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -3155,83 +2079,51 @@ '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.**.**', - ], + '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' => '数据事件', - ], + 'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'], 'example' => 'ManagementEvent', ], - 'UsedTimestamp' => [ - 'description' => '使用IP的时间戳。'."\n" - .'单位:毫秒。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1657247532000', - ], + 'UsedTimestamp' => ['description' => '使用IP的时间戳。'."\n" + .'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'], ], + 'description' => '', ], 'required' => true, ], - 'NextToken' => [ - 'description' => '用于请求下一页检索的结果。', - 'type' => 'string', - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'required' => true, - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'NextToken' => ['description' => '用于请求下一页检索的结果。', 'type' => 'string', 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], + 'description' => '', ], ], ], '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' => '无效的查询参数。', - ], + ['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记录', @@ -3240,12 +2132,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '50', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'GetAccessKeyLastUsedIps', - ], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedIps'], ], ], 'ramActions' => [ @@ -3256,12 +2143,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -3269,14 +2151,8 @@ '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":"\\n\\t145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\n\\t\\n\\t\\t1657247532000\\n\\t\\t{\\\\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\\t\\tManagementEvent\\n\\t\\t10.10.XX.XX\\n\\t\\t\\n eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\n\\t","errorExample":""}]', ], 'GetAccessKeyLastUsedProducts' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3288,20 +2164,13 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailO4RAWP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'], ], 'parameters' => [ [ 'name' => 'AccessKey', 'in' => 'query', - 'schema' => [ - 'description' => 'AccessKey ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'LTAI****************', - ], + 'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI****************'], ], ], 'responses' => [ @@ -3315,88 +2184,52 @@ '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', - ], + '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' => '数据事件', - ], + 'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'], 'example' => 'ManagementEvent', ], - 'UsedTimestamp' => [ - 'description' => '使用云服务的时间戳。'."\n" - .'单位:毫秒。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1657247532000', - ], + 'UsedTimestamp' => ['description' => '使用云服务的时间戳。'."\n" + .'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'], ], + 'description' => '', ], 'required' => true, ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'required' => true, - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'required' => true, 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], + 'description' => '', ], ], ], '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' => '无效的查询参数。', - ], + ['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的最后使用的云服务记录', @@ -3405,12 +2238,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '50', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'GetAccessKeyLastUsedProducts', - ], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedProducts'], ], ], 'ramActions' => [ @@ -3421,12 +2249,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -3434,15 +2257,8 @@ '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":"\\n\\t145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\n\\t\\n\\t\\t1657247532000\\n\\t\\t{\\\\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\\t\\tManagementEvent\\n\\t\\tEcs\\n\\t\\t云服务器ECS\\n\\t\\tElastic Compute Service\\n\\t\\n\\t","errorExample":""}]', ], 'GetAccessKeyLastUsedResources' => [ - 'summary' => '查询指定AccessKey的最后使用的资源记录。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3454,54 +2270,32 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailO4RAWP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailO4RAWP'], ], 'parameters' => [ [ 'name' => 'AccessKey', 'in' => 'query', - 'schema' => [ - 'description' => 'AccessKey ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'LTAI4Fz1ykT4qxgNMvN6****'."\n", - ], + 'schema' => ['description' => 'AccessKey ID。', 'type' => 'string', 'required' => true, 'example' => 'LTAI4Fz1ykT4qxgNMvN6****'."\n"], ], [ 'name' => 'ServiceName', 'in' => 'query', - 'schema' => [ - 'description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', - 'type' => 'string', - 'required' => true, - 'example' => 'Ecs', - ], + 'schema' => ['description' => '阿里云服务。关于云服务,请参见[支持的云服务](~~28829~~)。', 'type' => 'string', 'required' => true, 'example' => 'Ecs'], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '用于请求下一页检索的结果。'."\n" - .'>请求参数必须保证和上次请求一致。', - 'type' => 'string', - 'required' => false, - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。'."\n" + ."\n" + .'- 取值范围:0~100。'."\n" + .'- 默认值:20。', 'type' => 'string', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -3509,107 +2303,67 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'description' => '用于请求下一页检索的结果。', - 'type' => 'string', - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'required' => true, - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + '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', - ], + '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' => '数据事件', - ], + 'enumValueTitles' => ['Internal' => '其他事件', 'ManagementEvent' => '管控事件', 'DataEvent' => '数据事件'], 'example' => 'ManagementEvent', ], - 'UsedTimestamp' => [ - 'description' => '使用该资源的时间戳。'."\n" - .'单位:毫秒。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1657247532000', - ], + 'UsedTimestamp' => ['description' => '使用该资源的时间戳。'."\n" + .'单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1657247532000'], ], + 'description' => '', ], 'required' => true, ], ], + 'description' => '', ], ], ], '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' => '无效的查询参数。', - ], + ['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' => 'GetAccessKeyLastUsedResources', - ], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAccessKeyLastUsedResources'], ], ], 'ramActions' => [ @@ -3620,12 +2374,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -3634,14 +2383,8 @@ ], 'GetAdvancedQueryTemplate' => [ 'summary' => '获取单个高级模版信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3653,21 +2396,14 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'TemplateId', 'in' => 'query', - 'schema' => [ - 'description' => '模板ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'utpl-N9fpjnFBSWauSXhVNP****', - ], + 'schema' => ['description' => '模板ID。', 'type' => 'string', 'required' => true, 'example' => 'utpl-N9fpjnFBSWauSXhVNP****'], ], ], 'responses' => [ @@ -3675,36 +2411,18 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '32110C73-0004-5141-9DA7-4B8045C8173A', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '32110C73-0004-5141-9DA7-4B8045C8173A'], 'SimpleQuery' => [ 'description' => '是否开启简单查询模式。', 'type' => 'boolean', - 'enumValueTitles' => [ - 'true' => '开启', - 'false' => '关闭', - ], + '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: *', - ], + '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: *'], ], + 'description' => '', ], ], ], @@ -3722,12 +2440,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], ], ], ], @@ -3736,13 +2449,8 @@ ], 'GetDataEventSelector' => [ 'path' => '', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -3754,20 +2462,13 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailK0OCFQ', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'], ], 'parameters' => [ [ 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'trail-name', - ], + 'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'example' => 'trail-name'], ], ], 'responses' => [ @@ -3777,37 +2478,25 @@ '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****', - ], + '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', @@ -3815,55 +2504,25 @@ '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', - ], + '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', - ], + 'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '获取数据事件选择器', 'summary' => '本接口用于获取指定跟踪名称的数据事件选择器详细信息。', 'responseParamsDescription' => '`EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。', @@ -3876,15 +2535,10 @@ 'operationType' => 'get', 'ramAction' => [ 'action' => 'actiontrail:GetDataEventSelector', - 'authLevel' => 'operate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], @@ -3892,14 +2546,9 @@ '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', - ], + 'summary' => '查询数据回补投递任务详情。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3911,22 +2560,13 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailQSIVKF', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailQSIVKF'], ], 'parameters' => [ [ 'name' => 'JobId', 'in' => 'query', - 'schema' => [ - 'description' => '任务ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '16602', - ], + 'schema' => ['description' => '任务ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '16602'], ], ], 'responses' => [ @@ -3934,108 +2574,53 @@ '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', - ], + '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', - ], + 'Region' => ['description' => '任务投递的地域。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'Status' => ['description' => '各地域的任务状态。取值:'."\n" + ."\n" + .'- 0:任务正在初始化。'."\n" + .'- 1:任务投递中。'."\n" + .'- 2:任务投递完成。'."\n" + .'- 3:任务投递失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], ], + 'description' => '', ], ], - 'TrailName' => [ - 'description' => '任务关联的跟踪名称。', - 'type' => 'string', - 'example' => 'trail-name', - ], - 'UpdatedTime' => [ - 'description' => '任务更新时间。', - 'type' => 'string', - 'example' => '2021-05-27T07:28:47Z', - ], + 'TrailName' => ['description' => '任务关联的跟踪名称。', 'type' => 'string', 'example' => 'trail-name'], + 'UpdatedTime' => ['description' => '任务更新时间。', 'type' => 'string', 'example' => '2021-05-27T07:28:47Z'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - 'description' => '指定的跟踪不存在。', - ], + ['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', - ], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeliveryHistoryJob'], ], ], 'ramActions' => [ @@ -4046,12 +2631,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'], ], ], ], @@ -4059,13 +2639,9 @@ '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', - ], + 'summary' => '查询全局事件存储地域。', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4077,9 +2653,7 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [], @@ -4090,30 +2664,19 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0474CD9D-DF37-55D4-8383-D265CFBE13A5', - ], + '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', - ], + 'enumValueTitles' => ['ap-southeast-1' => 'ap-southeast-1', 'cn-hangzhou' => 'cn-hangzhou'], 'example' => 'ap-southeast-1', ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '查询全局事件存储地域', - 'summary' => '查询全局事件存储地域。', 'description' => '默认您的全局事件存储在华东1(杭州)'."\n" .'新加坡。'."\n" ."\n" @@ -4121,12 +2684,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '10', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'GetGlobalEventsStorageRegion', - ], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetGlobalEventsStorageRegion'], ], ], 'ramActions' => [ @@ -4137,12 +2695,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'], ], ], ], @@ -4151,13 +2704,8 @@ ], 'GetGovernanceMetrics' => [ 'summary' => '本接口用于查询操作审计成熟度。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -4169,9 +2717,7 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [], @@ -4186,63 +2732,40 @@ 'description' => '返回的数据内容。', 'type' => 'object', 'properties' => [ - 'AccountId' => [ - 'description' => '阿里云账号ID。', - 'type' => 'string', - 'example' => '195622768501****', - ], + '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', - ], + '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****', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A****'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '查询操作审计成熟度', 'changeSet' => [], 'flowControl' => [ @@ -4256,12 +2779,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -4269,15 +2787,8 @@ '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', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4285,20 +2796,12 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-name', - ], + 'schema' => ['description' => '跟踪名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-name'], ], ], 'responses' => [ @@ -4310,28 +2813,17 @@ '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', + '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' => '获取洞察选择器', + 'summary' => '获取跟踪需投递的InsightTypes。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], @@ -4340,14 +2832,8 @@ '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', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4359,9 +2845,7 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail3ODDBG', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [], @@ -4370,16 +2854,8 @@ '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****', - ], + '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' => '', ], @@ -4395,14 +2871,9 @@ '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', - ], + 'summary' => '获取当前账号的Insights事件数量。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4414,9 +2885,7 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail3ODDBG', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ @@ -4424,38 +2893,23 @@ 'name' => 'Date', 'in' => 'query', 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '指定查询日期。格式:`yyyy-MM-dd`。', - 'type' => 'string', - 'required' => false, - 'example' => '2026-01-07', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '检索事件的开始时间。日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。', 'type' => 'string', 'required' => false, 'example' => '2025-12-01T02:00:00Z'], ], ], 'responses' => [ @@ -4470,43 +2924,22 @@ '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', - ], + '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****', - ], + 'NextToken' => ['description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。', 'type' => 'string', 'example' => 'VjE6bHJlTGoxdm1M****'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****'], ], 'description' => '', ], @@ -4514,15 +2947,10 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidTimeRangeException', - 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.', - 'description' => '结束时间应晚于开始时间,且时间跨度不能超过30天。', - ], + ['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' => [], @@ -4532,14 +2960,8 @@ ], 'GetTrailStatus' => [ 'summary' => '查询跟踪的状态。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4547,37 +2969,24 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。 '."\n" - .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。 '."\n" - ."\n" - .'> 同一账号内跟踪名称不可重复。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-test', - ], + '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', - ], + 'schema' => ['description' => '是否查询多账号跟踪状态,取值: '."\n" + ."\n" + .'- true:查询多账号跟踪状态。'."\n" + ."\n" + .'- false(默认值):查单账号跟踪状态。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ @@ -4585,76 +2994,33 @@ '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', - ], + 'IsLogging' => ['description' => '是否开启日志记录,取值:'."\n" + ."\n" + .'- true:开启。 '."\n" + .'- false:关闭。', 'type' => 'boolean', 'example' => 'true'], + 'LatestDeliveryError' => ['description' => '最近一次行为跟踪异常的日志信息。', 'type' => 'string', 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1'], + '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'], + 'LatestDeliveryTime' => ['description' => '最近一次成功记录行为的时间。', 'type' => 'string', 'example' => '2021-02-26T09:19:44Z'], + 'OssBucketStatus' => ['description' => 'OSS存储空间是否可用,取值:'."\n" + ."\n" + .'- true:可用。'."\n" + .'- false:不可用。', 'type' => 'boolean', 'example' => 'true'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8067369B-B923-4D26-85BC-61BF33922505'], + 'SlsLogStoreStatus' => ['description' => 'SLS Logstore是否可用,取值:'."\n" + ."\n" + .'- true:可用。 '."\n" + .'- false:不可用。', 'type' => 'boolean', 'example' => 'true'], + 'StartLoggingTime' => ['description' => '最近一次开启跟踪的时间。', 'type' => 'string', 'example' => '2021-02-24T09:19:44Z'], + 'StopLoggingTime' => ['description' => '最近一次停止跟踪的时间。', 'type' => 'string', 'example' => '2021-02-25T09:19:44Z'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - 'description' => '指定的跟踪不存在。', - ], + ['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'], ], ], 'title' => '查询跟踪状态', @@ -4663,12 +3029,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '100', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'GetTrailStatus', - ], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrailStatus'], ], ], 'ramActions' => [ @@ -4679,28 +3040,17 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['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":""}]', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"IsLogging\\": true,\\n \\"LatestDeliveryError\\": \\"write sls failed, exception: the parent of sub user must be project owner, itemscount: 1\\",\\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 \\"LatestDeliveryTime\\": \\"2021-02-26T09:19:44Z\\",\\n \\"OssBucketStatus\\": true,\\n \\"RequestId\\": \\"8067369B-B923-4D26-85BC-61BF33922505\\",\\n \\"SlsLogStoreStatus\\": true,\\n \\"StartLoggingTime\\": \\"2021-02-24T09:19:44Z\\",\\n \\"StopLoggingTime\\": \\"2021-02-25T09:19:44Z\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], 'ListDataEventSelectors' => [ - 'summary' => '本接口用于列举所有数据事件选择器。', 'path' => '', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -4712,37 +3062,24 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailK0OCFQ', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'], ], 'parameters' => [ [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '分页游标。用于请求下一页检索的结果。'."\n" - ."\n" - .'- 首次请求时置空。'."\n" - .'- 后续请求时传入上一次响应返回的`NextToken`值。', - 'type' => 'string', - 'required' => false, - 'example' => 'VjE6dLbnNpVmbz06****', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。'."\n" + ."\n" + .'- 取值范围:1~100。'."\n" + .'- 默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -4762,32 +3099,24 @@ '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', - ], + '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', @@ -4795,78 +3124,33 @@ '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', - ], + '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', - ], + 'TrailArn' => ['description' => '跟踪的资源定位符。', 'type' => 'string', 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name'], + 'TrailName' => ['description' => '跟踪名称。', 'type' => 'string', 'example' => 'trail-name'], ], + 'description' => '', ], ], - 'MaxResults' => [ - 'description' => '本次请求所返回的最大记录条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'NextToken' => [ - 'description' => '当符合查询条件的数据未读取完时,服务端会返回`NextToken`,此时可以使用`NextToken`继续读取后面的数据。第一次查询不需要提供这个参数。', - 'type' => 'string', - 'example' => 'VjE6bHJlTGoxdm1M****', - ], + '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****', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8A74FD2E-A9B9-461C-BCE9-D9668DF1****'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '列举所有数据事件选择器', + 'summary' => '本接口用于列举所有数据事件选择器。', 'responseParamsDescription' => '`EventName`中,Equals和NotEquals中的数据元素相加之和不能大于10。`ResourceArn`同理。', 'changeSet' => [], 'flowControl' => [ @@ -4877,15 +3161,10 @@ 'operationType' => 'get', 'ramAction' => [ 'action' => 'actiontrail:ListDataEventSelectors', - 'authLevel' => 'operate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'], ], ], ], @@ -4894,13 +3173,8 @@ ], 'ListDataEventServices' => [ 'path' => '', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -4912,36 +3186,23 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '分页游标。用于请求下一页检索的结果。'."\n" - .'- 首次请求时置空。'."\n" - .'- 后续请求时传入上一次响应返回的`NextToken`值。', - 'type' => 'string', - 'required' => false, - 'example' => 'VjE6dLbnNpVmbz06****', - ], + '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', - ], + 'schema' => ['description' => '允许返回的最大结果数目。'."\n" + .'- 取值范围:1~100。'."\n" + .'- 默认值:20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], ], 'responses' => [ @@ -4955,17 +3216,8 @@ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'MaxResults' => [ - 'description' => '本次请求所返回的最大记录条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'NextToken' => [ - 'description' => '本次调用返回的查询凭证值。', - 'type' => 'string', - 'example' => 'VjE6bHJlTGoxdm1M****', - ], + 'MaxResults' => ['description' => '本次请求所返回的最大记录条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'NextToken' => ['description' => '本次调用返回的查询凭证值。', 'type' => 'string', 'example' => 'VjE6bHJlTGoxdm1M****'], 'ServiceInfos' => [ 'description' => '支持云产品及对应云产品数据事件集合。', 'type' => 'array', @@ -4975,35 +3227,21 @@ 'EventNames' => [ 'description' => '云产品支持数据事件集合。', 'type' => 'array', - 'items' => [ - 'description' => '事件名称。', - 'type' => 'string', - 'example' => 'PutHybridMonitorMetricData', - ], - ], - 'ServiceName' => [ - 'description' => '云产品名称。', - 'type' => 'string', - 'example' => 'Cms', + 'items' => ['description' => '事件名称。', 'type' => 'string', 'example' => 'PutHybridMonitorMetricData'], ], + 'ServiceName' => ['description' => '云产品名称。', 'type' => 'string', 'example' => 'Cms'], ], 'description' => '', ], ], ], ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '查询数据事件支持服务与事件名称', 'summary' => '本接口用于查询数据事件支持的服务与事件名称。', 'changeSet' => [], @@ -5018,12 +3256,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -5031,14 +3264,9 @@ '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', - ], + 'summary' => '查询数据回补投递任务列表。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5050,43 +3278,24 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailQSIVKF', - ], + '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' => '', - ], + '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', - ], + 'schema' => ['description' => '任务列表的页码。'."\n" + ."\n" + .'- 起始值:1。'."\n" + .'- 默认值:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '0', 'example' => '1'], ], ], 'responses' => [ @@ -5100,94 +3309,38 @@ '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', - ], + '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'], ], + 'description' => '', ], ], - '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', - ], + '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'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'The service is unavailable. Please try again later.', - 'description' => '系统暂时不可用,请稍后重试。', - ], + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable. Please try again later.', 'description' => '系统暂时不可用,请稍后重试。'], ], ], 'title' => '获取数据回补投递任务', - 'summary' => '查询数据回补投递任务列表。', 'description' => '本文将提供一个示例,查询数据回补投递任务列表。返回结果显示有一条任务ID为`16602`的投递任务,它用来将跟踪`trail-name`的历史事件投递到日志服务SLS。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', @@ -5195,12 +3348,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '10', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'ListDeliveryHistoryJobs', - ], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeliveryHistoryJobs'], ], ], 'ramActions' => [ @@ -5208,15 +3356,10 @@ 'operationType' => 'get', 'ramAction' => [ 'action' => 'actiontrail:ListDeliveryHistoryJobs', - 'authLevel' => 'operate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'], ], ], ], @@ -5224,14 +3367,9 @@ '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', - ], + 'summary' => '检索详细历史事件。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5243,69 +3381,42 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailHCRZJP', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailHCRZJP'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '用于请求下一页检索的结果。 '."\n" - ."\n" - .'> 请求参数必须保证和上次请求一致。', - 'type' => 'string', - 'required' => false, - 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '检索事件的读取顺序,取值:'."\n" + ."\n" + .'- FORWARD:正序。'."\n" + .'- BACKWARD(默认值):反序。', 'type' => 'string', 'required' => false, 'example' => 'BACKWARD'], ], [ 'name' => 'LookupAttribute', @@ -5318,18 +3429,8 @@ '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', - ], + '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' => '', @@ -5344,43 +3445,23 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'EndTime' => [ - 'description' => '检索到事件的结束时间。', - 'type' => 'string', - 'example' => '2020-07-22T14:00:00Z', - ], + '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" + 'items' => ['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', - ], + .'关于事件列表中事件字段的说明,请参见[操作事件结构定义](~~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' => '', ], @@ -5388,35 +3469,14 @@ ], '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。', - ], + ['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' => ' ', @@ -5424,12 +3484,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '10', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'LookupEvents', - ], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'LookupEvents'], ], ], 'ramActions' => [ @@ -5440,12 +3495,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -5453,14 +3503,9 @@ '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', - ], + 'summary' => '查询Insight事件。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5472,63 +3517,41 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail3ODDBG', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '分页游标。用于请求下一页检索的结果。'."\n" - ."\n" - .'- 首次请求时置空。'."\n" - .'- 后续请求时传入上一次响应返回的`NextToken`值。', - 'type' => 'string', - 'required' => false, - 'example' => 'VjE6dLbnNpVmbz06****', - ], + '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', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '检索事件的结束时间,默认为当前时间点。'."\n" + ."\n" + .'日期格式按照ISO8601标准,并使用UTC时间。格式为:`yyyy-MM-ddTHH:mm:ssZ`。', 'type' => 'string', 'required' => false, 'example' => '2026-01-07T07:10:00Z'], ], [ 'name' => 'LookupAttribute', @@ -5543,18 +3566,8 @@ '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', - ], + '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, ], @@ -5572,86 +3585,74 @@ '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****', + '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' => '', ], @@ -5659,55 +3660,18 @@ ], '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天。', - ], + ['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' => [], @@ -5716,14 +3680,10 @@ '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' => [ + 'summary' => '本接口用于创建或设置数据事件选择器。请注意:如要使用本接口创建数据事件选择器,必须保证跟踪名称存在。如不存在,请先调用CreateTrail接口创建跟踪。', 'path' => '', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -5735,66 +3695,44 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailK0OCFQ', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailK0OCFQ'], ], 'parameters' => [ [ 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'trail-name', - ], + '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"}]', - ], + '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', - ], + 'schema' => ['description' => '是否跟踪所有地域。默认值为:`false`。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'TrailRegionIds', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪地域列表,逗号分隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-shanghai,cn-hangzhou', - ], + 'schema' => ['description' => '跟踪地域列表,逗号分隔。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai,cn-hangzhou'], ], ], 'responses' => [ @@ -5804,46 +3742,31 @@ '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', - ], + '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' => [], @@ -5855,15 +3778,10 @@ 'operationType' => 'create', 'ramAction' => [ 'action' => 'actiontrail:PutDataEventSelector', - 'authLevel' => 'operate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], @@ -5872,14 +3790,8 @@ ], 'PutInsightSelectors' => [ 'summary' => '设置跟踪需投递的InsightTypes。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5891,32 +3803,18 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail3ODDBG', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail3ODDBG'], ], 'parameters' => [ [ 'name' => 'TrailName', 'in' => 'query', - 'schema' => [ - 'description' => '跟踪名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'trail-name', - ], + '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"}]', - ], + 'schema' => ['description' => 'Insight事件类型(JSON格式)数组。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '[{"insightType":"AkInsight"},{"insightType":"IpInsight"}]'], ], ], 'responses' => [ @@ -5928,22 +3826,10 @@ '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', + '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' => '', ], @@ -5951,11 +3837,7 @@ ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'InsightSelectorDoesNotExistException', - 'errorMessage' => 'The special Selector is not existed.', - 'description' => '', - ], + ['errorCode' => 'InsightSelectorDoesNotExistException', 'errorMessage' => 'The special Selector is not existed.', 'description' => ''], ], ], 'title' => '设置洞察选择器', @@ -5967,39 +3849,24 @@ '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', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], + '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', - ], + 'schema' => ['description' => '要启用的跟踪名称。'."\n" + ."\n" + .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" + ."\n" + .'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'], ], ], 'responses' => [ @@ -6007,36 +3874,25 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - 'description' => '指定的跟踪不存在。', - ], + ['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' => 'StartLogging', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartLogging'], ], ], 'ramActions' => [ @@ -6047,12 +3903,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], @@ -6060,37 +3911,25 @@ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], 'StopLogging' => [ - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'summary' => '停止跟踪,停止将操作审计事件投递到 OSS 或 SLS 或 MaxCompute。', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], + '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', - ], + 'schema' => ['description' => '要禁用的跟踪名称。'."\n" + ."\n" + .'长度为6~36个字符,必须以小写英文字母开头,可包含小写英文字母、数字、短划线(-)和下划线(_)。'."\n" + ."\n" + .'> 同一个账号内跟踪名称不可重复。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'trail-test'], ], ], 'responses' => [ @@ -6098,37 +3937,24 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1C488B66-B819-4D14-8711-C4EAAA13AC01', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1C488B66-B819-4D14-8711-C4EAAA13AC01'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 404 => [ - [ - 'errorCode' => 'TrailNotFoundException', - 'errorMessage' => 'The specified Trail does not exist.', - 'description' => '指定的跟踪不存在。', - ], + ['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', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopLogging'], ], ], 'ramActions' => [ @@ -6139,12 +3965,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], @@ -6153,14 +3974,8 @@ ], 'UpdateAdvancedQueryTemplate' => [ 'summary' => '更新高级查询模板。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6172,51 +3987,29 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrailDEDB14', - ], + 'abilityTreeNodes' => ['FEATUREactiontrailDEDB14'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'TemplateId', 'in' => 'query', - 'schema' => [ - 'description' => '模板ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****', - ], + 'schema' => ['description' => '模板ID。', 'type' => 'string', 'required' => true, 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****'], ], [ 'name' => 'TemplateName', 'in' => 'query', - 'schema' => [ - 'description' => '模板名称最大长度64。', - 'type' => 'string', - 'required' => false, - 'example' => 'example-template', - ], + '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', - ], + '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', - ], + 'schema' => ['description' => '是否开启简单查询模式。', 'type' => 'boolean', 'required' => true, 'example' => 'false'], ], ], 'responses' => [ @@ -6224,32 +4017,13 @@ '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: *', - ], + '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: *'], ], + 'description' => '', ], ], ], @@ -6266,12 +4040,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], ], ], ], @@ -6279,14 +4048,9 @@ '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', - ], + 'summary' => '设置全局事件存储地域。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6298,9 +4062,7 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREactiontrail321LUI', - ], + 'abilityTreeNodes' => ['FEATUREactiontrail321LUI'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ @@ -6311,10 +4073,7 @@ 'description' => '全局事件存储地域。', 'type' => 'string', 'required' => true, - 'enumValueTitles' => [ - 'ap-southeast-1' => 'ap-southeast-1', - 'cn-hangzhou' => 'cn-hangzhou', - ], + 'enumValueTitles' => ['ap-southeast-1' => 'ap-southeast-1', 'cn-hangzhou' => 'cn-hangzhou'], 'example' => 'ap-southeast-1', ], ], @@ -6326,21 +4085,13 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'D7A0694E-C8FE-574E-92E3-63C5B5D23BD4', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'D7A0694E-C8FE-574E-92E3-63C5B5D23BD4'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '设置全局事件存储地域', - 'summary' => '设置全局事件存储地域。', 'description' => '默认您的全局事件存储在华东1(杭州)'."\n" .'新加坡。'."\n" ."\n" @@ -6349,12 +4100,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'UpdateGlobalEventsStorageRegion', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateGlobalEventsStorageRegion'], ], ], 'ramActions' => [ @@ -6365,12 +4111,7 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'], ], ], ], @@ -6378,14 +4119,8 @@ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7A0694E-C8FE-574E-92E3-63C5B5D23BD4\\"\\n}","type":"json"}]', ], 'UpdateTrail' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6393,138 +4128,85 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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', - ], + '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_****', - ], + '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', - ], + 'schema' => ['description' => '操作审计向日志服务项目投递操作事件时,扮演的角色ARN。'."\n" + ."\n" + .'- 如果不指定该参数,操作审计会通过创建服务关联角色来创建相应的资源。更多信息,请参见[操作审计服务关联角色](~~169244~~)。'."\n" + .'- 如果指定了该参数,当您需要将事件投递到本账号时,需要为RAM角色授予操作审计服务关联角色权限。当您需要将事件投递到其他账号时,需要为RAM角色绑定操作事件投递的系统权限策略。关于如何进行跨账号投递,请参见[将多个阿里云账号的事件投递到同一账号](~~207462~~)。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::151277687691****:role/aliyunserviceroleforactiontrail'], ], ], 'responses' => [ @@ -6532,121 +4214,38 @@ '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', - ], + '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' => '2599A180-5236-44D8-9490-50B6F4F8BA35'], + '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'], ], + 'description' => '', ], ], ], '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前缀无效。', - ], + ['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' => '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' => '', - ], + ['errorCode' => 'TrailNotFoundException', 'errorMessage' => 'The specified Trail does not exist.', 'description' => '指定的跟踪不存在。'], + ['errorCode' => 'BucketDoesNotExistException', 'errorMessage' => 'The specified OSS bucket does not exist.', 'description' => ''], ], ], 'title' => '更新跟踪', @@ -6656,12 +4255,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '5', - 'countWindow' => 1, - 'regionId' => '*', - 'api' => 'UpdateTrail', - ], + ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrail'], ], ], 'ramActions' => [ @@ -6672,722 +4266,187 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['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":""}]', + '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\\": \\"2599A180-5236-44D8-9490-50B6F4F8BA35\\",\\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":""}]', ], ], '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', - ], + ['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-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-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-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-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-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' => '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-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' => '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-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' => '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' => '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' => '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' => '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-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' => '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' => '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' => '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' => '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' => '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' => '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' => 'AnalysisTimeRangeExceeded', 'message' => 'The time range between StartTime and EndTime cannot exceed 7 days.', 'http_code' => 400, 'description' => 'StartTime 和 EndTime 之间的时间范围不能超过 7 天。'], + ['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' => '不支持的跟踪。'], + ], + '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', - ], + 'ramCodes' => ['actiontrail'], 'ramLevel' => '操作级', 'ramConditions' => [], 'ramActions' => [ [ - 'apiName' => 'GetAccessKeyLastUsedEvents', - 'description' => '查询指定AccessKey的最后使用的事件记录', + 'apiName' => 'GetAccessKeyLastUsedResources', + 'description' => '查询指定AccessKey的最后使用的资源记录', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:GetAccessKeyLastUsedEvents', + 'action' => 'actiontrail:GetAccessKeyLastUsedResources', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DeleteAdvancedQueryHistory', - 'description' => '删除高级查询历史', - 'operationType' => 'delete', - 'additionalActions' => [], + 'apiName' => 'EnableInsight', + 'description' => '开启审计事件洞察', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'actiontrail:DeleteAdvancedQueryHistory', + 'action' => 'actiontrail:EnableInsight', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['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' => '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' => '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}'], ], ], ], @@ -7400,211 +4459,202 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'HistoryDeliveryJob', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'], ], ], ], [ - 'apiName' => 'DeleteDeliveryHistoryJob', - 'description' => '删除数据回补投递任务', - 'operationType' => 'delete', + 'apiName' => 'GetGovernanceMetrics', + 'description' => '查询操作审计成熟度', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:DeleteDeliveryHistoryJob', + 'action' => 'actiontrail:GetGovernanceMetrics', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'HistoryDeliveryJob', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DescribeSearchTemplates', - 'description' => '查询高级查询系统模板', + 'apiName' => 'GetInsightsEventsCount', + 'description' => '获取洞察事件数量', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'actiontrail:GetInsightsEventsCount', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + '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' => 'LookupInsightEvents', + 'description' => '查询洞察事件', 'operationType' => 'list', - 'additionalActions' => [], 'ramAction' => [ - 'action' => 'actiontrail:DescribeSearchTemplates', + 'action' => 'actiontrail:LookupInsightEvents', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'StartLogging', - 'description' => '启用跟踪', + 'apiName' => 'StopLogging', + 'description' => '禁用跟踪', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'actiontrail:StartLogging', + 'action' => 'actiontrail:StopLogging', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], [ - 'apiName' => 'UpdateGlobalEventsStorageRegion', - 'description' => '设置全局事件存储地域', + 'apiName' => 'StartLogging', + 'description' => '启用跟踪', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'actiontrail:UpdateGlobalEventsStorageRegion', + 'action' => 'actiontrail:StartLogging', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'ActionTrailVirtual', - 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], [ - 'apiName' => 'GetGovernanceMetrics', - 'description' => '查询操作审计成熟度', - 'operationType' => 'get', + 'apiName' => 'DescribeUserLogCount', + 'description' => '查询用户时间段内每日日志量', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'actiontrail:GetGovernanceMetrics', + 'action' => 'actiontrail:DescribeUserLogCount', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListDeliveryHistoryJobs', - 'description' => '获取数据回补投递任务', - 'operationType' => 'get', + 'apiName' => 'CreateTrail', + 'description' => '创建跟踪', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'actiontrail:ListDeliveryHistoryJobs', - 'authLevel' => 'resource', + 'action' => 'actiontrail:CreateTrail', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'HistoryDeliveryJob', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'], ], ], ], [ - 'apiName' => 'DescribeTrails', - 'description' => '查询某地域的跟踪列表', + 'apiName' => 'ListDataEventServices', + 'description' => '查询数据事件支持服务与事件名称', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:DescribeTrails', + 'action' => 'actiontrail:ListDataEventServices', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DescribeUserLogCount', - 'description' => '查询用户时间段内每日日志量', + 'apiName' => 'DescribeUserAlertCount', + 'description' => '查询用户时间段内每日告警量', 'operationType' => 'none', 'ramAction' => [ - 'action' => 'actiontrail:DescribeUserLogCount', + 'action' => 'actiontrail:DescribeUserAlertCount', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + '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' => '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' => 'CreateAdvancedQueryHistory', - 'description' => '创建高级查询历史', - 'operationType' => 'create', + 'apiName' => 'GetInsightSelectors', + 'description' => '获取洞察选择器', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:CreateAdvancedQueryHistory', + 'action' => 'actiontrail:GetInsightSelectors', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'EnableInsight', - 'description' => '开启审计事件洞察', - 'operationType' => 'update', + 'apiName' => 'DescribeAdvancedQueryTemplate', + 'description' => '查询高级查询模板', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:EnableInsight', - 'authLevel' => 'operate', + 'action' => 'actiontrail:DescribeAdvancedQueryTemplate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'], ], ], ], [ - 'apiName' => 'StopLogging', - 'description' => '禁用跟踪', - 'operationType' => 'update', + 'apiName' => 'DeleteAdvancedQueryTemplate', + 'description' => '删除高级查询模板', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'actiontrail:StopLogging', - 'authLevel' => 'operate', + 'action' => 'actiontrail:DeleteAdvancedQueryTemplate', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], ], ], ], @@ -7617,120 +4667,98 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], ], ], ], [ - 'apiName' => 'GetGlobalEventsStorageRegion', - 'description' => '查询全局事件存储地域', - 'operationType' => 'get', + 'apiName' => 'DescribeUserTrailCount', + 'description' => '查询用户跟踪数量', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'actiontrail:GetGlobalEventsStorageRegion', + 'action' => 'actiontrail:DescribeUserTrailCount', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'ActionTrailVirtual', - 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetAccessKeyLastUsedProducts', - 'description' => '查询指定AccessKey的最后使用的云服务记录', + 'apiName' => 'DescribeScenes', + 'description' => '查询高级查询场景', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:GetAccessKeyLastUsedProducts', + 'action' => 'actiontrail:DescribeScenes', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetAccessKeyLastUsedInfo', - 'description' => '查询指定AccessKey的最后使用记录', + 'apiName' => 'DescribeTrailDeliveryMetricData', + 'description' => '获取投递监控指标', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:GetAccessKeyLastUsedInfo', + 'action' => 'actiontrail:DescribeTrailDeliveryMetricData', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetTrailStatus', - 'description' => '查询跟踪状态', + 'apiName' => 'ListDataEventSelectors', + 'description' => '列举所有数据事件选择器', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:GetTrailStatus', - 'authLevel' => 'operate', + 'action' => 'actiontrail:ListDataEventSelectors', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'], ], ], ], [ - 'apiName' => 'GetDeliveryHistoryJob', - 'description' => '查询数据回补投递任务详情', - 'operationType' => 'get', + 'apiName' => 'UpdateAdvancedQueryTemplate', + 'description' => '更新高级查询模板', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'actiontrail:GetDeliveryHistoryJob', + 'action' => 'actiontrail:UpdateAdvancedQueryTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeAdvancedQueryHistory', + 'description' => '查询高级查询历史', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'actiontrail:DescribeAdvancedQueryHistory', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'HistoryDeliveryJob', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DescribeScenes', - 'description' => '查询高级查询场景', + 'apiName' => 'GetAccessKeyLastUsedProducts', + 'description' => '查询指定AccessKey的最后使用的云服务记录', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:DescribeScenes', + 'action' => 'actiontrail:GetAccessKeyLastUsedProducts', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -7743,358 +4771,242 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], [ - 'apiName' => 'PutDataEventSelector', - 'description' => '设置数据事件选择器', - 'operationType' => 'create', + 'apiName' => 'LookupEvents', + 'description' => '检索详细事件', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:PutDataEventSelector', - 'authLevel' => 'resource', + 'action' => 'actiontrail:LookupEvents', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'LookupEvents', - 'description' => '检索详细事件', - 'operationType' => 'get', + 'apiName' => 'DescribeResourceLifeCycleEvents', + 'description' => '查询资源生命周期事件', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:LookupEvents', + 'action' => 'actiontrail:DescribeResourceLifeCycleEvents', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DeleteAdvancedQueryTemplate', - 'description' => '删除高级查询模板', - 'operationType' => 'delete', + 'apiName' => 'GetAccessKeyLastUsedIps', + 'description' => '查询指定AccessKey的最后使用的IP记录', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:DeleteAdvancedQueryTemplate', - 'authLevel' => 'resource', + 'action' => 'actiontrail:GetAccessKeyLastUsedIps', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DeleteTrail', - 'description' => '删除跟踪', - 'operationType' => 'delete', + 'apiName' => 'GetDeliveryHistoryJob', + 'description' => '查询数据回补投递任务详情', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:DeleteTrail', + 'action' => 'actiontrail:GetDeliveryHistoryJob', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'], ], ], ], [ - 'apiName' => 'UpdateTrail', - 'description' => '更新跟踪', - 'operationType' => 'update', + 'apiName' => 'DeleteDeliveryHistoryJob', + 'description' => '删除数据回补投递任务', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'actiontrail:UpdateTrail', + 'action' => 'actiontrail:DeleteDeliveryHistoryJob', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'], ], ], ], [ - 'apiName' => 'GetAccessKeyLastUsedResources', - 'description' => '查询指定AccessKey的最后使用的资源记录', - 'operationType' => 'list', + 'apiName' => 'PutInsightSelectors', + 'description' => '设置洞察选择器', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'actiontrail:GetAccessKeyLastUsedResources', + 'action' => 'actiontrail:PutInsightSelectors', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DescribeAdvancedQueryTemplate', - 'description' => '查询高级查询模板', - 'operationType' => 'list', + 'apiName' => 'GetAccessKeyLastUsedInfo', + 'description' => '查询指定AccessKey的最后使用记录', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:DescribeAdvancedQueryTemplate', - 'authLevel' => 'resource', + 'action' => 'actiontrail:GetAccessKeyLastUsedInfo', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DescribeResourceLifeCycleEvents', - 'description' => '查询资源生命周期事件', + 'apiName' => 'DescribeSearchTemplates', + 'description' => '查询高级查询系统模板', 'operationType' => 'list', + 'additionalActions' => [], 'ramAction' => [ - 'action' => 'actiontrail:DescribeResourceLifeCycleEvents', + 'action' => 'actiontrail:DescribeSearchTemplates', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'DeleteDataEventSelector', - 'description' => '删除数据事件选择器', - 'operationType' => 'create', + 'apiName' => 'GetAccessKeyLastUsedEvents', + 'description' => '查询指定AccessKey的最后使用的事件记录', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'actiontrail:DeleteDataEventSelector', - 'authLevel' => 'resource', + 'action' => 'actiontrail:GetAccessKeyLastUsedEvents', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'CreateAdvancedQueryTemplate', - 'description' => '创建高级查询模板', + 'apiName' => 'DeleteDataEventSelector', + 'description' => '删除数据事件选择器', 'operationType' => 'create', 'ramAction' => [ - 'action' => 'actiontrail:CreateAdvancedQueryTemplate', + 'action' => 'actiontrail:DeleteDataEventSelector', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], [ - 'apiName' => 'ListDataEventSelectors', - 'description' => '列举所有数据事件选择器', - 'operationType' => 'get', + 'apiName' => 'DeleteAdvancedQueryHistory', + 'description' => '删除高级查询历史', + 'operationType' => 'delete', + 'additionalActions' => [], 'ramAction' => [ - 'action' => 'actiontrail:ListDataEventSelectors', - 'authLevel' => 'resource', + 'action' => 'actiontrail:DeleteAdvancedQueryHistory', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetAccessKeyLastUsedIps', - 'description' => '查询指定AccessKey的最后使用的IP记录', - 'operationType' => 'list', + 'apiName' => 'DisableInsight', + 'description' => '关闭审计事件洞察', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'actiontrail:GetAccessKeyLastUsedIps', + 'action' => 'actiontrail:DisableInsight', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'CreateTrail', - 'description' => '创建跟踪', - 'operationType' => 'create', + 'apiName' => 'DescribeTrails', + 'description' => '查询某地域的跟踪列表', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:CreateTrail', + 'action' => 'actiontrail:DescribeTrails', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'Trail', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'], ], ], ], [ - 'apiName' => 'DescribeUserAlertCount', - 'description' => '查询用户时间段内每日告警量', - 'operationType' => 'none', + 'apiName' => 'CreateAdvancedQueryHistory', + 'description' => '创建高级查询历史', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'actiontrail:DescribeUserAlertCount', + 'action' => 'actiontrail:CreateAdvancedQueryHistory', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListDataEventServices', - 'description' => '查询数据事件支持服务与事件名称', - 'operationType' => 'get', + 'apiName' => 'UpdateGlobalEventsStorageRegion', + 'description' => '设置全局事件存储地域', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'actiontrail:ListDataEventServices', + 'action' => 'actiontrail:UpdateGlobalEventsStorageRegion', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'], ], ], ], [ - 'apiName' => 'DescribeAdvancedQueryHistory', - 'description' => '查询高级查询历史', - 'operationType' => 'list', + 'apiName' => 'DeleteTrail', + 'description' => '删除跟踪', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'actiontrail:DescribeAdvancedQueryHistory', + 'action' => 'actiontrail:DeleteTrail', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], ], ], ], [ - 'apiName' => 'UpdateAdvancedQueryTemplate', - 'description' => '更新高级查询模板', - 'operationType' => 'update', + 'apiName' => 'GetInsightTypes', + 'description' => '获取审计事件洞察类型', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'actiontrail:UpdateAdvancedQueryTemplate', - 'authLevel' => 'resource', + 'action' => 'actiontrail:GetInsightTypes', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'ActionTrail', - 'resourceType' => 'AdvancedQueryTemplate', - 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}', - ], + ['validationType' => 'always', 'product' => 'ActionTrail', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], '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/*', - ], + ['validationType' => 'always', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*'], + ['validationType' => 'always', 'resourceType' => 'ActionTrailVirtual', 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}'], + ['validationType' => 'always', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}'], + ['validationType' => 'always', 'resourceType' => 'Trail', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*'], + ['validationType' => 'always', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*'], + ['validationType' => 'always', 'resourceType' => 'AdvancedQueryTemplate', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}'], + ['validationType' => 'always', 'resourceType' => 'HistoryDeliveryJob', 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}'], ], ], ]; -- cgit v1.2.3