summaryrefslogtreecommitdiff
path: root/data/en_us/actiontrail/2020-07-06/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/actiontrail/2020-07-06/api-docs.php')
-rw-r--r--data/en_us/actiontrail/2020-07-06/api-docs.php8910
1 files changed, 8910 insertions, 0 deletions
diff --git a/data/en_us/actiontrail/2020-07-06/api-docs.php b/data/en_us/actiontrail/2020-07-06/api-docs.php
new file mode 100644
index 0000000..127d118
--- /dev/null
+++ b/data/en_us/actiontrail/2020-07-06/api-docs.php
@@ -0,0 +1,8910 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'Actiontrail',
+ 'version' => '2020-07-06',
+ ],
+ 'directories' => [
+ [
+ 'children' => [
+ 'DescribeRegions',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Region',
+ ],
+ [
+ 'children' => [
+ 'CreateTrail',
+ 'DeleteTrail',
+ 'StartLogging',
+ 'UpdateTrail',
+ 'StopLogging',
+ 'GetTrailStatus',
+ 'DescribeTrails',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Trail',
+ ],
+ [
+ 'children' => [
+ 'LookupEvents',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Event',
+ ],
+ [
+ 'children' => [
+ 'CreateDeliveryHistoryJob',
+ 'DeleteDeliveryHistoryJob',
+ 'ListDeliveryHistoryJobs',
+ 'GetDeliveryHistoryJob',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Historical event delivery tasks',
+ ],
+ [
+ 'children' => [
+ 'GetAccessKeyLastUsedEvents',
+ 'GetAccessKeyLastUsedInfo',
+ 'GetAccessKeyLastUsedIps',
+ 'GetAccessKeyLastUsedProducts',
+ 'GetAccessKeyLastUsedResources',
+ ],
+ 'type' => 'directory',
+ 'title' => 'AccessKey pair audit',
+ ],
+ [
+ 'children' => [
+ 'ListDataEventSelectors',
+ 'GetDataEventSelector',
+ 'PutDataEventSelector',
+ 'DeleteDataEventSelector',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Data event selector',
+ ],
+ [
+ 'children' => [
+ 'EnableInsight',
+ 'DisableInsight',
+ 'GetInsightTypes',
+ 'GetInsightSelectors',
+ 'GetInsightsEventsCount',
+ 'PutInsightSelectors',
+ 'LookupInsightEvents',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Insights',
+ ],
+ [
+ 'children' => [
+ 'UpdateAdvancedQueryTemplate',
+ 'GetGlobalEventsStorageRegion',
+ 'UpdateGlobalEventsStorageRegion',
+ 'CreateAdvancedQueryTemplate',
+ 'DeleteAdvancedQueryTemplate',
+ 'DescribeAdvancedQueryTemplate',
+ 'DescribeUserAlertCount',
+ 'DescribeUserLogCount',
+ 'GetAdvancedQueryTemplate',
+ 'DeleteAdvancedQueryHistory',
+ 'CreateAdvancedQueryHistory',
+ 'DescribeAdvancedQueryHistory',
+ 'DescribeResourceLifeCycleEvents',
+ 'DescribeScenes',
+ 'DescribeSearchTemplates',
+ 'ListDataEventServices',
+ 'GetGovernanceMetrics',
+ ],
+ 'type' => 'directory',
+ 'title' => 'Other',
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'CreateAdvancedQueryHistory' => [
+ 'summary' => 'Creates an advanced query record. It lets you save custom conditional statements for reuse.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'QuerySql',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The conditional statement for the query.'."\n"
+ ."\n"
+ .'For more information, see [SQL syntax for advanced queries](~~2557373~~).',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'event.userIdentity.accessKeyId: *',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'SimpleQuery',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable simple query mode.',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'QueryId' => [
+ 'description' => 'The ID of the advanced query record.',
+ 'type' => 'string',
+ 'example' => 'query-uIkIvLiVSuCKqg0yoa****',
+ 'title' => '',
+ ],
+ 'QuerySql' => [
+ 'description' => 'The conditional statement for the query.',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.accessKeyId: *',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'D0227506-AA8C-5998-8A62-74769106****',
+ 'title' => '',
+ ],
+ 'SimpleQuery' => [
+ 'description' => 'Indicates whether simple query mode is enabled.',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'CreateAdvancedQueryHistory',
+ 'description' => 'This topic provides an example of how to save a conditional statement as an advanced query record. The statement queries logs for all `AccessKey` access events.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QueryId\\": \\"query-uIkIvLiVSuCKqg0yoa****\\",\\n \\"QuerySql\\": \\"event.userIdentity.accessKeyId: *\\",\\n \\"RequestId\\": \\"D0227506-AA8C-5998-8A62-74769106****\\",\\n \\"SimpleQuery\\": false\\n}","type":"json"}]',
+ ],
+ 'CreateAdvancedQueryTemplate' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the template, which can contain a maximum of 64 characters. Uniqueness is not required.',
+ 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => 'test1',
+ ],
+ ],
+ [
+ 'name' => 'TemplateSql',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The query statement of the template.',
+ 'type' => 'string',
+ 'required' => true,
+ 'title' => '',
+ 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ [
+ 'name' => 'SimpleQuery',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable the simple query mode.',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '不开启',
+ ],
+ 'title' => '',
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E551964F5',
+ ],
+ 'SimpleQuery' => [
+ 'description' => 'Indicates whether the simple query mode is enabled.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'false',
+ ],
+ 'TemplateId' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'x4a0Tw5dQy2J6IRJxf4kng',
+ ],
+ 'TemplateName' => [
+ 'description' => 'The template name.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'test1',
+ ],
+ 'TemplateSql' => [
+ 'description' => 'The query statement.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'event.errorCode: * AND event.userIdentity.accessKeyId: *',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'CreateAdvancedQueryTemplate',
+ 'summary' => 'Creates an advanced query template.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E551964F5\\",\\n \\"SimpleQuery\\": \\"false\\",\\n \\"TemplateId\\": \\"x4a0Tw5dQy2J6IRJxf4kng\\",\\n \\"TemplateName\\": \\"test1\\",\\n \\"TemplateSql\\": \\"event.errorCode: * AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
+ ],
+ 'CreateDeliveryHistoryJob' => [
+ 'summary' => 'Creates a data backfill task.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The client token that is used to ensure the idempotence of the request. The value is generated by the client and must be globally unique.'."\n"
+ ."\n"
+ .'The token can contain only ASCII characters and can be up to 64 characters in length.'."\n"
+ ."\n"
+ .'For more information, see [How to ensure idempotence](~~25693~~).',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123e4567-e89b-12d3-a456-42665544****',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'JobId' => [
+ 'description' => 'The task ID.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '16602',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '9D356A34-D5A9-41CD-9915-837B7F9D8722',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ ],
+ ],
+ 'title' => 'CreateDeliveryHistoryJob',
+ 'description' => 'Limitations'."\n"
+ ."\n"
+ .'- You must first call the [CreateTrail](~~212313~~) operation to create a single-account trail that delivers events to Simple Log Service (SLS).'."\n"
+ ."\n"
+ .'- An Alibaba Cloud account can have only one data backfill task running at a time.'."\n"
+ ."\n"
+ .'This topic provides an example of how to create data backfill task for the trail `trail-name`.',
+ 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~185885~~).',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'CreateDeliveryHistoryJob',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"JobId\\": 16602,\\n \\"RequestId\\": \\"9D356A34-D5A9-41CD-9915-837B7F9D8722\\"\\n}","type":"json"}]',
+ ],
+ 'CreateTrail' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.'."\n"
+ ."\n"
+ .'> - Length: 6 to 36 characters.'."\n"
+ .'>'."\n"
+ .'> - Characters: Lowercase letters, digits, hyphens (-), and underscores (\\_).'."\n"
+ .'>'."\n"
+ .'> - Must start with a lowercase letter.'."\n"
+ .'>'."\n"
+ .'> - Must be uniquewithin an Alibaba Cloud account.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'OssBucketName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the OSS bucket to which ActionTrail delivers events.'."\n"
+ ."\n"
+ .'- Length: 3 to 63 characters.'."\n"
+ ."\n"
+ .'- Characters: Lowercase letters, digits, and hyphens (-).'."\n"
+ ."\n"
+ .'- Must start with a lowercase letter or a digit.'."\n"
+ ."\n"
+ .'> You must specify a destination for the trail by providing at least one of the following parameters: `OssBucketName`, `SlsProjectArn`, or `MaxComputeProjectArn`.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'OssKeyPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The prefix for the names of log files that ActionTrail delivers to your OSS bucket.'."\n"
+ ."\n"
+ .'- Length: 6 to 32 characters.'."\n"
+ ."\n"
+ .'- Characters: Letters, digits, hyphens (-), forward slashes (/), and underscores (\\_).'."\n"
+ ."\n"
+ .'- Must start with a letter.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'at-product-account-audit-B',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'OssWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role that ActionTrail assumes to deliver events to the OSS bucket.'."\n"
+ ."\n"
+ .'- If you do not specify this parameter, ActionTrail creates a service-linked role to deliver events. For more information, see [ActionTrail service-linked role](~~169244~~).'."\n"
+ ."\n"
+ .'- If you specify a role, it must be a RAM role that you created. This role must have a trust policy that allows the ActionTrail service (actiontrail.aliyuncs.com) to assume it. The role\'s RAM policy must grant permissions to write to the specified OSS bucket. For more information about cross-account delivery, see [Deliver events from multiple Alibaba Cloud accounts to the same account](~~207462~~).',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'SlsProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the SLS project to which ActionTrail delivers events.'."\n"
+ ."\n"
+ .'> You must specify a destination for the trail by providing at least one of the following parameters: `OssBucketName`, `SlsProjectArn`, or `MaxComputeProjectArn`.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:log:cn-shanghai:151266687691****:project/test-project',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'SlsWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the RAM role that ActionTrail assumes to deliver events to the SLS project.'."\n"
+ ."\n"
+ .'- If this parameter is not specified, ActionTrail creates a service-linked role to deliver events. For more information, see [ActionTrail service-linked role](~~169244~~).'."\n"
+ ."\n"
+ .'- If you specify a role, it must be a RAM role that you created. This role must have a trust policy that allows the ActionTrail service (actiontrail.aliyuncs.com) to assume it. The role\'s permission policy must grant permissions to write to the specified SLS project. For more information about cross-account delivery, see [Deliver events from multiple Alibaba Cloud accounts to the same account](~~207462~~).',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies the read/write type of events that the trail delivers. Valid values:'."\n"
+ ."\n"
+ .'- Write: Write events.'."\n"
+ ."\n"
+ .'- Read: Read events.'."\n"
+ ."\n"
+ .'- All (default): All read and write events.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Write',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The region in which the trail is created. By default, a trail is created in all regions and this parameter is set to `All`. To create a trail in a specific region, provide the region ID. For more information about regions, call the [DescribeRegions](~~213597~~) operation.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'IsOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether the trail is a multi-account trail. Valid values:'."\n"
+ ."\n"
+ .'- true'."\n"
+ ."\n"
+ .'- false (default)'."\n"
+ ."\n"
+ .'To create a trail for an organization, set this parameter to `true`. The trail will collect events from all member accounts in the organization.',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the MaxCompute project to which ActionTrail delivers events.'."\n"
+ ."\n"
+ .'> You must specify a destination for the trail by providing at least one of the following parameters: `OssBucketName`, `SlsProjectArn`, or `MaxComputeProjectArn`.'."\n"
+ ."\n"
+ .'> The project name in the ARN must start with `actiontrail_`.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:odps:cn-hangzhou:15127787691****:project/actiontrail_****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the RAM role that ActionTrail assumes to deliver events to the MaxCompute project.'."\n"
+ ."\n"
+ .'- If this parameter is not specified, ActionTrail creates a service-linked role to deliver events. For more information, see [ActionTrail service-linked role](~~169244~~).'."\n"
+ ."\n"
+ .'- If you specify a role, it must be a RAM role that you created. This role must have a trust policy that allows the ActionTrail service (\\`actiontrail.aliyuncs.com\\`) to assume it. The role\'s permission policy must grant permissions to write to the specified MaxCompute project. For more information about cross-account delivery, see [Deliver events from multiple Alibaba Cloud accounts to the same account](~~207462~~).',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::15127787691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EventRW' => [
+ 'description' => 'The read/write type of events that the trail delivers.',
+ 'type' => 'string',
+ 'example' => 'Write',
+ 'title' => '',
+ ],
+ 'HomeRegion' => [
+ 'description' => 'The home region of the trail.',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'MaxComputeProjectArn' => [
+ 'description' => 'The ARN of the MaxCompute project to which the trail delivers events.',
+ 'type' => 'string',
+ 'example' => 'acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****',
+ 'title' => '',
+ ],
+ 'MaxComputeWriteRoleArn' => [
+ 'description' => 'The ARN of the RAM role that ActionTrail assumes to deliver events to the MaxCompute project.',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'example' => 'trail-test',
+ 'title' => '',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'The name of the destination OSS bucket.',
+ 'type' => 'string',
+ 'example' => 'audit-log',
+ 'title' => '',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'The prefix for the names of log files in the OSS bucket.',
+ 'type' => 'string',
+ 'example' => 'at-product-account-audit-B',
+ 'title' => '',
+ ],
+ 'OssWriteRoleArn' => [
+ 'description' => 'The ARN of the RAM role that ActionTrail assumes to deliver events to the OSS bucket.',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '442DDADF-DA58-4029-8E8B-82C73E9A7A70',
+ 'title' => '',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => 'The ARN of the SLS project to which the trail delivers events.',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project',
+ 'title' => '',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => 'The ARN of the RAM role that ActionTrail assumes to deliver events to the SLS project.',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'TrailRegion' => [
+ 'description' => 'The region in which the trail is created. A value of `All` indicates that the trail processes events from all regions.',
+ 'type' => 'string',
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ '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' => 'The specified OSS bucket prefix is not valid.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ [
+ 'errorCode' => 'InvalidTrailNameException',
+ 'errorMessage' => 'The specified Trail name is invalid.',
+ 'description' => 'The specified Trail name is not valid.',
+ ],
+ [
+ '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' => 'The specified Trail name already exists,if you want to create a new Trail,please use another Trail name.',
+ ],
+ [
+ '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' => 'Access SLS Project denied.',
+ ],
+ [
+ 'errorCode' => 'MaximumNumberOfTrailsExceededException',
+ 'errorMessage' => 'The number of Trails in the same region exceeds the upper limit (5).',
+ 'description' => 'The number of Trail in same region has exceeded the limit 5',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'BucketDoesNotExistException',
+ 'errorMessage' => 'The specified OSS bucket does not exist.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => 'CreateTrail',
+ 'summary' => 'Creates a trail to deliver events to a destination for long-term storage and analysis, such as an Object Storage Service (OSS) bucket, a Simple Log Service (SLS) Logstore, or a MaxCompute project.',
+ 'description' => '> By default, a trail that you create by using this API is in a **disabled** state. You must call the [StartLogging](~~432246~~) operation operation to enable the trail. After a trail is enabled, ActionTrail begins delivering events to your specified destination.'."\n"
+ ."\n"
+ .'### Prerequisites'."\n"
+ ."\n"
+ .'Before you create a trail, you must have at least one of the following resources configured as a destination:'."\n"
+ ."\n"
+ .'- OSS'."\n"
+ ."\n"
+ .' You must activate OSS and create a bucket.'."\n"
+ ."\n"
+ .'- SLS'."\n"
+ ."\n"
+ .' You must activate SLS and create a Logstore.'."\n"
+ ."\n"
+ .' > When you create a trail with an SLS destination, ActionTrail automatically creates a Logstore named `actiontrail_<trail_name>` in your specified project. To ensure the integrity of your audit data, this Logstore only accepts events delivered by ActionTrail.'."\n"
+ ."\n"
+ .'- MaxCompute'."\n"
+ ."\n"
+ .' You must activate MaxCompute.'."\n"
+ ."\n"
+ .' > When you create a trail with a MaxCompute destination, ActionTrail automatically creates a project named `actiontrail_<account_ID>`. To ensure the integrity of your audit data, this project only accepts events delivered by ActionTrail.'."\n"
+ ."\n"
+ .'### Usage notes'."\n"
+ ."\n"
+ .'This example shows how to create a single-account trail named `trail-test` that delivers events to an OSS bucket named `audit-log`.',
+ 'requestParamsDescription' => 'For more information, see [Common parameters](~~185885~~).',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'CreateTrail',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ ],
+ 'DeleteAdvancedQueryHistory' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'QueryId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the advanced query record.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'query-uIkIvLiVSuCKqg0yoa****',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '04857D99-8B0C-53EB-85F1-E64198E7****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'DeleteAdvancedQueryHistory',
+ 'summary' => 'Deletes an advanced query record.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"04857D99-8B0C-53EB-85F1-E64198E7****\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteAdvancedQueryTemplate' => [
+ 'summary' => 'Deletes an advanced query template.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the template.',
+ 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => 'utpl-QNL3dpYkQcyjZxrIQCciqQ',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '95F2CD1D-9BD3-564A-A74A-743FFC5E46E5',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DeleteAdvancedQueryTemplate',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"95F2CD1D-9BD3-564A-A74A-743FFC5E46E5\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteDataEventSelector' => [
+ 'summary' => 'Deletes the data event selector for a specified trail.',
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '1D9DD159-DFFF-4882-ACEC-B4A727E9****',
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The response parameters.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'DeleteDataEventSelector',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1D9DD159-DFFF-4882-ACEC-B4A727E9****\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteDeliveryHistoryJob' => [
+ 'summary' => 'Deletes a data backfill task.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'JobId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the historical event delivery task to be deleted.'."\n"
+ ."\n"
+ .'You can call the [ListDeliveryHistoryJobs](~~188101~~) operation to query task IDs.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'maximum' => '2147483647',
+ 'minimum' => '0',
+ 'example' => '16602',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'D74DD20B-6598-429C-873B-B9B449B656B6',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 503 => [
+ [
+ 'errorCode' => 'ServiceUnavailable',
+ 'errorMessage' => 'The service is unavailable. Please try again later.',
+ 'description' => 'An error occurred while processing your request.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D74DD20B-6598-429C-873B-B9B449B656B6\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteDeliveryHistoryJob',
+ 'description' => 'This topic describes how to delete a data backfill task whose ID is `16602`.'."\n",
+ 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~185885~~).'."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DeleteDeliveryHistoryJob',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DeleteTrail' => [
+ 'summary' => 'Deletes a trail.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail that you want to delete.'."\n"
+ ."\n"
+ .'The name must be 6 to 36 characters in length. The name must start with a lowercase letter and can contain lowercase letters, digits, hyphens (-), and underscores (\\_).'."\n"
+ ."\n"
+ .'> The name must be unique within your Alibaba Cloud account.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'my-test',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ 'title' => '',
+ ],
+ ],
+ 'description' => 'test',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteTrail',
+ 'description' => 'This topic describes how to delete a sample trail named `trail-test`.'."\n",
+ 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~185885~~).'."\n",
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DeleteTrail',
+ ],
+ ],
+ ],
+ ],
+ 'DescribeAdvancedQueryHistory' => [
+ 'summary' => 'Queries all advanced query records.',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'QueryHistoryList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'QueryId' => [
+ 'description' => 'The ID of the advanced query record.',
+ 'type' => 'string',
+ 'example' => 'query-uIkIvLiVSuCKqg0yoa****',
+ 'title' => '',
+ ],
+ 'QuerySql' => [
+ 'description' => 'The conditional statement for the query.',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.accessKeyId: *',
+ 'title' => '',
+ ],
+ 'SimpleQuery' => [
+ 'description' => 'Indicates whether simple query mode is enabled.',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ 'TimeStamp' => [
+ 'description' => 'The time when the advanced query record was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.',
+ 'type' => 'string',
+ 'example' => '1753695874000',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'The list of advanced query records.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '19F032B7-5FD8-5AC9-97FD-ACF54371****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DescribeAdvancedQueryHistory',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"QueryHistoryList\\": [\\n {\\n \\"QueryId\\": \\"query-uIkIvLiVSuCKqg0yoa****\\",\\n \\"QuerySql\\": \\"event.userIdentity.accessKeyId: *\\",\\n \\"SimpleQuery\\": false,\\n \\"TimeStamp\\": \\"1753695874000\\"\\n }\\n ],\\n \\"RequestId\\": \\"19F032B7-5FD8-5AC9-97FD-ACF54371****\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeAdvancedQueryTemplate' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the template. This operation performs a case-insensitive, fuzzy match. If you do not specify a name, all templates are returned.'."\n"
+ ."\n"
+ .'For example, if you specify `a`, templates named `a1` and `a2` are returned. If you leave this parameter empty, templates named `a1`, `a2`, `b1`, and `c1` are returned.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-template',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number. The value starts from 1.'."\n"
+ ."\n"
+ .'Default value: 1.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The maximum number of results to return.'."\n"
+ .'Default value: 20.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '1EC1FDC7-6D01-559F-852C-30D86E9EEB3F',
+ 'title' => '',
+ ],
+ 'TemplatePage' => [
+ 'description' => 'The paginated list of templates.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'description' => 'The page number.',
+ 'type' => 'string',
+ 'example' => '1',
+ 'title' => '',
+ ],
+ 'PageSize' => [
+ 'description' => 'The maximum number of results returned.'."\n"
+ .'Default value: 20.',
+ 'type' => 'string',
+ 'example' => '20',
+ 'title' => '',
+ ],
+ 'TemplateList' => [
+ 'description' => 'The list of template details.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SimpleQuery' => [
+ 'description' => 'Indicates whether the simple query mode is enabled.',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ 'TemplateId' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'example' => 'utpl-7OaxbyJATDaoLOgZRc****',
+ 'title' => '',
+ ],
+ 'TemplateName' => [
+ 'description' => 'The template name.',
+ 'type' => 'string',
+ 'example' => 'example-template',
+ 'title' => '',
+ ],
+ 'TemplateSql' => [
+ 'description' => 'The query statement.',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Total' => [
+ 'description' => 'The total number of records.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DescribeAdvancedQueryTemplate',
+ 'summary' => 'Queries advanced query templates.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1EC1FDC7-6D01-559F-852C-30D86E9EEB3F\\",\\n \\"TemplatePage\\": {\\n \\"PageNumber\\": \\"1\\",\\n \\"PageSize\\": \\"20\\",\\n \\"TemplateList\\": [\\n {\\n \\"SimpleQuery\\": false,\\n \\"TemplateId\\": \\"utpl-7OaxbyJATDaoLOgZRc****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n }\\n ],\\n \\"Total\\": 5\\n }\\n}","type":"json"}]',
+ ],
+ 'DescribeRegions' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AcceptLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The language of the region names. Valid values:'."\n"
+ ."\n"
+ .'- zh-CN: Chinese.'."\n"
+ ."\n"
+ .'- en-US (default): English.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'en-US',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Regions' => [
+ 'type' => 'object',
+ 'itemNode' => true,
+ 'properties' => [
+ 'Region' => [
+ 'description' => 'The list of regions.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LocalName' => [
+ 'description' => 'The name of the region.'."\n"
+ ."\n"
+ .'> The value of this parameter is in Chinese if you set `AcceptLanguage` to `zh-CN`. The value is in English if you set `AcceptLanguage` to `en-US` or do not specify this parameter.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'China (Hangzhou)',
+ ],
+ 'RegionEndpoint' => [
+ 'description' => 'The endpoint of ActionTrail in the region.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'ACA7C814-12BC-4D81-A0D2-72071C9D6D2C',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DescribeRegions',
+ 'summary' => 'Queries the Alibaba Cloud regions that are supported by ActionTrail.',
+ 'description' => 'For more information, see [Regions and zones](~~40654~~).',
+ 'requestParamsDescription' => 'For more information about common parameters, see [Common parameters](~~185885~~).',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DescribeRegions',
+ ],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ ],
+ 'DescribeResourceLifeCycleEvents' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Alibaba Cloud service.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ECS',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The resource type.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS::ECS::Instance',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => 'The lifecycle events.<br>This field is returned as a JSON-serialized string. The string contains the hierarchical data for lifecycle event categories. Use a standard JSON deserialization tool for your programming language to parse the string into an array of objects.',
+ '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"}]',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'B10969CF-C743-55F8-9710-F0711504****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DescribeResourceLifeCycleEvents',
+ 'summary' => 'Queries the lifecycle events of a specified resource.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeResourceLifeCycleEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[{\\\\\\"children\\\\\\":[{\\\\\\"children\\\\\\":[{\\\\\\"label\\\\\\":\\\\\\"Create Events\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Create Events\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Create,CreateInstance,RunInstances\\\\\\"},{\\\\\\"label\\\\\\":\\\\\\"Delete Events\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Delete Events\\\\\\",\\\\\\"value\\\\\\":\\\\\\"DeleteInstance,DeleteInstances,Release\\\\\\"}],\\\\\\"label\\\\\\":\\\\\\"ECS Instance\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"ECS Instance\\\\\\",\\\\\\"value\\\\\\":\\\\\\"ACS::ECS::Instance\\\\\\"}],\\\\\\"label\\\\\\":\\\\\\"Elastic Compute Service\\\\\\",\\\\\\"labelEn\\\\\\":\\\\\\"Elastic Compute Service\\\\\\",\\\\\\"value\\\\\\":\\\\\\"Ecs\\\\\\"}]\\",\\n \\"RequestId\\": \\"B10969CF-C743-55F8-9710-F0711504****\\"\\n}","type":"json"}]',
+ ],
+ 'DescribeScenes' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SearchCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The search keyword. This operation performs a case-insensitive, fuzzy match.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ak',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****',
+ 'title' => '',
+ ],
+ 'SceneList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => [
+ 'description' => 'The description of the scenario.',
+ '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.',
+ 'title' => '',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the scenario.',
+ 'type' => 'string',
+ 'example' => 'Account-related or AccessKey Pair-related Events',
+ 'title' => '',
+ ],
+ 'SceneId' => [
+ 'description' => 'The ID of the scenario.',
+ 'type' => 'string',
+ 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q',
+ 'title' => '',
+ ],
+ 'Token' => [
+ 'description' => 'The identifier for the scenario category.',
+ 'type' => 'string',
+ 'example' => 'identity',
+ 'title' => '',
+ ],
+ 'Type' => [
+ 'description' => 'The type of the scenario.',
+ 'type' => 'string',
+ 'example' => 'normal',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'The list of scenarios.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DescribeScenes',
+ 'summary' => 'Queries all advanced query scenarios.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeScenes',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7EC26DF0-35AC-5F37-82B3-F5545D0A****\\",\\n \\"SceneList\\": [\\n {\\n \\"Description\\": \\"Query access events for the primary and sub-accounts and access keys under various scenarios, such as access events occurrence, access without MFA authentication, and failed access attempts.\\",\\n \\"Name\\": \\"Account-related or AccessKey Pair-related Events\\",\\n \\"SceneId\\": \\"sc-lpYrjKouRfy3MK-wteJW_Q\\",\\n \\"Token\\": \\"identity\\",\\n \\"Type\\": \\"normal\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'DescribeSearchTemplates' => [
+ 'summary' => 'Queries advanced query templates for a specified scenario.',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SceneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The scenario ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number. Default value: 1.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The maximum number of entries to return. Default value: 20.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PageNumber' => [
+ 'description' => 'The page number.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'title' => '',
+ ],
+ 'PageSize' => [
+ 'description' => 'The maximum number of results returned.'."\n"
+ ."\n"
+ .'Default value: 20.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '787DD24A-E322-5C0D-A730-057FE62B****',
+ 'title' => '',
+ ],
+ 'TemplateList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Charts' => [
+ 'description' => 'The list of dashboards. This parameter is deprecated.'."\n"
+ ."\n"
+ .'> This parameter is deprecated and no longer returns valid data. The returned value is always an empty array `[]`. Stop using this parameter and remove its dependency from your code.',
+ 'type' => 'string',
+ 'example' => '[]',
+ 'title' => '',
+ ],
+ 'Description' => [
+ 'description' => 'The template description.',
+ 'type' => 'string',
+ 'example' => 'Events of Console Logons by Using Cloud Account',
+ 'title' => '',
+ ],
+ 'Params' => [
+ 'description' => 'The filter conditions.<br>This parameter is returned as a JSON-serialized string that contains a structured list of filter conditions. Use a standard JSON deserialization tool for your programming language to parse the string into an array of objects.',
+ '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"}]',
+ 'title' => '',
+ ],
+ 'SceneId' => [
+ 'description' => 'The scenario ID.',
+ 'type' => 'string',
+ 'example' => 'sc-lpYrjKouRfy3MK-wteJW_Q',
+ 'title' => '',
+ ],
+ 'Sql' => [
+ 'description' => 'The query statement.',
+ 'type' => 'string',
+ 'example' => 'select "event.userIdentity.accountId" as account_id, count(1) as cnt group by account_id limit 1000',
+ 'title' => '',
+ ],
+ 'TemplateId' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'example' => 'tpl-wCZAFWx3Spq6CO9Ymp****',
+ 'title' => '',
+ ],
+ 'TemplateName' => [
+ 'description' => 'The template name.',
+ 'type' => 'string',
+ 'example' => 'Events of Console Logons by Using Cloud Account',
+ 'title' => '',
+ ],
+ 'Token' => [
+ 'description' => 'The identifier for the template category.',
+ 'type' => 'string',
+ 'example' => 'identity.rootLogin',
+ 'title' => '',
+ ],
+ 'Type' => [
+ 'description' => 'The template type.',
+ 'type' => 'string',
+ 'example' => 'audit',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'The list of template details.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'DescribeSearchTemplates',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeSearchTemplates',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"RequestId\\": \\"787DD24A-E322-5C0D-A730-057FE62B****\\",\\n \\"TemplateList\\": [\\n {\\n \\"Charts\\": \\"[]\\",\\n \\"Description\\": \\"Events of Console Logons by Using Cloud Account\\",\\n \\"Params\\": \\"[{\\\\\\"key\\\\\\":\\\\\\"event.eventName\\\\\\",\\\\\\"value\\\\\\":\\\\\\"ConsoleSignin\\\\\\",\\\\\\"type\\\\\\":\\\\\\"system\\\\\\",\\\\\\"display\\\\\\":true,\\\\\\"displayKey\\\\\\":\\\\\\"event.eventName\\\\\\",\\\\\\"displayValue\\\\\\":\\\\\\"ConsoleSignin\\\\\\",\\\\\\"displayValueEn\\\\\\":\\\\\\"ConsoleSignin\\\\\\"},{\\\\\\"oper\\\\\\":\\\\\\"AND\\\\\\",\\\\\\"key\\\\\\":\\\\\\"event.userIdentity.type\\\\\\",\\\\\\"value\\\\\\":\\\\\\"root-account\\\\\\",\\\\\\"type\\\\\\":\\\\\\"system\\\\\\",\\\\\\"display\\\\\\":true,\\\\\\"displayKey\\\\\\":\\\\\\"event.userIdentity.type\\\\\\",\\\\\\"displayValueEn\\\\\\":\\\\\\"Alibaba Cloud Account\\\\\\"}]\\",\\n \\"SceneId\\": \\"sc-lpYrjKouRfy3MK-wteJW_Q\\",\\n \\"Sql\\": \\"select \\\\\\"event.userIdentity.accountId\\\\\\" as account_id, count(1) as cnt group by account_id limit 1000\\",\\n \\"TemplateId\\": \\"tpl-wCZAFWx3Spq6CO9Ymp****\\",\\n \\"TemplateName\\": \\"Events of Console Logons by Using Cloud Account\\",\\n \\"Token\\": \\"identity.rootLogin\\",\\n \\"Type\\": \\"audit\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'DescribeTrails' => [
+ 'summary' => 'Queries created trails.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'IncludeShadowTrails',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to return the information about shadow trails. Valid values:'."\n"
+ ."\n"
+ .'* false: Do not return the information about shadow trails. It is the default value.'."\n"
+ .'* true: Return the information about shadow trails.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'NameList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The names of the trails whose information you want to query. Separate multiple trail names with commas (,).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc,def',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'IncludeOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to query the information about multi-account trails. Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false (default)'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'ED8BC689-69DA-42AC-855E-3B06C1271194',
+ 'title' => '',
+ ],
+ 'TrailList' => [
+ 'description' => 'The trails.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TrailRegion' => [
+ 'description' => 'The region of the trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ 'Status' => [
+ 'description' => 'The status of the trail. Valid values:'."\n"
+ ."\n"
+ .'* Disable: disabled.'."\n"
+ .'* Enable: enabled.'."\n"
+ .'* Fresh: The trail is created but is not enabled.'."\n",
+ 'type' => 'string',
+ 'example' => 'Enable',
+ 'title' => '',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The time when the configurations of the trail were last updated.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-04-06T02:16:24Z',
+ 'title' => '',
+ ],
+ 'HomeRegion' => [
+ 'description' => 'The home region of the trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the trail was created.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-03-01T06:27:28Z',
+ 'title' => '',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'The prefix of the files that are stored in the Object Storage Service (OSS) bucket.'."\n",
+ 'type' => 'string',
+ 'example' => 'trail1',
+ 'title' => '',
+ ],
+ 'EventRW' => [
+ 'description' => 'The read/write type of the events that are delivered. Valid values:'."\n"
+ ."\n"
+ .'* Write: write events. This is the default value.'."\n"
+ .'* Read: read events.'."\n"
+ .'* All: read and write events.'."\n",
+ 'type' => 'string',
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ 'StartLoggingTime' => [
+ 'description' => 'The time when the trail was last enabled.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-04-06T02:08:38Z',
+ 'title' => '',
+ ],
+ 'OssWriteRoleArn' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role that is assumed by ActionTrail to deliver events to the OSS bucket.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'SlsProjectArn' => [
+ 'description' => 'The ARN of the Log Service project to which events are delivered.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-qingdao:159498693826****:project/zhengze-audit-log',
+ 'title' => '',
+ ],
+ 'IsOrganizationTrail' => [
+ 'description' => 'Indicates whether the trail is a multi-account trail. Valid values:'."\n"
+ ."\n"
+ .'* false (default)'."\n"
+ .'* true'."\n",
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => 'The ARN of the RAM role that is assumed by ActionTrail to deliver events to the Log Service project.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:ram::159498693826****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'StopLoggingTime' => [
+ 'description' => 'The time when the trail was last disabled.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-04-06T02:09:04Z',
+ 'title' => '',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-4',
+ 'title' => '',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'The name of the OSS bucket to which events are delivered.'."\n",
+ 'type' => 'string',
+ 'example' => 'secloud',
+ 'title' => '',
+ ],
+ 'Region' => [
+ 'description' => 'The region where the trail resides.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'OrganizationId' => [
+ 'description' => 'The ID of the resource directory.'."\n"
+ ."\n"
+ .'> This parameter is returned only when the trail is a multi-account trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'rd-EV****',
+ 'title' => '',
+ ],
+ 'OssBucketLocation' => [
+ 'description' => 'The region where the OSS bucket resides.'."\n",
+ 'type' => 'string',
+ 'example' => 'oss-cn-hangzhou',
+ 'title' => '',
+ ],
+ 'TrailArn' => [
+ 'description' => 'The ARN of the trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-hangzhou:159498693826****:trail/test-delivery-other',
+ 'title' => '',
+ ],
+ 'MaxComputeWriteRoleArn' => [
+ 'description' => 'The ARN of the role that is assumed by ActionTrail to deliver events to the MaxCompute project.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:ram::141266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'MaxComputeProjectArn' => [
+ 'description' => 'The ARN of the MaxCompute project.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:odps:cn-hangzhou:141266687691****:project/actiontrail_****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidTrailNameException',
+ 'errorMessage' => 'The specified Trail name is invalid.',
+ 'description' => 'The specified Trail name is not valid.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ '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":""}]',
+ 'title' => 'DescribeTrails',
+ 'description' => 'This topic shows you how to query the information about the single-account trails within an Alibaba Cloud account. In this example, the information about a trail named `test-4` is returned.'."\n",
+ 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~185885~~).'."\n",
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeTrails',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'DescribeTrails',
+ ],
+ ],
+ ],
+ ],
+ 'DescribeUserAlertCount' => [
+ 'summary' => 'Queries the number of daily alerts within a specific time range.',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailR96AQB',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'StartDate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The start time. Format: yyyy-MM-dd.',
+ 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '2025-05-12'."\n"
+ ."\n",
+ ],
+ ],
+ [
+ 'name' => 'EndDate',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => 'The end time. Format: yyyy-MM-dd.',
+ 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '2025-06-10'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => 'The data returned.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Counts' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The total number of alerts.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'title' => '',
+ 'example' => '500',
+ ],
+ 'description' => 'The statistics returned.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Dates' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The date.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '2025-01-17'."\n",
+ ],
+ 'description' => 'The dates of alerts.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA'."\n",
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ '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"}]',
+ 'title' => 'DescribeUserAlertCount',
+ 'requestParamsDescription' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserAlertCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DescribeUserLogCount' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'StartDate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The start time. Format: yyyy-MM-dd.',
+ 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '2025-05-12',
+ ],
+ ],
+ [
+ 'name' => 'EndDate',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => 'The end time. Format: yyyy-MM-dd.',
+ 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '2025-06-10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'description' => 'The data returned.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Counts' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The total number of logs.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'title' => '',
+ 'example' => '103493'."\n",
+ ],
+ 'description' => 'The statistics returned.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Dates' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The date.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '2025-05-10',
+ ],
+ 'description' => 'The dates of logs.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '90D6CC31-947F-5D8A-BEDC-F312EE9B31EA',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ 'title' => 'DescribeUserLogCount',
+ 'summary' => 'Queries the number of daily logs within a specific time range.',
+ 'requestParamsDescription' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserLogCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Counts\\": [\\n 103493\\n ],\\n \\"Dates\\": [\\n \\"2025-05-10\\"\\n ]\\n },\\n \\"RequestId\\": \\"90D6CC31-947F-5D8A-BEDC-F312EE9B31EA\\"\\n}","type":"json"}]',
+ ],
+ 'DisableInsight' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InsightType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the Insights event. Valid values:'."\n"
+ ."\n"
+ .'- IpInsight: IP request events.'."\n"
+ ."\n"
+ .'- ApiCallRateInsight: High-risk API call events.'."\n"
+ ."\n"
+ .'- ApiErrorRateInsight: API error events.'."\n"
+ ."\n"
+ .'- AkInsight: AccessKey pair call events.'."\n"
+ ."\n"
+ .'- PolicyChangeInsight: Permission change events.'."\n"
+ ."\n"
+ .'- PasswordChangeInsight: Password change events.'."\n"
+ ."\n"
+ .'- TrailConcealmentInsight: Trail concealment events.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IpInsight',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InsightTypeNotValid',
+ 'errorMessage' => 'The input insightType is not valid',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => 'DisableInsight',
+ 'summary' => 'Disables a specific type of Insights event.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]',
+ ],
+ 'EnableInsight' => [
+ 'summary' => 'Enables the Insights feature.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InsightType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the Insights event. Valid values:'."\n"
+ ."\n"
+ .'- IpInsight: IP address request events.'."\n"
+ ."\n"
+ .'- ApiCallRateInsight: Unusual API call events.'."\n"
+ ."\n"
+ .'- ApiErrorRateInsight: API error events.'."\n"
+ ."\n"
+ .'- AkInsight: Unusual AccessKey pair call events.'."\n"
+ ."\n"
+ .'- PolicyChangeInsight: Permission change events.'."\n"
+ ."\n"
+ .'- PasswordChangeInsight: Password change events.'."\n"
+ ."\n"
+ .'- TrailConcealmentInsight: Trail concealment events.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IpInsight',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '45AA79B7-0240-52AB-B158-3F9A512228ED',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InsightTypeNotAvailable',
+ 'errorMessage' => 'The input insightType is not available',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"45AA79B7-0240-52AB-B158-3F9A512228ED\\"\\n}","type":"json"}]',
+ 'title' => 'EnableInsight',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'EnableInsight',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:EnableInsight',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetAccessKeyLastUsedEvents' => [
+ 'summary' => 'Queries the information about the most recent events that are generated when a specified AccessKey pair is called to access Alibaba Cloud services.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The AccessKey ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The Alibaba Cloud service. For more information about the Alibaba Cloud services supported by ActionTrail, see [Supported Alibaba Cloud services](~~28829~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The token that determines the start point of the query.'."\n"
+ ."\n"
+ .'> The request parameters must be the same as those of the last request.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n"
+ ."\n"
+ .'Valid values: 0 to 100.'."\n"
+ ."\n"
+ .'Default value: 20.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Events' => [
+ 'description' => 'The list of returned events.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => 'An array that consists of the details about the event.'."\n",
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'EventName' => [
+ 'description' => 'The name of the event.'."\n",
+ 'type' => 'string',
+ 'example' => 'DescribeInstances',
+ 'title' => '',
+ ],
+ 'Source' => [
+ 'description' => 'The event source.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => 'other event.',
+ 'ManagementEvent' => 'management event',
+ 'DataEvent' => 'data event.',
+ ],
+ 'example' => 'ManagementEvent',
+ 'title' => '',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => 'The timestamp when the event was generated.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => true,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'The token that determines the start point of the query.'."\n",
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Events\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"EventName\\": \\"DescribeInstances\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedEventsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Events>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<EventName>DescribeInstances</EventName>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t</Events>\\n\\t<NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedEventsResponse>\\t","errorExample":""}]',
+ 'title' => 'GetAccessKeyLastUsedEvents',
+ 'description' => 'You can call this operation to query only the information about the most recent events that are generated within 400 days after February 1, 2022 when a specified AccessKey pair is called to access Alibaba Cloud services. For more information about supported events, see [Alibaba Cloud services and events that are supported by the AccessKey pair audit feature](~~419214~~). Data is updated at 1-hour intervals, which can cause query latency. We recommend that you do not change an AccessKey pair unless required.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedEvents',
+ ],
+ ],
+ ],
+ ],
+ 'GetAccessKeyLastUsedInfo' => [
+ 'summary' => 'Queries the information about the most recent call of a specified AccessKey pair.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The AccessKey ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessKeyId' => [
+ 'description' => 'The AccessKey ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'LTAI****************',
+ 'title' => '',
+ ],
+ 'AccountId' => [
+ 'description' => 'The ID of the Alibaba Cloud account.'."\n",
+ 'type' => 'string',
+ 'example' => '104758519118****',
+ 'title' => '',
+ ],
+ 'AccountType' => [
+ 'description' => 'The type of the account to which the AccessKey pair belongs.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'root-account' => 'alibaba cloud account.',
+ 'ram-user' => 'RAM user.',
+ ],
+ 'example' => 'ram-user',
+ 'title' => '',
+ ],
+ 'Detail' => [
+ 'description' => 'The details about the event.'."\n",
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'OwnerId' => [
+ 'description' => 'The ID of the account to which the AccessKey pair belongs.'."\n",
+ 'type' => 'string',
+ 'example' => '24549429003625****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '239EB588-CD24-522E-B0B5-174A1A588BE0',
+ 'title' => '',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The Alibaba Cloud service that was last accessed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ 'title' => '',
+ ],
+ 'ServiceNameCn' => [
+ 'description' => 'The Chinese name of the Alibaba Cloud service that was last accessed.'."\n",
+ 'type' => 'string',
+ 'example' => '云服务器ECS',
+ 'title' => '',
+ ],
+ 'ServiceNameEn' => [
+ 'description' => 'The English name of the Alibaba Cloud service that was last accessed.'."\n",
+ 'type' => 'string',
+ 'example' => 'Elastic Compute Service',
+ 'title' => '',
+ ],
+ 'Source' => [
+ 'description' => 'The event source.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => 'other event.',
+ 'ManagementEvent' => 'management event.',
+ 'DataEvent' => 'data event.',
+ ],
+ 'example' => 'ManagementEvent',
+ 'title' => '',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => 'The timestamp when the AccessKey pair was last called.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1657247532000',
+ 'title' => '',
+ ],
+ 'UserName' => [
+ 'description' => 'The name of the account to which the AccessKey pair belongs.'."\n"
+ ."\n"
+ .'If the value of the AccountType parameter is root-account, the value of the UserName parameter is root. If the value of the AccountType parameter is ram-user, the value of the UserName parameter is the name of a RAM user.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [],
+ 'example' => 'alice',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"AccessKeyId\\": \\"LTAI****************\\",\\n \\"AccountId\\": \\"104758519118****\\",\\n \\"AccountType\\": \\"ram-user\\",\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"OwnerId\\": \\"24549429003625****\\",\\n \\"RequestId\\": \\"239EB588-CD24-522E-B0B5-174A1A588BE0\\",\\n \\"ServiceName\\": \\"Ecs\\",\\n \\"ServiceNameCn\\": \\"云服务器ECS\\",\\n \\"ServiceNameEn\\": \\"Elastic Compute Service\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000,\\n \\"UserName\\": \\"alice\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedInfoResponse>\\n <RequestId>239EB588-CD24-522E-B0B5-174A1A588BE0</RequestId>\\n <AccessKeyId>LTAI4Fz1ykT4qxgNMvN6****</AccessKeyId>\\n <AccountId>104758519118****</AccountId>\\n <OwnerId>24549429003625****</OwnerId>\\n <UserName>alice</UserName>\\n <AccountType>ram-user</AccountType>\\n <UsedTimestamp>1657247532000</UsedTimestamp>\\n <Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n <Source>ManagementEvent</Source>\\n <ServiceName>Ecs</ServiceName>\\n <ServiceNameCn>Elastic Compute Service (ECS)</ServiceNameCn>\\n <ServiceNameEn>Elastic Compute Service</ServiceNameEn>\\n</GetAccessKeyLastUsedInfoResponse>","errorExample":""}]',
+ 'title' => 'GetAccessKeyLastUsedInfo',
+ 'description' => 'You can call this operation to query only the information about the most recent call of a specified AccessKey pair within 400 days after February 1, 2022. Data is updated at 1-hour intervals, which can cause query latency. We recommend that you do not change an AccessKey pair unless required.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedInfo',
+ ],
+ ],
+ ],
+ ],
+ 'GetAccessKeyLastUsedIps' => [
+ 'summary' => 'Queries the information about the IP addresses that are most recently used when an AccessKey pair is called to access Alibaba Cloud services.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The AccessKey ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The Alibaba Cloud service. For more information about the Alibaba Cloud services supported by ActionTrail, see [Services that work with ActionTrail](~~28829~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'> You must specify the token that is obtained from the previous query as the value of NextToken.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Valid values: 0 to 100. Default value: 20.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Ips' => [
+ 'description' => 'The IP addresses.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => 'The event details.'."\n",
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'Ip' => [
+ 'description' => 'The IP address.'."\n",
+ 'type' => 'string',
+ 'example' => '10.10.**.**',
+ 'title' => '',
+ ],
+ 'Source' => [
+ 'description' => 'The event source.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Internal: other events.'."\n"
+ .'* ManagementEvent: management events.'."\n"
+ .'* DataEvent: data events.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => 'other event.',
+ 'ManagementEvent' => 'management event.',
+ 'DataEvent' => 'data event.',
+ ],
+ 'example' => 'ManagementEvent',
+ 'title' => '',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => 'The timestamp when the IP address was used. Unit: milliseconds.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => true,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n",
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Ips\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"Ip\\": \\"10.10.**.**\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ],\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedIpsResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Ips>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t\\t<Ip>10.10.XX.XX</Ip>\\n\\t</Ips>\\t\\n <NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedIpsResponse>\\t","errorExample":""}]',
+ 'title' => 'GetAccessKeyLastUsedIps',
+ 'description' => 'You can call this operation to query only the information about the IP addresses that are most recently used within 400 days after February 1, 2022 when a specified AccessKey pair is called to access Alibaba Cloud services. Data is updated at 1-hour intervals, which can cause query latency. We recommend that you do not change an AccessKey pair unless required.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedIps',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedIps',
+ ],
+ ],
+ ],
+ ],
+ 'GetAccessKeyLastUsedProducts' => [
+ 'summary' => 'Queries the information about the Alibaba Cloud services that are most recently accessed by using a specified AccessKey pair.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The AccessKey ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI****************',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Products' => [
+ 'description' => 'The list of returned Alibaba Cloud services.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => 'The event details.'."\n",
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The Alibaba Cloud service.'."\n",
+ 'type' => 'string',
+ 'example' => 'Ecs',
+ 'title' => '',
+ ],
+ 'ServiceNameCn' => [
+ 'description' => 'The Chinese name of the Alibaba Cloud service.'."\n",
+ 'type' => 'string',
+ 'example' => '云服务器ECS',
+ 'title' => '',
+ ],
+ 'ServiceNameEn' => [
+ 'description' => 'The English name of the Alibaba Cloud service.'."\n",
+ 'type' => 'string',
+ 'example' => 'Elastic Compute Service',
+ 'title' => '',
+ ],
+ 'Source' => [
+ 'description' => 'The event source.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Internal'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' other events'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* ManagementEvent'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' management events'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* DataEvent'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' data events'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => 'other event.',
+ 'ManagementEvent' => 'management event.',
+ 'DataEvent' => 'data event.',
+ ],
+ 'example' => 'ManagementEvent',
+ 'title' => '',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results. Unit: millisecond.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => true,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ '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":"","errorExample":""}]',
+ 'title' => 'GetAccessKeyLastUsedProducts',
+ 'description' => 'You can call this operation to query only the information about Alibaba Cloud services that are most recently accessed by using a specified AccessKey pair within 400 days after February 1, 2022. Data is updated at 1-hour intervals, which can cause query latency. We recommend that you do not change an AccessKey pair unless required.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedProducts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedProducts',
+ ],
+ ],
+ ],
+ ],
+ 'GetAccessKeyLastUsedResources' => [
+ 'summary' => 'Queries the information about the resources that are most recently accessed by using a specified AccessKey pair.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailO4RAWP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccessKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The AccessKey ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'LTAI4Fz1ykT4qxgNMvN6****'."\n",
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The Alibaba Cloud service. For more information about the Alibaba Cloud services supported by ActionTrail, see [Supported Alibaba Cloud services](~~28829~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Ecs',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'> The request parameters must be the same as those of the last request.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n"
+ ."\n"
+ .'* Valid values: 0 to 100.'."\n"
+ .'* Default value: 20.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NextToken' => [
+ 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n",
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ 'title' => '',
+ ],
+ 'Resources' => [
+ 'description' => 'The list of returned resources.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => 'The event details.'."\n",
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'ResourceName' => [
+ 'description' => 'The resource name.'."\n",
+ 'type' => 'string',
+ 'example' => 'i-bp1ltva99x1a****',
+ 'title' => '',
+ ],
+ 'ResourceType' => [
+ 'description' => 'The resource type.'."\n",
+ 'type' => 'string',
+ 'example' => 'ACS::ECS::Instance',
+ 'title' => '',
+ ],
+ 'Source' => [
+ 'description' => 'The event source.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Internal'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' other events'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* ManagementEvent'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' management events'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* DataEvent'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' data events'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Internal' => 'other event.',
+ 'ManagementEvent' => 'management event.',
+ 'DataEvent' => 'data event.',
+ ],
+ 'example' => 'ManagementEvent',
+ 'title' => '',
+ ],
+ 'UsedTimestamp' => [
+ 'description' => 'The timestamp when the resource was used. Unit: millisecond.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1657247532000',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => true,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"NextToken\\": \\"eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****\\",\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"Resources\\": [\\n {\\n \\"Detail\\": \\"{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}\\",\\n \\"ResourceName\\": \\"i-bp1ltva99x1a****\\",\\n \\"ResourceType\\": \\"ACS::ECS::Instance\\",\\n \\"Source\\": \\"ManagementEvent\\",\\n \\"UsedTimestamp\\": 1657247532000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetAccessKeyLastUsedResourcesResponse>\\n\\t<RequestId>145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0</RequestId>\\n\\t<Resources>\\n\\t\\t<UsedTimestamp>1657247532000</UsedTimestamp>\\n\\t\\t<Detail>{\\\\n \\\\\\"eventId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A58****\\\\\\",\\\\n \\\\\\"eventVersion\\\\\\": 1,\\\\n \\\\\\"eventSource\\\\\\": \\\\\\"ecs.cn-hangzhou.aliyuncs.com\\\\\\",\\\\n \\\\\\"sourceIpAddress\\\\\\": \\\\\\"10.10.**.**\\\\\\",\\\\n \\\\\\"eventType\\\\\\": \\\\\\"ApiCall\\\\\\",\\\\n \\\\\\"userIdentity\\\\\\": {\\\\n \\\\\\"accountId\\\\\\": \\\\\\"104758519118****\\\\\\",\\\\n \\\\\\"principalId\\\\\\": \\\\\\"24549429003625****\\\\\\",\\\\n \\\\\\"type\\\\\\": \\\\\\"ram-user\\\\\\",\\\\n \\\\\\"userName\\\\\\": \\\\\\"alice\\\\\\"\\\\n },\\\\n \\\\\\"serviceName\\\\\\": \\\\\\"Ecs\\\\\\",\\\\n \\\\\\"apiVersion\\\\\\": \\\\\\"2016-01-20\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"239EB588-CD24-522E-B0B5-174A1A588BE0\\\\\\",\\\\n \\\\\\"eventTime\\\\\\": \\\\\\"2021-08-05T09:21:32Z\\\\\\",\\\\n \\\\\\"isGlobal\\\\\\": false,\\\\n \\\\\\"acsRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"eventName\\\\\\": \\\\\\"DescribeInstances\\\\\\"\\\\n}</Detail>\\n\\t\\t<ResourceName>i-bp1ltva99x1a****</ResourceName>\\n\\t\\t<ResourceType>ACS::ECS::Instance</ResourceType>\\n\\t\\t<Source>ManagementEvent</Source>\\n\\t</Resources>\\n\\t<NextToken>eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****</NextToken>\\n</GetAccessKeyLastUsedResourcesResponse>\\t","errorExample":""}]',
+ 'title' => 'GetAccessKeyLastUsedResources',
+ 'description' => 'You can call this operation to query only the information about resources that are most recently accessed by using a specified AccessKey pair within 400 days after February 1, 2022. Data is updated at 1-hour intervals, which can cause query latency. We recommend that you do not change an AccessKey pair unless required.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '50',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetAccessKeyLastUsedResources',
+ ],
+ ],
+ ],
+ ],
+ 'GetAdvancedQueryTemplate' => [
+ 'summary' => 'Queries the details about an advanced query template.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'utpl-N9fpjnFBSWauSXhVNP****',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '32110C73-0004-5141-9DA7-4B8045C8173A',
+ 'title' => '',
+ ],
+ 'SimpleQuery' => [
+ 'description' => 'Indicates whether the simple query mode is enabled.',
+ 'enumValueTitles' => [
+ 'true' => '开启',
+ 'false' => '关闭',
+ ],
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ 'TemplateId' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'example' => 'utpl-N9fpjnFBSWauSXhVNP****',
+ 'title' => '',
+ ],
+ 'TemplateName' => [
+ 'description' => 'The template name.',
+ 'type' => 'string',
+ 'example' => 'example-template',
+ 'title' => '',
+ ],
+ 'TemplateSql' => [
+ 'description' => 'The query statement.',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'GetAdvancedQueryTemplate',
+ 'responseParamsDescription' => '><notice>'."\n"
+ ."\n"
+ .'If the API response contains only a RequestId and no other information, such as SimpleQuery, TemplateName, or TemplateSql, it indicates that the TemplateId you specified is invalid. Check that the TemplateId is in the correct format and confirm that it exists in the system.'."\n"
+ ."\n"
+ .'></notice>',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"32110C73-0004-5141-9DA7-4B8045C8173A\\",\\n \\"SimpleQuery\\": false,\\n \\"TemplateId\\": \\"utpl-N9fpjnFBSWauSXhVNP****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
+ ],
+ 'GetDataEventSelector' => [
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DataEventSelectors' => [
+ 'description' => 'The configuration of the data event selector. This parameter is a JSON array that can contain a maximum of 20 elements.'."\n"
+ ."\n"
+ .'Each element in the JSON array includes the following elements:'."\n"
+ ."\n"
+ .'- `ServiceName`: The name of the Alibaba Cloud service that supports data events.'."\n"
+ ."\n"
+ .'- `ReadWriteType`: The type of data event. Valid values: Read, Write, and All.'."\n"
+ ."\n"
+ .'- `EventName`: This element contains the `Equals` and `NotEquals` fields.'."\n"
+ ."\n"
+ .' For example, the following configuration specifies that only `GetObject`, `CopyObject`, and `AppendObject`events are delivered:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' If you specify `NotEquals`, events other than `GetObject`, `CopyObject`, and `AppendObject` are delivered.'."\n"
+ ."\n"
+ .'- `ResourceArn`: This element also contains the `Equals` and `NotEquals` fields, similar to `EventName`. For example:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ 'title' => '',
+ ],
+ 'IsTrailAllRegion' => [
+ 'description' => 'Specifies whether the trail tracks data events in all regions.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'- true'."\n"
+ ."\n"
+ .'- false',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '90771C32-635B-529C-950C-75A9607D****',
+ 'title' => '',
+ ],
+ 'SlsDeliveryConfigs' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CreateTime' => [
+ 'description' => 'The time when the trail was created.',
+ 'type' => 'string',
+ 'example' => '2024-12-18T03:25:36Z',
+ 'title' => '',
+ ],
+ 'ErrorCode' => [
+ 'description' => 'The error code returned if the resource initialization fails.',
+ 'type' => 'string',
+ 'example' => 'LogServiceException',
+ 'title' => '',
+ ],
+ 'ErrorMessage' => [
+ 'description' => 'The error message returned if the resource initialization fails.',
+ 'type' => 'string',
+ 'example' => 'RequestError Web request failed.',
+ 'title' => '',
+ ],
+ 'RegionSlsProjectArn' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the SLS project in the region where events are delivered.',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai',
+ 'title' => '',
+ ],
+ 'Status' => [
+ 'description' => 'The initialization status of the resource for the trail.'."\n"
+ ."\n"
+ .'- success'."\n"
+ ."\n"
+ .'- failure',
+ 'type' => 'string',
+ 'example' => 'success',
+ 'title' => '',
+ ],
+ 'TrailRegion' => [
+ 'description' => 'The region of the trail.',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ 'title' => '',
+ ],
+ ],
+ 'description' => 'The object that contains the configuration details for delivering events to SLS.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => true,
+ 'description' => 'The list of configurations for delivering events to Simple Log Service (SLS).',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TrailArn' => [
+ 'description' => 'The ARN of the trail.',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The response parameters.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'GetDataEventSelector',
+ 'summary' => 'Queries the details about the data event selector for a specified trail.',
+ 'responseParamsDescription' => 'The total number of values in the Equals and NotEquals subfields for `EventName` cannot exceed 10. The same limit applies to `ResourceArn`.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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' => [
+ 'summary' => 'Queries the details of a data backfill task.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'JobId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the historical event delivery task.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '16602',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatedTime' => [
+ 'description' => 'The time when the task was created.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-05-27T07:15:03Z',
+ 'title' => '',
+ ],
+ 'EndTime' => [
+ 'description' => 'The time when the task ended.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-05-27T07:20:03Z',
+ 'title' => '',
+ ],
+ 'HomeRegion' => [
+ 'description' => 'The home region of the trail.',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'JobId' => [
+ 'description' => 'The ID of the task.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '16602',
+ 'title' => '',
+ ],
+ 'JobStatus' => [
+ 'description' => 'The task status. Valid values:'."\n"
+ ."\n"
+ .'* 0: The task is initializing.'."\n"
+ .'* 1: The task is delivering historical events.'."\n"
+ .'* 2: The task is complete.'."\n"
+ .'* 3: The task fails.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'FAFEC427-A00D-5653-B837-D0FA52220D8C',
+ 'title' => '',
+ ],
+ 'StartTime' => [
+ 'description' => 'The time when the task started.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-26T07:15:03Z',
+ 'title' => '',
+ ],
+ 'Status' => [
+ 'description' => 'A list of task statuses in each region.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'description' => 'The ID of the region.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'Status' => [
+ 'description' => 'The task status in each region. Valid values:'."\n"
+ ."\n"
+ .'* 0: The task is initializing.'."\n"
+ .'* 1: The task is delivering historical events.'."\n"
+ .'* 2: The task is complete.'."\n"
+ .'* 3: The task fails.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TrailName' => [
+ 'description' => 'The name of the trail based on which the task delivers events.'."\n",
+ 'type' => 'string',
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ 'UpdatedTime' => [
+ 'description' => 'The time when the task was updated.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-05-27T07:28:47Z',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ ],
+ ],
+ '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":""}]',
+ 'title' => 'GetDeliveryHistoryJob',
+ 'description' => 'This topic provides an example on how to query the details of a data backfill task whose ID is `16602`. The return result shows that historical events for a trail named `trail-name` are delivered to Simple Log Service and the task is complete.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetDeliveryHistoryJob',
+ ],
+ ],
+ ],
+ ],
+ 'GetGlobalEventsStorageRegion' => [
+ 'summary' => 'Queries the region where global events are stored.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.',
+ 'type' => 'string',
+ 'example' => '0474CD9D-DF37-55D4-8383-D265CFBE13A5',
+ ],
+ 'StorageRegion' => [
+ 'description' => 'The region where global events are stored.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'- ap-southeast-1'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' the Singapore region'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ .'- cn-hangzhou'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' the China (Hangzhou) region'."\n"
+ ."\n"
+ .' <!-- -->',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'ap-southeast-1' => 'ap-southeast-1',
+ 'cn-hangzhou' => 'cn-hangzhou',
+ ],
+ 'example' => 'ap-southeast-1',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0474CD9D-DF37-55D4-8383-D265CFBE13A5\\",\\n \\"StorageRegion\\": \\"ap-southeast-1\\"\\n}","type":"json"}]',
+ 'title' => 'GetGlobalEventsStorageRegion',
+ 'description' => 'By default, global events are stored in the Singapore region.'."\n"
+ ."\n"
+ .'To obtain the permissions to call the API operation, you must submit a ticket.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetGlobalEventsStorageRegion',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetGovernanceMetrics' => [
+ 'summary' => 'Queries the governance metrics of ActionTrail.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountId' => [
+ 'description' => 'The ID of the Alibaba Cloud account.',
+ 'type' => 'string',
+ 'example' => '195622768501****',
+ 'title' => '',
+ ],
+ 'GovernanceMetrics' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ColumnsSchema' => [
+ 'description' => 'The details of the resource.'."\n"
+ ."\n"
+ .'This parameter contains the detailed configurations of all compliant resources for the governance item. This parameter is returned only if a resource instance exists.',
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'GovernanceItem' => [
+ 'description' => 'The governance item. This indicates a specific category of compliance check.',
+ 'type' => 'string',
+ 'example' => 'actiontrail_storage_audit_log',
+ 'title' => '',
+ ],
+ 'GovernanceScore' => [
+ 'description' => 'The compliance score for the governance item.'."\n"
+ ."\n"
+ .'Valid values: 0 to 100.',
+ 'type' => 'string',
+ 'example' => '100',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'A collection of governance items that contain multiple compliance assessment dimensions.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'The response parameters.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A****',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The response parameters.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'GetGovernanceMetrics',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGovernanceMetrics',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"AccountId\\": \\"195622768501****\\",\\n \\"GovernanceMetrics\\": [\\n {\\n \\"ColumnsSchema\\": \\"{\\\\n \\\\\\"trailName\\\\\\": \\\\\\"trail-test\\\\\\",\\\\n \\\\\\"homeRegion\\\\\\": \\\\\\"cn-hangzhou\\\\\\",\\\\n \\\\\\"trailRegion\\\\\\": \\\\\\"All\\\\\\",\\\\n \\\\\\"trailStatus\\\\\\": \\\\\\"Enable\\\\\\",\\\\n \\\\\\"eventRW\\\\\\": \\\\\\"All\\\\\\",\\\\n \\\\\\"isOrganizationTrail\\\\\\": false,\\\\n \\\\\\"ossDeliveryStatus\\\\\\": \\\\\\"normal\\\\\\",\\\\n \\\\\\"deliveryObjectLifeCycle\\\\\\": \\\\\\"999\\\\\\",\\\\n \\\\\\"ossBucketLifeCycle\\\\\\": \\\\\\"999\\\\\\",\\\\n \\\\\\"trailTotal\\\\\\": 100\\\\n}\\",\\n \\"GovernanceItem\\": \\"actiontrail_storage_audit_log\\",\\n \\"GovernanceScore\\": \\"100\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A****\\"\\n}","type":"json"}]',
+ ],
+ 'GetInsightSelectors' => [
+ 'summary' => 'Queries the Insights event types to deliver for a trail.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InsightSelectors' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'An Insights event type.',
+ 'type' => 'string',
+ 'example' => '{"insightType":"AkInsight"}',
+ 'title' => '',
+ ],
+ 'description' => 'An array of Insights event types.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'D0227506-AA8C-5998-8A62-74769106****',
+ 'title' => '',
+ ],
+ 'TrailArn' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the trail.',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'GetInsightSelectors',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightSelectors\\": [\\n \\"{\\\\\\"insightType\\\\\\":\\\\\\"AkInsight\\\\\\"}\\"\\n ],\\n \\"RequestId\\": \\"D0227506-AA8C-5998-8A62-74769106****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'GetInsightTypes' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InsightTypes' => [
+ 'description' => 'The types of Insights events.',
+ 'type' => 'object',
+ 'example' => '{\'ApiCallRateInsight\': \'Enable\', \'ApiErrorRateInsight\': \'Enable\', \'IpInsight\': \'Enable\', \'AkInsight\': \'Enable\'}',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'EC4A1F64-4927-5714-B205-5A0B16A2****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'GetInsightTypes',
+ 'summary' => 'Queries all enabled types of Insights events.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightTypes\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RequestId\\": \\"EC4A1F64-4927-5714-B205-5A0B16A2****\\"\\n}","type":"json"}]',
+ ],
+ 'GetInsightsEventsCount' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Date',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => 'The date to query. The format is `yyyy-MM-dd`.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => 'The end of the time range to query. Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC.'."\n"
+ ."\n"
+ .'> - - If Date, StartTime, and EndTime are all left empty, the system queries the number of events in the last 24 hours.'."\n"
+ .'>'."\n"
+ .'> - If Date is specified, the StartTime and EndTime parameters are ignored. The system queries the number of events on the specified date.'."\n"
+ .'>'."\n"
+ .'> - If Date is left empty and both StartTime and EndTime are specified, the system queries the number of events in the specified time range.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07T06:00:00Z',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => 'The beginning of the time range to query. Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2025-12-01T02:00:00Z',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Count' => [
+ 'description' => 'The number of Insights events.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ 'title' => '',
+ ],
+ 'InsightType' => [
+ 'description' => 'The type of the Insights event. Valid values:'."\n"
+ ."\n"
+ .'- IpInsight: IP request events.'."\n"
+ ."\n"
+ .'- ApiCallRateInsight: High-risk API call events.'."\n"
+ ."\n"
+ .'- ApiErrorRateInsight: API error events.'."\n"
+ ."\n"
+ .'- AkInsight: AccessKey pair call events.'."\n"
+ ."\n"
+ .'- PolicyChangeInsight: Permission change events.'."\n"
+ ."\n"
+ .'- PasswordChangeInsight: Password change events.'."\n"
+ ."\n"
+ .'- TrailConcealmentInsight: Trail concealment events.',
+ 'type' => 'string',
+ 'example' => 'IpInsight',
+ 'title' => '',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID.',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ ],
+ 'description' => 'The information about the Insights event.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'The information about the Insights events.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of `NextToken`.',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '4ABAEA6E-C740-5CE2-A003-643E5519****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidTimeRangeException',
+ 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ ],
+ ],
+ 'title' => 'GetInsightsEventsCount',
+ 'summary' => 'Queries the number of Insights events for the current account.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Count\\": 3,\\n \\"InsightType\\": \\"IpInsight\\",\\n \\"RegionId\\": \\"cn-hangzhou\\"\\n }\\n ],\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"RequestId\\": \\"4ABAEA6E-C740-5CE2-A003-643E5519****\\"\\n}","type":"json"}]',
+ ],
+ 'GetTrailStatus' => [
+ 'summary' => 'Queries the status of a trail.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.'."\n"
+ ."\n"
+ .'The name must be 6 to 36 characters in length. The name must start with a lowercase letter and can contain lowercase letters, digits, hyphens (-), and underscores (\\_).'."\n"
+ ."\n"
+ .'> The name must be unique within your Alibaba Cloud account.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'IsOrganizationTrail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to query the status of a multi-account trail. Valid values:'."\n"
+ ."\n"
+ .'* true: Query the status of a multi-account trail.'."\n"
+ .'* false: Query the status of a single-account trail. It is the default value.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '8067369B-B923-4D26-85BC-61BF33922505',
+ 'title' => '',
+ ],
+ 'StartLoggingTime' => [
+ 'description' => 'The time when logging was last enabled for the trail.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-24T09:19:44Z',
+ 'title' => '',
+ ],
+ 'LatestDeliveryError' => [
+ 'description' => 'The log of the last failed delivery.'."\n",
+ 'type' => 'string',
+ 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1',
+ 'title' => '',
+ ],
+ 'StopLoggingTime' => [
+ 'description' => 'The time when logging was last disabled for the trail.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-25T09:19:44Z',
+ 'title' => '',
+ ],
+ 'IsLogging' => [
+ 'description' => 'Indicates whether logging is enabled for the trail. Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'LatestDeliveryTime' => [
+ 'description' => 'The most recent time when an event was delivered by the trail.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-26T09:19:44Z',
+ 'title' => '',
+ ],
+ 'LatestDeliveryLogServiceError' => [
+ 'description' => 'The log of the last failed delivery to Log Service.'."\n",
+ 'type' => 'string',
+ 'example' => 'write sls failed, exception: the parent of sub user must be project owner, itemscount: 1',
+ 'title' => '',
+ ],
+ 'LatestDeliveryLogServiceTime' => [
+ 'description' => 'The most recent time when an event was delivered to Log Service.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-26T09:19:44Z',
+ 'title' => '',
+ ],
+ 'OssBucketStatus' => [
+ 'description' => 'Indicates whether the destination Object Storage Service (OSS) bucket is available. Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'SlsLogStoreStatus' => [
+ 'description' => 'Indicates whether the destination Log Service Logstore is available. Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ ],
+ ],
+ '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":""}]',
+ 'title' => 'GetTrailStatus',
+ 'description' => 'This topic describes how to query the status of a sample single-account trail named `trail-test`.'."\n",
+ 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~185885~~).'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetTrailStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '100',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'GetTrailStatus',
+ ],
+ ],
+ ],
+ ],
+ 'ListDataEventSelectors' => [
+ 'summary' => 'Queries all data event selectors.',
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'- You do not need to specify this parameter for the first request.'."\n"
+ ."\n"
+ .'- You must specify the token that is obtained from the previous query as the value of NextToken.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'VjE6dLbnNpVmbz06****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The maximum number of results to return.'."\n"
+ ."\n"
+ .'- Valid values: 1 to 100.'."\n"
+ ."\n"
+ .'- Default value: 20.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DataEventSelectorInfos' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EventSelectors' => [
+ 'description' => 'The configuration of the data event selector. This parameter is a JSON array that can contain a maximum of 20 elements.'."\n"
+ ."\n"
+ .'Each element in the JSON array includes the following fields:'."\n"
+ ."\n"
+ .'- `ServiceName`: The name of the Alibaba Cloud service that supports data events.'."\n"
+ ."\n"
+ .'- `ReadWriteType`: The type of data event. Valid values: Read, Write, and All.'."\n"
+ ."\n"
+ .'- `EventName`: This field contains the `Equals` and `NotEquals` subfields.'."\n"
+ ."\n"
+ .' For example, the following configuration specifies that only `GetObject`, `CopyObject`, and `AppendObject`events are delivered:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' If you specify `NotEquals`, events other than `GetObject`, `CopyObject`, and `AppendObject` are delivered.'."\n"
+ ."\n"
+ .'- `ResourceArn`: This field also contains the `Equals` and `NotEquals` subfields, similar to `EventName`. For example:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ 'title' => '',
+ ],
+ 'IsTrailAllRegion' => [
+ 'description' => 'Specifies whether the trail tracks data events in all regions.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'- true'."\n"
+ ."\n"
+ .'- false',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'SlsDeliveryConfigs' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CreateTime' => [
+ 'description' => 'The time when the trail was created.',
+ 'type' => 'string',
+ 'example' => '2023-09-30T16:11Z',
+ 'title' => '',
+ ],
+ 'ErrorCode' => [
+ 'description' => 'The error code returned if the resource initialization fails.',
+ 'type' => 'string',
+ 'example' => 'LogServiceException',
+ 'title' => '',
+ ],
+ 'ErrorMessage' => [
+ 'description' => 'The error message returned if the resource initialization fails.',
+ 'type' => 'string',
+ 'example' => 'RequestError Web request failed.',
+ 'title' => '',
+ ],
+ 'RegionSlsProjectArn' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the SLS project in the region where events are delivered.',
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai',
+ 'title' => '',
+ ],
+ 'Status' => [
+ 'description' => 'The initialization status of the tracked resource.',
+ 'type' => 'string',
+ 'example' => 'success',
+ 'title' => '',
+ ],
+ 'TrailRegion' => [
+ 'description' => 'The region of the trail.',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ 'title' => '',
+ ],
+ ],
+ 'description' => 'The object that contains the configuration details for delivering events to SLS.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'The list of configurations for delivering events to Simple Log Service (SLS).',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TrailArn' => [
+ 'description' => 'The ARN of the trail.',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ 'title' => '',
+ ],
+ 'TrailName' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'A list of data event selectors.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'MaxResults' => [
+ 'description' => 'The maximum number of entries returned for the current request.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ 'title' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of `NextToken`.',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => 'The response parameters.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '8A74FD2E-A9B9-461C-BCE9-D9668DF1****',
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The response parameters.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'ListDataEventSelectors',
+ 'responseParamsDescription' => 'The total number of values in the Equals and NotEquals subfields for `EventName` cannot exceed 10. The same limit applies to `ResourceArn`.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventSelectors',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"DataEventSelectorInfos\\": [\\n {\\n \\"EventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"IsTrailAllRegion\\": true,\\n \\"SlsDeliveryConfigs\\": [\\n {\\n \\"CreateTime\\": \\"2023-09-30T16:11Z\\",\\n \\"ErrorCode\\": \\"LogServiceException\\",\\n \\"ErrorMessage\\": \\"RequestError Web request failed.\\",\\n \\"RegionSlsProjectArn\\": \\"acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai\\",\\n \\"Status\\": \\"success\\",\\n \\"TrailRegion\\": \\"cn-shanghai\\"\\n }\\n ],\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\",\\n \\"TrailName\\": \\"trail-name\\"\\n }\\n ],\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\"\\n },\\n \\"RequestId\\": \\"8A74FD2E-A9B9-461C-BCE9-D9668DF1****\\"\\n}","type":"json"}]',
+ ],
+ 'ListDataEventServices' => [
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'- You do not need to specify this parameter for the first request.'."\n"
+ ."\n"
+ .'- You must specify the token that is obtained from the previous query as the value of `NextToken`.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'VjE6dLbnNpVmbz06****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The maximum number of results to return.'."\n"
+ ."\n"
+ .'- Valid values: 1 to 100.'."\n"
+ ."\n"
+ .'- Default value: 20.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'MaxResults' => [
+ 'description' => 'The maximum number of entries returned for the current request.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ 'title' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ 'title' => '',
+ ],
+ 'ServiceInfos' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EventNames' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The event name.',
+ 'type' => 'string',
+ 'example' => 'PutHybridMonitorMetricData',
+ 'title' => '',
+ ],
+ 'description' => 'The data events supported by the service.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The cloud service name.',
+ 'type' => 'string',
+ 'example' => 'Cms',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => 'The supported Alibaba Cloud services and the data events for each service.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'The response parameters.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****',
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The response parameters.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'ListDataEventServices',
+ 'summary' => 'Queries the services that support data events and the names of these events.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventServices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"MaxResults\\": 20,\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"ServiceInfos\\": [\\n {\\n \\"EventNames\\": [\\n \\"PutHybridMonitorMetricData\\"\\n ],\\n \\"ServiceName\\": \\"Cms\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
+ ],
+ 'ListDeliveryHistoryJobs' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailQSIVKF',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n"
+ ."\n"
+ .'- Valid values: 1 to 100.'."\n"
+ ."\n"
+ .'- Default value: 20.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100',
+ 'minimum' => '0',
+ 'default' => '',
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n"
+ ."\n"
+ .'- The value must be greater than or equal to 1.'."\n"
+ ."\n"
+ .'- Default value: 1.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '2147483647',
+ 'minimum' => '0',
+ 'example' => '1',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DeliveryHistoryJobs' => [
+ 'description' => 'The list of data backfill tasks.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatedTime' => [
+ 'description' => 'The time when the task was created.',
+ 'type' => 'string',
+ 'example' => '2021-04-26T03:17:04Z',
+ 'title' => '',
+ ],
+ 'EndTime' => [
+ 'description' => 'The time when the task ended.',
+ 'type' => 'string',
+ 'example' => '2021-04-26T03:22:04Z',
+ 'title' => '',
+ ],
+ 'HomeRegion' => [
+ 'description' => 'The home region.',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'JobId' => [
+ 'description' => 'The task ID.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '16602',
+ 'title' => '',
+ ],
+ 'JobStatus' => [
+ 'description' => 'The status of the task. Valid values:'."\n"
+ ."\n"
+ .'- 0: The task is being initialized.'."\n"
+ ."\n"
+ .'- 1: The task is delivering events.'."\n"
+ ."\n"
+ .'- 2: The task is complete.'."\n"
+ ."\n"
+ .'- 3: The task failed.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ 'title' => '',
+ ],
+ 'StartTime' => [
+ 'description' => 'The time when the task started.',
+ 'type' => 'string',
+ 'example' => '2021-01-26T03:17:04Z',
+ 'title' => '',
+ ],
+ 'TrailName' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ 'UpdatedTime' => [
+ 'description' => 'The time when the task was last updated.',
+ 'type' => 'string',
+ 'example' => '2021-04-26T03:20:08Z',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number of the returned page.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'title' => '',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'B190816C-6DCA-4DC5-9B8E-EE0367B57CFF',
+ 'title' => '',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of tasks.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 503 => [
+ [
+ 'errorCode' => 'ServiceUnavailable',
+ 'errorMessage' => 'The service is unavailable. Please try again later.',
+ 'description' => 'An error occurred while processing your request.',
+ ],
+ ],
+ ],
+ 'title' => 'ListDeliveryHistoryJobs',
+ 'summary' => 'Queries a list of data backfill tasks.',
+ 'description' => 'This topic provides an example of how to query a list of data backfill tasks. The response shows a task with the ID `16602` that delivers historical events from the trail `trail-name` to Simple Log Service (SLS).',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'ListDeliveryHistoryJobs',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDeliveryHistoryJobs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ ],
+ 'LookupEvents' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailHCRZJP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'> You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The maximum number of results to return.<br>Valid values: 1 to 50.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The beginning of the time range to query. Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC.'."\n"
+ ."\n"
+ .'> You must specify both `StartTime` and `EndTime`, or leave both unspecified. If you leave them unspecified, the default value of `StartTime` is 7 days before the current time.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2020-10-08T11:00:00Z',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.'."\n"
+ ."\n"
+ .'> You must specify both `StartTime` and `EndTime`, or leave both unspecified. If you leave them unspecified, the default value of `EndTime` is the current time.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2020-10-15T11:00:00Z',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'Direction',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The order in which events are retrieved. Valid values:'."\n"
+ ."\n"
+ .'- FORWARD: Chronological order.'."\n"
+ ."\n"
+ .'- BACKWARD (default): Reverse chronological order.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'BACKWARD',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'LookupAttribute',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The filter conditions.'."\n"
+ ."\n"
+ .'> You can specify one or two filter conditions at a time. For more information, see [Limitations](~~2920829~~).',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => 'The attribute key. For information about valid values, see [How do I configure the LookupAttribute parameter when calling LookupInsightEvents?](~~2920829~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ServiceName',
+ 'title' => '',
+ ],
+ 'Value' => [
+ 'description' => 'The attribute value. For information about valid values, see [How do I configure the LookupAttribute parameter when calling LookupInsightEvents?](~~2920829~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Ecs',
+ 'title' => '',
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'maxItems' => 2,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => 'The end of the time range of the retrieved events.',
+ 'type' => 'string',
+ 'example' => '2020-07-22T14:00:00Z',
+ 'title' => '',
+ ],
+ 'Events' => [
+ 'description' => 'The list of retrieved events.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details about the retrieved event.'."\n"
+ ."\n"
+ .'For more information about the event fields in the list, see [Management event structure](~~28819~~).',
+ 'type' => 'object',
+ 'example' => ' {'."\n"
+ .' "eventId": "6EEC3A76-C207-5075-889D-A909E62F****",'."\n"
+ .' "eventVersion": 1,'."\n"
+ .' "eventName": "GetTemplate"'."\n"
+ .' }',
+ 'title' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'> If NextToken is empty, no next page exists.',
+ 'type' => 'string',
+ 'example' => 'eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'FD79665A-CE8B-49D4-82E6-5EE2E0E7****',
+ 'title' => '',
+ ],
+ 'StartTime' => [
+ 'description' => 'The start of the time range of the retrieved events.',
+ 'type' => 'string',
+ 'example' => '2020-07-15T14:00:00Z',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterEndTime',
+ 'errorMessage' => 'The specified EndTime is invalid.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTime',
+ 'errorMessage' => 'The specified StartTime is invalid.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => 'LookupEvents',
+ 'summary' => 'Queries detailed historical events.',
+ 'description' => '> Do not call this operation frequently. To query events in near-real time, you can create a trail to deliver events to Simple Log Service (SLS) and use its real-time consumption feature. For more information, see [Create a single-account trail](~~28810~~), [Create a multi-account trail](~~160661~~), and [Real-time consumption](~~28997~~).',
+ 'requestParamsDescription' => 'For information about common request parameters, see [Common parameters](~~185885~~).',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '10',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'LookupEvents',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:LookupEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ ],
+ 'LookupInsightEvents' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results.'."\n"
+ ."\n"
+ .'- You do not need to specify this parameter for the first request.'."\n"
+ ."\n"
+ .'- You must specify the token that is obtained from the previous query as the value of `NextToken`.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'VjE6dLbnNpVmbz06****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The maximum number of entries to return.'."\n"
+ ."\n"
+ .'- Valid values: 1 to 50.'."\n"
+ ."\n"
+ .'- Default value: 20.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The beginning of the time range to query. The default value is seven days before the current time.'."\n"
+ ."\n"
+ .'Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC.'."\n"
+ ."\n"
+ .'> - The maximum time range that can be queried is 93 days. If the specified time range is longer than 93 days, only events from the last 93 days are returned.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07T04:10:00Z',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The end of the time range to query. The default value is the current time.'."\n"
+ ."\n"
+ .'Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2026-01-07T07:10:00Z',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'LookupAttribute',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => 'The attribute key. For more information about valid values, see [How do I configure the LookupAttribute parameter when calling LookupInsightEvents?](~~3011147~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'InsightType',
+ 'title' => '',
+ ],
+ 'Value' => [
+ 'description' => 'The attribute value. For more information about valid values, see [How do I configure the LookupAttribute parameter when calling LookupInsightEvents?](~~3011147~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IpInsight',
+ 'title' => '',
+ ],
+ ],
+ 'description' => 'A fliter condition.',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'maxItems' => 2,
+ 'description' => 'An array of fliter conditions.'."\n"
+ ."\n"
+ .'> - You can specify one or two query conditions. For more information, see [Limitations](~~3011147~~).',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Events' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The Insight event.',
+ '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"
+ .'}',
+ 'title' => '',
+ ],
+ 'description' => 'The Insights events.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NextToken' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of `NextToken`.',
+ 'type' => 'string',
+ 'example' => 'VjE6bHJlTGoxdm1M****',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '851038F3-33AB-4C49-97D7-6AB37D35****',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncompleteSignature',
+ 'errorMessage' => 'The request signature does not conform to Alibaba Cloud standards.',
+ 'description' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterCombination',
+ 'errorMessage' => 'The end time must be later than the start time.',
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ [
+ 'errorCode' => 'InvalidQueryParameter',
+ 'errorMessage' => 'The specified query parameter is invalid.',
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterDateOutOfRange',
+ 'errorMessage' => 'Query time range exceeds 30 days.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterEndTime',
+ 'errorMessage' => 'The specified EndTime is invalid.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTime',
+ 'errorMessage' => 'The specified StartTime is invalid.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeExceedsCurrent',
+ 'errorMessage' => 'The StartTime exceeds the current time. Use GMT time format for queries.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidParameterStartTimeOutOfDate',
+ 'errorMessage' => 'The StartTime exceeds the limit of 90 days.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidTimeRangeException',
+ 'errorMessage' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ ],
+ ],
+ 'title' => 'LookupInsightEvents',
+ 'summary' => 'Queries Insights events.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Events\\": [\\n {\\n \\"eventId\\": \\"408ACD94-4531-4D66-BA14-1F7248AC****\\",\\n \\"eventCategory\\": \\"Insight\\",\\n \\"sharedEventId\\": \\"55CF0739-97D8-4221-A6BE-8E60E746****\\",\\n \\"eventVersion\\": \\"1\\",\\n \\"eventTime\\": \\"2026-01-07T05:40:00Z\\",\\n \\"insightDetails\\": {\\n \\"insightContext\\": {\\n \\"attributions\\": [\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"AlibabaCloud API Workbench\\"\\n }\\n ],\\n \\"attribute\\": \\"userAgent\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"20376656170607****\\"\\n }\\n ],\\n \\"attribute\\": \\"principalId\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"Actiontrail/EnableInsight\\"\\n }\\n ],\\n \\"attribute\\": \\"apiRelated\\"\\n },\\n {\\n \\"insight\\": [\\n {\\n \\"average\\": 3,\\n \\"value\\": \\"null\\"\\n }\\n ],\\n \\"attribute\\": \\"errorCode\\"\\n }\\n ],\\n \\"statistics\\": {\\n \\"insight\\": {\\n \\"average\\": 3,\\n \\"predict\\": 0\\n },\\n \\"insightDuration\\": 1,\\n \\"baseline\\": {\\n \\"threshold\\": 0.6\\n },\\n \\"insightCount\\": 3\\n }\\n },\\n \\"state\\": \\"Start\\",\\n \\"insightType\\": \\"IpInsight\\",\\n \\"insightObject\\": \\"xxx.xxx.xxx.xxx\\"\\n },\\n \\"acsRegion\\": \\"cn-qingdao\\",\\n \\"eventType\\": \\"ActionTrailInsight\\"\\n }\\n ],\\n \\"NextToken\\": \\"VjE6bHJlTGoxdm1M****\\",\\n \\"RequestId\\": \\"851038F3-33AB-4C49-97D7-6AB37D35****\\"\\n}","type":"json"}]',
+ ],
+ 'PutDataEventSelector' => [
+ 'path' => '',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailK0OCFQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'EventSelectors',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The configuration of the data event selector. This parameter is a JSON array that can contain a maximum of 20 elements.'."\n"
+ ."\n"
+ .'Each element in the JSON array includes the following fields:'."\n"
+ ."\n"
+ .'- `ServiceName`: The name of the Alibaba Cloud service that supports data events.'."\n"
+ ."\n"
+ .'- `ReadWriteType`: The type of data event. Valid values: Read, Write, and All.'."\n"
+ ."\n"
+ .'- `EventName`: This field contains the `Equals` and `NotEquals` subfields.'."\n"
+ ."\n"
+ .' For example, the following configuration specifies that only `GetObject`, `CopyObject`, and `AppendObject`events are delivered:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' If you specify `NotEquals`, events other than `GetObject`, `CopyObject`, and `AppendObject` are delivered.'."\n"
+ ."\n"
+ .'- `ResourceArn`: This field also contains the `Equals` and `NotEquals` subfields, similar to `EventName`. For example:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'IsTrailAllRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether the trail tracks data events in all regions.'."\n"
+ ."\n"
+ .'Default value: `false`.',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegionIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The regions where the trail tracks data events. Separate multiple region IDs with a comma (`,`).',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai,cn-hangzhou',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DataEventSelectors' => [
+ 'description' => 'The configuration of the data event selector. This parameter is a JSON array that can contain a maximum of 20 elements.'."\n"
+ ."\n"
+ .'Each element in the JSON array includes the following fields:'."\n"
+ ."\n"
+ .'- `ServiceName`: The name of the Alibaba Cloud service that supports data events.'."\n"
+ ."\n"
+ .'- `ReadWriteType`: The type of data event. Valid values: Read, Write, and All.'."\n"
+ ."\n"
+ .'- `EventName`: This field contains the `Equals` and `NotEquals` subfields.'."\n"
+ ."\n"
+ .' For example, the following configuration specifies that only `GetObject`, `CopyObject`, and `AppendObject` events are delivered:'."\n"
+ ."\n"
+ .' `{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}`'."\n"
+ ."\n"
+ .' If you specify `NotEquals`, events other than `GetObject`, `CopyObject`, and `AppendObject` are delivered.'."\n"
+ ."\n"
+ .'- `ResourceArn`: This field also contains the `Equals` and `NotEquals` subfields, similar to `EventName`. For example:'."\n"
+ ."\n"
+ .' `{"ResourceArn":{"Equals":[arn1,...,arnx]}}`',
+ 'type' => 'string',
+ 'example' => '[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '243E1250-32DA-493B-9347-3C7EEE07****',
+ 'title' => '',
+ ],
+ 'TrailArn' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the trail.',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ 'description' => 'The response parameters.',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'PutDataEventSelector',
+ 'summary' => 'Creates or configures a data event selector. A trail must exist before you create a data event selector. If a trail does not exist, you can call the CreateTrail operation to create one.',
+ 'requestParamsDescription' => '- The total number of values in the Equals and NotEquals subfields for `EventName` cannot exceed 10. The same limit applies to `ResourceArn`.'."\n"
+ ."\n"
+ .'- The `TrailRegionIds` parameter is required if you do not specify `IsTrailAllRegion` or set it to `false`.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:PutDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DataEventSelectors\\": \\"[{\\\\\\"EventName\\\\\\":{\\\\\\"Equals\\\\\\":[\\\\\\"GetObject\\\\\\",\\\\\\"CopyObject\\\\\\",\\\\\\"AppendObject\\\\\\"]},\\\\\\"ReadWriteType\\\\\\":\\\\\\"All\\\\\\",\\\\\\"ServiceName\\\\\\":\\\\\\"Oss\\\\\\"}]\\",\\n \\"RequestId\\": \\"243E1250-32DA-493B-9347-3C7EEE07****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'PutInsightSelectors' => [
+ 'summary' => 'Specifies the types of Insights events to deliver for a trail.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail3ODDBG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrailName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-name',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'InsightSelectors',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The types of Insights events that the trail should deliver.',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '[{"insightType":"AkInsight"},{"insightType":"IpInsight"}]',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InsightSelectors' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'An Insights event type.',
+ 'type' => 'string',
+ 'example' => '{"insightType":"AkInsight"}',
+ 'title' => '',
+ ],
+ 'description' => 'An array of Insights event types.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '7EC26DF0-35AC-5F37-82B3-F5545D0A****',
+ 'title' => '',
+ ],
+ 'TrailArn' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the trail.',
+ 'type' => 'string',
+ 'example' => 'acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InsightSelectorDoesNotExistException',
+ 'errorMessage' => 'The special Selector is not existed.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'title' => 'PutInsightSelectors',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"InsightSelectors\\": [\\n \\"{\\\\\\"insightType\\\\\\":\\\\\\"AkInsight\\\\\\"}\\"\\n ],\\n \\"RequestId\\": \\"7EC26DF0-35AC-5F37-82B3-F5545D0A****\\",\\n \\"TrailArn\\": \\"acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name\\"\\n}","type":"json"}]',
+ ],
+ 'StartLogging' => [
+ 'summary' => 'Enables a trail to start delivering ActionTrail events to Object Storage Service (OSS), Simple Log Service (SLS), or MaxCompute.',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail that you want to enable.'."\n"
+ ."\n"
+ .'The name must be 6 to 36 characters in length. It must start with a lowercase letter and can contain lowercase letters, digits, hyphens (-), and underscores (\\_).'."\n"
+ ."\n"
+ .'> The name must be unique within your Alibaba Cloud account.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'title' => '',
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\"\\n}","type":"json"}]',
+ 'title' => 'StartLogging',
+ 'description' => 'This topic provides an example on how to enable a trail named `trail-test`.',
+ 'requestParamsDescription' => 'For more information, see [Common parameters](~~185885~~).',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'StartLogging',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StartLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'StopLogging' => [
+ 'summary' => 'Disables a trail to stop delivering ActionTrail events to Object Storage Service (OSS), Simple Log Service (SLS), or MaxCompute.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail that you want to disable.'."\n"
+ ."\n"
+ .'The name must be 6 to 36 characters in length. It must start with a lowercase letter and can contain lowercase letters, digits, hyphens (-), and underscores (\\_).'."\n"
+ ."\n"
+ .'> The name must be unique within your Alibaba Cloud account.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'title' => '',
+ 'example' => 'trail-test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'title' => '',
+ 'example' => '1C488B66-B819-4D14-8711-C4EAAA13AC01',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1C488B66-B819-4D14-8711-C4EAAA13AC01\\"\\n}","type":"json"}]',
+ 'title' => 'StopLogging',
+ 'description' => 'This topic provides an example on how to disable a trail named `trail-test`.',
+ 'requestParamsDescription' => 'For more information, see [Common parameters](~~185885~~).',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'StopLogging',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StopLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'UpdateAdvancedQueryTemplate' => [
+ 'summary' => 'Updates an advanced query template.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrailDEDB14',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the template. The maximum length is 64 characters.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example-template',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'TemplateSql',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The query statement of the template.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'event.eventName: ConsoleSignin AND event.userIdentity.type: root-account',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'SimpleQuery',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable the simple query mode.',
+ 'type' => 'boolean',
+ 'required' => true,
+ 'example' => 'false',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0',
+ 'title' => '',
+ ],
+ 'SimpleQuery' => [
+ 'description' => 'Indicates whether the simple query mode is enabled.',
+ 'type' => 'string',
+ 'example' => 'true',
+ 'title' => '',
+ ],
+ 'TemplateId' => [
+ 'description' => 'The template ID.',
+ 'type' => 'string',
+ 'example' => 'utpl-QNL3dpYkQcyjZxrIQC****',
+ 'title' => '',
+ ],
+ 'TemplateName' => [
+ 'description' => 'The name of the template. The maximum length is 64 characters.',
+ 'type' => 'string',
+ 'example' => 'example-template',
+ 'title' => '',
+ ],
+ 'TemplateSql' => [
+ 'description' => 'The query statement of the template.',
+ 'type' => 'string',
+ 'example' => 'event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'title' => 'UpdateAdvancedQueryTemplate',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0\\",\\n \\"SimpleQuery\\": \\"true\\",\\n \\"TemplateId\\": \\"utpl-QNL3dpYkQcyjZxrIQC****\\",\\n \\"TemplateName\\": \\"example-template\\",\\n \\"TemplateSql\\": \\"event.userIdentity.type: root-account AND event.userIdentity.accessKeyId: *\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateGlobalEventsStorageRegion' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREactiontrail321LUI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'StorageRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The region where you want to store global events.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* ap-southeast-1'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' the Singapore region'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* cn-hangzhou'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' the China (Hangzhou) region'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'ap-southeast-1' => 'ap-southeast-1',
+ 'cn-hangzhou' => 'cn-hangzhou',
+ ],
+ 'example' => 'ap-southeast-1',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'D7A0694E-C8FE-574E-92E3-63C5B5D23BD4',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => 'UpdateGlobalEventsStorageRegion',
+ 'summary' => 'Specifies the region where you want to store global events.',
+ 'description' => 'By default, global events are stored in the Singapore region.'."\n"
+ ."\n"
+ .'* To obtain the permissions to call the API operation, you must submit a ticket.'."\n"
+ .'* Only the China (Hangzhou) region (cn-hangzhou) and the Singapore region (ap-southeast-1) are supported.'."\n",
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'UpdateGlobalEventsStorageRegion',
+ ],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7A0694E-C8FE-574E-92E3-63C5B5D23BD4\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateTrail' => [
+ 'summary' => 'Updates the configurations of a trail.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trail whose configurations you want to update.'."\n"
+ ."\n"
+ .'The name must be 6 to 36 characters in length and can contain lowercase letters, digits, hyphens (-), and underscores (\\_). It must start with a lowercase letter.'."\n"
+ ."\n"
+ .'> The name must be unique within an Alibaba Cloud account.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'trail-test',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'OssBucketName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Object Storage Service (OSS) bucket to which you want to deliver events.'."\n"
+ ."\n"
+ .'The name must be 3 to 63 characters in length. The name must start with a lowercase letter or a digit and can contain lowercase letters, digits, and hyphens (-).'."\n"
+ ."\n"
+ .'> Make sure that the bucket exists before you update the configuration of the trail.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'audit-log',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'OssKeyPrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The prefix of the files that are stored in the OSS bucket.'."\n"
+ ."\n"
+ .'The prefix must be 6 to 32 characters in length. The prefix must start with a letter and can contain letters, digits, hyphens (-), forward slashes (/), and underscores (\\_).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'at-product-account-audit-B',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'OssWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role that is assumed by ActionTrail to deliver events to the OSS bucket.'."\n"
+ ."\n"
+ .'* If you do not specify this parameter, ActionTrail creates a service-linked role to create the required resources. For more information, see [Manage the service-linked role](~~169244~~).'."\n"
+ .'* If you specify this parameter, you must grant the permissions of the service-linked role that is assumed by ActionTrail to the RAM role before you can deliver events to your Alibaba Cloud account. If you need to deliver events to other Alibaba Cloud accounts, you must attach the permission policy that is used to grant permissions related to event delivery to the RAM role. For more information about how to deliver events across Alibaba Cloud accounts, see [Deliver events across Alibaba Cloud accounts](~~207462~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'SlsProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the Log Service project to which you want to deliver events.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:log:cn-shanghai:151266687691****:project/test-project',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'SlsWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the RAM role that is assumed by ActionTrail to deliver events to the Log Service project.'."\n"
+ ."\n"
+ .'* If you do not specify this parameter, ActionTrail creates a service-linked role to create the corresponding resource. For more information, see [Manage the service-linked role](~~169244~~).'."\n"
+ .'* If you specify this parameter, you must grant the permissions of the service-linked role that is assumed by ActionTrail to the RAM role before you can deliver events to your Alibaba Cloud account. If you need to deliver events to other Alibaba Cloud accounts, you must attach the permission policy that is used to grant permissions related to event delivery to the RAM role. For more information about how to deliver events across Alibaba Cloud accounts, see [Deliver events across Alibaba Cloud accounts](~~207462~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'EventRW',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The read/write type of the events to be delivered. Valid values:'."\n"
+ ."\n"
+ .'* Write: write events. It is the default value.'."\n"
+ .'* Read: read events.'."\n"
+ .'* All: read and write events.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'TrailRegion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The region of the trail.'."\n"
+ ."\n"
+ .'* The default value is All, which indicates that the trail delivers events from all regions.'."\n"
+ ."\n"
+ .'You can also specify specific regions. You can call the [DescribeRegions](~~213597~~) operation to query all the supported regions.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeProjectArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the MaxCompute project to which you want to deliver events.'."\n"
+ ."\n"
+ .'> The name of the MaxCompute project must be prefixed with actiontrail\\_.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:odps:cn-hangzhou:、151277687691****:project/actiontrail_****',
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'MaxComputeWriteRoleArn',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ARN of the role that is assumed by ActionTrail to deliver events to the destination Simple Log Service project.'."\n"
+ ."\n"
+ .'* If you do not specify this parameter, ActionTrail creates a service-linked role to create the required resources. For more information, see [Manage the service-linked role](~~169244~~).'."\n"
+ .'* If you specify this parameter and deliver events to the current account, you must grant the RAM role the permissions on the service-linked role for ActionTrail. If you want to deliver events to other accounts, you must attach a system policy to the RAM role. For more information about how to deliver events across Alibaba Cloud accounts, see [Deliver events across Alibaba Cloud accounts](~~207462~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'acs:ram::151277687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SlsProjectArn' => [
+ 'description' => 'The ARN of the Log Service project to which events are to be delivered.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:log:cn-hangzhou:151266687691****:project/test-project',
+ 'title' => '',
+ ],
+ 'OssWriteRoleArn' => [
+ 'description' => 'The ARN of the RAM role that is assumed by ActionTrail to deliver events to the OSS bucket.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'EventRW' => [
+ 'description' => 'The read/write type of the events to be delivered.'."\n",
+ 'type' => 'string',
+ 'example' => 'Write',
+ 'title' => '',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '2599A180-5236-44D8-9490-50B6F4F8BA35',
+ 'title' => '',
+ ],
+ 'HomeRegion' => [
+ 'description' => 'The home region of the trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'title' => '',
+ ],
+ 'OssKeyPrefix' => [
+ 'description' => 'The prefix of the log files to be stored in the destination OSS bucket.'."\n",
+ 'type' => 'string',
+ 'example' => 'at-product-account-audit-B',
+ 'title' => '',
+ ],
+ 'OssBucketName' => [
+ 'description' => 'The name of the OSS bucket.'."\n",
+ 'type' => 'string',
+ 'example' => 'audit-log',
+ 'title' => '',
+ ],
+ 'SlsWriteRoleArn' => [
+ 'description' => 'The ARN of the RAM role that is assumed by ActionTrail is to deliver events to the Log Service project.'."\n",
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ 'TrailRegion' => [
+ 'description' => 'The one or more regions from which the trail delivers events.'."\n",
+ 'type' => 'string',
+ 'example' => 'All',
+ 'title' => '',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the trail.'."\n",
+ 'type' => 'string',
+ 'example' => 'trail-test',
+ 'title' => '',
+ ],
+ 'MaxComputeProjectArn' => [
+ 'description' => 'ARN of the Big Data Compute Service project for tracking delivery.',
+ 'type' => 'string',
+ 'example' => 'acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****',
+ 'title' => '',
+ ],
+ 'MaxComputeWriteRoleArn' => [
+ 'description' => 'The ARN of the role that Operation Audit assumes when delivering operation events to the Big Data Compute Service project.',
+ 'type' => 'string',
+ 'example' => 'acs:ram::151266687691****:role/aliyunserviceroleforactiontrail',
+ 'title' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ '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' => '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.',
+ 'description' => '',
+ ],
+ [
+ 'errorCode' => 'InvalidPrefixException',
+ 'errorMessage' => 'The specified OSS bucket prefix is invalid.',
+ 'description' => 'The specified OSS bucket prefix is not valid.',
+ ],
+ ],
+ 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' => 'Access SLS Project denied.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'TrailNotFoundException',
+ 'errorMessage' => 'The specified Trail does not exist.',
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ [
+ 'errorCode' => 'BucketDoesNotExistException',
+ 'errorMessage' => 'The specified OSS bucket does not exist.',
+ 'description' => '',
+ ],
+ ],
+ ],
+ '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":""}]',
+ 'title' => 'UpdateTrail',
+ 'description' => 'This topic shows you how to change the destination Object Storage Service (OSS) bucket of a sample trail named `trail-test` to `audit-log`.'."\n",
+ 'requestParamsDescription' => 'For more information about common request parameters, see [Common parameters](~~185885~~).'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ [
+ 'threshold' => '5',
+ 'countWindow' => 1,
+ 'regionId' => '*',
+ 'api' => 'UpdateTrail',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'regionName' => 'Japan (Tokyo)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ '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' => 'South Korea (Seoul)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ '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' => 'Singapore',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ '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' => 'Malaysia (Kuala Lumpur)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ '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' => 'Indonesia (Jakarta)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ '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' => 'Thailand (Bangkok)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ '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' => 'China (Beijing)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-beijing.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-beijing.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'regionName' => 'China (Chengdu)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-chengdu.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-chengdu.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'regionName' => 'China (Guangzhou)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-guangzhou.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-guangzhou.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'regionName' => 'China (Hangzhou)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-hangzhou.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'regionName' => 'China (Heyuan)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-heyuan.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-heyuan.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'regionName' => 'China (Hong Kong)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-hongkong.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-hongkong.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'regionName' => 'China (Hohhot)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-huhehaote.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-huhehaote.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'regionName' => 'China (Nanjing - Local Region)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-nanjing.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-nanjing.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'regionName' => 'China (Qingdao)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-qingdao.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-qingdao.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'regionName' => 'China (Shanghai)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-shanghai.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-shanghai.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'regionName' => 'China (Shenzhen)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-shenzhen.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-shenzhen.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'regionName' => 'China (Ulanqab)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-wulanchabu.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-wulanchabu.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'regionName' => 'China (Zhangjiakou)',
+ 'areaId' => 'asiaPacific',
+ 'areaName' => 'Asia Pacific',
+ 'public' => 'actiontrail.cn-zhangjiakou.aliyuncs.com',
+ 'endpoint' => 'actiontrail.cn-zhangjiakou.aliyuncs.com',
+ 'vpc' => 'actiontrail-vpc.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'regionName' => 'US (Silicon Valley)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => 'Europe & Americas',
+ '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' => 'US (Virginia)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => 'Europe & Americas',
+ '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' => 'Mexico',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => 'Europe & Americas',
+ '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' => 'UK (London)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => 'Europe & Americas',
+ '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' => 'Germany (Frankfurt)',
+ 'areaId' => 'europeAmerica',
+ 'areaName' => 'Europe & Americas',
+ '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' => 'UAE (Dubai)',
+ 'areaId' => 'middleEast',
+ 'areaName' => 'Middle East',
+ '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' => 'China East 2 Finance',
+ 'areaId' => 'industryCloud',
+ 'areaName' => 'Industry Cloud',
+ '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' => 'Beijing Government Cloud',
+ 'areaId' => 'industryCloud',
+ 'areaName' => 'Industry Cloud',
+ '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' => 'The specified OSS Bucket is not existed.',
+ ],
+ [
+ 'code' => 'CreateLogStoreError',
+ 'message' => 'Failed to create or update the logstore.',
+ 'http_code' => 400,
+ 'description' => 'Failed to create or update the 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' => 'The request signature does not conform to Alibaba Cloud standards.',
+ ],
+ [
+ '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' => 'Access OSS bucket denied.',
+ ],
+ [
+ 'code' => 'InsufficientSlsPolicyException',
+ 'message' => 'Access to the specified Log Service project was denied.',
+ 'http_code' => 403,
+ 'description' => 'Access SLS Project denied.',
+ ],
+ [
+ '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' => 'The specified Action is not valid.',
+ ],
+ [
+ 'code' => 'InvalidDeliveryConfigurationException',
+ 'message' => 'You must specify at least one Log Service Project or OSS Bucket for a Trail.',
+ 'http_code' => 400,
+ 'description' => 'Trail must have at least one delivery destination',
+ ],
+ [
+ 'code' => 'InvalidLookupAttributesException',
+ 'message' => 'LookupAttribute Key is not valid. Only support specific values or combinations.',
+ 'http_code' => 400,
+ 'description' => 'The key setting of the search condition is incorrect. Only support specific values or combinations.',
+ ],
+ [
+ 'code' => 'InvalidNextToken',
+ 'message' => 'NextToken is not valid.',
+ 'http_code' => 400,
+ 'description' => 'NextToken is not valid.',
+ ],
+ [
+ 'code' => 'InvalidParameterCombination',
+ 'message' => 'The end time must be later than the start time.',
+ 'http_code' => 400,
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ [
+ 'code' => 'InvalidParameterDateOutOfRange',
+ 'message' => 'Query time range exceeds 30 days.',
+ 'http_code' => 400,
+ 'description' => '',
+ ],
+ [
+ 'code' => 'InvalidParameterEndTime',
+ 'message' => 'The specified EndTime is invalid.',
+ 'http_code' => 400,
+ 'description' => '',
+ ],
+ [
+ 'code' => 'InvalidParameterStartTime',
+ 'message' => 'The specified StartTime is invalid.',
+ 'http_code' => 400,
+ 'description' => '',
+ ],
+ [
+ 'code' => 'InvalidParameterStartTimeExceedsCurrent',
+ 'message' => 'The StartTime exceeds the current time. Use GMT time format for queries.',
+ 'http_code' => 400,
+ 'description' => '',
+ ],
+ [
+ 'code' => 'InvalidParameterStartTimeOutOfDate',
+ 'message' => 'The StartTime exceeds the limit of 90 days.',
+ 'http_code' => 400,
+ 'description' => '',
+ ],
+ [
+ 'code' => 'InvalidParameterValue',
+ 'message' => 'The specified parameter is invalid.',
+ 'http_code' => 400,
+ 'description' => 'The specified parameter is invalid.',
+ ],
+ [
+ 'code' => 'InvalidPrefixException',
+ 'message' => 'The specified OSS bucket prefix is invalid.',
+ 'http_code' => 400,
+ 'description' => 'The specified OSS bucket prefix is not valid.',
+ ],
+ [
+ 'code' => 'InvalidQueryParameter',
+ 'message' => 'The specified query parameter is invalid.',
+ 'http_code' => 400,
+ 'description' => 'The specified query parameter is not valid.',
+ ],
+ [
+ 'code' => 'InvalidTimeRangeException',
+ 'message' => 'The end time must be later than the start time. The time span cannot exceed 30 days.',
+ 'http_code' => 400,
+ 'description' => 'The end time must be greater than the start time.',
+ ],
+ [
+ 'code' => 'InvalidTrailNameException',
+ 'message' => 'The specified Trail name is invalid.',
+ 'http_code' => 400,
+ 'description' => 'The specified Trail name is not valid.',
+ ],
+ [
+ 'code' => 'LogServiceException',
+ 'message' => 'RequestError Web request failed.',
+ 'http_code' => 400,
+ 'description' => 'Failed to request SLS service.',
+ ],
+ [
+ 'code' => 'LookupEventsParameterError',
+ 'message' => 'LookupEvents params error.',
+ 'http_code' => 400,
+ 'description' => 'LookupEvents params error.',
+ ],
+ [
+ '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' => 'The number of Trail in same region has exceeded the limit 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' => 'The ActionTrail service linked role does not exist.',
+ ],
+ [
+ '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' => 'You are not authorized to do this action. You should be authorized by 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' => 'The specified OSS Bucket is already in used,.We recommend that you modify the tracking area in that Trail.',
+ ],
+ [
+ 'code' => 'ServiceTrailNotExist',
+ 'message' => 'This account serviceTrail not existed.',
+ 'http_code' => 400,
+ 'description' => 'The specified service trace under the account does not exist.',
+ ],
+ [
+ 'code' => 'ServiceUnavailable',
+ 'message' => 'The service is unavailable. Please try again later.',
+ 'http_code' => 503,
+ 'description' => 'An error occurred while processing your request.',
+ ],
+ [
+ 'code' => 'SlsLogStoreDoesNotExistException',
+ 'message' => 'LogStoreDoesNotExist.',
+ 'http_code' => 404,
+ 'description' => 'The specified Logstore does not exist.',
+ ],
+ [
+ 'code' => 'SlsProjectDoesNotExistException',
+ 'message' => 'The specified Log Service Project does not exist.',
+ 'http_code' => 400,
+ 'description' => 'The specified SLS Project is not existed.',
+ ],
+ [
+ 'code' => 'TrailAlreadyExistsException',
+ 'message' => 'The specified Trail name already exists.',
+ 'http_code' => 400,
+ 'description' => 'The specified Trail name already exists,if you want to create a new Trail,please use another Trail name.',
+ ],
+ [
+ 'code' => 'TrailNotFoundException',
+ 'message' => 'The specified Trail does not exist.',
+ 'http_code' => 404,
+ 'description' => 'The specified Trail is not existed.',
+ ],
+ [
+ 'code' => 'TrailNotValid',
+ 'message' => 'The special Trail is not valid.',
+ 'http_code' => 400,
+ 'description' => 'The special Trail is not valid.',
+ ],
+ [
+ 'code' => 'AnalysisTimeRangeExceeded',
+ 'message' => 'The time range between StartTime and EndTime cannot exceed 7 days.',
+ 'http_code' => 400,
+ 'description' => 'The time frame between StartTime and EndTime cannot exceed 7 days.',
+ ],
+ ],
+ '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' => 'ActionTrail',
+ 'ramCodes' => [
+ 'actiontrail',
+ ],
+ 'ramLevel' => 'OPERATION',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'GetAccessKeyLastUsedEvents',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAdvancedQueryHistory',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateDeliveryHistoryJob',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteDeliveryHistoryJob',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeSearchTemplates',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeSearchTemplates',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StartLogging',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StartLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateGlobalEventsStorageRegion',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'ActionTrailVirtual',
+ 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetGovernanceMetrics',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGovernanceMetrics',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDeliveryHistoryJobs',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDeliveryHistoryJobs',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeTrails',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeTrails',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeUserLogCount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserLogCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAdvancedQueryHistory',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'EnableInsight',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:EnableInsight',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'StopLogging',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:StopLogging',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAdvancedQueryTemplate',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetGlobalEventsStorageRegion',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetGlobalEventsStorageRegion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'ActionTrailVirtual',
+ 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedProducts',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedProducts',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedInfo',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTrailStatus',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetTrailStatus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDeliveryHistoryJob',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDeliveryHistoryJob',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeScenes',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeScenes',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetDataEventSelector',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'PutDataEventSelector',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:PutDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'LookupEvents',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:LookupEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAdvancedQueryTemplate',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteTrail',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateTrail',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedResources',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedResources',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvancedQueryTemplate',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeResourceLifeCycleEvents',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeResourceLifeCycleEvents',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteDataEventSelector',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DeleteDataEventSelector',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAdvancedQueryTemplate',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDataEventSelectors',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventSelectors',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAccessKeyLastUsedIps',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:GetAccessKeyLastUsedIps',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateTrail',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'actiontrail:CreateTrail',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeUserAlertCount',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeUserAlertCount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListDataEventServices',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'actiontrail:ListDataEventServices',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeAdvancedQueryHistory',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'actiontrail:DescribeAdvancedQueryHistory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'All Resource',
+ 'arn' => '*',
+ ],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAdvancedQueryTemplate',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'actiontrail:UpdateAdvancedQueryTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ [
+ 'validationType' => 'always',
+ 'product' => 'ActionTrail',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/*',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'HistoryDeliveryJob',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:historydeliveryjob/{#HistoryDeliveryJobId}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/{#TrailName}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'ActionTrailVirtual',
+ 'arn' => 'acs:actiontrail:*:{#accountId}:actiontrailvirtual/{#ActionTrailVirtualId}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'Trail',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:trail/*',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/{#TemplateId}',
+ ],
+ [
+ 'validationType' => 'always',
+ 'resourceType' => 'AdvancedQueryTemplate',
+ 'arn' => 'acs:actiontrail:{#regionId}:{#accountId}:advancedquerytemplate/*',
+ ],
+ ],
+ ],
+];