From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/zh_cn/modelstudio/2026-02-10/api-docs.php | 2885 ++++++++++++++++++++++++ 1 file changed, 2885 insertions(+) create mode 100644 data/zh_cn/modelstudio/2026-02-10/api-docs.php (limited to 'data/zh_cn/modelstudio') diff --git a/data/zh_cn/modelstudio/2026-02-10/api-docs.php b/data/zh_cn/modelstudio/2026-02-10/api-docs.php new file mode 100644 index 0000000..2e2ab45 --- /dev/null +++ b/data/zh_cn/modelstudio/2026-02-10/api-docs.php @@ -0,0 +1,2885 @@ + '1.0', + 'info' => ['style' => 'ROA', 'product' => 'ModelStudio', 'version' => '2026-02-10'], + 'directories' => [ + [ + 'children' => ['GetTokenPlanAccountDetail', 'GetSubscriptionSeatDetails', 'SetTokenPlanOrgInviteConfig', 'GetTokenPlanOrgInviteConfig', 'RevokeTokenPlanInviteLink', 'GetTokenPlanInviteLink', 'CreateTokenPlanInviteLink', 'RotateTokenPlanKey', 'CreateTokenPlanKey', 'BatchRevokeSeats', 'BatchAssignSeats', 'UpdateOrganizationMember', 'RemoveOrganizationMember', 'AddOrganizationMember', 'ListOrganizationMembers', 'GetOrganizationMemberSeatStats', 'ListSubscriptionSharedPackages', 'GetSubscriptionStats', 'UpdateOrganization', 'GetOrganization'], + 'type' => 'directory', + 'title' => 'TokenPlan', + 'id' => 454819, + ], + [ + 'children' => ['ListWorkspaces', 'CreateWorkspace', 'DeleteWorkspace'], + 'type' => 'directory', + 'title' => '业务空间', + 'id' => 453343, + ], + [ + 'children' => ['ResetApiKey', 'EnableApiKey', 'DisableApiKey', 'CreateApiKey', 'UpdateApiKey', 'GetApiKey', 'ListApiKeys', 'DeleteApiKey'], + 'type' => 'directory', + 'title' => 'API Key', + 'id' => 453345, + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'AddOrganizationMember' => [ + 'summary' => '创建账号并直接添加成员', + 'path' => '/tokenplan/organization/member-additions', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'AccountName', + 'in' => 'query', + 'schema' => ['title' => '显示名称,若非空则同步更新账号的 name 字段', 'description' => '显示名称,若非空则同步更新账号的 name 字段', 'type' => 'string', 'required' => true, 'example' => '账号名称'], + ], + [ + 'name' => 'OrgRoleCode', + 'in' => 'query', + 'schema' => ['title' => '组织角色编码,只允许 ORG_ADMIN 或 ORG_MEMBER,默认 ORG_MEMBER', 'description' => '组织角色编码,只允许 ORG_ADMIN 或 ORG_MEMBER,默认 ORG_MEMBER', 'type' => 'string', 'required' => true, 'example' => 'ORG_MEMBER'], + ], + [ + 'name' => 'SpecType', + 'in' => 'query', + 'schema' => ['description' => '席位规格'."\n" + .'- standard - 标准席位'."\n" + .'- pro - 高级席位'."\n" + .'- max - 尊享席位', 'type' => 'string', 'required' => false, 'example' => 'standard'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Success.'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '账号ID', 'description' => '账号ID', 'type' => 'string', 'example' => 'acc_123456789'], + 'SeatAssigned' => ['description' => '席位分配是否成功', 'type' => 'boolean', 'example' => 'true'], + ], + ], + 'HttpStatusCode' => ['title' => 'HTTP 状态码', 'description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => 'None'], + 'RequestId' => ['title' => '请求唯一标识', 'description' => '请求唯一标识', 'type' => 'string', 'example' => '385C2BC3-52FC-564F-9312-97E5DFE1DFC0'], + ], + ], + ], + ], + 'title' => '创建成员', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:AddOrganizationMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"AccountId\\": \\"acc_123456789\\",\\n \\"SeatAssigned\\": true\\n },\\n \\"HttpStatusCode\\": 0,\\n \\"RequestId\\": \\"385C2BC3-52FC-564F-9312-97E5DFE1DFC0\\"\\n}","type":"json"}]', + ], + 'BatchAssignSeats' => [ + 'summary' => '批量分配席位至成员层', + 'path' => '/tokenplan/subscription/seat-assignments', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'SeatType', + 'in' => 'query', + 'schema' => ['title' => '席位类型(对应 resource_assign_seat.spec_type)', 'description' => '席位类型'."\n" + .'- standard - 标准席位'."\n" + .'- pro - 高级席位'."\n" + .'- max - 尊享席位', 'type' => 'string', 'required' => true, 'example' => 'standard'], + ], + [ + 'name' => 'AccountIds', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'title' => '目标成员 id 列表', + 'description' => '目标成员 id 列表', + 'type' => 'array', + 'items' => ['description' => '成员Id', 'type' => 'string', 'required' => false, 'example' => 'acc_123456789'], + 'required' => false, + ], + ], + [ + 'name' => 'Locale', + 'in' => 'query', + 'schema' => ['description' => '多语言信息 zh-CN/en-US', 'type' => 'string', 'required' => false, 'example' => 'zh-CN'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'None'], + ], + ], + ], + ], + 'title' => '分配席位', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:BatchAssignSeats', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"None\\"\\n}","type":"json"}]', + ], + 'BatchRevokeSeats' => [ + 'path' => '/tokenplan/subscription/seat-revocations', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'Items', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '回收项列表,不可为空', + 'description' => '回收项列表,不可为空', + 'type' => 'array', + 'items' => [ + 'description' => '发送记录列表详情', + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '当前绑定的成员 ID', 'description' => '当前绑定的成员 ID', 'type' => 'string', 'required' => false, 'example' => 'acc_123456789'], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'Locale', + 'in' => 'query', + 'schema' => ['description' => '多语言信息 zh-CN/en-US', 'type' => 'string', 'required' => false, 'example' => 'zh-CN'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '错误码(成功时为空)', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '错误信息(成功时为空)', 'type' => 'string', 'example' => 'Successful'], + ], + ], + ], + ], + 'title' => '回收席位', + 'summary' => '批量回收成员层席位', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\"\\n}","type":"json"}]', + ], + 'CreateApiKey' => [ + 'summary' => '使用阿里云百炼的大模型或应用前,请先创建 API Key 作为鉴权凭证。', + 'path' => '/modelstudio/apikeys', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => ['description' => '业务空间 ID。'."\n" + .'> '."\n" + .'> - 若不填写时,创建的API Key会自动归属于默认业务空间。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'ws-8af73c50f5596193', 'maxLength' => 128], + ], + [ + 'name' => 'description', + 'in' => 'query', + 'schema' => ['description' => '描述信息。', 'type' => 'string', 'required' => false, 'example' => 'test', 'maxLength' => 200], + ], + [ + 'name' => 'auth', + 'in' => 'formData', + 'style' => 'flat', + 'schema' => [ + 'title' => 'API Key权限设置。', + 'description' => 'API Key权限设置。', + 'type' => 'object', + 'properties' => [ + 'type' => [ + 'title' => 'All:全部权限;Custom:自定义权限。', + 'description' => 'All:全部权限;Custom:自定义权限。', + 'type' => 'string', + 'required' => false, + 'example' => 'Custom', + 'default' => 'All', + 'enum' => ['All', 'Custom'], + ], + 'accessIps' => [ + 'title' => 'IP访问白名单。', + 'description' => 'IP访问白名单。'."\n" + ."\n" + .'> '."\n" + .'> - 当自定义权限范围时,若未填写IP访问白名单,服务端会默认设置为:IPv4 (0.0.0.0/0)和 IPv6 (::/0),代表全部放通。', + 'type' => 'array', + 'items' => ['title' => '默认设置为:IPv4 (0.0.0.0/0)和 IPv6 (::/0)全部放通。', 'description' => 'IPv4、IPv6和网段。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.0/24'], + 'required' => false, + 'docRequired' => false, + ], + 'modelAccessScope' => [ + 'title' => '访问模型范围:若配置,则仅能调用已选择的模型。未设置时默认可访问指定空间下所有已经授予推理权限的模型。', + 'description' => '访问模型范围。', + 'type' => 'object', + 'properties' => [ + 'allowAllModels' => ['title' => '是否可访问指定业务空间下所有已授予推理权限的模型。', 'description' => '是否允许访问该业务空间下所有已经授予推理权限的模型。取值范围:'."\n" + ."\n" + .'- true'."\n" + .'- false', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'true'], + 'accessibleModels' => [ + 'title' => '可访问的该业务空间下已经授予推理权限的部分官方模型。', + 'description' => '可访问的模型列表。'."\n" + .'>仅在allowAllModels为false时,填写内容才会生效。>', + 'type' => 'array', + 'items' => ['title' => '模型。', 'description' => '可访问的模型。', 'type' => 'string', 'required' => false, 'example' => 'qwen3.6-plus'], + 'required' => false, + ], + ], + 'required' => false, + 'docRequired' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'C0CDC72E-52D7-5BC8-9396-9276B4FDF6B3'], + 'code' => ['description' => '响应码。', 'type' => 'string', 'example' => '200'], + 'message' => ['description' => '响应消息。', 'type' => 'string', 'example' => 'success'], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'success' => ['description' => '请求成功的标识。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', 'type' => 'boolean', 'example' => 'true'], + 'apiKey' => [ + 'description' => 'API Key信息。', + 'type' => 'object', + 'properties' => [ + 'apiKeyValue' => ['description' => 'API Key的值。'."\n" + .'>立刻复制您的API密钥。注意妥善保管,任何获取到该密钥的人,都能以您的身份发起服务请求,并产生费用。如果丢失,你可以重置或者创建新的密钥。>', 'type' => 'string', 'example' => 'sk-ws-djI.8O7dkfkW2aICctnid4u4'], + 'apiKeyId' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1858636'], + 'workspaceId' => ['description' => '业务空间ID。', 'type' => 'string', 'example' => 'ws-3fa048e86117d91f'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'desc'], + 'createdBy' => ['description' => '创建人。', 'type' => 'string', 'example' => '1378030599924858'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1774338222000'], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this action.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C0CDC72E-52D7-5BC8-9396-9276B4FDF6B3\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"success\\",\\n \\"httpStatusCode\\": 200,\\n \\"success\\": true,\\n \\"apiKey\\": {\\n \\"apiKeyValue\\": \\"sk-ws-djI.8O7dkfkW2aICctnid4u4\\",\\n \\"apiKeyId\\": 1858636,\\n \\"workspaceId\\": \\"ws-3fa048e86117d91f\\",\\n \\"description\\": \\"desc\\",\\n \\"createdBy\\": \\"1378030599924858\\",\\n \\"gmtCreate\\": 1774338222000\\n }\\n}","type":"json"}]', + 'title' => '创建API Key', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:CreateApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'CreateTokenPlanInviteLink' => [ + 'summary' => '创建TokenPlan成员邀请链接', + 'path' => '/tokenplan/invite/link/create', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'ExpireType', + 'in' => 'query', + 'schema' => ['description' => '过期档位,默认 DAYS_7'."\n" + ."\n" + .'- DAYS_7'."\n" + .'- DAYS_30'."\n" + .'- MONTHS_6'."\n" + .'- YEAR_1', 'type' => 'string', 'required' => false, 'example' => 'DAYS_7'], + ], + [ + 'name' => 'SsoSource', + 'in' => 'query', + 'schema' => ['description' => '邀请链接绑定的 SSO 登录方式:'."\n" + ."\n" + .'- SAML'."\n" + .'- DINGTALK', 'type' => 'string', 'required' => true, 'example' => 'SAML'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '404'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'description' => '业务参数', + 'type' => 'object', + 'properties' => [ + 'Token' => ['description' => '生成的Token', 'type' => 'string', 'example' => 'sk-ws-D.****.*******'], + ], + ], + ], + ], + ], + ], + 'title' => '创建TokenPlan成员邀请链接', + 'description' => '用户只允许拥有一个有效的邀请链接'."\n" + ."\n" + .'若用户已有有效的邀请链接,该接口将返回这个链接'."\n" + ."\n" + .'若需要创建新的链接,请调用RevokeTokenPlanInviteLink接口失效当前的链接'."\n" + ."\n" + .'该接口只返回生成的token,邀请链接的拼接格式为 `https://{host}/accept-invite?token=[token]&orgId=[orgId]`'."\n" + .'* 国内站host为tokenplan-enterprise.bailian.aliyunportal.com'."\n" + .'* 国际站host为tokenplan-enterprise.modelstudio.aliyunportal.com', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"404\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"Token\\": \\"sk-ws-D.****.*******\\"\\n }\\n}","type":"json"}]', + ], + 'CreateTokenPlanKey' => [ + 'path' => '/tokenplan/api-keys', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'AccountId', + 'in' => 'query', + 'schema' => ['title' => '账号 ID', 'description' => '账号 ID', 'type' => 'string', 'required' => true, 'example' => 'acc_123456789'], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['title' => 'Key 描述', 'description' => 'Key 描述', 'type' => 'string', 'required' => false, 'example' => 'APIKEY描述'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '错误码(成功时为空)', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '错误信息(成功时为空)', 'type' => 'string', 'example' => 'Success.'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'ApiKeyId' => ['title' => 'API Key ID(系统生成)', 'description' => 'API Key ID(系统生成)', 'type' => 'string', 'example' => 'ak-123456'], + 'SourceId' => ['title' => 'BaiLian 返回的 source_id', 'description' => 'BaiLian 返回的 source_id', 'type' => 'string', 'example' => '123'], + 'PlainApiKey' => ['title' => 'BaiLian 返回的明文 API Key(只在创建时返回一次)', 'description' => 'BaiLian 返回的明文 API Key(只在创建时返回一次)', 'type' => 'string', 'example' => 'sk-ws.abc123456'], + 'MaskedApiKey' => ['title' => 'BaiLian 返回的 masked_api_key(如 sk_***cdef)', 'description' => 'BaiLian 返回的 masked_api_key(如 sk_***cdef)', 'type' => 'string', 'example' => 'sk_***6'], + 'Description' => ['title' => 'Key 描述', 'description' => 'Key 描述', 'type' => 'string', 'example' => 'APIKEY描述'], + 'CreatedAt' => ['title' => 'Key 创建时间', 'description' => 'Key 创建时间', 'type' => 'string', 'example' => '2025-07-18T03:19:17Z'], + ], + ], + ], + ], + ], + ], + 'title' => '生成API Key', + 'summary' => '创建 UAC API Key', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:CreateTokenPlanKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"ApiKeyId\\": \\"ak-123456\\",\\n \\"SourceId\\": \\"123\\",\\n \\"PlainApiKey\\": \\"sk-ws.abc123456\\",\\n \\"MaskedApiKey\\": \\"sk_***6\\",\\n \\"Description\\": \\"APIKEY描述\\",\\n \\"CreatedAt\\": \\"2025-07-18T03:19:17Z\\"\\n }\\n}","type":"json"}]', + ], + 'CreateWorkspace' => [ + 'summary' => '新增业务空间。', + 'path' => '/modelstudio/workspaces', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], + 'parameters' => [ + [ + 'name' => 'workspaceName', + 'in' => 'query', + 'schema' => ['description' => '业务空间名称。', 'type' => 'string', 'required' => true, 'example' => 'workspace_test', 'maxLength' => 30], + ], + [ + 'name' => 'serviceSite', + 'in' => 'query', + 'schema' => ['title' => '服务部署范围(推理、训练、部署等依赖 GPU 资源的服务部署范围)。', 'type' => 'string', 'required' => false, 'example' => 'global', 'maxLength' => 30], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'workspace' => [ + 'description' => '业务空间信息', + 'type' => 'object', + 'properties' => [ + 'workspaceId' => ['description' => '业务空间ID。', 'type' => 'string', 'example' => 'ws-ac3ef438bec22dc5'], + 'workspaceName' => ['description' => '业务空间名称。', 'type' => 'string', 'example' => 'default'], + 'region' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'apiHost' => ['description' => 'API Host。', 'type' => 'string', 'example' => 'llm-34o9ts1dai60z5sf.cn-beijing.maas.aliyuncs.com'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1742785623772'], + 'serviceSite' => ['description' => '服务部署范围,详情请 [查看文档](https://www.alibabacloud.com/help/zh/model-studio/regions/)。', 'type' => 'string', 'example' => 'global'], + ], + ], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'BB521414-5D38-5E66-AA66-963B2B4200E2'], + 'success' => ['description' => '请求成功的标识。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '新增业务空间', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"200\\",\\n \\"workspace\\": {\\n \\"workspaceId\\": \\"ws-ac3ef438bec22dc5\\",\\n \\"workspaceName\\": \\"default\\",\\n \\"region\\": \\"cn-beijing\\",\\n \\"apiHost\\": \\"llm-34o9ts1dai60z5sf.cn-beijing.maas.aliyuncs.com\\",\\n \\"gmtCreate\\": 1742785623772,\\n \\"serviceSite\\": \\"global\\"\\n },\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"requestId\\": \\"BB521414-5D38-5E66-AA66-963B2B4200E2\\",\\n \\"success\\": true\\n}","type":"json"}]', + ], + 'DeleteApiKey' => [ + 'summary' => '删除鉴权凭证 API Key。', + 'path' => '/modelstudio/apikeys/{apiKeyId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'apiKeyId', + 'in' => 'path', + 'schema' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1528339'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'httpStatusCode' => ['description' => 'HTTP 状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'ok'], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '099A671E-FA21-5A36-8A73-918572DDEF53'], + 'success' => ['description' => '接口调用是否成功。', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除API Key', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"200\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"ok\\",\\n \\"requestId\\": \\"099A671E-FA21-5A36-8A73-918572DDEF53\\",\\n \\"success\\": true\\n}","type":"json"}]', + ], + 'DeleteWorkspace' => [ + 'summary' => '删除业务空间。', + 'path' => '/modelstudio/workspaces/{workspaceId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['description' => '业务空间 ID。', 'type' => 'string', 'required' => true, 'example' => 'ws-32klhjk2312334jkh', 'maxLength' => 64], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'isDeleted' => ['description' => '是否成功删除。'."\n" + ."\n" + .'- true:成功。'."\n" + ."\n" + .'- false:失败。', 'type' => 'boolean', 'example' => 'true'], + 'failReasons' => [ + 'description' => '失败原因列表。', + 'type' => 'array', + 'items' => [ + 'description' => '失败原因。', + 'type' => 'object', + 'properties' => [ + 'reason' => ['description' => '具体原因。', 'type' => 'string', 'example' => 'API Key exists. Please clear them first.'], + 'resourceType' => ['description' => '资源类型', 'type' => 'string', 'example' => 'API Key'], + ], + ], + ], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'DFD55E7B-0615-5343-BDA0-FBEE86F29935'], + 'success' => ['description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除业务空间', + 'description' => '满足以下条件的业务空间才允许删除:'."\n" + ."\n" + .'1. 该业务空间不能是默认业务空间。'."\n" + .'2. 该业务空间未用于购买其他产品,如妙笔等。'."\n" + .'3. 在权限管理中,该业务空间未被授予给RAM用户、RAM角色。'."\n" + .'4. 该业务空间下已不存在任何资源,比如API Key、模型部署、知识库等等。', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"200\\",\\n \\"isDeleted\\": true,\\n \\"failReasons\\": [\\n {\\n \\"reason\\": \\"API Key exists. Please clear them first.\\",\\n \\"resourceType\\": \\"API Key\\"\\n }\\n ],\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"requestId\\": \\"DFD55E7B-0615-5343-BDA0-FBEE86F29935\\",\\n \\"success\\": true\\n}","type":"json"}]', + ], + 'DisableApiKey' => [ + 'path' => '/modelstudio/apikeys/{apiKeyId}/disable', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'apiKeyId', + 'in' => 'path', + 'schema' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '3268483'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '36045E0A-551D-592D-B1BC-4C56596CE59E'], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'success' => ['description' => '请求成功的标识。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ApiKey.Already.Disabled', 'errorMessage' => 'API Key is already disabled.', 'description' => 'API Key已经是禁用状态了。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '禁用API Key', + 'summary' => '禁用API Key', + 'description' => 'API Key不允许重复禁用。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:DisableApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"36045E0A-551D-592D-B1BC-4C56596CE59E\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"success\\",\\n \\"httpStatusCode\\": 200,\\n \\"success\\": true\\n}","type":"json"}]', + ], + 'EnableApiKey' => [ + 'path' => '/modelstudio/apikeys/{apiKeyId}/enable', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'apiKeyId', + 'in' => 'path', + 'schema' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '3076140'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'BB521414-5D38-5E66-AA66-963B2B4200E2'], + 'code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'ok'], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'success' => ['description' => '接口调用是否成功。', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ApiKey.Already.Enabled', 'errorMessage' => 'ApiKey is already enabled.', 'description' => 'API Key已经是生效中状态了。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '启用API key', + 'summary' => '启用API Key', + 'description' => 'API Key不允许重复启用。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:EnableApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"BB521414-5D38-5E66-AA66-963B2B4200E2\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"ok\\",\\n \\"httpStatusCode\\": 200,\\n \\"success\\": true\\n}","type":"json"}]', + ], + 'GetApiKey' => [ + 'summary' => '获取指定的鉴权凭证 API Key 信息。', + 'path' => '/modelstudio/apikeys/{apiKeyId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'apiKeyId', + 'in' => 'path', + 'schema' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2984618'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'httpStatusCode' => ['description' => 'HTTP状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'DFD55E7B-0615-5343-BDA0-FBEE86F29935'], + 'success' => ['description' => '请求成功的标识。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', 'type' => 'boolean', 'example' => 'true'], + 'apiKey' => [ + 'description' => 'API Key信息', + 'type' => 'object', + 'properties' => [ + 'apiKeyId' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2965964'], + 'apiKeyValue' => ['description' => 'API Key的值。', 'type' => 'string', 'example' => 'sk-ws-djI.mhU0D****testtestest'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1774338222000'], + 'workspaceId' => ['description' => '业务空间ID。', 'type' => 'string', 'example' => 'ws-b2d30f148c236908'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'v7'], + 'createdBy' => ['description' => '创建人。', 'type' => 'string', 'example' => '1378030599924858'], + 'disabled' => [ + 'description' => '是否已禁用。'."\n" + ."\n" + .'- **0**:生效中。'."\n" + .'- **1**:已禁用。', + 'type' => 'integer', + 'format' => 'int32', + 'enumValueTitles' => ['生效中', '已禁用'], + 'example' => '0', + 'enum' => ['0', '1'], + ], + 'auth' => [ + 'title' => '权限设置', + 'description' => '权限设置', + 'type' => 'object', + 'properties' => [ + 'type' => ['title' => 'All:全部权限;Custom:自定义权限。', 'description' => 'All:全部权限;Custom:自定义权限。', 'type' => 'string', 'example' => 'Custom'], + 'accessIps' => [ + 'title' => 'IP访问白名单。', + 'description' => 'IP访问白名单。', + 'type' => 'array', + 'items' => ['title' => '支持IPv4、IPv6和网段。', 'description' => '支持IPv4、IPv6和网段。', 'type' => 'string', 'example' => '192.168.1.0/24'], + ], + 'modelAccessScope' => [ + 'title' => '访问模型范围:若配置,则仅能调用已选择的模型。', + 'description' => '访问模型范围。', + 'type' => 'object', + 'properties' => [ + 'allowAllModels' => ['title' => '是否可访问指定业务空间下所有已授予推理权限的模型。', 'description' => '是否允许访问该业务空间下所有已经授予推理权限的模型。取值范围:'."\n" + ."\n" + .'- true'."\n" + .'- false', 'type' => 'boolean', 'example' => 'false'], + 'accessibleModels' => [ + 'title' => '可访问的该业务空间下已经授予推理权限的部分官方模型。', + 'description' => '可访问的模型列表。', + 'type' => 'array', + 'items' => ['title' => '模型。', 'description' => '可访问的模型。', 'type' => 'string', 'example' => 'qwen3.7-plus'], + ], + ], + 'docRequired' => false, + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"200\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"requestId\\": \\"DFD55E7B-0615-5343-BDA0-FBEE86F29935\\",\\n \\"success\\": true,\\n \\"apiKey\\": {\\n \\"apiKeyId\\": 2965964,\\n \\"apiKeyValue\\": \\"sk-ws-djI.mhU0D****testtestest\\",\\n \\"gmtCreate\\": 1774338222000,\\n \\"workspaceId\\": \\"ws-b2d30f148c236908\\",\\n \\"description\\": \\"v7\\",\\n \\"createdBy\\": \\"1378030599924858\\",\\n \\"disabled\\": 0,\\n \\"auth\\": {\\n \\"type\\": \\"Custom\\",\\n \\"accessIps\\": [\\n \\"192.168.1.0/24\\"\\n ],\\n \\"modelAccessScope\\": {\\n \\"allowAllModels\\": false,\\n \\"accessibleModels\\": [\\n \\"qwen3.7-plus\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', + 'title' => '查询指定的API Key', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'GetOrganization' => [ + 'path' => '/tokenplan/organization', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'OrgId' => ['title' => '组织ID', 'description' => '组织ID', 'type' => 'string', 'example' => 'org_123456789'], + 'NamespaceId' => ['title' => '产品命名空间ID', 'description' => '产品命名空间ID', 'type' => 'string', 'example' => 'namespace-1'], + 'Name' => ['title' => '组织名称', 'description' => '组织名称', 'type' => 'string', 'example' => '组织名称'], + 'Description' => ['title' => '组织描述', 'description' => '组织描述', 'type' => 'string', 'example' => '组织描述'], + 'Status' => ['title' => '状态(ACTIVE/FROZEN)', 'description' => '状态(ACTIVE/FROZEN)', 'type' => 'string', 'example' => 'ACTIVE'], + 'OwnerId' => ['title' => '组织 Owner 的 UAC 账号 ID', 'description' => '组织 Owner 的 UAC 账号 ID', 'type' => 'string', 'example' => 'acc_123456789'], + 'OwnerBizAccountId' => ['title' => '组织 Owner 的业务账号标识(ALIYUN 类型为 aliyunUid,SSO 类型为 userIdentifier)', 'description' => '组织 Owner 的业务账号标识(ALIYUN 类型为 aliyunUid,SSO 类型为 userIdentifier)', 'type' => 'string', 'example' => '1543686331379464'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-11-20T02:26:35Z'], + 'GmtModified' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-11-13T02:11:56Z'], + ], + ], + 'HttpStatusCode' => ['title' => 'HTTP 状态码', 'description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'RequestId' => ['title' => '请求唯一标识', 'description' => '请求唯一标识', 'type' => 'string', 'example' => '0CB5868D-C6E5-59A6-A20A-C39EB2E75BDE'], + ], + ], + ], + ], + 'title' => '获取指定组织的信息', + 'summary' => '获取指定组织的信息', + 'description' => '通过OrgId,获取指定组织的信息', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"OrgId\\": \\"org_123456789\\",\\n \\"NamespaceId\\": \\"namespace-1\\",\\n \\"Name\\": \\"组织名称\\",\\n \\"Description\\": \\"组织描述\\",\\n \\"Status\\": \\"ACTIVE\\",\\n \\"OwnerId\\": \\"acc_123456789\\",\\n \\"OwnerBizAccountId\\": \\"1543686331379464\\",\\n \\"GmtCreate\\": \\"2025-11-20T02:26:35Z\\",\\n \\"GmtModified\\": \\"2025-11-13T02:11:56Z\\"\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"0CB5868D-C6E5-59A6-A20A-C39EB2E75BDE\\"\\n}","type":"json"}]', + ], + 'GetOrganizationMemberSeatStats' => [ + 'path' => '/tokenplan/organization/member-seat-stats', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'OrgMemberStatsWithSeatDTO', + 'description' => 'OrgMemberStatsWithSeatDTO', + 'type' => 'object', + 'properties' => [ + 'OrgId' => ['title' => '组织 ID', 'description' => '组织 ID', 'type' => 'string', 'example' => '5ffd468b1e45db3c1cc26ad6'], + 'TotalMemberCount' => ['title' => '成员总数', 'description' => '成员总数', 'type' => 'integer', 'format' => 'int32', 'example' => '12'], + 'OwnerRoleUserCount' => ['title' => '主账号数(ORG_OWNER 角色)', 'description' => '主账号数(ORG_OWNER 角色)', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'AdminRoleUserCount' => ['title' => '管理员数(ORG_ADMIN 角色)', 'description' => '管理员数(ORG_ADMIN 角色)', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'MemberRoleUserCount' => ['title' => '普通成员数(ORG_MEMBER 角色)', 'description' => '普通成员数(ORG_MEMBER 角色)', 'type' => 'integer', 'format' => 'int32', 'example' => '8'], + 'SeatedMemberCount' => ['title' => '已分配席位成员数', 'description' => '已分配席位成员数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'UnseatedMemberCount' => ['title' => '未分配席位成员数', 'description' => '未分配席位成员数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + ], + ], + ], + ], + 'title' => '成员管理 - 成员数量和席位数量情况展示。', + 'summary' => '查询组织成员统计信息,包含成员总数、管理员数、普通成员数、已分配席位成员数、未分配席位成员数。', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OrgId\\": \\"5ffd468b1e45db3c1cc26ad6\\",\\n \\"TotalMemberCount\\": 12,\\n \\"OwnerRoleUserCount\\": 1,\\n \\"AdminRoleUserCount\\": 3,\\n \\"MemberRoleUserCount\\": 8,\\n \\"SeatedMemberCount\\": 2,\\n \\"UnseatedMemberCount\\": 10\\n}","type":"json"}]', + ], + 'GetSubscriptionSeatDetails' => [ + 'summary' => '分页查询坐席明细', + 'path' => '/tokenplan/subscription/seat-detail', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => false, 'notSupportAutoTestReason' => '紧急发布', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => ['description' => '分页页号。默认值:1取值范围:正整数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => '分页参数:每页显示条数,默认值10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + [ + 'name' => 'StatusList', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'description' => '席位状态筛选列表', + 'type' => 'array', + 'items' => ['description' => '席位状态:'."\n" + ."\n" + .'- CREATING —— 创建中'."\n" + .'- NORMAL —— 有效状态'."\n" + .'- LIMIT ——欠费受限'."\n" + .'- RELEASE —— 到期释放'."\n" + .'- STOP —— 到期停机'."\n" + .'- REFUNDED —— 已退款', 'type' => 'string', 'required' => false, 'example' => 'NORMAL'], + 'required' => false, + ], + ], + [ + 'name' => 'SeatId', + 'in' => 'query', + 'schema' => ['description' => '席位id', 'type' => 'string', 'required' => false, 'example' => 'seat-123456'], + ], + [ + 'name' => 'SeatType', + 'in' => 'query', + 'schema' => ['description' => '席位类型(specType)'."\n" + ."\n" + .'- standard - 标准席位'."\n" + .'- pro - 高级席位'."\n" + .'- max - 尊享席位', 'type' => 'string', 'required' => false, 'example' => 'standard'], + ], + [ + 'name' => 'QueryAssigned', + 'in' => 'query', + 'schema' => ['description' => '席位分配状态筛选项。true=已分配,false=未分配,null=全部', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'OK'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'Items' => [ + 'description' => '数据项', + 'type' => 'array', + 'items' => [ + 'description' => '数据项', + 'type' => 'object', + 'properties' => [ + 'InstanceCode' => ['description' => '席位instance code', 'type' => 'string', 'example' => 'subs-1234567'], + 'EquityList' => [ + 'description' => '当前生效的权益实例,对TokenPlan产品,该列表只会有一个生效的权益实例', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'EquityType' => ['description' => '权益类型(如 CREDITS、SPN、资源包等)', 'type' => 'string', 'example' => 'CREDITS'], + 'CycleInstanceId' => ['description' => '权益 code(订阅 code,credits 场景下不需要消费)', 'type' => 'string', 'example' => '123456'], + 'CycleStartTime' => ['description' => '当前周期开始时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1775232000'], + 'CycleEndTime' => ['description' => '当前周期结束时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1755273600'], + 'CycleTotalValue' => ['description' => '当前周期的总额度', 'type' => 'number', 'format' => 'double', 'example' => '100.00000000'], + 'CycleSurplusValue' => ['description' => '当前周期的剩余额度', 'type' => 'number', 'format' => 'double', 'example' => '40.00000000'], + 'CycleVersion' => ['description' => '当前周期的时序版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + 'description' => '', + ], + ], + 'EndTime' => ['description' => '席位过期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1781422733'], + 'SeatId' => ['description' => '席位ID', 'type' => 'string', 'example' => 'seat_123456'], + 'SpecType' => ['description' => '席位类型 '."\n" + ."\n" + .'- standard - 标准席位'."\n" + .'- pro - 高级席位'."\n" + .'- max - 尊享席位', 'type' => 'string', 'example' => 'standard'], + 'StartTime' => ['description' => '席位开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1781422733'], + 'AssignedStatus' => ['description' => '分配状态'."\n" + ."\n" + .'- ASSIGNED'."\n" + .'- UNASSIGNED', 'type' => 'string', 'example' => 'ASSIGNED'], + 'AccountId' => ['description' => '绑定的成员账号 ID', 'type' => 'string', 'example' => 'acc_123456789'], + 'AccountName' => ['description' => '成员账号名称', 'type' => 'string', 'example' => 'ExampleName'], + 'AccountEmail' => ['description' => '成员账号邮箱', 'type' => 'string', 'example' => 'test@email.com'], + 'Status' => ['description' => '席位状态:'."\n" + .'- CREATING —— 创建中'."\n" + .'- NORMAL —— 有效状态'."\n" + .'- LIMIT ——欠费受限'."\n" + .'- RELEASE —— 到期释放'."\n" + .'- STOP —— 到期停机'."\n" + .'- REFUNDED —— 已退款', 'type' => 'string', 'example' => 'NORMAL'], + ], + ], + ], + 'Total' => ['description' => '席位的总数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'PageNo' => ['description' => '页码,取值大于0且不超过Integer数据类型的最大值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['description' => '每页条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + ], + ], + ], + ], + ], + ], + 'title' => '订阅明细-座席列表', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetSubscriptionSeatDetails', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Items\\": [\\n {\\n \\"InstanceCode\\": \\"subs-1234567\\",\\n \\"EquityList\\": [\\n {\\n \\"EquityType\\": \\"CREDITS\\",\\n \\"CycleInstanceId\\": \\"123456\\",\\n \\"CycleStartTime\\": 1775232000,\\n \\"CycleEndTime\\": 1755273600,\\n \\"CycleTotalValue\\": 100,\\n \\"CycleSurplusValue\\": 40,\\n \\"CycleVersion\\": 1\\n }\\n ],\\n \\"EndTime\\": 1781422733,\\n \\"SeatId\\": \\"seat_123456\\",\\n \\"SpecType\\": \\"standard\\",\\n \\"StartTime\\": 1781422733,\\n \\"AssignedStatus\\": \\"ASSIGNED\\",\\n \\"AccountId\\": \\"acc_123456789\\",\\n \\"AccountName\\": \\"ExampleName\\",\\n \\"AccountEmail\\": \\"test@email.com\\",\\n \\"Status\\": \\"NORMAL\\"\\n }\\n ],\\n \\"Total\\": 100,\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10\\n }\\n}","type":"json"}]', + ], + 'GetSubscriptionStats' => [ + 'summary' => '成员管理 - 成员数量和席位数量情况展示', + 'path' => '/tokenplan/subscription/stats', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'SubscriptionStartTime' => ['title' => '订阅开始时间,毫秒', 'description' => '订阅开始时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1781422733'], + 'SubscriptionEndTime' => ['title' => '订阅结束时间,毫秒', 'description' => '订阅结束时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1781422734'], + 'Items' => [ + 'title' => '席位信息列表(按 specType 分组)', + 'description' => '席位信息列表(按 specType 分组)', + 'type' => 'array', + 'items' => [ + 'description' => '列表数据', + 'type' => 'object', + 'properties' => [ + 'SeatType' => ['title' => '席位类型(specType)', 'description' => '席位类型(specType)'."\n" + .'- standard - 标准席位'."\n" + .'- pro - 高级席位'."\n" + .'- max - 尊享席位', 'type' => 'string', 'example' => 'standard'], + 'SeatRefreshTime' => ['title' => '本周期刷新时间,毫秒', 'description' => '本周期刷新时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1781422734'], + 'TotalSeats' => ['title' => '总席位数', 'description' => '总席位数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'AssignedSeats' => ['title' => '已分配席位数', 'description' => '已分配席位数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'SeatCredits' => ['title' => '席位总 Credits 额度', 'description' => '席位总 Credits 额度', 'type' => 'number', 'format' => 'double', 'example' => '100'], + 'SeatRemainingCredits' => ['title' => '本周期剩余 Credits(surplusValue),CreditsService 降级时为 null', 'description' => '本周期剩余 Credits', 'type' => 'number', 'format' => 'double', 'example' => '40'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'title' => '成员管理 - 成员数量和席位数量情况展示', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"SubscriptionStartTime\\": 1781422733,\\n \\"SubscriptionEndTime\\": 1781422734,\\n \\"Items\\": [\\n {\\n \\"SeatType\\": \\"standard\\",\\n \\"SeatRefreshTime\\": 1781422734,\\n \\"TotalSeats\\": 2,\\n \\"AssignedSeats\\": 1,\\n \\"SeatCredits\\": 100,\\n \\"SeatRemainingCredits\\": 40\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'GetTokenPlanAccountDetail' => [ + 'path' => '/tokenplan/account', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Success.'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '账号ID', 'description' => '账号ID', 'type' => 'string', 'example' => 'acc_123456789'], + 'AccountType' => ['title' => '账号类型:ALIYUN / SSO / SA', 'description' => '账号类型:'."\n" + ."\n" + .'- ALIYUN '."\n" + .'- SSO '."\n" + .'- SA', 'type' => 'string', 'example' => 'ALIYUN'], + 'IsDeleted' => ['title' => '账号全局状态:0=正常,1=已冻结', 'description' => '账号全局状态:0=正常,1=已冻结', 'type' => 'boolean', 'example' => '0'], + 'Name' => ['title' => '账号显示名称', 'description' => '账号显示名称', 'type' => 'string', 'example' => 'test_name'], + 'AliyunUid' => ['title' => '阿里云UID(ALIYUN类型账号)', 'description' => '阿里云UID(ALIYUN类型账号)', 'type' => 'string', 'example' => '1122334455'], + 'Email' => ['title' => '邮箱(SSO类型账号)', 'description' => '邮箱(SSO类型账号)', 'type' => 'string', 'example' => 'test@email.com'], + 'CreatedAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => 'Thu May 28 14:33:52 CST 2026'], + 'OrgMemberships' => [ + 'title' => '组织成员关系列表(树形结构,组织 → 工作空间)', + 'description' => '组织成员关系列表(树形结构,组织 → 工作空间)', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'OrgId' => ['title' => '组织ID', 'description' => '组织ID', 'type' => 'string', 'example' => 'org_123456789'], + 'MemberStatus' => ['title' => '组织成员状态:ENABLE / DISABLE', 'description' => '组织成员状态'."\n" + ."\n" + .'- ACTIVE '."\n" + .'- INITIAL '."\n" + .'- FROZEN', 'type' => 'string', 'example' => 'ENABLE'], + 'RoleId' => ['title' => '组织角色ID', 'description' => '组织角色ID', 'type' => 'string', 'example' => 'SYSTEM_ROLE_ORG_OWNER'], + 'RoleCode' => ['title' => '组织角色编码(如 ORG_OWNER、ORG_ADMIN、ORG_MEMBER)', 'description' => '组织角色编码'."\n" + ."\n" + .'- ORG_OWNER'."\n" + .'- ORG_ADMIN'."\n" + .'- ORG_MEMBER', 'type' => 'string', 'example' => 'ORG_MEMBER'], + 'Workspaces' => [ + 'title' => '该组织下账号已加入的工作空间列表', + 'description' => '该组织下账号已加入的工作空间列表', + 'type' => 'array', + 'items' => [ + 'description' => '工作空间列表。', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'example' => 'ws_123456789'], + 'MemberStatus' => ['title' => '成员状态:ENABLE / DISABLE', 'description' => '成员状态'."\n" + .'- ACTIVE '."\n" + .'- FROZEN', 'type' => 'string', 'example' => 'ACTIVE'], + 'RoleId' => ['title' => '工作空间角色ID', 'description' => '工作空间角色ID', 'type' => 'string', 'example' => 'SYSTEM_ROLE_WS_ADMIN'], + 'RoleCode' => ['title' => '工作空间角色编码(如 WS_ADMIN、WS_MEMBER)', 'description' => '工作空间角色编码'."\n" + .'- WS_ADMIN'."\n" + .'- WS_MEMBER', 'type' => 'string', 'example' => 'WS_ADMIN'], + ], + ], + ], + ], + 'description' => '', + ], + ], + ], + ], + 'HttpStatusCode' => ['title' => 'HTTP 状态码', 'description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'RequestId' => ['title' => '请求唯一标识', 'description' => '请求唯一标识', 'type' => 'string', 'example' => 'C0DC05D9-C506-519B-AFF3-2B00165176E4'], + ], + ], + ], + ], + 'title' => '获取账号下的组织信息', + 'summary' => '获取TokenPlan账号详情及组织信息', + 'description' => '在登录状态下,获取TokenPlan管理平台的账号信息', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"AccountId\\": \\"acc_123456789\\",\\n \\"AccountType\\": \\"ALIYUN\\",\\n \\"IsDeleted\\": true,\\n \\"Name\\": \\"test_name\\",\\n \\"AliyunUid\\": \\"1122334455\\",\\n \\"Email\\": \\"test@email.com\\",\\n \\"CreatedAt\\": \\"Thu May 28 14:33:52 CST 2026\\",\\n \\"OrgMemberships\\": [\\n {\\n \\"OrgId\\": \\"org_123456789\\",\\n \\"MemberStatus\\": \\"ENABLE\\",\\n \\"RoleId\\": \\"SYSTEM_ROLE_ORG_OWNER\\",\\n \\"RoleCode\\": \\"ORG_MEMBER\\",\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws_123456789\\",\\n \\"MemberStatus\\": \\"ACTIVE\\",\\n \\"RoleId\\": \\"SYSTEM_ROLE_WS_ADMIN\\",\\n \\"RoleCode\\": \\"WS_ADMIN\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"RequestId\\": \\"C0DC05D9-C506-519B-AFF3-2B00165176E4\\"\\n}","type":"json"}]', + ], + 'GetTokenPlanInviteLink' => [ + 'summary' => '获得TokenPlan成员邀请链接', + 'path' => '/tokenplan/invite/link/get', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'False'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'description' => '返回数据', + 'type' => 'object', + 'properties' => [ + 'Token' => ['description' => '生成Token。', 'type' => 'string', 'example' => 'sk-ws-D.****.*******'], + 'ExpireTime' => ['description' => '过期时间(单位:毫秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '1778379206'], + ], + ], + ], + ], + ], + ], + 'title' => '获得TokenPlan成员邀请链接', + 'description' => '该接口只返回生成的token和过期时间,邀请链接的拼接格式为 `https://{host}/accept-invite?token=[token]&orgId=[orgId]`'."\n" + .'* 国内站host为tokenplan-enterprise.bailian.aliyunportal.com'."\n" + .'* 国际站host为tokenplan-enterprise.modelstudio.aliyunportal.com', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"Token\\": \\"sk-ws-D.****.*******\\",\\n \\"ExpireTime\\": 1778379206\\n }\\n}","type":"json"}]', + ], + 'GetTokenPlanOrgInviteConfig' => [ + 'path' => '/tokenplan/invite/config/get', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'true'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'description' => '当前分类统计的数据结果', + 'type' => 'object', + 'properties' => [ + 'OrgId' => ['description' => '组织 ID', 'type' => 'string', 'example' => 'org_123456789'], + 'DefaultRoleId' => ['description' => '默认分配的组织角色 ID'."\n" + ."\n" + .'- SYSTEM_ROLE_ORG_ADMIN'."\n" + .'- SYSTEM_ROLE_ORG_MEMBER', 'type' => 'string', 'example' => 'ORG_MEMBER'], + 'SeatAssignStrategy' => ['description' => '默认的席位分配策略:'."\n" + ."\n" + .'- HIGH_TO_LOW'."\n" + .'- LOW_TO_HIGH '."\n" + .'- NONE', 'type' => 'string', 'example' => 'NONE'], + ], + ], + ], + ], + ], + ], + 'title' => '获取TokenPlan成员邀请配置', + 'summary' => '获取TokenPlan成员邀请配置', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"OrgId\\": \\"org_123456789\\",\\n \\"DefaultRoleId\\": \\"ORG_MEMBER\\",\\n \\"SeatAssignStrategy\\": \\"NONE\\"\\n }\\n}","type":"json"}]', + ], + 'ListApiKeys' => [ + 'summary' => '获取鉴权凭证 API Key 信息列表。', + 'path' => '/modelstudio/apikeys', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询所需使用的 Token,从返回结果中获取。', 'type' => 'string', 'required' => false, 'example' => 'w9Z+S5+TZyw='], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '10', 'example' => '30', 'default' => '10'], + ], + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => ['description' => '按业务空间 ID 进行精确检索。', 'type' => 'string', 'required' => false, 'example' => 'ws-ac3ef438bec22dc5', 'maxLength' => 64], + ], + [ + 'name' => 'apiKeyId', + 'in' => 'query', + 'schema' => ['description' => '按 API Key ID 进行精确检索。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3076140'], + ], + [ + 'name' => 'description', + 'in' => 'query', + 'schema' => ['description' => '按描述进行关键字模糊检索。', 'type' => 'string', 'required' => false, 'example' => 'test', 'maxLength' => 200], + ], + [ + 'name' => 'orderBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序字段。', + 'description' => '排序字段,取值:'."\n" + ."\n" + .'- apiKeyId(默认)'."\n" + ."\n" + .'- gmtCreate', + 'type' => 'string', + 'required' => false, + 'example' => 'gmtCreate', + 'default' => 'apiKeyId', + 'enum' => ['apiKeyId', 'gmtCreate'], + ], + ], + [ + 'name' => 'order', + 'in' => 'query', + 'schema' => [ + 'title' => 'ASC:升序;DESC:降序。', + 'description' => '排序方式,取值:'."\n" + ."\n" + .'- DESC(默认)'."\n" + ."\n" + .'- ASC', + 'type' => 'string', + 'required' => false, + 'example' => 'ASC', + 'default' => 'DESC', + 'enum' => ['DESC', 'ASC'], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'E4C14AE6-E987-5C2F-9230-9960AB48F4F2'], + 'success' => ['description' => '接口调用是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'true'], + 'apiKeys' => [ + 'description' => 'API Key列表。', + 'type' => 'array', + 'items' => [ + 'description' => 'API Key信息。', + 'type' => 'object', + 'properties' => [ + 'apiKeyId' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2965964'], + 'apiKeyValue' => ['description' => 'API Key的值。', 'type' => 'string', 'example' => 'sk-ws-djI.8O7d*****2aICctnid4u4'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1774338222000'], + 'workspaceId' => ['description' => '业务空间ID。', 'type' => 'string', 'example' => 'ws-950f9aca7e76c816'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'test'], + 'createdBy' => ['description' => '创建者。', 'type' => 'string', 'example' => '1378030599924858'], + 'disabled' => ['description' => '是否已禁用。'."\n" + ."\n" + .'- **0**:生效中。'."\n" + .'- **1**:已禁用。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'auth' => [ + 'title' => '权限设置', + 'description' => '权限设置', + 'type' => 'object', + 'properties' => [ + 'type' => ['title' => 'All:全部权限;Custom:自定义权限。', 'description' => 'All:全部权限;Custom:自定义权限。', 'type' => 'string', 'example' => 'Custom'], + 'accessIps' => [ + 'title' => 'IP访问白名单。', + 'description' => 'IP访问白名单。', + 'type' => 'array', + 'items' => ['title' => '支持IPv4、IPv6和网段。', 'description' => '支持IPv4、IPv6和网段。', 'type' => 'string', 'example' => '192.168.1.0/24'], + ], + 'modelAccessScope' => [ + 'title' => '访问模型范围:若配置,则仅能调用已选择的模型。', + 'description' => '访问模型范围。', + 'type' => 'object', + 'properties' => [ + 'allowAllModels' => ['title' => '是否可访问指定业务空间下所有已授予推理权限的模型。', 'description' => '是否允许访问该业务空间下所有已经授予推理权限的模型。', 'type' => 'boolean'], + 'accessibleModels' => [ + 'title' => '可访问的该业务空间下已经授予推理权限的部分官方模型。', + 'description' => '可访问的模型列表。', + 'type' => 'array', + 'items' => ['title' => '模型。', 'description' => '可访问的模型。', 'type' => 'string'], + ], + ], + 'docRequired' => false, + ], + ], + ], + ], + ], + ], + 'nextToken' => ['description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询所需使用的 Token,从返回结果中获取。', 'type' => 'string', 'example' => 'lwytFRtLdNk='], + 'maxResults' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'System.Error.Invoke', 'errorMessage' => 'Internal error.', 'description' => ''], + ], + 403 => [ + ['errorCode' => 'Request.Illegal.Sign', 'errorMessage' => 'Sign is illegal.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"200\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"requestId\\": \\"E4C14AE6-E987-5C2F-9230-9960AB48F4F2\\",\\n \\"success\\": true,\\n \\"apiKeys\\": [\\n {\\n \\"apiKeyId\\": 2965964,\\n \\"apiKeyValue\\": \\"sk-ws-djI.8O7d*****2aICctnid4u4\\",\\n \\"gmtCreate\\": 1774338222000,\\n \\"workspaceId\\": \\"ws-950f9aca7e76c816\\",\\n \\"description\\": \\"test\\",\\n \\"createdBy\\": \\"1378030599924858\\",\\n \\"disabled\\": 0,\\n \\"auth\\": {\\n \\"type\\": \\"Custom\\",\\n \\"accessIps\\": [\\n \\"192.168.1.0/24\\"\\n ],\\n \\"modelAccessScope\\": {\\n \\"allowAllModels\\": true,\\n \\"accessibleModels\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n ],\\n \\"nextToken\\": \\"lwytFRtLdNk=\\",\\n \\"maxResults\\": 10,\\n \\"totalCount\\": 4\\n}","type":"json"}]', + 'title' => '查询API Key列表', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'modelstudio:ListApiKeys', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ListOrganizationMembers' => [ + 'path' => '/tokenplan/organization/members', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '成员名称模糊过滤(匹配 accountName 或 email,忽略大小写)', 'description' => '成员名称模糊过滤(匹配 accountName 或 email,忽略大小写)', 'type' => 'string', 'required' => false, 'example' => '成员名称'], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['title' => '成员状态过滤(如 ACTIVE、FROZEN),null 表示不过滤', 'description' => '成员状态过滤(如 ACTIVE、FROZEN),null 表示不过滤', 'type' => 'string', 'required' => false, 'example' => 'ACTIVE'], + ], + [ + 'name' => 'HasSeat', + 'in' => 'query', + 'schema' => ['title' => '是否已分配席位过滤:', 'description' => '是否已分配席位过滤:', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'PageNum', + 'in' => 'query', + 'schema' => ['title' => '页码,从 1 开始,默认 1', 'description' => '页码,从 1 开始,默认 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '每页条数,默认 20,最大 100', 'description' => '每页条数,默认 20,最大 100', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PageResult', + 'description' => 'PageResult', + 'type' => 'object', + 'properties' => [ + 'PageNo' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'example' => '18'], + 'PageSize' => ['title' => '每页数量', 'description' => '每页数量', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'Total' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'array', + 'items' => [ + 'description' => '操作结果', + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '成员账号 ID', 'description' => '成员账号 ID', 'type' => 'string', 'example' => 'acc_123456789'], + 'AccountName' => ['title' => '成员账号名称', 'description' => '成员账号名称', 'type' => 'string', 'example' => 'test_001'], + 'AccountBizId' => ['title' => '成员业务 ID(来自 UAC MemberDTO.accountBizId)', 'description' => '成员业务 ID', 'type' => 'string', 'example' => '112233'], + 'Email' => ['title' => '成员邮箱', 'description' => '成员邮箱', 'type' => 'string', 'example' => 'test@email.com'], + 'OrgId' => ['title' => '组织 ID', 'description' => '组织 ID', 'type' => 'string', 'example' => 'org_123456789'], + 'Status' => ['title' => '成员状态', 'description' => '成员状态', 'type' => 'string', 'example' => 'ACTIVE'], + 'Roles' => [ + 'title' => '成员角色列表', + 'description' => '成员角色列表', + 'type' => 'array', + 'items' => ['description' => '成员角色', 'type' => 'string', 'example' => 'ORG_MEMBER'], + ], + 'GmtCreate' => ['title' => '加入时间', 'description' => '加入时间', 'type' => 'string', 'example' => '2026-06-10T11:57:42.000+00:00'], + 'SeatId' => ['title' => '席位资源分配 ID(来自 resource_assign_seat.resource_assign_id,未分配则为 null)', 'description' => '席位资源分配 ID', 'type' => 'string', 'example' => 'seat_123456'], + 'SpecType' => ['title' => '席位规格类型(来自 resource_assign_seat.spec_type,未分配则为 null)', 'description' => '席位规格类型'."\n" + .'- standard - 标准席位'."\n" + .'- pro - 高级席位'."\n" + .'- max - 尊享席位', 'type' => 'string', 'example' => 'standard'], + 'ApiKeyId' => ['title' => 'API Key ID(来自 account_api_key.api_key_id,未创建则为 null)', 'description' => 'API Key ID', 'type' => 'string', 'example' => 'key_123456789'], + 'MaskedApiKey' => ['title' => '脱敏 API Key(来自 account_api_key.masked_api_key,未创建则为 null)', 'description' => '脱敏 API Key', 'type' => 'string', 'example' => 'prefix.abc****456'], + ], + ], + ], + ], + ], + ], + ], + 'title' => '获取成员列表', + 'summary' => '查询组织成员列表(含席位信息),支持按名称、状态、是否分配席位过滤,支持分页。', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PageNo\\": 18,\\n \\"PageSize\\": 20,\\n \\"Total\\": 1,\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": [\\n {\\n \\"AccountId\\": \\"acc_123456789\\",\\n \\"AccountName\\": \\"test_001\\",\\n \\"AccountBizId\\": \\"112233\\",\\n \\"Email\\": \\"test@email.com\\",\\n \\"OrgId\\": \\"org_123456789\\",\\n \\"Status\\": \\"ACTIVE\\",\\n \\"Roles\\": [\\n \\"ORG_MEMBER\\"\\n ],\\n \\"GmtCreate\\": \\"2026-06-10T11:57:42.000+00:00\\",\\n \\"SeatId\\": \\"seat_123456\\",\\n \\"SpecType\\": \\"standard\\",\\n \\"ApiKeyId\\": \\"key_123456789\\",\\n \\"MaskedApiKey\\": \\"prefix.abc****456\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListSubscriptionSharedPackages' => [ + 'summary' => '分页查询共享包明细', + 'path' => '/tokenplan/subscription/shared-packages', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'PageNo', + 'in' => 'query', + 'schema' => ['description' => '分页页号。默认值:1 取值范围:正整数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => '分页参数:每页显示条数,默认值 10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + [ + 'name' => 'StatusList', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'description' => '状态筛选列表', + 'type' => 'array', + 'items' => ['description' => '席位状态:'."\n" + ."\n" + .'- CREATING —— 创建中'."\n" + .'- NORMAL —— 有效状态'."\n" + .'- LIMIT ——欠费受限'."\n" + .'- RELEASE —— 到期释放'."\n" + .'- STOP —— 到期停机'."\n" + .'- REFUNDED —— 已退款', 'type' => 'string', 'required' => false, 'example' => 'NORMAL'], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'Items' => [ + 'description' => '数据条目', + 'type' => 'array', + 'items' => [ + 'description' => '数据条目', + 'type' => 'object', + 'properties' => [ + 'InstanceCode' => ['title' => '席位资源分配 ID', 'description' => '席位 instance code', 'type' => 'string', 'example' => 'subs-1234567'], + 'EquityList' => [ + 'description' => '当前生效的权益实例', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'EquityType' => ['description' => '权益类型(如 CREDITS、SPN、资源包等)', 'type' => 'string', 'example' => 'CREDITS'], + 'CycleInstanceId' => ['description' => '权益 code(订阅 code,credits 场景下不需要消费)', 'type' => 'string', 'example' => '123456'], + 'CycleStartTime' => ['description' => '当前周期开始时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1775232000'], + 'CycleEndTime' => ['description' => '当前周期结束时间,毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1756310400'], + 'CycleTotalValue' => ['description' => '当前周期的总额度', 'type' => 'number', 'format' => 'double', 'example' => '100.00000000'], + 'CycleSurplusValue' => ['description' => '当前周期的剩余额度', 'type' => 'number', 'format' => 'double', 'example' => '40.00000000'], + 'CycleVersion' => ['description' => '当前周期的时序版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + 'description' => '', + ], + ], + 'Status' => ['description' => '席位状态:'."\n" + ."\n" + .'- CREATING —— 创建中'."\n" + .'- NORMAL —— 有效状态'."\n" + .'- LIMIT ——欠费受限'."\n" + .'- RELEASE —— 到期释放'."\n" + .'- STOP —— 到期停机'."\n" + .'- REFUNDED —— 已退款', 'type' => 'string', 'example' => 'NORMAL'], + ], + ], + ], + 'Total' => ['description' => '席位的总数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'PageNo' => ['description' => '页码,取值大于0且不超过Integer数据类型的最大值,默认值为1。页码,取值大于 0 且不超过 Integer 数据类型的最大值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'PageSize' => ['description' => '每页条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + ], + ], + ], + ], + ], + ], + 'title' => '分页查询共享包明细', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"Items\\": [\\n {\\n \\"InstanceCode\\": \\"subs-1234567\\",\\n \\"EquityList\\": [\\n {\\n \\"EquityType\\": \\"CREDITS\\",\\n \\"CycleInstanceId\\": \\"123456\\",\\n \\"CycleStartTime\\": 1775232000,\\n \\"CycleEndTime\\": 1756310400,\\n \\"CycleTotalValue\\": 100,\\n \\"CycleSurplusValue\\": 40,\\n \\"CycleVersion\\": 1\\n }\\n ],\\n \\"Status\\": \\"NORMAL\\"\\n }\\n ],\\n \\"Total\\": 100,\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10\\n }\\n}","type":"json"}]', + ], + 'ListWorkspaces' => [ + 'summary' => '获取业务空间列表。', + 'path' => '/modelstudio/workspaces', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询所需使用的 Token,从返回结果中获取。', 'type' => 'string', 'required' => false, 'example' => 'uwCwQ5FFCDo='], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '10', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'workspaceName', + 'in' => 'query', + 'schema' => ['description' => '按业务空间名称进行关键字模糊检索。', 'type' => 'string', 'required' => false, 'example' => 'ws_test', 'maxLength' => 30], + ], + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => ['title' => '业务空间 ID。', 'type' => 'string', 'example' => 'ws-32klhjk2312334jkh', 'maxLength' => 128], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'workspaces' => [ + 'description' => '业务空间列表。', + 'type' => 'array', + 'items' => [ + 'description' => '业务空间。', + 'type' => 'object', + 'properties' => [ + 'workspaceName' => ['description' => '业务空间名称。', 'type' => 'string', 'example' => 'default'], + 'workspaceId' => ['description' => '业务空间ID。', 'type' => 'string', 'example' => 'ws-0759e7b7ea7f585b'], + 'region' => ['description' => '地域 ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'apiHost' => ['description' => 'API Host。', 'type' => 'string', 'example' => 'llm-34o9ts1dai60z5sf.cn-beijing.maas.aliyuncs.com'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1742785623772'], + 'serviceSite' => ['description' => '服务部署范围,详情请 [查看文档](https://www.alibabacloud.com/help/zh/model-studio/regions/)。', 'type' => 'string', 'example' => 'global'], + ], + ], + ], + 'maxResults' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'nextToken' => ['description' => '用来返回更多结果。第一次查询不需要提供这个参数,后续查询所需使用的 Token,从返回结果中获取。', 'type' => 'string', 'example' => 'TbB1IsZUSR4iE'], + 'totalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '149'], + 'httpStatusCode' => ['description' => 'HTTP 状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '75DD3695-77E0-5784-B8A6-C213A01781FE'], + 'success' => ['description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询业务空间列表', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'modelstudio:ListWorkspaces', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ModelStudio', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/*'], + ['validationType' => 'conditional', 'product' => 'ModelStudio', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/{#workspaceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"code\\": \\"200\\",\\n \\"workspaces\\": [\\n {\\n \\"workspaceName\\": \\"default\\",\\n \\"workspaceId\\": \\"ws-0759e7b7ea7f585b\\",\\n \\"region\\": \\"cn-beijing\\",\\n \\"apiHost\\": \\"llm-34o9ts1dai60z5sf.cn-beijing.maas.aliyuncs.com\\",\\n \\"gmtCreate\\": 1742785623772,\\n \\"serviceSite\\": \\"global\\"\\n }\\n ],\\n \\"maxResults\\": 100,\\n \\"nextToken\\": \\"TbB1IsZUSR4iE\\",\\n \\"totalCount\\": 149,\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"requestId\\": \\"75DD3695-77E0-5784-B8A6-C213A01781FE\\",\\n \\"success\\": true\\n}","type":"json"}]', + ], + 'RemoveOrganizationMember' => [ + 'summary' => '移除组织成员,移除前检查成员是否持有席位,持有席位则拒绝移除。', + 'path' => '/tokenplan/organization/member-removals', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'AccountIds', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'title' => '被移除的成员账号 ID 列表', + 'description' => '被移除的成员账号 ID 列表', + 'type' => 'array', + 'items' => ['description' => '成员账号ID列表。', 'type' => 'string', 'required' => false, 'example' => 'acc_123456789'], + 'required' => false, + ], + ], + [ + 'name' => 'Locale', + 'in' => 'query', + 'schema' => ['description' => '多语言信息 zh-CN/en-US'."\n", 'type' => 'string', 'required' => false, 'example' => 'zh-CN'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '错误码(成功时为空)', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '错误信息(成功时为空)', 'type' => 'string', 'example' => 'Success.'], + ], + ], + ], + ], + 'title' => '移除成员', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Success.\\"\\n}","type":"json"}]', + ], + 'ResetApiKey' => [ + 'path' => '/modelstudio/apikeys/{apiKeyId}/reset', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'apiKeyId', + 'in' => 'path', + 'schema' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2984618'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '36045E0A-551D-592D-B1BC-4C56596CE59E'], + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'ok'], + 'httpStatusCode' => ['description' => 'HTTP状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'success' => ['description' => '请求成功的标识。'."\n" + .'- true:成功。'."\n" + .'- false:失败。', 'type' => 'boolean', 'example' => 'true'], + 'apiKey' => [ + 'description' => 'API Key信息', + 'type' => 'object', + 'properties' => [ + 'apiKeyValue' => ['description' => 'API Key的值。', 'type' => 'string', 'example' => 'sk-ws-djI.8O7dkfkW2aICctnid4u4'], + 'apiKeyId' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2965964'], + 'workspaceId' => ['description' => '业务空间ID。', 'type' => 'string', 'example' => 'ws-b2d30f148c236908'], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ResetFailed.ApiKeyDisabled', 'errorMessage' => 'You cannot reset a disabled API Key.', 'description' => '不允许对禁用状态的API Key进行重置操作。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '重置API Key', + 'summary' => '重置API Key', + 'description' => '仅API Key变化,API Key ID不变。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:ResetApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"36045E0A-551D-592D-B1BC-4C56596CE59E\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"ok\\",\\n \\"httpStatusCode\\": 200,\\n \\"success\\": true,\\n \\"apiKey\\": {\\n \\"apiKeyValue\\": \\"sk-ws-djI.8O7dkfkW2aICctnid4u4\\",\\n \\"apiKeyId\\": 2965964,\\n \\"workspaceId\\": \\"ws-b2d30f148c236908\\"\\n }\\n}","type":"json"}]', + ], + 'RevokeTokenPlanInviteLink' => [ + 'summary' => '撤销TokenPlan成员邀请链接', + 'path' => '/tokenplan/invite/link/revoke', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'False'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + ], + ], + ], + ], + 'title' => '撤销TokenPlan成员邀请链接', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\"\\n}","type":"json"}]', + ], + 'RotateTokenPlanKey' => [ + 'summary' => '重置 UAC API Key', + 'path' => '/tokenplan/api-key-rotations', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'ApiKeyId', + 'in' => 'query', + 'schema' => ['title' => 'API Key ID', 'description' => 'API Key ID', 'type' => 'string', 'required' => true, 'example' => 'ak_123456'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Success.'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'ApiKeyId' => ['title' => 'API Key ID(系统生成)', 'description' => 'API Key ID(系统生成)', 'type' => 'string', 'example' => 'ak_123456'], + 'SourceId' => ['title' => 'BaiLian 返回的 source_id', 'description' => 'BaiLian 返回的 source_id', 'type' => 'string', 'example' => '123456'], + 'PlainApiKey' => ['title' => 'BaiLian 返回的新明文 API Key(只在重置时返回一次)', 'description' => 'BaiLian 返回的新明文 API Key(只在重置时返回一次)', 'type' => 'string', 'example' => 'sk-ws.abc123456'], + 'MaskedApiKey' => ['title' => 'BaiLian 返回的新 masked_api_key(如 sk_***cdef)', 'description' => 'BaiLian 返回的新 masked_api_key(如 sk_***cdef)', 'type' => 'string', 'example' => 'sk_***6'], + 'ResetAt' => ['title' => '重置时间', 'description' => '重置时间', 'type' => 'string', 'example' => '2025-07-18T03:19:17Z'], + ], + ], + ], + ], + ], + ], + 'title' => '重置API key', + 'description' => '仅API Key变化,API Key ID不变。', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Success.\\",\\n \\"Data\\": {\\n \\"ApiKeyId\\": \\"ak_123456\\",\\n \\"SourceId\\": \\"123456\\",\\n \\"PlainApiKey\\": \\"sk-ws.abc123456\\",\\n \\"MaskedApiKey\\": \\"sk_***6\\",\\n \\"ResetAt\\": \\"2025-07-18T03:19:17Z\\"\\n }\\n}","type":"json"}]', + ], + 'SetTokenPlanOrgInviteConfig' => [ + 'path' => '/tokenplan/invite/config/set', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'DefaultRoleId', + 'in' => 'query', + 'schema' => ['description' => '默认分配的组织角色 ID'."\n" + ."\n" + .'- SYSTEM_ROLE_ORG_ADMIN'."\n" + .'- SYSTEM_ROLE_ORG_MEMBER', 'type' => 'string', 'required' => true, 'example' => 'ORG_MEMBER'], + ], + [ + 'name' => 'SeatAssignStrategy', + 'in' => 'query', + 'schema' => ['description' => '默认的席位分配策略'."\n" + ."\n" + .'- HIGH_TO_LOW'."\n" + .'- LOW_TO_HIGH'."\n" + .'- NONE', 'type' => 'string', 'required' => true, 'example' => 'NONE'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'OK'], + ], + ], + ], + ], + 'title' => '设置TokenPlan成员邀请配置', + 'summary' => '设置TokenPlan成员邀请配置', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]', + ], + 'UpdateApiKey' => [ + 'summary' => '编辑鉴权凭证 API Key 信息。', + 'path' => '/modelstudio/apikeys/{apiKeyId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'apiKeyId', + 'in' => 'path', + 'schema' => ['description' => 'API Key ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '3268483'], + ], + [ + 'name' => 'description', + 'in' => 'query', + 'schema' => ['description' => '描述。', 'type' => 'string', 'required' => false, 'example' => 'update description.', 'maxLength' => 200], + ], + [ + 'name' => 'auth', + 'in' => 'formData', + 'style' => 'flat', + 'schema' => [ + 'title' => 'API Key权限设置。', + 'description' => 'API Key权限设置。'."\n" + ."\n" + .'> 每次UpdateApiKey操作请不填写或完整填写该部分,否则可能会造成配置与您的预期效果不一致。', + 'type' => 'object', + 'properties' => [ + 'type' => [ + 'title' => 'All:全部权限;Custom:自定义权限。', + 'description' => 'All:全部权限;Custom:自定义权限。', + 'type' => 'string', + 'required' => false, + 'example' => 'Custom', + 'enum' => ['All', 'Custom'], + ], + 'accessIps' => [ + 'title' => 'IP访问白名单。', + 'description' => 'IP访问白名单。'."\n" + ."\n" + .'> '."\n" + .'> - 当自定义权限范围时,若未填写IP访问白名单,服务端会默认设置为:IPv4 (0.0.0.0/0)和 IPv6 (::/0),代表全部放通。', + 'type' => 'array', + 'items' => ['title' => '默认设置为:IPv4 (0.0.0.0/0)和 IPv6 (::/0)全部放通。', 'description' => 'IPv4、IPv6和网段。', 'type' => 'string', 'required' => false, 'example' => '192.168.1.0/24'], + 'required' => false, + 'docRequired' => false, + ], + 'modelAccessScope' => [ + 'title' => '访问模型范围:若配置,则仅能调用已选择的模型。', + 'description' => '访问模型范围。', + 'type' => 'object', + 'properties' => [ + 'allowAllModels' => ['title' => '是否可访问指定业务空间下所有已授予推理权限的模型。', 'description' => '是否允许访问该业务空间下所有已经授予推理权限的模型。取值范围:'."\n" + ."\n" + .'- true'."\n" + .'- false', 'type' => 'boolean', 'required' => false], + 'accessibleModels' => [ + 'title' => '可访问的该业务空间下已经授予推理权限的部分官方模型。', + 'description' => '可访问的模型列表。'."\n" + .'>仅在allowAllModels为false时,填写内容才会生效。>', + 'type' => 'array', + 'items' => ['title' => '模型。', 'description' => '可访问的模型。', 'type' => 'string', 'required' => false], + 'required' => false, + ], + ], + 'required' => false, + 'docRequired' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '36045E0A-551D-592D-B1BC-4C56596CE59E'], + 'code' => ['description' => '响应状态码。', 'type' => 'string', 'example' => '200'], + 'message' => ['description' => '响应信息。', 'type' => 'string', 'example' => 'success'], + 'httpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'success' => ['description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"36045E0A-551D-592D-B1BC-4C56596CE59E\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"success\\",\\n \\"httpStatusCode\\": 200,\\n \\"success\\": true\\n}","type":"json"}]', + 'title' => '编辑API Key', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:UpdateApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'UpdateOrganization' => [ + 'path' => '/tokenplan/organization', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '组织名称', 'description' => '组织名称', 'type' => 'string', 'required' => false, 'example' => '新的组织名称'], + ], + [ + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['title' => '组织描述', 'description' => '组织描述', 'type' => 'string', 'required' => false, 'example' => '新的组织描述'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '调用接口是否成功:'."\n" + ."\n" + .'- true:成功'."\n" + .'- false:失败', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '响应状态码。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '响应信息。', 'type' => 'string', 'example' => 'Successful'], + 'Data' => [ + 'title' => '业务数据', + 'description' => '业务数据', + 'type' => 'object', + 'properties' => [ + 'OrgId' => ['title' => '组织ID', 'description' => '组织ID', 'type' => 'string', 'example' => 'org_123456789'], + 'NamespaceId' => ['title' => '产品命名空间ID', 'description' => '产品命名空间ID', 'type' => 'string', 'example' => 'namespace-1'], + 'Name' => ['title' => '组织名称', 'description' => '组织名称', 'type' => 'string', 'example' => '组织名称'], + 'Description' => ['title' => '组织描述', 'description' => '组织描述', 'type' => 'string', 'example' => '组织描述'], + 'Status' => ['title' => '状态(ACTIVE/FROZEN)', 'description' => '状态'."\n" + .'- ACTIVE'."\n" + .'- FROZEN', 'type' => 'string', 'example' => 'ACTIVE'], + 'OwnerId' => ['title' => '组织 Owner 的 UAC 账号 ID', 'description' => '组织 Owner 的 UAC 账号 ID', 'type' => 'string', 'example' => 'acc_123456789'], + 'OwnerBizAccountId' => ['title' => '组织 Owner 的业务账号标识(ALIYUN 类型为 aliyunUid,SSO 类型为 userIdentifier)', 'description' => '组织 Owner 的业务账号标识(ALIYUN 类型为 aliyunUid,SSO 类型为 userIdentifier)', 'type' => 'string', 'example' => '1269388320468566'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-12-11T02:19:27Z'], + 'GmtModified' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-07-08 13:59:11'], + ], + ], + 'HttpStatusCode' => ['title' => 'HTTP 状态码', 'description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => 'None'], + 'RequestId' => ['title' => '请求唯一标识', 'description' => '请求唯一标识', 'type' => 'string', 'example' => 'EC0B0D42-A88C-55F5-AF48-498B8207F6BC'], + ], + ], + ], + ], + 'title' => '修改组织信息', + 'summary' => '修改组织信息', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"Successful\\",\\n \\"Data\\": {\\n \\"OrgId\\": \\"org_123456789\\",\\n \\"NamespaceId\\": \\"namespace-1\\",\\n \\"Name\\": \\"组织名称\\",\\n \\"Description\\": \\"组织描述\\",\\n \\"Status\\": \\"ACTIVE\\",\\n \\"OwnerId\\": \\"acc_123456789\\",\\n \\"OwnerBizAccountId\\": \\"1269388320468566\\",\\n \\"GmtCreate\\": \\"2025-12-11T02:19:27Z\\",\\n \\"GmtModified\\": \\"2025-07-08 13:59:11\\"\\n },\\n \\"HttpStatusCode\\": 0,\\n \\"RequestId\\": \\"EC0B0D42-A88C-55F5-AF48-498B8207F6BC\\"\\n}","type":"json"}]', + ], + 'UpdateOrganizationMember' => [ + 'summary' => '修改组织成员角色', + 'path' => '/tokenplan/organization/members/update', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'AccountIds', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'title' => '账号ID列表(批量操作)', + 'description' => '账号ID列表(批量操作)', + 'type' => 'array', + 'items' => ['description' => '成员账号ID', 'type' => 'string', 'required' => false, 'example' => 'acc_123456789'], + 'required' => false, + ], + ], + [ + 'name' => 'NewRoleCode', + 'in' => 'query', + 'schema' => ['title' => '新角色Code(批量操作时所有账号统一变更为此角色)', 'description' => '新角色Code(批量操作时所有账号统一变更为此角色)', 'type' => 'string', 'required' => true, 'example' => 'ORG_MEMBER'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Result', + 'description' => 'Result', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean', 'example' => 'True'], + 'Code' => ['title' => '错误码(成功时为空)', 'description' => '错误码(成功时为空)', 'type' => 'string', 'example' => '200'], + 'Message' => ['title' => '错误信息(成功时为空)', 'description' => '错误信息(成功时为空)', 'type' => 'string', 'example' => 'Successful'], + 'HttpStatusCode' => ['title' => 'HTTP 状态码', 'description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => 'None'], + 'RequestId' => ['title' => '请求唯一标识', 'description' => '请求唯一标识', 'type' => 'string', 'example' => '9531C132-DF05-5C7F-8BB0-96EA8C4D00D7'], + ], + ], + ], + ], + 'title' => '修改成员角色', + 'changeSet' => [], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Successful\\",\\n \\"HttpStatusCode\\": 0,\\n \\"RequestId\\": \\"9531C132-DF05-5C7F-8BB0-96EA8C4D00D7\\"\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'modelstudio.cn-beijing.aliyuncs.com', 'endpoint' => 'modelstudio.cn-beijing.aliyuncs.com', 'vpc' => 'modelstudio-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'modelstudio.cn-hongkong.aliyuncs.com', 'endpoint' => 'modelstudio.cn-hongkong.aliyuncs.com', 'vpc' => 'modelstudio-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'modelstudio.ap-southeast-1.aliyuncs.com', 'endpoint' => 'modelstudio.ap-southeast-1.aliyuncs.com', 'vpc' => 'modelstudio-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'modelstudio.us-east-1.aliyuncs.com', 'endpoint' => 'modelstudio.us-east-1.aliyuncs.com', 'vpc' => 'modelstudio-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'modelstudio.eu-central-1.aliyuncs.com', 'endpoint' => 'modelstudio.eu-central-1.aliyuncs.com', 'vpc' => 'modelstudio-vpc.eu-central-1.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => 'ApiKey.Already.Disabled', 'message' => 'API Key is already disabled.', 'http_code' => 400, 'description' => 'API Key已经是禁用状态了。'], + ['code' => 'ApiKey.Already.Enabled', 'message' => 'ApiKey is already enabled.', 'http_code' => 400, 'description' => 'API Key已经是生效中状态了。'], + ['code' => 'ResetFailed.ApiKeyDisabled', 'message' => 'You cannot reset a disabled API Key.', 'http_code' => 400, 'description' => '不允许对禁用状态的API Key进行重置操作。'], + ['code' => 'ResourceNotFound.Workspace', 'message' => 'Workspace not existed.', 'http_code' => 404, 'description' => '业务空间不存在。'], + ], + 'changeSet' => [], + 'ram' => [ + 'productCode' => 'ModelStudio', + 'productName' => '大模型服务平台百炼', + 'ramCodes' => ['modelstudio'], + 'ramLevel' => '资源级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'GetSubscriptionStats', + 'description' => '成员管理 - 成员数量和席位数量情况展示', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetSubscriptionStats', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetTokenPlanAccountDetail', + 'description' => '获取账号下的组织信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetTokenPlanAccountDetail', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'EnableApiKey', + 'description' => '启用API key', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:EnableApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'AddOrganizationMember', + 'description' => '创建成员', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:AddOrganizationMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateOrganization', + 'description' => '修改组织信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:UpdateOrganization', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateOrganizationMember', + 'description' => '修改成员角色', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:UpdateOrganizationMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RemoveOrganizationMember', + 'description' => '移除成员', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:RemoveOrganizationMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'BatchAssignSeats', + 'description' => '分配席位', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:BatchAssignSeats', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetOrganizationMemberSeatStats', + 'description' => '成员管理 - 成员数量和席位数量情况展示。', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetOrganizationMemberSeatStats', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'BatchRevokeSeats', + 'description' => '回收席位', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:BatchRevokeSeats', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListOrganizationMembers', + 'description' => '获取成员列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'modelstudio:ListOrganizationMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateTokenPlanInviteLink', + 'description' => '创建TokenPlan成员邀请链接', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:CreateTokenPlanInviteLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateApiKey', + 'description' => '编辑API Key', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:UpdateApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetOrganization', + 'description' => '获取指定组织的信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetOrganization', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetSubscriptionSeatDetails', + 'description' => '订阅明细-座席列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetSubscriptionSeatDetails', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetApiKey', + 'description' => '查询指定的API Key', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetTokenPlanInviteLink', + 'description' => '获得TokenPlan成员邀请链接', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetTokenPlanInviteLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RotateTokenPlanKey', + 'description' => '重置API key', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:RotateTokenPlanKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListApiKeys', + 'description' => '查询API Key列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'modelstudio:ListApiKeys', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'SetTokenPlanOrgInviteConfig', + 'description' => '设置TokenPlan成员邀请配置', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:SetTokenPlanOrgInviteConfig', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateWorkspace', + 'description' => '新增业务空间', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:CreateWorkspace', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/*'], + ], + ], + ], + [ + 'apiName' => 'CreateTokenPlanKey', + 'description' => '生成API Key', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:CreateTokenPlanKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetTokenPlanOrgInviteConfig', + 'description' => '获取TokenPlan成员邀请配置', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'modelstudio:GetTokenPlanOrgInviteConfig', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateApiKey', + 'description' => '创建API Key', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'modelstudio:CreateApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListSubscriptionSharedPackages', + 'description' => '分页查询共享包明细', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'modelstudio:ListSubscriptionSharedPackages', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteApiKey', + 'description' => '删除API Key', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'modelstudio:DeleteApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RevokeTokenPlanInviteLink', + 'description' => '撤销TokenPlan成员邀请链接', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:RevokeTokenPlanInviteLink', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DisableApiKey', + 'description' => '禁用API Key', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:DisableApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteWorkspace', + 'description' => '删除业务空间', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'modelstudio:DeleteWorkspace', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/{#workspaceId}'], + ], + ], + ], + [ + 'apiName' => 'ListWorkspaces', + 'description' => '查询业务空间列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'modelstudio:ListWorkspaces', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ModelStudio', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/*'], + ['validationType' => 'conditional', 'product' => 'ModelStudio', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/{#workspaceId}'], + ], + ], + ], + [ + 'apiName' => 'ResetApiKey', + 'description' => '重置API Key', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'modelstudio:ResetApiKey', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ModelStudio', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/*'], + ['validationType' => 'always', 'resourceType' => 'Workspace', 'arn' => 'acs:modelstudio:{#regionId}:{#accountId}:workspace/{#workspaceId}'], + ], + ], +]; -- cgit v1.2.3