From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/en_us/grace/2022-06-06/api-docs.php | 839 ++++++++++++++++--------------- 1 file changed, 435 insertions(+), 404 deletions(-) (limited to 'data/en_us/grace/2022-06-06') diff --git a/data/en_us/grace/2022-06-06/api-docs.php b/data/en_us/grace/2022-06-06/api-docs.php index 6c0b446..7f6baae 100644 --- a/data/en_us/grace/2022-06-06/api-docs.php +++ b/data/en_us/grace/2022-06-06/api-docs.php @@ -1,249 +1,203 @@ '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'grace', - 'version' => '2022-06-06', - ], - 'directories' => [ - 'UploadFileByURL', - 'UploadFileByOSS', - 'AnalyzeFile', - 'GetFile', - ], + 'info' => ['style' => 'ROA', 'product' => 'grace', 'version' => '2022-06-06'], + 'directories' => ['UploadFileByURL', 'UploadFileByOSS', 'AnalyzeFile', 'GetFile'], 'components' => [ 'schemas' => [ 'FileInfo' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '文件信息', + 'description' => 'File information', 'type' => 'object', 'properties' => [ 'type' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '文件类型', + 'description' => 'File type', + 'enumValueTitles' => ['gc_log' => 'GC_LOG', 'thread_dump' => 'THREAD_DMP', 'heap_dump' => 'HEAP_DUMP'], 'type' => 'string', + 'example' => 'HEAP_DUMP'."\n", + 'visibility' => 'Public', 'backendName' => 'type', ], - 'size' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'backendName' => 'size', - ], - 'creationTime' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'backendName' => 'creationTime', - ], - 'displayName' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'displayName', - ], + 'size' => ['title' => '文件大小,单位byte', 'description' => 'File size, in bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '254799093', 'visibility' => 'Public', 'backendName' => 'size'], + 'creationTime' => ['title' => '创建时间', 'description' => 'Creation time', 'type' => 'integer', 'format' => 'int64', 'example' => '1683788649000', 'visibility' => 'Public', 'backendName' => 'creationTime'], + 'displayName' => ['title' => '文件展示名字', 'description' => 'Display name of the file', 'type' => 'string', 'example' => 'myheap.bin', 'visibility' => 'Public', 'backendName' => 'displayName'], 'analyzeProgress' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '分析进度', + 'description' => 'Analysis progress', 'type' => 'object', 'properties' => [ - 'message' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'message', - ], - 'percent' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'number', - 'format' => 'double', - 'backendName' => 'percent', - ], + 'message' => ['title' => '分析详情', 'description' => 'Analysis details', 'type' => 'string', 'example' => 'Trying to analyze....', 'visibility' => 'Public', 'backendName' => 'message'], + 'percent' => ['title' => '分析进度', 'description' => 'Analysis progress', 'type' => 'number', 'format' => 'double', 'example' => '1.0', 'visibility' => 'Public', 'backendName' => 'percent'], 'state' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '分析状态', + 'description' => 'Analysis state', + 'enumValueTitles' => ['IN_PROGRESS' => 'IN_PROGRESS', 'SUCCESS' => 'SUCCESS', 'NOT_STARTED' => 'NOT_STARTED', 'ERROR' => 'ERROR'], 'type' => 'string', + 'example' => 'IN_PROGRESS', + 'visibility' => 'Public', 'backendName' => 'state', ], ], + 'enumValueTitles' => [], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'analyzeProgress', ], - 'labels' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'labels', - ], - 'shared' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'boolean', - 'backendName' => 'shared', - ], + 'labels' => ['title' => '文件标签', 'description' => 'File tags', 'type' => 'string', 'example' => 'source:local', 'visibility' => 'Public', 'backendName' => 'labels'], + 'shared' => ['title' => '是否允许共享访问', 'description' => 'Indicates whether shared access is allowed', 'type' => 'boolean', 'example' => 'true', 'visibility' => 'Public', 'backendName' => 'shared'], 'transferState' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '文件传输状态', + 'description' => 'File transfer state', + 'enumValueTitles' => ['IN_PROGRESS' => 'IN_PROGRESS', 'SUCCESS' => 'SUCCESS', 'NOT_STARTED' => 'NOT_STARTED', 'ERROR' => 'ERROR'], 'type' => 'string', + 'example' => 'ERROR', + 'visibility' => 'Public', 'backendName' => 'transferState', ], - 'name' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'name', - ], + 'name' => ['title' => '文件名', 'description' => 'File name', 'type' => 'string', 'example' => '1995846817640449-1683529779418-file.log', 'visibility' => 'Public', 'backendName' => 'name'], 'transferProgress' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '传输进度', + 'description' => 'Transfer progress', 'type' => 'object', 'properties' => [ - 'totalSize' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'backendName' => 'totalSize', - ], - 'transferredSize' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'backendName' => 'transferredSize', - ], + 'totalSize' => ['title' => '总大小,单位byte', 'description' => 'Total size, in bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '3069', 'visibility' => 'Public', 'backendName' => 'totalSize'], + 'transferredSize' => ['title' => '已传输大小,单位byte', 'description' => 'Transferred size, in bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '22', 'visibility' => 'Public', 'backendName' => 'transferredSize'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'transferProgress', ], - 'requestId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'requestId', - ], + 'requestId' => ['title' => '请求ID', 'description' => 'Request ID', 'type' => 'string', 'example' => 'B14EABCD-5181-582F-8EB7-6DB142FB529F', 'visibility' => 'Public', 'backendName' => 'requestId'], ], + 'example' => '', + 'visibility' => 'Public', ], ], ], 'apis' => [ - 'UploadFileByURL' => [ - 'summary' => '通过URL上传文件', - 'path' => '/UploadFileByURL', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'AnalyzeFile' => [ + 'summary' => 'Analyzes a file.', + 'path' => '/AnalyzeFile', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => false, - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false], 'parameters' => [ [ - 'name' => 'url', + 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'https://bucket.oss-cn-hangzhou.aliyuncs.com/file.log', - ], + 'schema' => ['description' => 'File name', 'type' => 'string', 'required' => false, 'example' => '123-456-file.log', 'title' => ''], ], [ - 'name' => 'type', + 'name' => 'token', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'heap_dump', - ], + 'schema' => ['description' => 'Shared access file token', 'type' => 'string', 'required' => false, 'example' => '6e54e9d5-3147-458e-a85d-bae8722de747', 'title' => ''], ], [ - 'name' => 'displayName', + 'name' => 'keepUnreachableObjects', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'atp_stack.log', - ], + 'schema' => ['description' => 'Retain unreachable objects', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => 'D052C0F4-5884-5B01-A8CC-D63B9A549B6C', - ], - 'name' => [ - 'title' => '若创建接口为异步实现,则需返回明确的JobId。', - 'description' => '', - 'type' => 'string', - 'example' => '1597871211794192-1682567255445-bbbbb', - ], + 'requestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => 'B14EC7CC-5181-582F-8EB7-6DB142FB529F', 'title' => ''], + 'fileName' => ['description' => 'File name', 'type' => 'string', 'example' => '207076258906603549-1667270208299-heap_dump_11.195.186.232_1667269965442.bin', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'IdempotentParameterMismatch', - 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"B14EC7CC-5181-582F-8EB7-6DB142FB529F\\",\\n \\"fileName\\": \\"207076258906603549-1667270208299-heap_dump_11.195.186.232_1667269965442.bin\\"\\n}","type":"json"}]', + 'title' => 'Analyze the file', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'grace:AnalyzeFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D052C0F4-5884-5B01-A8CC-D63B9A549B6C\\",\\n \\"name\\": \\"1597871211794192-1682567255445-bbbbb\\"\\n}","type":"json"}]', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AnalyzeFile'], + ], + ], ], - 'UploadFileByOSS' => [ - 'summary' => 'UploadFileByOSS', - 'path' => '/UploadFileByOSS', - 'methods' => [ - 'post', + 'GetFile' => [ + 'summary' => 'Retrieve information about a file.', + 'path' => '/GetFile', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false], + 'parameters' => [ + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['title' => 'Instance ID.', 'description' => 'File name', 'type' => 'string', 'required' => true, 'example' => '1597871211794192-1682563156700-402185-1682563123810-bbbbb'], + ], + [ + 'name' => 'token', + 'in' => 'query', + 'schema' => ['description' => 'Shared access token', 'type' => 'string', 'required' => false, 'example' => '924cb178-32e6-453a-a553-83289f9f494c', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => ['description' => 'File information', '$ref' => '#/components/schemas/FileInfo', 'title' => '', 'example' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"type\\": \\"HEAP_DUMP\\\\n\\",\\n \\"size\\": 254799093,\\n \\"creationTime\\": 1683788649000,\\n \\"displayName\\": \\"myheap.bin\\",\\n \\"analyzeProgress\\": {\\n \\"message\\": \\"Trying to analyze....\\",\\n \\"percent\\": 1,\\n \\"state\\": \\"IN_PROGRESS\\"\\n },\\n \\"labels\\": \\"source:local\\",\\n \\"shared\\": true,\\n \\"transferState\\": \\"ERROR\\",\\n \\"name\\": \\"1995846817640449-1683529779418-file.log\\",\\n \\"transferProgress\\": {\\n \\"totalSize\\": 3069,\\n \\"transferredSize\\": 22\\n },\\n \\"requestId\\": \\"B14EABCD-5181-582F-8EB7-6DB142FB529F\\"\\n}","type":"json"}]', + 'title' => '[parameters_name_schema_description]File Name', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'grace:GetFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFile'], + ], ], + ], + 'UploadFileByOSS' => [ + 'summary' => 'Upload files to the ATP platform using OSS.', + 'path' => '/UploadFileByOSS', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -251,313 +205,390 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => false, - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false], 'parameters' => [ [ 'name' => 'endpoint', 'in' => 'query', - 'schema' => [ - 'description' => 'oss endpoint', - 'type' => 'string', - 'required' => true, - 'example' => 'https://oss-cn-hangzhou.aliyuncs.com', - ], + 'schema' => ['description' => 'OSS endpoint', 'type' => 'string', 'required' => true, 'example' => 'https://oss-cn-hangzhou.aliyuncs.com', 'title' => ''], ], [ 'name' => 'bucketName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'grace-storage', - ], + 'schema' => ['description' => 'OSS bucket name', 'type' => 'string', 'required' => true, 'example' => 'mybucket', 'title' => ''], ], [ 'name' => 'objectName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'heap.bin', - ], + 'schema' => ['description' => 'Object name', 'type' => 'string', 'required' => true, 'example' => 'heap.bin', 'title' => ''], ], [ 'name' => 'type', 'in' => 'query', 'schema' => [ - 'description' => '', + 'description' => 'File type', + 'enumValueTitles' => ['gc_log' => 'gc\\_log', 'thread_dump' => 'thread\\_dump', 'heap_dump' => 'heap\\_dump'], 'type' => 'string', 'required' => true, 'example' => 'thread_dump', + 'title' => '', ], ], [ 'name' => 'displayName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'heap.bin', - ], + 'schema' => ['description' => 'Display name', 'type' => 'string', 'required' => false, 'example' => 'heap.bin', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'description' => 'Schema of Response', + 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '1597871211794192-1665457027646-grace-storage1-heap.bin', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'E7D6CC4E-C216-5313-A9A5-B5DA619ED431', - ], + 'name' => ['title' => 'Id of the request', 'description' => 'File name', 'type' => 'string', 'example' => '1597871211794192-1665457027646-grace-storage1-heap.bin'], + 'requestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => 'E7D6CC4E-C216-5313-A9A5-B5DA619ED431', 'title' => ''], ], + 'example' => '', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"name\\": \\"1597871211794192-1665457027646-grace-storage1-heap.bin\\",\\n \\"requestId\\": \\"E7D6CC4E-C216-5313-A9A5-B5DA619ED431\\"\\n}","type":"json"}]', - ], - 'AnalyzeFile' => [ - 'summary' => '分析文件', - 'path' => '/AnalyzeFile', - 'methods' => [ - 'post', + 'title' => 'Upload a file through OSS', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UploadFileByOSS'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:UploadFileByOSS', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'UploadFileByURL' => [ + 'summary' => 'Uploads a file from a specified URL.', + 'path' => '/UploadFileByURL', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => [], + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => false, - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false], 'parameters' => [ [ - 'name' => 'name', + 'name' => 'url', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '123-456-file.log', - ], + 'schema' => ['description' => 'The URL from which to download the file.', 'type' => 'string', 'required' => true, 'example' => 'https://bucket.oss-cn-hangzhou.aliyuncs.com/file.log', 'title' => ''], ], [ - 'name' => 'token', + 'name' => 'type', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '6e54e9d5-3147-458e-a85d-bae8722de747', - ], + 'schema' => ['description' => 'The file type.', 'type' => 'string', 'required' => true, 'example' => 'heap_dump', 'title' => ''], ], [ - 'name' => 'keepUnreachableObjects', + 'name' => 'displayName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => 'The display name.', 'type' => 'string', 'required' => false, 'example' => 'atp_stack.log', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'Schema of Response', + 'title' => 'Schema of Response ', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'B14EC7CC-5181-582F-8EB7-6DB142FB529F', - ], - 'fileName' => [ - 'description' => '', - 'type' => 'string', - 'example' => '207076258906603549-1667270208299-heap_dump_11.195.186.232_1667269965442.bin', - ], + 'requestId' => ['title' => 'Id of the request ', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'D052C0F4-5884-5B01-A8CC-D63B9A549B6C'], + 'name' => ['title' => 'If the creation API is implemented asynchronously, a clear JobId must be returned. ', 'description' => 'The file name.', 'type' => 'string', 'example' => '1597871211794192-1682567255445-bbbbb'], ], + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"B14EC7CC-5181-582F-8EB7-6DB142FB529F\\",\\n \\"fileName\\": \\"207076258906603549-1667270208299-heap_dump_11.195.186.232_1667269965442.bin\\"\\n}","type":"json"}]', - ], - 'GetFile' => [ - 'summary' => '获取文件', - 'path' => '/GetFile', - 'methods' => [ - 'get', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''], + ], ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"D052C0F4-5884-5B01-A8CC-D63B9A549B6C\\",\\n \\"name\\": \\"1597871211794192-1682567255445-bbbbb\\"\\n}","type":"json"}]', + 'title' => 'Upload a file by URL ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UploadFileByURL'], + ], ], - 'security' => [ + 'ramActions' => [ [ - 'AK' => [], + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:UploadFileByURL', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + ], + ], + 'endpoints' => [], + 'errorCodes' => [], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFile'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UploadFileByOSS'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UploadFileByURL'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AnalyzeFile'], + ], + ], + 'ram' => [ + 'productCode' => 'Grace', + 'productName' => 'innovative swproduct', + 'ramCodes' => ['grace'], + 'ramLevel' => 'OPERATION', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'TransferFile', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:TransferFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteFile', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'grace:DeleteFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CheckOssSLR', + 'description' => '', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'autoTest' => false, + 'ramAction' => [ + 'action' => 'grace:CheckOssSLR', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'title' => '实例 ID。', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '1597871211794192-1682563156700-402185-1682563123810-bbbbb', + [ + 'apiName' => 'CleanFile', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'grace:CleanFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'token', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '924cb178-32e6-453a-a553-83289f9f494c', + ], + [ + 'apiName' => 'UploadOwnerFileByURL', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:UploadOwnerFileByURL', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', - 'type' => 'object', - 'properties' => [ - 'name' => [ - 'title' => '', - 'description' => '', - 'type' => 'string', - 'example' => '1995846817640449-1683529779418-file.log', - ], - 'size' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '254799093', - ], - 'type' => [ - 'title' => '', - 'description' => '', - 'type' => 'string', - 'example' => 'HEAP_DUMP', - ], - 'transferState' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'IN_PROGRESS', - ], - 'creationTime' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1683788649000', - ], - 'displayName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'heapdemo.bin', - ], - 'shared' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'True', - ], - 'transferProgress' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'totalSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '267', - ], - 'transferredSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - ], - ], - 'analyzeProgress' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'state' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'IN_PROGRESS', - ], - 'percent' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'double', - 'example' => '100.0%', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'successful', - ], - ], - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '007F9BC4-E4F6-56E9-8A3D-402A39565603', - ], - 'labels' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'source:grace', - ], - ], - '$ref' => '#/components/schemas/FileInfo', + [ + 'apiName' => 'UpdateFile', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'grace:UpdateFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UploadFileByURL', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:UploadFileByURL', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateOssSLR', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'grace:CreateOssSLR', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UploadOwnerFileByOSS', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:UploadOwnerFileByOSS', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UploadFileByOSS', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'grace:UploadFileByOSS', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateFileShare', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'grace:UpdateFileShare', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UploadFileToOss', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'grace:UploadFileToOss', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListFiles', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'grace:ListFiles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'FetchFileAnalysis', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'grace:FetchFileAnalysis', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetFile', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'grace:GetFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'AnalyzeFile', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'grace:AnalyzeFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateFileType', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'grace:UpdateFileType', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Grace', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"type\\": \\"\\",\\n \\"size\\": 0,\\n \\"creationTime\\": 0,\\n \\"displayName\\": \\"\\",\\n \\"analyzeProgress\\": {\\n \\"message\\": \\"\\",\\n \\"percent\\": 0,\\n \\"state\\": \\"\\"\\n },\\n \\"labels\\": \\"\\",\\n \\"shared\\": true,\\n \\"transferState\\": \\"\\",\\n \\"name\\": \\"\\",\\n \\"transferProgress\\": {\\n \\"totalSize\\": 0,\\n \\"transferredSize\\": 0\\n },\\n \\"requestId\\": \\"\\"\\n}","type":"json"}]', ], + 'resourceTypes' => [], ], - 'endpoints' => [], ]; -- cgit v1.2.3