云服务器内容精选

  • 修订记录 发布日期 修订记录 2024-04-24 第十七次正式发布。 删除如下章节: 计费管理及其子章节 退订服务及其子章节 2024-04-19 第十六次正式发布。 修改如下章节: 创建连接器时,验证方式该如何选择? 如何进行连接器执行动作的测试? 连接器支持哪些身份验证类型? 如何创建并使用函数? 2024-03-11 第十五次正式发布。 修改如下章节: 如何创建并使用函数? 什么是连接,怎样创建连接? 如何快速构建卡片? 2024-01-31 第十四次正式发布。 优化如何快速构建卡片?章节。 2023-11-16 第十三次正式发布。 优化“为什么没有使用集成工作台,却产生了费用?”章节。 2023-08-18 第十二次正式发布。 优化什么是连接,怎样创建连接?章节。 2023-08-08 第十一次正式发布。 优化如何创建并使用函数?章节。 2023-05-11 第十次正式发布: 新增如下章节: 应用模型 什么是信息架构? 模型目录能干什么? 模型采集支持采集的数据源类型有哪些? 为什么发布业务模型后在模型地图中检索不到对应资产? 为什么采集到的技术模型在模型地图中检索不到? 在数据源内容更新时,如何在应用模型中刷新对应数据? 为什么在创建数据源时测试连接会失败? 2023-04-27 第九次正式发布。 新增如下章节: 包年/包月和按需计费模式有什么区别? 包年/包月和按需计费模式是否支持互相切换? 为什么没有使用集成工作台,却产生了费用? 优化如下章节: 能否共享创建的流? 2023-04-07 第八次正式发布。 新增如下章节: 业务可视化 业务可视化支持哪些浏览器? 什么是卡片? 如何快速构建卡片? 如何快速找到自己想要的卡片模板? 构建好的卡片被误删了怎么办? 2023-3-31 第七次正式发布。 优化如下章节: 能否共享创建的流? 2023-01-18 第六次正式发布。 新增如下章节: 如何在流中自助定位问题 如何创建并使用函数 2022-12-14 第五次正式发布。 新增“退订服务”章节。 2022-11-30 第四次正式发布。 新增“计费管理”章节。 优化如下章节: 能否共享创建的流 什么是连接,怎样创建连接 如何进行连接器执行动作的测试 企业管理员与系统集成商,拥有的权限有什么不同 2022-11-01 第三次正式发布。 优化如下章节: 什么是连接,怎样创建连接 2022-09-29 第二次正式发布。 新增如下章节: 函数 API生命周期 Astro轻应用 2022-04-30 第一次正式发布。
  • 请求示例 PUT https://{endpoint}/v3/{project_id}/abm/instances/{instance_id}/metadata3/entities/{entity_urn} { "package_id": "Metamodel3", "entity_name": "主题域02", "entity_type": "Metamodel3-SubjectArea", "entity_attributes": [ { "attribute_id": "Metamodel3-SubjectArea-NAME", "attribute_value": "" }, { "attribute_id": "Metamodel3-SubjectArea-PermissionCode", "attribute_value": "" }, { "attribute_id": "Metamodel3-SubjectArea-OrderNumber", "attribute_value": "" }, { "attribute_id": "entity_name", "attribute_value": "主题域02" } ], "signatures": [ { "signature_name": "测试", "signature_type": "Metamodel3-descriptionInfo", "signature_attributes": [ { "attribute_id": "Metamodel3-descriptionInfo-NAME", "attribute_value": "测试" }, { "attribute_id": "Metamodel3-descriptionInfo-description", "attribute_value": "" }, { "attribute_id": "Metamodel3-descriptionInfo-nameEn", "attribute_value": "" }, { "attribute_id": "Metamodel3-descriptionInfo-nameCn", "attribute_value": "" }, { "attribute_id": "Metamodel3-descriptionInfo-dataAssetNumber", "attribute_value": "" } ] }, { "signature_name": "", "signature_type": "Metamodel3-maintenanceInfo", "signature_attributes": [ { "attribute_id": "Metamodel3-maintenanceInfo-NAME", "attribute_value": "" }, { "attribute_id": "Metamodel3-maintenanceInfo-createdBy", "attribute_value": "" }, { "attribute_id": "Metamodel3-maintenanceInfo-createTime", "attribute_value": "" }, { "attribute_id": "Metamodel3-maintenanceInfo-updatedBy", "attribute_value": "" }, { "attribute_id": "Metamodel3-maintenanceInfo-updateTime", "attribute_value": "" }, { "attribute_id": "Metamodel3-maintenanceInfo-creatorAccount", "attribute_value": "" }, { "attribute_id": "Metamodel3-maintenanceInfo-updaterAccount", "attribute_value": "" } ] } ] }
  • 响应参数 状态码: 200 表5 响应Body参数 参数 参数类型 描述 package_id String 模型包ID。 entity_urn String 实体urn。 entity_name String 实体名称。 entity_type String 实体类别。 entity_attributes Array of 表7 objects 实体属性。 signatures Array of 表6 objects 特征。 表6 MetadataEntitySignatureResp 参数 参数类型 描述 signature_name String 特征名称。 signature_type String 特征类型。 signature_attributes Array of 表7 objects 特征属性。 表7 MetadataAttributeResp 参数 参数类型 描述 attribute_id String 属性ID。 attribute_value String 属性值。 attribute_code String 属性编码。 attribute_name String 属性名称。 attribute_name_en String 属性英文名称。 状态码: 400 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误描述。 状态码: 500 表9 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误描述。
  • 响应示例 状态码: 200 successful operation { "entity_type": "Metamodel3-SubjectArea", "entity_attributes": [ { "attribute_id": "Metamodel3-SubjectArea-NAME", "attribute_name_en": "NAME", "attribute_name": "名称", "attribute_value": "", "attribute_code": "NAME" }, { "attribute_id": "Metamodel3-SubjectArea-PermissionCode", "attribute_name_en": "PermissionCode", "attribute_name": "权限编码", "attribute_value": "", "attribute_code": "PermissionCode" }, { "attribute_id": "Metamodel3-SubjectArea-OrderNumber", "attribute_name_en": "OrderNumber", "attribute_name": "顺序值", "attribute_value": "", "attribute_code": "OrderNumber" }, { "attribute_id": "entity_name", "attribute_name_en": null, "attribute_name": null, "attribute_value": "主题域02", "attribute_code": null } ], "entity_urn": "urn:abm:Metamodel3-SubjectArea:e0ee33d38c01167db2c63695f20929", "entity_name": "主题域02", "package_id": "Metamodel3", "signatures": [ { "signature_attributes": [ { "attribute_id": "Metamodel3-descriptionInfo-NAME", "attribute_name_en": "NAME", "attribute_name": "名称", "attribute_value": "测试", "attribute_code": "NAME" }, { "attribute_id": "Metamodel3-descriptionInfo-description", "attribute_name_en": "Description", "attribute_name": "描述内容", "attribute_value": "", "attribute_code": "description" }, { "attribute_id": "Metamodel3-descriptionInfo-nameEn", "attribute_name_en": "NameEn", "attribute_name": "英文名", "attribute_value": "", "attribute_code": "nameEn" }, { "attribute_id": "Metamodel3-descriptionInfo-nameCn", "attribute_name_en": "NameCn", "attribute_name": "中文名", "attribute_value": "", "attribute_code": "nameCn" }, { "attribute_id": "Metamodel3-descriptionInfo-dataAssetNumber", "attribute_name_en": "DataAssetNumber", "attribute_name": "资产编码", "attribute_value": "", "attribute_code": "dataAssetNumber" } ], "signature_name": "测试", "version": "0", "signature_type": "Metamodel3-descriptionInfo" }, { "signature_attributes": [ { "attribute_id": "Metamodel3-maintenanceInfo-NAME", "attribute_name_en": "NAME", "attribute_name": "名称", "attribute_value": "", "attribute_code": "NAME" }, { "attribute_id": "Metamodel3-maintenanceInfo-createdBy", "attribute_name_en": "CreatedBy", "attribute_name": "创建人", "attribute_value": "", "attribute_code": "createdBy" }, { "attribute_id": "Metamodel3-maintenanceInfo-createTime", "attribute_name_en": "CreateTime", "attribute_name": "创建时间", "attribute_value": "", "attribute_code": "createTime" }, { "attribute_id": "Metamodel3-maintenanceInfo-updatedBy", "attribute_name_en": "UpdatedBy", "attribute_name": "修改人", "attribute_value": "", "attribute_code": "updatedBy" }, { "attribute_id": "Metamodel3-maintenanceInfo-updateTime", "attribute_name_en": "UpdateTime", "attribute_name": "修改时间", "attribute_value": "", "attribute_code": "updateTime" }, { "attribute_id": "Metamodel3-maintenanceInfo-creatorAccount", "attribute_name_en": "CreatorAccount", "attribute_name": "创建账号", "attribute_value": "", "attribute_code": "creatorAccount" }, { "attribute_id": "Metamodel3-maintenanceInfo-updaterAccount", "attribute_name_en": "UpdaterAccount", "attribute_name": "修改账号", "attribute_value": "", "attribute_code": "updaterAccount" } ], "signature_name": "", "version": "0", "signature_type": "Metamodel3-maintenanceInfo" } ] }
  • 请求参数 表2 请求Body参数 参数 是否必选 参数类型 描述 package_id 否 String 模型包ID。 entity_name 否 String 实体名称。 entity_type 否 String 实体类型。 entity_attributes 否 Array of 表4 objects 实体属性。 signatures 否 Array of 表3 objects 特征。 表3 MetadataSignature 参数 是否必选 参数类型 描述 signature_type 否 String 特征类型。 signature_name 否 String 特征名称。 signature_attributes 否 Array of 表4 objects 特征属性。 表4 MetadataAttributeRequest 参数 是否必选 参数类型 描述 attribute_id 否 String 属性ID。 attribute_value 否 String 属性值。
  • URI PUT /v3/{project_id}/abm/instances/{instance_id}/metadata3/entities/{entity_urn} 表1 路径参数 参数 是否必选 参数类型 描述 entity_urn 是 String 实例urn。 project_id 是 String 项目ID,获取方法请参考获取项目ID。 instance_id 是 String 实例的ID。 最小长度:1 最大长度:64
  • 操作步骤 提交一个流并查看响应信息。 运行流。 接口相关信息 URI格式:POST /v1/{project_id}/flows/{flow_id}/run 参数说明请参见提交运行流。 请求示例 POST http://{endpoint}/v1/f00ca7a36e************6d6c5f8da8/flows/cfdcacae-a44f-4827-8ad9-db47ad2a8b41/run { "run_mode": "manual", "input": {}, "trigger_timing": "editFlow" } {endpoint}为“mssi.cn-north-4.myhuaweicloud.com”。 响应示例 { "running_id": "d96ba061-3caf-49cb-8950-4dac97a8f082", "flow_id": "cfdcacae-a44f-4827-8ad9-db47ad2a8b41", "success": true, "flow_name": "遍历集合元素测试", "message": "" } 从上述响应数据中,记录流运行的running_id。 查看流运行记录。 查询流某次运行记录。 接口相关信息 URI格式:GET /v2/{project_id}/flows/{flow_id}/running-history/{running_id} 参数说明请参见查询单个流运行历史记录。 请求示例 GET http://{endpoint}/v2/f00ca7a36e***********6d6c5f8da8/flows/cfdcacae-a44f-4827-8ad9-db47ad2a8b41/running-history/d96ba061-3caf-49cb-8950-4dac97a8f082 {endpoint}为“mssi.cn-north-4.myhuaweicloud.com”。 响应示例 { "id":"d96ba061-3caf-49cb-8950-4dac97a8f082", "flow_id":"cfdcacae-a44f-4827-8ad9-db47ad2a8b41", "flow_name":"遍历集合元素测试", "run_model":"manual", "status":"success", "icon":"https://connector-icon.obs.cn-north-7.ulanqab.huawei.com/icon/c9710579264845c6a5339fd738e66fd6/155e6930bdb24d9d95b5d3c636e133eb.png", "start_time":1655881122470, "end_time":1655881126839, "exec_time":4369, "message":null, "steps":[ { "stepId":"05778538-83a6-467b-bb92-738d9049bb3c", "actionName":"手动触发器触发事件", "actionType":null, "call":{ "connectorRef":"ManualTrigger", "triggerRef":{ "refName":"手动触发器触发事件", "refId":"ManualTrigger", "type":"instant", "authentication":{ "connectionId":null, "schema":null }, "input":{ "body":{ } }, "config":null, "customFunctionMap":null }, "actionRef":null, "connectorVersion":"1" }, "transmit":[ "bc744b98-007f-496e-bd10-ed460548f7de" ], "icon":"https://connector-icon.obs.cn-north-7.ulanqab.huawei.com/icon/c9710579264845c6a5339fd738e66fd6/155e6930bdb24d9d95b5d3c636e133eb.png", "name":"手动触发流", "lastRunningStatus":"success", "cost":354 } ] }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 acknowledged Boolean true 执行成功/false 执行失败。 msg String 操作结果信息。 result 表4 object 返回结果体。 表4 ResultResp 参数 参数类型 描述 msg String 提示信息。 success Array of strings 删除成功的urn列表。 failure Array of strings 删除失败的urn列表。 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误描述。 状态码: 500 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码。 error_msg String 错误描述。
  • 请求示例 POST https://{endpoint}/v3/{project_id}/abm/instances/{instance_id}/metadata3/entities/delete { "entity_urns": [ "urn:abm:Metamodel3-SubjectArea:1c13a4a68c01c6d82e4ef95e5fac8c", "urn:abm:Metamodel3-SubjectArea:b2570da68c011fbf7bf8e784e9cd2c" ] }
  • 响应示例 状态码: 200 successful operation { "msg": "", "result": { "msg": "", "success": [ "urn:abm:Metamodel3-SubjectArea:1c13a4a68c01c6d82e4ef95e5fac8c", "urn:abm:Metamodel3-SubjectArea:b2570da68c011fbf7bf8e784e9cd2c" ], "failure": [] }, "acknowledged": true }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 success Boolean 响应是否成功,默认为true。 状态码: 403 表3 响应Body参数 参数 参数类型 描述 error_code String 错误码。 最小长度:8 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表4 响应Body参数 参数 参数类型 描述 error_code String 错误码。 最小长度:8 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • 响应消息体 响应消息体通常以结构化格式返回,与响应消息头中Content-type对应,传递除响应消息头之外的内容。 对于获取用户Token接口,返回如下消息体。为篇幅起见,这里只展示部分内容。 { "token": { "expires_at": "2019-02-13T06:52:13.855000Z", "methods": [ "password" ], "catalog": [ { "endpoints": [ { "region_id": "cn-north-1", ...... 当接口调用出错时,会返回错误码及错误信息说明,错误响应的Body体格式如下所示。 { "error_msg": "The format of message is error", "error_code": "AS.0001" } 其中,error_code表示错误码,error_msg表示错误描述信息。
  • 修订记录 表1 修订记录 发布日期 修订记录 2024-04-24 第六次正式发布。 优化如下章节: 概述 终端节点 API概览 构造请求 认证鉴权 返回结果 运行流并查看运行记录 查询流历史活动记录 查询单个流历史活动记录 获取流运行详细信息 2024-03-11 第五次正式发布。 新增如下章节: 应用模型 修改如下章节: API概览,增加应用模型概览。 错误码,增加应用模型错误码。 2022-11-28 第四次正式发布。 优化如下章节: API概览 权限及授权项说明 错误码 2022-11-01 第三次正式发布。 优化如下章节: 查询流历史活动记录 查询单个流历史活动记录 获取流运行详细信息 2022-09-29 第二次正式发布。 新增如下章节: 终端节点 约束与限制 基本概念 应用示例 历史API 修改如下章节: 废除webhook触发流程调用(废弃)API。 提交运行流,修改请求和响应参数。 错误码,修改部分错误码说明。 2022-04-15 第一次正式发布。
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 total Long 历史记录总数。 histories Array of histories objects 所有历史记录的信息。 表4 histories 参数 参数类型 描述 id String 流运行记录ID。 flow_id String 流ID。 flow_name String 流名称。 flow_version_id String 流运行版本ID。 run_model String 流运行模式,通常有手动、自动、测试三种。 手动:需要用户在页面单击运行流。 自动:会按照触发器的类型自动运行流。 测试:用户在创建流的时候可以测试流的功能。 status String 最后一次运行,流运行状态。 success:流运行成功 fail:流运行失败 icon String 流图标。 start_time String 流运行的开始时间。 end_time String 流运行的结束时间。 exec_time Long 执行时间,单位:毫秒。 running_times Long 运行次数。 last_time String 最后一次运行时间。 message String 最后一次运行,输出的错误信息。 状态码: 403 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码。 最小长度:8 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码。 最小长度:8 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • URI GET /v1/{project_id}/flows/running-history 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID,用于资源隔离。获取方式请参考获取项目ID。 表2 Query参数 参数 是否必选 参数类型 描述 time_range 否 String 时间筛选范围,UTC时间。格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'toyyyy-MM-dd'T'HH:mm:ss.SSS'Z' 例如:2020-11-10T00:00:00Zto2020-11-12T00:00:00 name 否 String 请求名称。 status 否 String 流的状态。 枚举值: success fail offset 否 Integer 当前页,起始页数应大于等于0。 limit 否 Integer 每页记录数,每页记录数应大于等于1。