之前已经说过,rds下的database最终和服务关联,最好一个database由一个服务维护
其它服务如果要使用,则由此服务提供对应接口.
还有就是如果想更精确的管理,可以不同服务使用不同的账号操作同一个database.
business/service/controllers/database.py
business/service/controllers/asset_obj.py
business/service/apis/database.py
business/service/urls/database.py
business/service/urls/__init__.py
asset/rds/controllers/database.py
asset/rds/apis/database.py
asset/rds/urls/database.py
data/sql/rurality.sql
business/service/controllers/database.py
business/service/controllers/asset_obj.py
business/service/apis/database.py
business/service/urls/database.py
business/service/urls/__init__.py
服务关联数据库相关接口及方法
asset/rds/controllers/database.py
asset/rds/apis/database.py
asset/rds/urls/database.py
数据库反查关联服务接口
data/sql/rurality.sql:
导入最新sql
src/api/business/service/index.js
src/api/business/service/url.js
src/components/Field/RdsDatabaseField/index.vue
src/views/business/service/components/AssetCard/index.vue
src/views/business/service/components/AssetCard/components/DatabaseList/index.vue
src/views/business/service/components/AssetCard/components/DatabaseList/components/ObjDialog/index.vue
src/api/asset/rds/index.js
src/api/asset/rds/url.js
src/views/asset/rds/components/Database/detail.vue
src/views/asset/rds/components/Database/components/ServiceList/index.vue
src/api/business/service/index.js
src/api/business/service/url.js
服务关联数据库对应的接口.
src/components/Field/RdsDatabaseField/index.vue:
用RDS实例ID搜索数据库组件.
src/views/business/service/components/AssetCard/index.vue
src/views/business/service/components/AssetCard/components/DatabaseList/index.vue
src/views/business/service/components/AssetCard/components/DatabaseList/components/ObjDialog/index.vue
服务关联数据库功能界面
src/api/asset/rds/index.js
src/api/asset/rds/url.js
数据库获取关联服务列表接口.
src/views/asset/rds/components/Database/detail.vue
src/views/asset/rds/components/Database/components/ServiceList/index.vue
数据库展示关联服务,通过复制ECS对应功能而来.