'1.0',
'info' => ['style' => 'RPC', 'product' => 'Mhub', 'version' => '2017-08-25'],
'directories' => [
[
'children' => ['OpenEmasService'],
'type' => 'directory',
'title' => '服务开通相关',
'id' => 335542,
],
[
'children' => ['DeleteApp', 'ListApps', 'QueryAppInfo', 'DescribeDashboard', 'QueryAppSecurityInfo'],
'type' => 'directory',
'title' => '应用相关',
'id' => 335528,
],
[
'children' => ['ModifyProduct', 'QueryProductInfo'],
'type' => 'directory',
'title' => '项目相关',
'id' => 335536,
],
[
'children' => ['CreateApp', 'CreateProduct', 'DeleteProduct', 'ListProducts', 'ModifyApp'],
'title' => '其他',
'type' => 'directory',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateApp' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [],
'parameters' => [
[
'name' => 'ProductId',
'in' => 'query',
'schema' => ['description' => '指定创建应用所属的空间ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123456'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '应用名称。该参数长度不超过26个字符,并且不能用_以外的特殊字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '我的应用'],
],
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '应用类型。取值范围如下:'."\n"
.' '."\n"
.' 1:iOS'."\n"
.' 2:Android'."\n"
.' 8:魔笔网页端'."\n"
.' 9:魔笔移动端', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'BundleId',
'in' => 'query',
'schema' => ['description' => 'iOS应用ID。创建iOS应用时必填。', 'type' => 'string', 'required' => false, 'example' => 'com.test.ios'],
],
[
'name' => 'PackageName',
'in' => 'query',
'schema' => ['description' => 'Android 应用包名。创建Android应用时必填。', 'type' => 'string', 'required' => false, 'example' => 'com.test.android'],
],
[
'name' => 'EncodedIcon',
'in' => 'query',
'schema' => ['description' => '图片 base64 字符串。', 'type' => 'string', 'required' => false, 'example' => '图片 base64 字符串'],
],
[
'name' => 'IndustryId',
'in' => 'query',
'schema' => ['description' => '应用所属的行业ID,取值范围如下:'."\n"
.' '."\n"
.' * 0. 社交'."\n"
.' * 1. 摄影与摄像'."\n"
.' * 2. 效率'."\n"
.' * 3. 生活'."\n"
.' * 4. 美食佳饮'."\n"
.' * 5. 工具'."\n"
.' * 6. 娱乐'."\n"
.' * 7. 游戏'."\n"
.' * 8. 儿童'."\n"
.' * 9. 教育'."\n"
.' * 10. 报刊杂志'."\n"
.' * 11. 健康健美'."\n"
.' * 12. 旅游'."\n"
.' * 13. 音乐'."\n"
.' * 14. 体育'."\n"
.' * 15. 商务'."\n"
.' * 16. 新闻'."\n"
.' * 17. 财务'."\n"
.' * 18. 参考'."\n"
.' * 19. 导航'."\n"
.' * 20. 医疗'."\n"
.' * 21. 图书'."\n"
.' * 22. 天气'."\n"
.' * 23. 智能物联网', 'type' => 'string', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求唯一标识,用于识别一个请求。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929****'],
'AppInfo' => [
'description' => '应用基本信息。',
'type' => 'object',
'properties' => [
'Type' => ['description' => '应用类型,取值范围如下:'."\n"
.' '."\n"
.' 1:iOS'."\n"
.' 2:Android'."\n"
.' 8:魔笔网页端'."\n"
.' 9:魔笔移动端', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'AppKey' => ['description' => '应用 appkey,接口请求时唯一标识一个应用。', 'type' => 'string', 'example' => '123456'],
'Description' => ['description' => '应用描述信息。', 'type' => 'string', 'example' => '应用描述信息'],
'PackageName' => ['description' => 'Android 应用包名。', 'type' => 'string', 'example' => 'com.test.android'],
'CreateTime' => ['description' => '应用创建UTC时间。', 'type' => 'string', 'example' => '2020-12-16T06:25:52Z'],
'ProductId' => ['description' => '应用所属空间ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '123456'],
'BundleId' => ['description' => 'iOS应用ID。', 'type' => 'string', 'example' => 'com.test.ios'],
'Name' => ['description' => '应用名称。', 'type' => 'string', 'example' => '我的应用'],
'ModifyTime' => ['description' => '应用修改UTC时间。', 'type' => 'string', 'example' => '2020-12-16T06:25:52Z'],
],
],
],
'description' => '',
],
],
],
'title' => '创建应用',
'summary' => '调用此接口在指定空间内创建一个新应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateApp'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'mhub:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929****\\",\\n \\"AppInfo\\": {\\n \\"Type\\": 1,\\n \\"AppKey\\": \\"123456\\",\\n \\"Description\\": \\"应用描述信息\\",\\n \\"PackageName\\": \\"com.test.android\\",\\n \\"CreateTime\\": \\"2020-12-16T06:25:52Z\\",\\n \\"ProductId\\": 123456,\\n \\"BundleId\\": \\"com.test.ios\\",\\n \\"Name\\": \\"我的应用\\",\\n \\"ModifyTime\\": \\"2020-12-16T06:25:52Z\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 126D4DDD-05A5-49B1-B18C-39C4A929****\\n \\n 1\\n 123456\\n 应用描述信息\\n com.test.android\\n 2020-12-16T06:25:52Z\\n 123456\\n com.test.ios\\n 我的应用\\n 2020-12-16T06:25:52Z\\n \\n","errorExample":""}]',
],
'CreateProduct' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '设置项目的名称。取值范围:1~30字符,字符类型:包含中文、英文大小写、数字、下划线(_)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '我的项目名称'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => '简要描述项目的用途。', 'type' => 'string', 'required' => false, 'example' => 'AAA'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'ProductId' => ['description' => '项目的ID,唯一标识项目。', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'],
'RequestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
],
'description' => '',
],
],
],
'title' => '创建工作空间',
'summary' => '创建工作空间。工作空间是应用的分组,用于管理一组相关应用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-06-22T06:41:56.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateProduct'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'mhub:CreateProduct',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"ProductId\\": 123456,\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 123456\\n 126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\n","errorExample":""}]',
],
'DeleteApp' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'systemTags' => [],
'parameters' => [
[
'name' => 'AppKey',
'in' => 'query',
'schema' => ['description' => '应用 appkey,接口请求时唯一标识一个应用。', 'type' => 'string', 'required' => true, 'example' => '123456'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求唯一标识,用于识别一个请求。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
],
'description' => '',
],
],
],
'title' => '删除应用',
'summary' => '此接口用于删除应用。应用删除后不可恢复,如果删除已经对外发布的应用,可能会影响正常业务。删除前请确保已知晓此风险。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteApp'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'mhub:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\n","errorExample":""}]',
],
'DeleteProduct' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [],
'parameters' => [
[
'name' => 'ProductId',
'in' => 'query',
'schema' => ['description' => '指定待删除的项目的ID。', 'type' => 'string', 'required' => true, 'example' => '12345'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Message' => ['description' => '删除失败错误码。', 'type' => 'string', 'example' => 'PRODUCT_NOT_ALONE'],
'RequestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
],
'description' => '',
],
],
],
'title' => '删除工作空间',
'summary' => '调用DeleteProduct删除工作空间。',
'description' => '# 前提条件'."\n"
."\n"
.'已删除工作空间下属应用,即工作空间为空。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProduct'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'mhub:DeleteProduct',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Message\\": \\"PRODUCT_NOT_ALONE\\",\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'DescribeDashboard' => [
'summary' => '获取应用在各服务下的看板信息',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => ['description' => '产品名称', 'type' => 'string', 'required' => false, 'example' => 'mqc'],
],
[
'name' => 'AppKey',
'in' => 'query',
'schema' => ['description' => '指定应用的appkey,唯一标识应用。', 'type' => 'string', 'required' => false, 'example' => '29201799'],
],
[
'name' => 'AppType',
'in' => 'query',
'schema' => ['description' => '应用类型,取值如下:1:ios2:android8:魔笔网页端9:魔笔移动端', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'AppVersion',
'in' => 'query',
'schema' => ['description' => '应用版本,默认为最新版。', 'type' => 'string', 'required' => false, 'example' => '4.8'],
],
[
'name' => 'Keyword',
'in' => 'query',
'schema' => ['description' => '无用字段。', 'type' => 'string', 'required' => false, 'example' => ' deprecated'],
],
[
'name' => 'StartTime',
'in' => 'query',
'schema' => ['description' => '查询开始时间,精确到毫秒的unix时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1681369984564'],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => '获取数据结束时间点。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1681985390256'],
],
[
'name' => 'ProxyAction',
'in' => 'query',
'schema' => [
'description' => '仅serviceName为 apm 时生效,子查询:查询app版本、查询性能监控概览,查询崩溃概览',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['queryAppVersions' => 'queryAppVersions', 'queryApmInfo' => 'queryApmInfo', 'queryCrashInfo' => 'queryCrashInfo'],
'example' => 'queryAppVersions',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求唯一标识,用于识别一个请求。', 'type' => 'string', 'example' => '4CC30A8F-787C-55CA-87A6-7D1BED56067E'],
'Model' => ['description' => '返回结果', 'type' => 'string', 'example' => '{'."\n"
.' "success":true,'."\n"
.' "model":{'."\n"
.' "perfMonthCount":0,'."\n"
.' "compatibilityMonthCount":0,'."\n"
.' "perfLastMonthCount":0,'."\n"
.' "compatibilityLastMonthCount":0,'."\n"
.' "automationMonthCount":0,'."\n"
.' "automationLastMonthCount":0'."\n"
.' }'."\n"
.'}'],
],
'description' => '',
],
],
],
'title' => '获取应用在各服务下的看板信息。',
'changeSet' => [
['createdAt' => '2022-04-26T03:45:09.000Z', 'description' => 'OpenAPI 下线'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDashboard'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'mhub:DescribeDashboard',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4CC30A8F-787C-55CA-87A6-7D1BED56067E\\",\\n \\"Model\\": \\"{\\\\n\\\\t\\\\\\"success\\\\\\":true,\\\\n\\\\t\\\\\\"model\\\\\\":{\\\\n\\\\t\\\\t\\\\\\"perfMonthCount\\\\\\":0,\\\\n\\\\t\\\\t\\\\\\"compatibilityMonthCount\\\\\\":0,\\\\n\\\\t\\\\t\\\\\\"perfLastMonthCount\\\\\\":0,\\\\n\\\\t\\\\t\\\\\\"compatibilityLastMonthCount\\\\\\":0,\\\\n\\\\t\\\\t\\\\\\"automationMonthCount\\\\\\":0,\\\\n\\\\t\\\\t\\\\\\"automationLastMonthCount\\\\\\":0\\\\n\\\\t}\\\\n}\\"\\n}","type":"json"}]',
],
'ListApps' => [
'summary' => '此ListApps接口用于查询指定工作空间下的应用列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemasSMMS19'],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ProductId',
'in' => 'query',
'schema' => ['description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123456'],
],
[
'name' => 'Page',
'in' => 'query',
'schema' => ['description' => ' 页码,默认值:1。'."\n", 'type' => 'string', 'required' => false, 'example' => '1', 'default' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '- 每页的应用数量,默认值:20。'."\n"
.'- 取值范围为:1-100。', 'type' => 'string', 'required' => false, 'example' => '20', 'default' => '200'],
],
[
'name' => 'OsType',
'in' => 'query',
'schema' => ['description' => '应用类型,取值如下:'."\n"
.' '."\n"
.' 1 :iOS'."\n"
.' 2 :Android'."\n"
.' 8 :魔笔网页端'."\n"
.' 9 :魔笔移动端', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '2', 'minimum' => '0', 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'UbsmsStatus' => ['title' => '当前账号状态,返回值说明如下:-enabled:开通状态-disabled:禁用状态-indebt:停机24小时以内(含24小时)-indebt24h:停机12小时以上', 'description' => '当前账号状态,取值如下:'."\n"
.'- enabled:开通状态'."\n"
.'- disabled:禁用状态'."\n"
.'- inDebt:停机24小时以内(含24小时)'."\n"
.'- inDebt24h:停机24小时以上', 'type' => 'string', 'example' => 'enabled'],
'RequestId' => ['title' => '请求唯一标识,用于识别一个请求。', 'description' => '请求的唯一标识,用于识别一个请求。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
'Total' => ['title' => '应用总数。', 'description' => '应用总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'AppInfos' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'AppInfo' => [
'title' => '应用的详细信息。',
'description' => '应用的详细信息。',
'type' => 'array',
'items' => [
'title' => '应用的详细信息。',
'description' => '应用的详细信息。',
'type' => 'object',
'properties' => [
'Type' => ['title' => '应用类型,取值范围如下:1:ios2:android8:魔笔网页端9:魔笔移动端', 'description' => '应用类型,取值范围如下:'."\n"
.' '."\n"
.' 1 :iOS'."\n"
.' 2 :Android'."\n"
.' 8 :魔笔网页端'."\n"
.' 9 :魔笔移动端', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'IndustryId' => ['title' => '行业id,取值范围如下:*0.社交*1.摄影与摄像*2.效率*3.生活*4.美食佳饮*5.工具*6.娱乐*7.游戏*8.儿童*9.教育*10.报刊杂志*11.健康健美*12.旅游*13.音乐*14.体育*15.商务*16.新闻*17.财务*18.参考*19.导航*20.医疗*', 'description' => '行业ID,取值范围如下: '."\n"
.' '."\n"
.' * 0. 社交'."\n"
.' * 1. 摄影与摄像'."\n"
.' * 2. 效率'."\n"
.' * 3. 生活'."\n"
.' * 4. 美食佳饮'."\n"
.' * 5. 工具'."\n"
.' * 6. 娱乐'."\n"
.' * 7. 游戏'."\n"
.' * 8. 儿童'."\n"
.' * 9. 教育'."\n"
.' * 10. 报刊杂志'."\n"
.' * 11. 健康健美'."\n"
.' * 12. 旅游'."\n"
.' * 13. 音乐'."\n"
.' * 14. 体育'."\n"
.' * 15. 商务'."\n"
.' * 16. 新闻'."\n"
.' * 17. 财务'."\n"
.' * 18. 参考'."\n"
.' * 19. 导航'."\n"
.' * 20. 医疗'."\n"
.' * 21. 图书'."\n"
.' * 22. 天气'."\n"
.' * 23. 智能物联网', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'AppKey' => ['title' => '应用appkey,接口请求时唯一标识一个应用。', 'description' => '应用 appkey,接口请求时唯一标识一个应用。', 'type' => 'string', 'example' => '123456'],
'PackageName' => ['title' => 'android应用包名。', 'description' => 'Android 应用包名。', 'type' => 'string', 'example' => 'com.test.android'],
'EncodedIcon' => ['title' => '图片base64字符串。', 'description' => '图片 base64 字符串。', 'type' => 'string', 'example' => '图片 base64 字符串'],
'Name' => ['title' => '应用名。', 'description' => '应用名。', 'type' => 'string', 'example' => '我的应用'],
'BundleId' => ['title' => 'ios应用id。创建ios应用时必填。', 'description' => 'iOS应用ID。创建iOS应用时必填。', 'type' => 'string', 'example' => 'com.test.ios'],
'Readonly' => ['title' => '是否为只读应用。仅特殊场景使用。', 'description' => '是否为只读应用。仅特殊场景使用。', 'type' => 'boolean', 'example' => 'false'],
'AppName' => ['title' => '应用名称。', 'description' => '应用名称。', 'type' => 'string', 'example' => 'mobile-live-service'],
],
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询指定工作空间下应用列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-10-10T08:43:33.000Z', 'description' => '响应参数发生变更'],
['createdAt' => '2024-10-24T07:30:42.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListApps'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:ListApps',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"UbsmsStatus\\": \\"enabled\\",\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\",\\n \\"Total\\": 10,\\n \\"AppInfos\\": {\\n \\"AppInfo\\": [\\n {\\n \\"Type\\": 1,\\n \\"IndustryId\\": 1,\\n \\"AppKey\\": \\"123456\\",\\n \\"PackageName\\": \\"com.test.android\\",\\n \\"EncodedIcon\\": \\"图片 base64 字符串\\",\\n \\"Name\\": \\"我的应用\\",\\n \\"BundleId\\": \\"com.test.ios\\",\\n \\"Readonly\\": false,\\n \\"AppName\\": \\"mobile-live-service\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'ListProducts' => [
'summary' => '调用ListProducts查询工作空间列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemasSMMS19'],
],
'parameters' => [
[
'name' => 'Offset',
'in' => 'query',
'schema' => ['description' => '当前页码数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'example' => '1'],
],
[
'name' => 'Size',
'in' => 'query',
'schema' => ['description' => '- 每页可显示的项目的个数。'."\n"
.'- 取值范围为:1-100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'example' => '20'],
],
[
'name' => 'Simple',
'in' => 'query',
'schema' => ['description' => '设置是否为简化查询。'."\n"
."\n"
.'- true:简化查询。不返回encodedIcon和Platforms两个字段。'."\n"
.'- false:非简化查询。返回全部字段。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ProductName',
'in' => 'query',
'schema' => ['description' => '输入关键字,按项目名称模糊查询。', 'type' => 'string', 'required' => false, 'example' => '我的项目'],
],
[
'name' => 'SearchKeyWord',
'in' => 'query',
'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
[
'name' => 'PageNum',
'in' => 'query',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'description' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'description' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'UbsmsStatus' => ['title' => '当前账号状态,返回值说明如下:-enabled:开通状态-disabled:禁用状态-indebt:停机24小时以上', 'description' => '当前账号状态,返回值说明如下:'."\n"
.' '."\n"
.'- enabled:开通状态'."\n"
.'- disabled:禁用状态'."\n"
.'- inDebt:停机24小时以内(含24小时)'."\n"
.'- inDebt24h:停机24小时以上', 'type' => 'string', 'example' => 'enabled'],
'RequestId' => ['title' => '请求的id。', 'description' => '请求的ID。'."\n", 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
'Total' => ['title' => '查询结果总数。', 'description' => '查询结果总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'ProductInfos' => [
'type' => 'object',
'itemNode' => true,
'properties' => [
'ProductInfo' => [
'title' => '工作空间的概要信息。',
'description' => '项目的概要信息。',
'type' => 'array',
'items' => [
'title' => '工作空间的概要信息。',
'description' => '工作空间的概要信息。',
'type' => 'object',
'properties' => [
'IndustryId' => ['title' => '行业id,返回值说明如下:-0:社交-1:摄影与摄像-2:效率-3:生活-4:美食佳饮-5:工具-6:娱乐-7:游戏-8:音乐-9:体育-10:商务-11:新闻-12:财务-13:参考-14:导航-15:医疗', 'description' => '行业ID,返回值说明如下: '."\n"
.' '."\n"
.'- 0:社交'."\n"
.'- 1:摄影与摄像'."\n"
.'- 2:效率'."\n"
.'- 3:生活'."\n"
.'- 4:美食佳饮'."\n"
.'- 5:工具'."\n"
.'- 6:娱乐'."\n"
.'- 7:游戏'."\n"
.'- 8:儿童'."\n"
.'- 9:教育'."\n"
.'- 10:报刊杂志'."\n"
.'- 11:健康健美'."\n"
.'- 12:旅游'."\n"
.'- 13:音乐'."\n"
.'- 14:体育'."\n"
.'- 15:商务'."\n"
.'- 16:新闻'."\n"
.'- 17:财务'."\n"
.'- 18:参考'."\n"
.'- 19:导航'."\n"
.'- 20:医疗'."\n"
.'- 21:图书'."\n"
.'- 22:天气'."\n"
.'- 23:智能物联网', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Platforms' => ['title' => '工作空间下属应用的平台。', 'description' => '项目下属应用的平台,包含Android和iOS两种类型。', 'type' => 'string', 'example' => 'iOS'],
'CreateTime' => ['title' => '工作空间的创建时间。utc格式表达。', 'description' => '项目的创建时间。UTC格式表达。', 'type' => 'string', 'example' => '2020-12-16T06:25:52Z'],
'EncodedIcon' => ['title' => 'icon图片的base64字符串。', 'description' => 'icon图片的base64字符串。', 'type' => 'string', 'example' => '图片 base64'],
'ProductId' => ['title' => '工作空间的id。', 'description' => '项目的ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '1234'],
'Name' => ['title' => '工作空间的名称。', 'description' => '项目的名称。', 'type' => 'string', 'example' => '我的项目'],
'Readonly' => ['title' => '标识工作空间是否为只读状态。', 'description' => '标识项目是否为只读状态。', 'type' => 'boolean', 'example' => 'false'],
'Description' => ['title' => '工作空间的描述。', 'description' => '简要描述项目信息。', 'type' => 'string', 'example' => 'xxxx'],
],
],
],
],
'description' => '',
],
],
'description' => '',
],
],
],
'title' => '获取产品列表',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-10-10T08:43:33.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
['createdAt' => '2021-06-29T06:07:15.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProducts'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:ListProducts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"UbsmsStatus\\": \\"enabled\\",\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\",\\n \\"Total\\": 10,\\n \\"ProductInfos\\": {\\n \\"ProductInfo\\": [\\n {\\n \\"IndustryId\\": 1,\\n \\"Platforms\\": \\"iOS\\",\\n \\"CreateTime\\": \\"2020-12-16T06:25:52Z\\",\\n \\"EncodedIcon\\": \\"图片 base64\\",\\n \\"ProductId\\": 1234,\\n \\"Name\\": \\"我的项目\\",\\n \\"Readonly\\": false,\\n \\"Description\\": \\"xxxx\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n enabled\\n 126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\n 10\\n \\n 1\\n iOS\\n 2020-12-16T06:25:52Z\\n 图片 base64\\n 1234\\n 我的项目\\n false\\n xxxx\\n \\n","errorExample":""}]',
],
'ModifyApp' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => [],
'parameters' => [
[
'name' => 'AppKey',
'in' => 'query',
'schema' => ['description' => '应用 appkey,接口请求时唯一标识一个应用。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123456'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '应用名称。', 'type' => 'string', 'required' => false, 'example' => '我的应用'],
],
[
'name' => 'BundleId',
'in' => 'query',
'schema' => ['description' => 'iOS应用ID。', 'type' => 'string', 'required' => false, 'example' => 'com.test.ios'],
],
[
'name' => 'PackageName',
'in' => 'query',
'schema' => ['description' => 'Android 应用包名。', 'type' => 'string', 'required' => false, 'example' => 'com.test.android'],
],
[
'name' => 'EncodedIcon',
'in' => 'query',
'schema' => ['description' => '图片 base64 字符串。', 'type' => 'string', 'required' => false, 'example' => '图片 base64 字符串'],
],
[
'name' => 'IndustryId',
'in' => 'query',
'schema' => ['description' => '行业ID,取值范围如下: '."\n"
.' '."\n"
.' * 0. 社交'."\n"
.' * 1. 摄影与摄像'."\n"
.' * 2. 效率'."\n"
.' * 3. 生活'."\n"
.' * 4. 美食佳饮'."\n"
.' * 5. 工具'."\n"
.' * 6. 娱乐'."\n"
.' * 7. 游戏'."\n"
.' * 8. 儿童'."\n"
.' * 9. 教育'."\n"
.' * 10. 报刊杂志'."\n"
.' * 11. 健康健美'."\n"
.' * 12. 旅游'."\n"
.' * 13. 音乐'."\n"
.' * 14. 体育'."\n"
.' * 15. 商务'."\n"
.' * 16. 新闻'."\n"
.' * 17. 财务'."\n"
.' * 18. 参考'."\n"
.' * 19. 导航'."\n"
.' * 20. 医疗'."\n"
.' * 21. 图书'."\n"
.' * 22. 天气'."\n"
.' * 23. 智能物联网', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求唯一标识,用于识别一个请求。'."\n", 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
],
'description' => '',
],
],
],
'title' => '修改应用信息',
'summary' => '此接口用于修改应用信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyApp'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'mhub:ModifyApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'ModifyProduct' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ProductId',
'in' => 'query',
'schema' => ['description' => '项目ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1234'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['description' => '项目名称。取值范围:1~30字符,字符类型:包含中文、英文大小写、数字、下划线(_)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '我的工作空间'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['description' => '项目的简要描述。', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '-',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求唯一标识,用于识别一个请求。'."\n", 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
],
],
],
],
'title' => '修改工作空间',
'summary' => '此接口用于修改工作空间基本信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2021-06-29T06:07:13.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProduct'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:ModifyProduct',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\n","errorExample":""}]',
],
'OpenEmasService' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'OrderId' => ['description' => '开通服务的订单号。', 'type' => 'string', 'example' => '20671870151****'],
'RequestId' => ['description' => '开通请求的ID。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
],
'description' => '',
],
],
],
'title' => '开通EMAS服务',
'summary' => '开通EMAS服务。只有开通服务后,才能进行产品使用。',
'description' => '开通EMAS服务操作仅限阿里云主账号使用;子账号无法使用。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-03-12T07:37:43.000Z', 'description' => '错误码发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:OpenEmasService',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"OrderId\\": \\"20671870151****\\",\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'QueryAppInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'AppKey',
'in' => 'query',
'schema' => ['description' => '指定应用的AppKey,用于唯一标识应用。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123456'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '查询请求的ID。'."\n", 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
'AppInfo' => [
'description' => '应用的基本信息。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '应用状态,取值说明:'."\n"
."\n"
.'0: 正常 '."\n"
."\n"
.'-1:普通删除 '."\n"
."\n"
.'-2:彻底删除。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'Type' => ['description' => '应用类型,取值说明:'."\n"
."\n"
.'1:iOS'."\n"
."\n"
.'2:Android'."\n"
."\n"
.'8:魔笔网页端'."\n"
."\n"
.'9:魔笔移动端'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CertDevelopExpiration' => ['description' => '推送开发者证书过期时间。UTC格式表达。', 'type' => 'string', 'example' => '2020-12-16T06:25:52Z'],
'IndustryId' => ['description' => '行业ID,取值说明: '."\n"
.' '."\n"
.'- 0:社交'."\n"
.'- 1:摄影与摄像'."\n"
.'- 2:效率'."\n"
.'- 3:生活'."\n"
.'- 4:美食佳饮'."\n"
.'- 5:工具'."\n"
.'- 6:娱乐'."\n"
.'- 7:游戏'."\n"
.'- 8:儿童'."\n"
.'- 9:教育'."\n"
.'- 10:报刊杂志'."\n"
.'- 11:健康健美'."\n"
.'- 12:旅游'."\n"
.'- 13:音乐'."\n"
.'- 14:体育'."\n"
.'- 15:商务'."\n"
.'- 16:新闻'."\n"
.'- 17:财务'."\n"
.'- 18:参考'."\n"
.'- 19:导航'."\n"
.'- 20:医疗'."\n"
.'- 21:图书'."\n"
.'- 22:天气'."\n"
.'- 23:智能物联网', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PackageName' => ['description' => 'Android应用的包名。', 'type' => 'string', 'example' => 'com.test.android'],
'CreateTime' => ['description' => '应用创建时间。UTC格式表达。', 'type' => 'string', 'example' => '2020-12-16T06:25:52Z'],
'Readonly' => ['description' => '标识应用是否为只读状态。'."\n"
."\n"
.'> 该字段用于特定场景,如无需要可忽略。', 'type' => 'boolean', 'example' => 'false'],
'AppName' => ['description' => '应用的名称。', 'type' => 'string', 'example' => '我的应用'],
'CertProductExpiration' => ['description' => '推送生产证书过期时间。UTC格式表达。', 'type' => 'string', 'example' => '2020-12-16T06:25:52Z'],
'AppKey' => ['description' => '应用的AppKey,用于唯一标识应用。', 'type' => 'string', 'example' => '123456'],
'CertDevelopAvail' => ['description' => '标识推送配置开发者推送证书是否可用。', 'type' => 'boolean', 'example' => 'false'],
'EncodedIcon' => ['description' => 'icon图片的base64字符串。', 'type' => 'string', 'example' => 'icon图片base64字符串'],
'ProductId' => ['description' => '应用所属工作空间的ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'],
'BundleId' => ['description' => 'iOS应用的BundleId。', 'type' => 'string', 'example' => 'com.test.ios'],
'CertProductAvail' => ['description' => '推送配置生产推送证书是否可用。', 'type' => 'boolean', 'example' => 'false'],
],
],
],
'description' => '',
],
],
],
'title' => '查询应用详情',
'summary' => '调用QueryAppInfo查询应用详情。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryAppInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:QueryAppInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\",\\n \\"AppInfo\\": {\\n \\"Status\\": 0,\\n \\"Type\\": 1,\\n \\"CertDevelopExpiration\\": \\"2020-12-16T06:25:52Z\\",\\n \\"IndustryId\\": 1,\\n \\"PackageName\\": \\"com.test.android\\",\\n \\"CreateTime\\": \\"2020-12-16T06:25:52Z\\",\\n \\"Readonly\\": false,\\n \\"AppName\\": \\"我的应用\\",\\n \\"CertProductExpiration\\": \\"2020-12-16T06:25:52Z\\",\\n \\"AppKey\\": \\"123456\\",\\n \\"CertDevelopAvail\\": false,\\n \\"EncodedIcon\\": \\"icon图片base64字符串\\",\\n \\"ProductId\\": 1234,\\n \\"BundleId\\": \\"com.test.ios\\",\\n \\"CertProductAvail\\": false\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'QueryAppSecurityInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemasSMMS19'],
],
'parameters' => [
[
'name' => 'AppKey',
'in' => 'query',
'schema' => ['description' => '指定应用的AppKey,唯一标识应用。', 'type' => 'string', 'required' => true, 'example' => '123456'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '查询请求的ID。', 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
'AppSecurityInfo' => [
'description' => '应用的安全信息。',
'type' => 'object',
'properties' => [
'AppSecret' => ['description' => '应用的AppSecret,用于在接口请求时进行签名鉴权等。', 'type' => 'string', 'example' => 'abc123abc123'],
'AppKey' => ['description' => '应用的AppKey,唯一标识应用。', 'type' => 'string', 'example' => '123456'],
'ExtConfig' => [
'type' => 'object',
'properties' => [
'TlogRsaSecret' => ['type' => 'string', 'description' => ''],
],
'description' => '',
],
],
],
],
'description' => '',
],
],
],
'title' => '查询应用秘钥信息',
'summary' => '查询指定应用的AppSecret。AppSecret为秘钥信息,用于接口请求权限校验。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-03-23T10:35:14.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryAppSecurityInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:QueryAppSecurityInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\",\\n \\"AppSecurityInfo\\": {\\n \\"AppSecret\\": \\"abc123abc123\\",\\n \\"AppKey\\": \\"123456\\",\\n \\"ExtConfig\\": {\\n \\"TlogRsaSecret\\": \\"\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
],
'QueryProductInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREemasSMMS19'],
],
'parameters' => [
[
'name' => 'ProductId',
'in' => 'query',
'schema' => ['description' => '项目的ID。', 'type' => 'string', 'required' => true, 'example' => '1234'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '-',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '查询请求的id。', 'description' => '查询请求的ID。'."\n", 'type' => 'string', 'example' => '126D4DDD-05A5-49B1-B18C-39C4A929BFB2'],
'ProductInfo' => [
'title' => '工作空间的详细信息。',
'description' => '项目的详细信息。',
'type' => 'object',
'properties' => [
'EncodedIcon' => ['title' => 'icon图片的base64字符串。', 'description' => 'icon图片的base64字符串。', 'type' => 'string', 'example' => 'icon图片base64字符串'],
'IndustryId' => ['title' => '行业id,返回值说明如下:-0:社交-1:摄影与摄像-2:效率-3:生活-4:美食佳饮-5:工具-6:娱乐-7:游戏-8:儿童-9:教育-10:报刊杂志-11:健康健美-12:旅游-13:音乐-14:体育-15:商务-16:新闻-17:财务-18:参考-19:导航-20:医疗', 'description' => ' * 0. 社交'."\n"
.' * 1. 摄影与摄像'."\n"
.' * 2. 效率'."\n"
.' * 3. 生活'."\n"
.' * 4. 美食佳饮'."\n"
.' * 5. 工具'."\n"
.' * 6. 娱乐'."\n"
.' * 7. 游戏'."\n"
.' * 8. 儿童'."\n"
.' * 9. 教育'."\n"
.' * 10. 报刊杂志'."\n"
.' * 11. 健康健美'."\n"
.' * 12. 旅游'."\n"
.' * 13. 音乐'."\n"
.' * 14. 体育'."\n"
.' * 15. 商务'."\n"
.' * 16. 新闻'."\n"
.' * 17. 财务'."\n"
.' * 18. 参考'."\n"
.' * 19. 导航'."\n"
.' * 20. 医疗'."\n"
.' * 21. 图书'."\n"
.' * 22. 天气'."\n"
.' * 23. 智能物联网 ', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Name' => ['title' => '工作空间的名称。', 'description' => '项目的名称。', 'type' => 'string', 'example' => '我的项目'],
'Readonly' => ['title' => '标识工作空间是否只读。>该字段用于特定场景,如无需要可忽略。', 'description' => '标识项目是否只读。'."\n"
."\n"
.'> 该字段用于特定场景,如无需要可忽略。', 'type' => 'boolean', 'example' => 'false'],
'IconName' => ['title' => 'icon图片的名称。', 'description' => 'icon图片的名称。', 'type' => 'string', 'example' => 'icon图片名称'],
'Platforms' => ['title' => '项目下属应用的平台,包含Android和iOS两种类型。', 'description' => '项目下属应用的平台,包含Android和iOS两种类型。', 'type' => 'string', 'example' => 'linux/amd64'],
'CreateTime' => ['title' => '应用创建时间。UTC格式表达。', 'description' => '应用创建时间。UTC格式表达。', 'type' => 'string', 'example' => '2022-12-02T09:50:01Z'],
'ProductId' => ['title' => '项目ID。', 'description' => '项目ID。', 'type' => 'integer', 'format' => 'int32', 'example' => '3910360'],
'Description' => ['title' => '简要描述项目信息。', 'description' => '简要描述项目信息。', 'type' => 'string', 'example' => 'endpoint for ecs: kangaroo-xuanji-cn-hangzhou-ecs-console-mirror-0(i-bp1fs84ua5zw4aljdlh1)'],
],
],
],
],
],
],
'title' => '查询工作空间详细信息',
'summary' => '查询工作空间的详细信息。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2025-10-10T08:43:33.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryProductInfo'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:QueryProductInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
],
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\",\\n \\"ProductInfo\\": {\\n \\"EncodedIcon\\": \\"icon图片base64字符串\\",\\n \\"IndustryId\\": 1,\\n \\"Name\\": \\"我的项目\\",\\n \\"Readonly\\": false,\\n \\"IconName\\": \\"icon图片名称\\",\\n \\"Platforms\\": \\"linux/amd64\\",\\n \\"CreateTime\\": \\"2022-12-02T09:50:01Z\\",\\n \\"ProductId\\": 3910360,\\n \\"Description\\": \\"endpoint for ecs: kangaroo-xuanji-cn-hangzhou-ecs-console-mirror-0(i-bp1fs84ua5zw4aljdlh1)\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 126D4DDD-05A5-49B1-B18C-39C4A929BFB2\\n \\n icon图片base64字符串\\n 1\\n 我的项目\\n false\\n icon图片名称\\n \\n","errorExample":""}]',
],
],
'endpoints' => [
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mhub.cn-shanghai.aliyuncs.com', 'endpoint' => 'mhub.cn-shanghai.aliyuncs.com', 'vpc' => 'mhub-intl-vpc.cn-shanghai.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'InvalidAppKey', 'message' => 'AppKey is not valid.', 'http_code' => 400, 'description' => 'AppKey 无效。'],
['code' => 'WorkspaceActiveModuleExist', 'message' => 'The workspace cannot be deleted because it is being used by an EMAS module such as Serverless.', 'http_code' => 400, 'description' => '无法删除, 有其他Emas模块正在使用该空间.如 Serverless'],
],
'changeSet' => [
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'OpenEmasService'],
],
'createdAt' => '2024-03-12T07:37:48.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'CreateProduct'],
],
'createdAt' => '2022-06-22T06:43:38.000Z',
'description' => '创建产品新增描述字段',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'DescribeDashboard'],
['description' => '响应参数发生变更', 'api' => 'ListProducts'],
['description' => '请求参数发生变更', 'api' => 'ModifyProduct'],
],
'createdAt' => '2022-04-26T03:47:48.000Z',
'description' => 'EMAS3.0新增1. 工作空间描述2. 获取用户-产品使用信息',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteApp'],
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateProduct'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyProduct'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyApp'],
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryProductInfo'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProducts'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeDashboard'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListApps'],
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateApp'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryAppInfo'],
['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'QueryAppSecurityInfo'],
['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProduct'],
],
],
'ram' => [
'productCode' => 'MHUB',
'productName' => '移动研发平台',
'ramCodes' => ['mhub'],
'ramLevel' => '资源级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'CreateApp',
'description' => '创建应用',
'operationType' => '',
'ramAction' => [
'action' => 'mhub:CreateApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ModifyProduct',
'description' => '修改工作空间',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:ModifyProduct',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
],
],
],
[
'apiName' => 'QueryAppInfo',
'description' => '查询应用详情',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:QueryAppInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
[
'apiName' => 'OpenEmasService',
'description' => '开通EMAS服务',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:OpenEmasService',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryProductInfo',
'description' => '查询工作空间详细信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:QueryProductInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
],
],
],
[
'apiName' => 'ListApps',
'description' => '查询指定工作空间下应用列表',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:ListApps',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateProduct',
'description' => '创建工作空间',
'operationType' => '',
'ramAction' => [
'action' => 'mhub:CreateProduct',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/*'],
],
],
],
[
'apiName' => 'DescribeDashboard',
'description' => '获取应用在各服务下的看板信息。',
'operationType' => '',
'ramAction' => [
'action' => 'mhub:DescribeDashboard',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteProduct',
'description' => '删除工作空间',
'operationType' => '',
'ramAction' => [
'action' => 'mhub:DeleteProduct',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
],
],
],
[
'apiName' => 'QueryAppSecurityInfo',
'description' => '查询应用秘钥信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:QueryAppSecurityInfo',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
[
'apiName' => 'ModifyApp',
'description' => '修改应用信息',
'operationType' => '',
'ramAction' => [
'action' => 'mhub:ModifyApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
[
'apiName' => 'ListProducts',
'description' => '获取产品列表',
'operationType' => 'get',
'ramAction' => [
'action' => 'mhub:ListProducts',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/*'],
],
],
],
[
'apiName' => 'DeleteApp',
'description' => '删除应用',
'operationType' => '',
'ramAction' => [
'action' => 'mhub:DeleteApp',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'MHUB', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/*'],
['validationType' => 'always', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/{#ProductId}'],
['validationType' => 'always', 'resourceType' => 'App', 'arn' => 'acs:mhub:*:{#accountId}:app/{#AppKey}'],
['validationType' => 'always', 'resourceType' => 'Product', 'arn' => 'acs:mhub:*:{#accountId}:product/*'],
],
],
];