要通过 ROS 资源编排自动为用户创建 DMS 资源来连接 MySQL,里面有个字段 Tid 是必填的,在 ROS 中怎么得到这个字段?
“Tid”: {
“Type”: “Number”,
“Description”: “The ID of the tenant.
Note To query the ID, log on to the DMS Enterprise console and choose System Management
> Instance Management or System Management > User Management. The ID of the tenant
appears in the Service Specification section.”
}
我们知道怎么手动拿到 Tid,我们想知道怎样通过 API 自动拿
ROS 可以使用 RESTful API 进行自动化操作,从而获得 Tenant ID。
您可以使用以下步骤来获取 Tenant ID:
https://help.aliyun.com/zh/dms/developer-reference/api-dms-enterprise-2018-11-01-getuseractivetenant?spm=a2c4g.11186623.0.0.71e346d7xF6Say
此回答整理自钉群“阿里云DMS数据管理用户交流群”