Asset management method, device and equipment of cloud platform and storage medium
By configuring the management server to interface with and synchronize data with multiple cloud platforms, the problem of insufficient management capabilities of the CMDB system in a multi-cloud environment is solved, achieving efficient asset data synchronization and management, and improving management efficiency and security.
Patent Information
- Application Number
- CN202011053299.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2040-09-29
AI Technical Summary
Existing CMDB systems have limited capabilities when managing assets across multiple cloud platforms, making it difficult to achieve efficient data synchronization and management.
By configuring and managing the server to connect with multiple cloud platforms, the system obtains identity verification information and configuration information, sends asset synchronization requests, receives and updates asset data, and achieves asset data synchronization across multiple cloud platforms.
It expands the management scope of the configuration management server, enhances management capabilities, improves the efficiency and security of asset data synchronization, and supports the management of hybrid cloud architecture.
Smart Images

Figure CN112115203B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the cloud technology field, and particularly relate to a cloud platform asset management method, device, equipment and storage medium. BACKGROUND
[0002] The CMDB (Configuration Management Database) is a logical database, which is responsible for storing and managing various assets and corresponding configuration information in the enterprise IT (Internet Technology) architecture, and mainly provides functions of integrating, reconciling, synchronizing, mapping and visualizing the assets, and is the cornerstone of the operation and maintenance system.
[0003] At present, the CMDB supports the management of all host resources and their configurations under the same cloud platform, and thus has limited capabilities. SUMMARY
[0004] Embodiments of the present application provide a cloud platform asset management method, device, equipment and storage medium, which can improve the management capability of the CMDB. The technical solution is as follows:
[0005] According to an aspect of the embodiments of the present application, a cloud platform asset management method is provided, which comprises:
[0006] In the case that a target asset synchronization task is started, login information identity verification information of a target cloud platform and configuration information of the target asset synchronization task are obtained; wherein the target asset synchronization task is an asset synchronization task of the target cloud platform in the plurality of cloud platforms;
[0007] According to the configuration information of the target asset synchronization task, an asset synchronization request is sent to the target cloud platform, the asset synchronization request is used to request to synchronize the current asset data of the target asset in the target cloud platform, and the login information identity verification information of the target cloud platform is included in the asset synchronization request;
[0008] Asset synchronization data from the target cloud platform is received, and the current asset data of the target asset is included in the asset synchronization data;
[0009] According to the current asset data of the target asset, the stored asset data of the target asset is updated.
[0010] According to an aspect of the embodiments of the present application, a cloud platform asset management method is provided, which comprises:
[0011] A plurality of cloud platforms respectively corresponding asset synchronization tasks and the asset synchronization tasks corresponding start items are displayed.
[0012] receive a trigger operation of a start item corresponding to a target asset synchronization task, the target asset synchronization task being an asset synchronization task of a target cloud platform in the plurality of cloud platforms, the target asset synchronization task being configured to synchronize current asset data of a target asset in the target cloud platform;
[0013] display a synchronization result of the target asset synchronization task.
[0014] According to an aspect of an embodiment of the present application, an asset management apparatus of a cloud platform is provided, and the apparatus comprises:
[0015] an information obtaining module configured to, in a case where a target asset synchronization task is started, obtain identity verification information of a target cloud platform and configuration information of the target asset synchronization task, wherein the target asset synchronization task is an asset synchronization task of the target cloud platform in the cloud platform;
[0016] a request sending module configured to, according to the configuration information of the target asset synchronization task, send an asset synchronization request to the target cloud platform, the asset synchronization request being configured to request to synchronize current asset data of a target asset in the target cloud platform, and the asset synchronization request comprising the identity verification information of the target cloud platform;
[0017] a data receiving module configured to receive asset synchronization data from the target cloud platform, the asset synchronization data comprising the current asset data of the target asset;
[0018] a data updating module configured to, according to the current asset data of the target asset, update stored asset data of the target asset.
[0019] According to an aspect of an embodiment of the present application, an asset management apparatus of a cloud platform is provided, and the apparatus comprises:
[0020] a task display module configured to display a plurality of cloud platforms respectively corresponding to asset synchronization tasks, and start items corresponding to the asset synchronization tasks;
[0021] an operation receiving module configured to receive a trigger operation of a start item corresponding to a target asset synchronization task, the target asset synchronization task being an asset synchronization task of a target cloud platform in the plurality of cloud platforms, the target asset synchronization task being configured to synchronize current asset data of a target asset in the target cloud platform;
[0022] a result display module configured to display a synchronization result of the target asset synchronization task.
[0023] According to an aspect of some embodiments of the present application, a server is provided, which comprises a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the asset management method of the cloud platform on the server side.
[0024] According to an aspect of some embodiments of the present application, a terminal is provided, which comprises a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the asset management method of the cloud platform on the terminal side.
[0025] According to an aspect of some embodiments of the present application, a computer readable storage medium is provided, which stores at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by a processor to implement the asset management method of the cloud platform on the server side, or implement the asset management method of the cloud platform on the terminal side.
[0026] According to an aspect of some embodiments of the present application, a computer program product or a computer program is provided, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the asset management method of the cloud platform on the server side, or execute the asset management method of the cloud platform on the terminal side.
[0027] The technical solutions provided by the embodiments of the present application can have the following beneficial effects:
[0028] By configuring the synchronization tasks of the multiple cloud platforms, a request can be sent to a target cloud platform according to configuration information of the target cloud platform to obtain current asset data of a target asset of the target cloud platform, and the asset data of the target asset can be synchronized according to the current asset data of the target asset, so as to realize the synchronization of the asset data of the multiple cloud platforms, expand the management range of the configuration management server, and improve the management capability of the configuration management server.
[0029] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0031] Figure 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;
[0032] Figure 2 is a schematic diagram of a system architecture provided by another embodiment of the present application;
[0033] Figure 3 is a flowchart of an asset management method of a cloud platform provided by an embodiment of the present application;
[0034] Figure 4 is a flowchart of an asset management method of a cloud platform provided by another embodiment of the present application;
[0035] Figure 5 is a flowchart of an asset management method of a cloud platform provided by another embodiment of the present application;
[0036] Figure 6 is a schematic diagram of an asset synchronization task provided by an embodiment of the present application;
[0037] Figure 7 is a schematic diagram of a task configuration interface provided by an embodiment of the present application;
[0038] Figure 8 is a schematic diagram of a synchronization history record provided by an embodiment of the present application;
[0039] Figure 9 is a schematic diagram of a detail viewing option provided by an embodiment of the present application;
[0040] Figure 10 is a schematic diagram of asset data details provided by an embodiment of the present application;
[0041] Figure 11 is a block diagram of an asset management device of a cloud platform provided by an embodiment of the present application;
[0042] Figure 12 is a block diagram of an asset management device of a cloud platform provided by another embodiment of the present application;
[0043] Figure 13 is a block diagram of an asset management device of a cloud platform provided by another embodiment of the present application;
[0044] Figure 14is a block diagram of an asset management device of a cloud platform provided by another embodiment of the present application;
[0045] Figure 15 is a structural block diagram of a server provided by an embodiment of the present application;
[0046] Figure 16 is a structural block diagram of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION
[0047] For the purpose, technical solutions and advantages of the present application to be more clear, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0048] The present application relates to the field of cloud technology, before the technical solutions of the present application are introduced and explained, the related content of cloud technology is introduced and explained.
[0049] Cloud technology (Cloud Technology) refers to a series of resources such as hardware, software, network, etc. in a wide area network or local area network are unified, realizing the calculation, storage, processing and sharing of data. A kind of hosting technology.
[0050] Cloud technology is based on the network technology, information technology, integration technology, management platform technology, application technology etc. of cloud computing business model application, can be composed of resource pool, on-demand use, flexible and convenient. Cloud computing technology will become an important support. The background service of technical network system needs a lot of calculation, storage resources, such as video website, picture type website and more portal website. With the high development and application of Internet industry, every item may have its own identification mark in the future, and it needs to be transmitted to the background system for logical processing. Different levels of data will be processed separately, and various industry data need strong system backup support, which can only be realized by cloud computing. Cloud infrastructure technology includes cloud computing, cloud storage, database, big data and other technologies.
[0051] Cloud platform (Cloud Platform) refers to hardware-based services, providing computing, network and storage capabilities.
[0052] Cloud platform capabilities have the following characteristics:
[0053] 1. Hardware management is highly abstracted to users / purchasers: users do not know where the data is processed in which several machines, and do not know how to process it. When he needs a certain application, he instructs the "cloud" and the result appears on his screen in a while. Cloud computing distributed resources hide the implementation details from users and ultimately present them in the form of a whole.
[0054] 2, The user / purchaser's investment in infrastructure is converted into OPEX (Operating Expense): enterprises and institutions no longer need to plan their own data centers, nor do they need to spend their energy on IT management that is irrelevant to their main business. They only need to give instructions to the "cloud" to get information services of different levels and types. The time, energy and money saved can be invested in the operation of the enterprise. For individual users, they no longer need to invest a lot of money to buy software. The cloud service already provides the functions they need, and any difficulties can be solved.
[0055] 3, The infrastructure has high flexibility (increase and decrease): it can be dynamically expanded and configured according to needs.
[0056] From the functional point of view of the cloud platform, the cloud platform can be divided into the following categories: 1, data storage-oriented storage cloud platform; 2, data processing-oriented computing cloud platform; 3, comprehensive cloud computing platform that takes into account computing and data storage processing.
[0057] From the openness of the cloud platform, the cloud platform can be divided into the following categories: 1, public cloud; 2, private cloud; 3, hybrid cloud.
[0058] Public cloud (Public Cloud) usually refers to the cloud provided by a third-party provider for users to use. Public cloud is generally available through the Internet (Internet) and may be free or low-cost. The core attribute of public cloud is shared resource service. There are many instances of such clouds that can provide services in today's entire open public network.
[0059] Private cloud (Private Cloud) is to create a cloud infrastructure and hardware and software resources within a firewall for departments within an institution or enterprise to share resources in the data center. In addition to hardware resources, private cloud generally has cloud device (IaaS, Infrastructure as a Service, Infrastructure as a Service) software. Private cloud computing also includes cloud hardware, cloud platform, and cloud services at three levels. The difference is that cloud hardware is the user's own personal computer or server, rather than the data center of the cloud computing vendor. The purpose of cloud computing vendors building data centers is to provide public cloud services to millions of users, so they need to have hundreds of thousands of servers. Private cloud computing serves only friends and family for individuals, and only serves employees of the enterprise and customers and suppliers of the enterprise for enterprises, so the user's own personal computer or server is already sufficient to provide cloud services.
[0060] Hybrid Cloud is the main mode and development direction of cloud computing in recent years, which combines public cloud and private cloud. Private cloud is mainly for enterprise users. For security considerations, enterprises are more willing to store data in private cloud, but at the same time, they hope to obtain the computing resources of public cloud. In this case, hybrid cloud is more and more used, which combines and matches public cloud and private cloud to obtain the best effect. This personalized solution achieves the purpose of saving money and safety.
[0061] With the development and progress of the industry, cloud technology will play an increasingly important role in various industries.
[0062] Please refer to Figure 1 , which shows a schematic diagram of the system architecture of the scheme provided by an embodiment of the present application. The system architecture of the scheme can include a user terminal 10, a configuration management server 20 and a plurality of cloud platforms 30.
[0063] The configuration management server 20 and the plurality of cloud platforms 30 are connected, which is used for asset management of the plurality of cloud platforms 30, that is, the configuration management server 20 supports the function of simultaneously performing asset management on a plurality of cloud platforms. For example, the configuration management server 20 can execute an asset synchronization task to synchronize asset data in the cloud platform to the configuration management server 20, so that the user can log in to the configuration management server 20 to view. Optionally, the CMDB service can be run in the configuration management server 20, and the above function is realized through the CMDB service. The configuration management server 20 and the cloud platform 30 can communicate through the network.
[0064] The user terminal 10 can communicate with the configuration management server 20 through the network. Optionally, the client of the target application program (such as the client of the CMDB service) is installed and run in the user terminal 10, and through the client, the user can perform operations such as creating / configuring asset synchronization task, querying synchronization history record, starting asset synchronization task. Optionally, the client can provide a visual configuration management interface for the user to configure and view.
[0065] Optionally, as Figure 1 shown, the system architecture of the scheme can further include a first database 40 and a second database 50.
[0066] The first database 40 can be a relational database, such as a MySQL (Structured Query Language, Structured Query Language) database. The relational database is more suitable for the storage of data with stable data structure. Therefore, in the technical scheme of the present application, the first database 40 can be used to store configuration information of asset synchronization task, detail information of synchronization history record, etc.
[0067] The second database 50 can be a non-relational database, such as MongoDB. Non-relational databases offer scalability in their data structure and support frequent changes to asset data attributes. Therefore, in this application's technical solution, the second database 50 is used to store asset data from various cloud platforms acquired by the configuration management server 20.
[0068] In the technical solution of this application, the assets in the cloud platform can be such as hosts (including physical machines and / or virtual machines), containers, processes, middleware, etc., and the asset data can be any data related to the above assets, such as configuration, attribute, etc.
[0069] like Figure 2 As shown, it illustrates in Figure 1 The system architecture shown illustrates the interaction process between the various entities.
[0070] Users can configure asset synchronization tasks through user terminal 10, query the synchronization history of asset synchronization tasks, and start asset synchronization tasks, etc. When user terminal 10 needs to perform a certain operation, it can send the corresponding operation request to configuration management server 20 so that configuration management server 20 can process it.
[0071] The configuration management server 20 may include a front-end request processing module 21 and a synchronous task execution module 22.
[0072] The front-end request processing module 21 is used to process the operation requests of the user terminal 10 (such as the configuration of the asset synchronization task, the query of the synchronization history, the start of the asset synchronization task, etc.), and persistently store the configuration information of the asset synchronization task and the synchronization history in the first database 40.
[0073] The synchronization task execution module 22 is responsible for executing asset synchronization tasks. Optionally, the synchronization task execution module 22 supports multithreading, for example, starting an independent task process for each asset synchronization task, and these processes are responsible for implementing the specific asset synchronization tasks. For example, in Figure 2 In this configuration, management server 20 runs task process A and task process B. Task process A is used to execute asset synchronization task A, which retrieves relevant asset data from cloud platform A. Task process B is used to execute asset synchronization task B, which retrieves relevant asset data from cloud platform B.
[0074] Optionally, the process of executing the asset synchronization task is as follows: receiving the command to start synchronization → obtaining asset data from the data source (a cloud platform) → asset field mapping processing → comparing the obtained asset data with the historical asset data obtained from the second database 50 → processing and updating the stored asset data → recording the synchronization history into the first database 40.
[0075] In addition, the asset synchronization task supports trigger start and timing start. The trigger start refers to starting the execution of the asset synchronization task in the case of manual triggering by a user, and the timing start refers to automatically starting the execution of the asset synchronization task at a set time point, for example, the asset synchronization task can be executed periodically or non-periodically at the set time point.
[0076] Please refer to Figure 3 which shows a flowchart of an asset management method of a cloud platform provided in an embodiment of the present application. In the embodiment, the method is taken as an example of being applied to the configuration management server 20 in the system architecture of the above-mentioned scheme. The method can include the following steps (310-340):
[0077] Step 310, in the case of starting a target asset synchronization task, obtaining identity verification information of a target cloud platform and configuration information of the target asset synchronization task; wherein the target asset synchronization task is an asset synchronization task of the target cloud platform in a plurality of cloud platforms.
[0078] In the embodiment of the present application, the configuration management server and the plurality of cloud platforms are connected, and the asset data in the plurality of cloud platforms can be synchronized. For a certain cloud platform, one or more asset synchronization tasks can be established, and each asset synchronization task is used to synchronize the asset data of one or more assets in the cloud platform.
[0079] If the configuration management server wants to synchronize the asset data from a certain cloud platform, it first needs to know the identity verification information of the cloud platform, such as login information such as login account and password or other verification information. After logging in the cloud platform through the identity verification information and passing the identity verification, the desired data can be successfully obtained. Therefore, in the case of connecting the configuration management server and the plurality of cloud platforms, the configuration management server needs to know the identity verification information of each cloud platform. The identity verification information of each cloud platform can be filled in by a user in a client and submitted to the configuration management server, and then the configuration management server stores the identity verification information of each cloud platform.
[0080] Please refer to Table 1, which exemplarily shows the content contained in the identity verification information of the cloud platform:
[0081] Table 1
[0082]
[0083]
[0084] It should be noted that the content contained in the identity verification information shown in Table 1 above is only exemplary and explanatory, and the content contained in the identity verification information can be increased or decreased according to actual needs, and the embodiments of the present application do not limit this.
[0085] In some possible embodiments, for different asset synchronization tasks, for example, even different asset synchronization tasks of the same cloud platform (such as asset data synchronization tasks for different types of assets), the corresponding identity verification information can also be different. That is, different asset synchronization tasks of the same cloud platform can correspond to the same identity verification information, or can correspond to different identity verification information, and the embodiments of the present application do not limit this. In the case where different asset synchronization tasks of the same cloud platform correspond to different identity verification information, the configuration management server needs to obtain the identity verification information of the target asset synchronization task in the case where the target asset synchronization task is started, and subsequently includes the identity verification information of the target asset synchronization task in the asset synchronization request. Through the above-mentioned manner, more fine-grained identity verification or permission verification can be achieved, and the security and reliability are improved.
[0086] In addition, the identity verification information can be stored in a relational database (such as a MySQL database).
[0087] The configuration information of the target asset synchronization task is used to guide the configuration management server how to execute the target asset synchronization task. Optionally, the configuration information includes but is not limited to at least one of the following information: asset type, identification information of the cloud platform, identity verification information of the cloud platform, scanning region, synchronization period, synchronization strategy, and the like.
[0088] Please refer to Table 2, which exemplarily shows the content contained in the configuration information of the asset synchronization task:
[0089] Table 2
[0090]
[0091]
[0092] It should be noted that the content contained in the configuration information shown in Table 2 above is only exemplary and explanatory, and the content contained in the configuration information can be increased or decreased according to actual needs, and the embodiments of the present application do not limit this.
[0093] In addition, the configuration information of the asset synchronization task can be stored in a relational database (such as a MySQL database). Alternatively, the configuration information of the asset synchronization task can be configured by the client when the asset synchronization task is created or changed, and then the configuration information of the asset synchronization task is sent to the configuration management server by the client for storage. Taking the target asset synchronization task as an example, the configuration management server receives the configuration information of the target asset synchronization task from the client, and stores the configuration information of the target asset synchronization task in the relational database.
[0094] In addition, the configuration management server supports running multiple task processes, and different task processes are used to execute different asset synchronization tasks. In this way, the execution efficiency and timeliness of different asset synchronization tasks can be ensured, and the synchronization performance of the configuration management server can be improved.
[0095] In step 320, according to the configuration information of the target asset synchronization task, an asset synchronization request is sent to the target cloud platform, and the asset synchronization request is used to request to synchronize the current asset data of the target asset in the target cloud platform. The identity verification information of the target cloud platform is included in the asset synchronization request.
[0096] After the target asset synchronization task is triggered to start or is started in a timing manner, the configuration management server sends an asset synchronization request to the target cloud platform. On the one hand, the identity verification information of the target cloud platform or the identity verification information of the target asset synchronization task can be included in the asset synchronization request, so that the target cloud platform performs identity verification on the requester, and the target cloud platform can provide corresponding data to the requester only when the identity verification is passed. On the other hand, the request parameters such as the type, region, and time of the target asset can be included in the asset synchronization request, so that the target cloud platform can know which data the requester needs to synchronize.
[0097] In step 330, asset synchronization data from the target cloud platform is received, and the asset synchronization data includes the current asset data of the target asset.
[0098] Alternatively, the asset data of the target asset includes but is not limited to the configuration and attributes of the target asset, such as the device identifier of the hardware device, the size data of the hardware device, the model of the CPU (Central Processing Unit), the capacity of the disk, the state (on or off) of the target asset, the IP (Internet Protocol) address, the internal network gateway, the internal network mask, the maintenance personnel, and the like. The current asset data of the target asset refers to the asset data of the target asset in the target cloud platform at the current time (i.e., the time of synchronization). At different times, the asset data of the target asset can change.
[0099] At step 340, the stored asset data of the target asset is updated according to the current asset data of the target asset.
[0100] After receiving the current asset data of the target asset in the target cloud platform, the configuration management server can update the stored asset data of the target asset in the target cloud platform. The asset data can be stored in a non-relational database (such as a MongoDB database).
[0101] In an example embodiment, this step includes the following sub-steps:
[0102] 1. Comparing the current asset data of the target asset with the historical asset data of the target asset;
[0103] The historical asset data of the target asset refers to the previously recorded asset data of the target asset obtained from the non-relational database.
[0104] 2. Processing the current asset data of the target asset and the historical asset data of the target asset according to the configuration information of the target asset synchronization task to obtain data change information of the target asset;
[0105] The configuration information of the target asset synchronization task can include a synchronization strategy for the asset data of the target asset, such as a coverage strategy and a deletion strategy. The coverage strategy is used to indicate whether to use the current asset data to replace the historical asset data, and the deletion strategy is used to indicate whether to delete the historical asset data.
[0106] The configuration management server can determine the data change information of the target asset according to the synchronization strategy, which is used to indicate whether to modify the historical asset data of the target asset stored in the non-relational database and how to modify it if modification is needed.
[0107] 3. Updating the stored asset data of the target asset according to the data change information.
[0108] After determining the data change information, the configuration management server updates the stored asset data of the target asset.
[0109] In an example, if the current asset data of the target asset is different from the historical asset data of the target asset, then:
[0110] (1) If the configuration information of the target asset synchronization task includes a first coverage strategy, the current asset data of the target asset is automatically saved, and the historical asset data of the target asset is deleted.
[0111] (2) in the case that the configuration information of the target asset synchronization task includes the second override policy, automatically saving the historical asset data of the target asset and deleting the current asset data of the target asset;
[0112] (3) in the case that the configuration information of the target asset synchronization task includes the third override policy, determining the processing mode of the current asset data of the target asset and the historical asset data of the target asset according to the override operation indication received from the client.
[0113] The first override policy, the second override policy and the third override policy are three different override policies. The override policy defines the corresponding conflict resolution mode when the current asset data of the target asset and the historical asset data of the target asset conflict (e.g. inconsistent). The first override policy indicates that the source data (i.e. the current asset data) is always dominant, and the local data (i.e. the historical asset data) is synchronized and overwritten. The second override policy indicates that the local data (i.e. the historical asset data) is always dominant, and the source data (i.e. the current asset data) is not synchronized, and the local data is retained. The third override policy indicates that the user is displayed with a conflict, and the user decides how to handle it.
[0114] For example, for the third override policy described above, in the case that a first override operation indication is received from the client, the first override operation indication is used to indicate that the current asset data of the target asset is saved, and the historical asset data of the target asset is deleted, then the configuration management server saves the current asset data of the target asset according to the indication, and deletes the historical asset data of the target asset; in the case that a second override operation indication is received from the client, the second override operation indication is used to indicate that the historical asset data of the target asset is saved, and the current asset data of the target asset is deleted, then the configuration management server saves the historical asset data of the target asset, and deletes the current asset data of the target asset.
[0115] In another example, if the current asset data of the target asset does not exist, then:
[0116] (1) in the case that the configuration information of the target asset synchronization task includes the first deletion policy, the historical asset data of the target asset is automatically deleted immediately;
[0117] (2) in the case that the configuration information of the target asset synchronization task includes the second deletion policy, the historical asset data of the target asset is automatically deleted after the first set duration ends;
[0118] (3) in the case that the configuration information of the target asset synchronization task includes the third deletion policy, the deletion mode of the historical asset data of the target asset is determined according to the deletion operation indication received from the client.
[0119] The first deletion strategy, the second deletion strategy and the third deletion strategy are three different deletion strategies. The deletion strategy defines a deletion manner of the historical asset data of the target asset when the current asset data of the target asset does not exist. The first deletion strategy indicates that the historical asset data of the target asset is always automatically deleted immediately. The second deletion strategy indicates that the historical asset data of the target asset is always automatically deleted after the first set time length ends. The first set time length can be 30 minutes, 2 hours, 6 hours, 12 hours, 24 hours, 3 days, 7 days, 15 days, 1 month, 3 months, 6 months, 1 year, and the like. The specific time length of the first set time length can be set by a relevant technical person according to an actual situation, and the embodiment of the present application does not limit this. The third deletion strategy indicates that the current asset data of the target asset does not exist, and a user makes a decision on how to handle it.
[0120] For example, for the third deletion strategy, when a first deletion operation indication indicating that the historical asset data of the target asset is deleted immediately is received from the client, the configuration management server deletes the historical asset data of the target asset immediately according to the indication. When a second deletion operation indication indicating that the historical asset data of the target asset is deleted after the first set time length ends is received from the client, the configuration management server automatically deletes the historical asset data of the target asset after the first set time length ends.
[0121] In summary, the technical solution provided in the embodiment of the present application can send a request to the target cloud platform to obtain the current asset data of the target asset of the target cloud platform according to the configuration information of the target cloud platform, and synchronize the asset data of the target asset according to the current asset data of the target asset, thereby realizing asset data synchronization for multiple cloud platforms, expanding the management range of the configuration management server, and improving the management capability of the configuration management server.
[0122] In addition, in the embodiment of the present application, the asset data of multiple cloud platforms is managed by one configuration management service, which saves management resources and improves the convenience of obtaining the asset data of multiple cloud platforms.
[0123] In an example embodiment, as shown in FIG. 4, the method further includes the following steps (410-430): Figure 4
[0124] Step 410, receiving a synchronization record query request from a client, the synchronization record query request being used to query the synchronization history record of the target asset synchronization task.
[0125] The synchronization record query request of the client can be automatically sent by the client every second set time length, or can be generated and sent by the client after receiving the operation instruction of the user. The second set time length can be 2 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, etc. The specific time length of the second set time length can be set by the relevant technical personnel according to the actual situation, and the embodiment of the application does not limit this.
[0126] In step 420, the synchronization history record of the target asset synchronization task is obtained according to the synchronization record query request.
[0127] The synchronization history record of the target asset synchronization task includes at least one of the following: configuration information of the target asset synchronization task, start and end time of the target asset synchronization task, error information of the target asset synchronization task, synchronization comparison details of the target asset synchronization task, synchronization result of the target asset synchronization task, and synchronization operator of the target asset synchronization task.
[0128] In step 430, the synchronization history record of the target asset synchronization task is sent to the client.
[0129] In the above manner, the synchronization history record of the target asset synchronization task can be conveniently and quickly obtained, so that the change of the asset data of the target asset and whether the configuration information of the target asset synchronization task is appropriate can be understood, and then the configuration information of the target asset synchronization task can be adjusted according to the synchronization history record of the target asset synchronization task, and the synchronization efficiency of the asset synchronization task is improved.
[0130] Please refer to Figure 5 which shows a flowchart of an asset management method of a cloud platform provided by another embodiment of the application. In this embodiment, the method is applied to the user terminal 10 in the system architecture of the above-mentioned scheme. The method can include the following steps (510-530):
[0131] In step 510, a plurality of asset synchronization tasks corresponding to a plurality of cloud platforms and start items corresponding to the asset synchronization tasks are displayed.
[0132] In some embodiments, the plurality of asset synchronization tasks corresponding to the plurality of cloud platforms and the start items corresponding to the asset synchronization tasks can be displayed in the display interface of the terminal or projected and displayed by the terminal. The start item is used to start the corresponding asset synchronization task. Each asset synchronization task is used to synchronize the asset data of one or more assets in the cloud platform. The assets in the cloud platform can be, for example, hosts (including physical machines and / or virtual machines), containers, processes, middleware, etc., and the asset data can be any data related to the above-mentioned assets, such as configuration, attribute, etc. The plurality of cloud platforms can include public clouds and / or private clouds.
[0133] In step 520, a trigger operation of a start item corresponding to a target asset synchronization task is received, the target asset synchronization task being an asset synchronization task of a target cloud platform in the multiple cloud platforms, and the target asset synchronization task being used to synchronize current asset data of a target asset in the target cloud platform.
[0134] In some embodiments, a user can trigger the start item corresponding to the target asset synchronization task by clicking, touching, or other operation methods to execute the target asset synchronization task.
[0135] In step 530, a synchronization result of the target asset synchronization task is displayed.
[0136] The synchronization result is used to indicate whether the asset synchronization task is successful or not, and if the asset synchronization task is successful, a synchronization success prompt information is displayed, and if the asset synchronization task fails, a synchronization failure prompt information is displayed.
[0137] In one example, as shown in FIG. 6, in the interface of the terminal, multiple cloud platforms respectively correspond to asset synchronization tasks, and the asset synchronization tasks correspond to start items; if a trigger operation of the start item 62 of the asset synchronization task 61 is received, a synchronization result of the asset synchronization task 61 is displayed. Figure 6
[0138] For details not described in the embodiments, refer to the other embodiments. Figure 5
[0139] In summary, the technical scheme provided by the embodiments of the present application displays multiple cloud platforms respectively corresponding to asset synchronization tasks in the terminal, and displays a synchronization result of a target asset synchronization task by receiving a trigger operation of a start item corresponding to the target asset synchronization task, so that the asset synchronization tasks of the multiple cloud platforms can be conveniently and quickly obtained in the terminal, and the synchronization results of the multiple asset synchronization tasks can be conveniently obtained, thereby improving the management efficiency of the asset data of the multiple cloud platforms.
[0140] In addition, the multiple cloud platforms can be a hybrid cloud architecture (public cloud + private cloud), so that the configuration management server can manage the hybrid cloud architecture, further improving the management efficiency.
[0141] In some embodiments, as shown in FIG. 7, the method further includes the following steps: Figure 7
[0142] 1. In response to receiving a task creation instruction, a task configuration interface 70 is displayed, and the task configuration interface 70 includes at least one configuration item of a newly created asset synchronization task;
[0143] 2. In response to a configuration operation on the configuration item, configuration information corresponding to the configuration item is displayed.
[0144] 3. In response to the configuration completion command for the new asset synchronization task, display the new asset synchronization task generated based on the configuration information.
[0145] The configuration information includes at least one of the following: asset type, cloud platform identification information, cloud platform identity verification information, scanning region, synchronization cycle, and synchronization strategy.
[0146] For example, for the synchronization cycle configuration item 71 in the task configuration interface 70, entering the synchronization cycle 72 in the input box of the synchronization cycle configuration item 71 and confirming completes the configuration operation for the synchronization cycle configuration item 71. Optionally, the task configuration interface 70 includes a confirmation control 73. In response to the triggering operation of the confirmation control 73, a configuration completion instruction for the newly created asset synchronization task is generated.
[0147] In the above implementation method, a visual interface allows for convenient and quick configuration of new asset synchronization tasks, improving the flexibility and convenience of configuration.
[0148] In some embodiments, the method further includes the following steps:
[0149] 1. Display the record viewing control corresponding to the target asset synchronization task;
[0150] 2. Receive trigger operations from the record viewing control corresponding to the target asset synchronization task;
[0151] 3. Display the synchronization history of the target asset synchronization task;
[0152] Among them, such as Figure 8 As shown, the synchronization history of the target asset synchronization task includes at least one of the following: the configuration information of the target asset synchronization task, the start and end time of the target asset synchronization task, the error information of the target asset synchronization task, the synchronization comparison details of the target asset synchronization task, the synchronization result of the target asset synchronization task, and the synchronization operator of the target asset synchronization task.
[0153] In some embodiments, such as Figure 9 As shown, when the current asset data of the target asset differs from its historical asset data, option 91 for viewing details is displayed. If option 91 is triggered, the corresponding details interface will be displayed. The details interface also includes options 92 for overwrite and 93 for ignore. Option 92 saves the current asset data of the target asset and deletes its historical asset data, while option 93 saves the historical asset data of the target asset and deletes its current asset data.
[0154] In some embodiments, such as Figure 10As shown, in the detail interface, by triggering the detail viewing control 101, asset data details 103 of the corresponding asset 102 can be obtained.
[0155] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, refer to the method embodiments of the present application.
[0156] Please refer to Figure 11 which shows a block diagram of an asset management apparatus of a cloud platform according to an embodiment of the present application. The apparatus has the functions of implementing the method examples of asset management of the cloud platform, which can be implemented by hardware or corresponding software executed by hardware. The apparatus can be the configuration management server introduced above or can be arranged on the configuration management server. The apparatus 1100 can include an information obtaining module 1110, a request sending module 1120, a data receiving module 1130 and a data updating module 1140.
[0157] The information obtaining module 1110 is configured to, in a case where a target asset synchronization task is started, obtain identity verification information of a target cloud platform and configuration information of the target asset synchronization task, wherein the target asset synchronization task is an asset synchronization task of the target cloud platform in multiple cloud platforms.
[0158] The request sending module 1120 is configured to send an asset synchronization request to the target cloud platform according to the configuration information of the target asset synchronization task, wherein the asset synchronization request is used to request to synchronize current asset data of a target asset in the target cloud platform, and the asset synchronization request includes the identity verification information of the target cloud platform.
[0159] The data receiving module 1130 is configured to receive asset synchronization data from the target cloud platform, wherein the asset synchronization data includes the current asset data of the target asset.
[0160] The data updating module 1140 is configured to update stored asset data of the target asset according to the current asset data of the target asset.
[0161] In summary, the technical scheme provided by the embodiments of the present application can configure synchronization tasks of multiple cloud platforms, send a request to a target cloud platform according to configuration information of the target cloud platform to obtain current asset data of a target asset of the target cloud platform, and synchronize asset data of the target asset according to the current asset data of the target asset, thereby realizing asset data synchronization of multiple cloud platforms, expanding the management range of the configuration management server and improving the management capability of the configuration management server.
[0162] In some embodiments, asFigure 12 The data updating module 1140 includes a data comparison sub-module 1141, a data processing sub-module 1142, and a data updating sub-module 1143.
[0163] The data comparison sub-module 1141 is configured to compare the current asset data of the target asset with the historical asset data of the target asset.
[0164] The data processing sub-module 1142 is configured to process the current asset data of the target asset and the historical asset data of the target asset according to the configuration information of the target asset synchronization task, to obtain data change information of the target asset.
[0165] The data updating sub-module 1143 is configured to update the stored asset data of the target asset according to the data change information.
[0166] In some embodiments, as shown in FIG. 11, the data processing sub-module 1142 is configured to: Figure 12 If the current asset data of the target asset is different from the historical asset data of the target asset, the data processing sub-module 1142 is further configured to:
[0167] In a case where the configuration information of the target asset synchronization task includes a first override policy, the data processing sub-module 1142 is further configured to automatically save the current asset data of the target asset and delete the historical asset data of the target asset.
[0168] In a case where the configuration information of the target asset synchronization task includes a second override policy, the data processing sub-module 1142 is further configured to automatically save the historical asset data of the target asset and delete the current asset data of the target asset.
[0169] In a case where the configuration information of the target asset synchronization task includes a third override policy, the data processing sub-module 1142 is further configured to determine a processing manner of the current asset data of the target asset and the historical asset data of the target asset according to an override operation instruction received from a client.
[0170] In some embodiments, as shown in FIG. 11, the data processing sub-module 1142 is configured to:
[0171] Figure 12 If the current asset data of the target asset does not exist, the data processing sub-module 1142 is further configured to:
[0172] In a case where the configuration information of the target asset synchronization task includes a first deletion policy, the data processing sub-module 1142 is further configured to automatically delete the historical asset data of the target asset immediately.
[0173] In a case where the configuration information of the target asset synchronization task includes a second deletion policy, the data processing sub-module 1142 is further configured to automatically delete the current asset data of the target asset immediately.
[0174] Or, in the case that the configuration information of the target asset synchronization task includes a second deletion strategy, automatically deleting the historical asset data of the target asset after the first set duration ends;
[0175] Or, in the case that the configuration information of the target asset synchronization task includes a third deletion strategy, determining the deletion manner of the historical asset data of the target asset according to a deletion operation instruction received from the client.
[0176] In some embodiments, as shown in Figure 12 The apparatus 1100 further includes an information receiving module 1150 and a data storage module 1160.
[0177] The information receiving module 1150 is configured to receive the configuration information of the target asset synchronization task from the client.
[0178] The data storage module 1160 is configured to store the configuration information of the target asset synchronization task in a relational database.
[0179] In some embodiments, as shown in Figure 12 The apparatus 1100 further includes a record obtaining module 1170 and a record sending module 1180.
[0180] The information receiving module 1150 is further configured to receive a synchronization record query request from the client, the synchronization record query request being used to request to query the synchronization history record of the target asset synchronization task.
[0181] The record obtaining module 1170 is configured to obtain the stored synchronization history record of the target asset synchronization task according to the synchronization record query request, wherein the synchronization history record of the target asset synchronization task includes at least one of the following: the configuration information of the target asset synchronization task, the start and end time of the target asset synchronization task, the error information of the target asset synchronization task, the synchronization comparison details of the target asset synchronization task, the synchronization result of the target asset synchronization task, and the synchronization operator of the target asset synchronization task.
[0182] The record sending module 1180 is configured to send the synchronization history record of the target asset synchronization task to the client.
[0183] In some embodiments, as shown in Figure 12 The configuration management server supports running multiple task processes, and different task processes are used to execute different asset synchronization tasks.
[0184] Please refer to Figure 13FIG. 13 shows a block diagram of an asset management apparatus of a cloud platform according to another embodiment of the present application. The apparatus has functions to implement the method examples of the asset management of the cloud platform described above, which can be implemented by hardware or corresponding software executed by hardware. The apparatus can be the terminal described above or be arranged on the terminal. The apparatus 1300 can include a task display module 1310, an operation receiving module 1320, and a result display module 1330.
[0185] The task display module 1310 is configured to display a plurality of asset synchronization tasks respectively corresponding to a plurality of cloud platforms, and a start item corresponding to the asset synchronization tasks.
[0186] The operation receiving module 1320 is configured to receive a trigger operation for a start item corresponding to a target asset synchronization task, the target asset synchronization task being an asset synchronization task of a target cloud platform in the plurality of cloud platforms, the target asset synchronization task being configured to synchronize current asset data of a target asset in the target cloud platform.
[0187] The result display module 1330 is configured to display a synchronization result of the target asset synchronization task.
[0188] In summary, the technical solution provided by the embodiments of the present application can conveniently and quickly obtain the synchronization history record of the target asset synchronization task, so as to understand the change of the asset data of the target asset and whether the configuration information of the target asset synchronization task is appropriate, and then adjust the configuration information of the target asset synchronization task according to the synchronization history record of the target asset synchronization task, thereby improving the synchronization efficiency of the asset synchronization task.
[0189] In some embodiments, as shown in FIG. 13, the apparatus 1300 further includes an interface display module 1340 and an information display module 1350. Figure 14
[0190] The interface display module 1340 is configured to display a task configuration interface in response to receiving a task creation instruction, the task configuration interface including at least one configuration item of a newly created asset synchronization task.
[0191] The information display module 1350 is configured to display configuration information corresponding to the configuration item in response to a configuration operation on the configuration item.
[0192] The task display module 1310 is further configured to display the newly created asset synchronization task generated based on the configuration information in response to a configuration completion instruction on the newly created asset synchronization task.
[0193] In some embodiments, the configuration information includes at least one of the following: asset type, cloud platform identification information, cloud platform identity verification information, scanning region, synchronization cycle, and synchronization strategy.
[0194] In some embodiments, such as Figure 14 As shown, the device 1300 also includes a control display module 1360 and a record display module 1370.
[0195] The control display module 1360 is used to display the record viewing control corresponding to the target asset synchronization task.
[0196] The operation receiving module 1320 is also used to receive trigger operations for the record viewing control corresponding to the target asset synchronization task.
[0197] The record display module 1370 is used to display the synchronization history of the target asset synchronization task.
[0198] The synchronization history of the target asset synchronization task includes at least one of the following: the configuration information of the target asset synchronization task, the start and end time of the target asset synchronization task, the error information of the target asset synchronization task, the synchronization comparison details of the target asset synchronization task, the synchronization result of the target asset synchronization task, and the synchronization operator of the target asset synchronization task.
[0199] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0200] Please refer to Figure 15 This diagram illustrates a structural block diagram of a computer device according to an embodiment of this application. The computer device is used to implement the asset management method of the cloud platform provided in the above embodiments. Specifically:
[0201] The computer device 1500 includes a central processing unit (CPU) 1501, a system memory 1504, including a random access memory (RAM) 1502 and a read-only memory (ROM) 1503, and a system bus 1505 that couples the system memory 1504 to the central processing unit 1501. The computer device 1500 also includes a basic input / output system (BIOS) 1506 that provides basic routines for the transfer of information between the various devices within the computer, and a mass storage device 1507 for storing an operating system 1513, application programs 1514, and other program modules 1515.
[0202] The basic input / output system 1506 includes a display 1508 for displaying information and an input device 1509, such as a mouse, keyboard, or the like, for inputting information into the computer. The display 1508 and input device 1509 are connected to the central processing unit 1501 through an input / output controller 1510 that is connected to the system bus 1505. The basic input / output system 1506 can also include input / output controller 1510 for receiving and processing input from a number of other devices, including a keyboard, mouse, or electronic stylus. Similarly, input / output controller 1510 provides output to a display screen, printer, or other type of output device.
[0203] The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) that is connected to the system bus 1505. The mass storage device 1507 and its associated computer readable media provide non-volatile storage for the computer device 1500. That is, the mass storage device 1507 can include a computer readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0204] Without loss of generality, the computer readable medium can include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid state memory technology, CD-ROM, Digital Video Disc (DVD), or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. It should be understood by those skilled in the art that computer storage media does not limit to the above-mentioned several types. The system memory 1504 and the mass storage device 1507 mentioned above can be collectively referred to as memory.
[0205] According to various embodiments of the present application, the computer device 1500 can also run on a remote computer connected to the network through a network connection such as the Internet. That is, the computer device 1500 can be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505, or can be connected to other types of network or remote computer systems (not shown) using the network interface unit 1511.
[0206] Reference is made to Figure 16 which shows a structural block diagram of a terminal 1600 provided by an embodiment of the present application. The terminal 1600 can be an electronic device such as a mobile phone, a tablet computer, a game console, an electronic book reader, a multimedia playing device, a wearable device, a PC, etc. The terminal is used to implement the asset management method of the terminal-side cloud platform provided in the above-mentioned embodiments. The terminal can be the terminal 10 in the implementation environment shown. Figure 1 Specifically, the terminal 1600 includes a processor 1601 and a memory 1602.
[0207] Generally, the terminal 1600 includes a processor 1601 and a memory 1602.
[0208] The processor 1601 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1601 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1601 can also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit), and the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing of content to be displayed on the display screen. In some embodiments, the processor 1601 can further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
[0209] The memory 1602 can include one or more computer-readable storage media that can be non-transitory. The memory 1602 can also include a high-speed random access memory, and a nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1602 is configured to store at least one instruction, at least one program, a code set or an instruction set, and is configured to be executed by one or more processors to implement the asset management method of the cloud platform on the terminal side described above.
[0210] In some embodiments, the terminal 1600 can also optionally include a peripheral device interface 1603 and at least one peripheral device. The processor 1601, the memory 1602, and the peripheral device interface 1603 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1603 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1604, a display screen 1605, a camera assembly 1606, an audio circuit 1607, a positioning assembly 1608, and a power supply 1609.
[0211] Those skilled in the art can understand that Figure 16 The structure shown in the figure does not constitute a limitation on the terminal 1600, and can include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0212] In an example embodiment, a computer readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the asset management method of the cloud platform on the server side.
[0213] In an example embodiment, a computer readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the asset management method of the cloud platform on the terminal side.
[0214] Optionally, the computer readable storage medium can include ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), optical disc, etc. Among them, the random access memory can include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0215] In an example embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the asset management method of the cloud platform on the server side.
[0216] In an example embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the asset management method of the cloud platform on the terminal side.
[0217] It should be understood that the "multiple" mentioned herein refers to two or more than two. The "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship.
[0218] The above only describes exemplary embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. An asset management method of a cloud platform, characterized by, The application is applied to a configuration management server for asset management of multiple cloud platforms. The method comprises: In the case that a target asset synchronization task is started, identity verification information of a target cloud platform and configuration information of the target asset synchronization task from a client are acquired, wherein the target asset synchronization task is an asset synchronization task of the target cloud platform in the multiple cloud platforms, the configuration information of the target asset synchronization task is stored in a relational database, the configuration information comprises a synchronization strategy, the synchronization strategy comprises an overwrite strategy and a deletion strategy, the overwrite strategy is used to indicate whether to overwrite current asset data with historical asset data, and the deletion strategy is used to indicate whether to delete historical asset data; An asset synchronization request is sent to the target cloud platform according to the configuration information of the target asset synchronization task, the asset synchronization request is used to request synchronization of current asset data of a target asset in the target cloud platform, and the identity verification information of the target cloud platform is included in the asset synchronization request; Asset synchronization data from the target cloud platform is received, and the asset synchronization data comprises current asset data of the target asset; The current asset data of the target asset is compared with historical asset data of the target asset; According to the synchronization strategy included in the configuration information of the target asset synchronization task, the current asset data of the target asset and the historical asset data of the target asset are processed to obtain data change information of the target asset; According to the data change information, asset data of the target asset stored in a non-relational database is updated.
2. The method of claim 1, wherein, According to the synchronization strategy included in the configuration information of the target asset synchronization task, the current asset data of the target asset and the historical asset data of the target asset are processed to obtain data change information of the target asset, comprising: If the current asset data of the target asset is different from the historical asset data of the target asset, then: In the case that the configuration information of the target asset synchronization task comprises a first overwrite strategy, the current asset data of the target asset is automatically saved, and the historical asset data of the target asset is deleted; Or, In the case that the configuration information of the target asset synchronization task comprises a second overwrite strategy, the historical asset data of the target asset is automatically saved, and the current asset data of the target asset is deleted; Or, In the case that the configuration information of the target asset synchronization task comprises a third overwrite strategy, a processing mode of the current asset data of the target asset and the historical asset data of the target asset is determined according to an overwrite operation instruction received from the client.
3. The method of claim 1, wherein, According to the synchronization strategy included in the configuration information of the target asset synchronization task, the current asset data of the target asset and the historical asset data of the target asset are processed to obtain data change information of the target asset, comprising: If the current asset data of the target asset does not exist, then: In a case where the configuration information of the target asset synchronization task includes a first deletion policy, the historical asset data of the target asset is automatically deleted immediately; or, In a case where the configuration information of the target asset synchronization task includes a second deletion policy, the historical asset data of the target asset is automatically deleted after a first set time length ends; or, In a case where the configuration information of the target asset synchronization task includes a third deletion policy, a deletion manner of the historical asset data of the target asset is determined according to a deletion operation instruction received from a client.
4. The method of claim 1, wherein, The method further includes: receiving a synchronization record query request from the client, the synchronization record query request being used to request to query a synchronization history record of the target asset synchronization task; obtaining the stored synchronization history record of the target asset synchronization task according to the synchronization record query request; wherein the synchronization history record of the target asset synchronization task includes at least one of the following: the configuration information of the target asset synchronization task, the start and end time of the target asset synchronization task, the error information of the target asset synchronization task, the synchronization comparison details of the target asset synchronization task, the synchronization result of the target asset synchronization task, and the synchronization operator of the target asset synchronization task; sending the synchronization history record of the target asset synchronization task to the client.
5. The method according to any one of claims 1 to 4, characterized in that, The configuration management server supports running multiple task processes, and different task processes are used to execute different asset synchronization tasks.
6. An asset management method of a cloud platform, characterized by, The method includes: displaying a plurality of asset synchronization tasks corresponding to a plurality of cloud platforms respectively, and a start item corresponding to the asset synchronization task; in response to receiving a task creation instruction, displaying a task configuration interface, the task configuration interface including at least one configuration item of a newly created asset synchronization task; in response to a configuration operation on the configuration item, displaying configuration information corresponding to the configuration item; in response to a configuration completion instruction for the newly created asset synchronization task, displaying the newly created asset synchronization task generated based on the configuration information; receiving a trigger operation of a start item corresponding to a target asset synchronization task, the target asset synchronization task being an asset synchronization task of a target cloud platform in the plurality of cloud platforms, the target asset synchronization task being used to synchronize current asset data of a target asset in the target cloud platform, the configuration information being stored in a relational database, the configuration information including a synchronization policy, the synchronization policy including an overwrite policy and a deletion policy, the overwrite policy being used to indicate whether to overwrite historical asset data with the current asset data, the deletion policy being used to indicate whether to delete the historical asset data, the synchronization policy included in the configuration information being used to process the current asset data of the target asset and the historical asset data of the target asset to obtain data change information of the target asset, the data change information being used to update stored asset data of the target asset, the asset data of the target asset being stored in a non-relational database; displaying a synchronization result of the target asset synchronization task.
7. The method of claim 6, wherein, The configuration information further includes at least one of the following: an asset type, identification information of the cloud platform, identity verification information of the cloud platform, a scanning region, and a synchronization period.
8. The method according to claim 6 or 7, characterized in that, The method further includes: displaying a record viewing control corresponding to the target asset synchronization task; receiving a triggering operation of the record viewing control corresponding to the target asset synchronization task; displaying a synchronization history record of the target asset synchronization task; The synchronization history record of the target asset synchronization task includes at least one of the following: configuration information of the target asset synchronization task, start and end times of the target asset synchronization task, error information of the target asset synchronization task, synchronization comparison details of the target asset synchronization task, a synchronization result of the target asset synchronization task, and a synchronization operator of the target asset synchronization task.
9. An asset management apparatus of a cloud platform, characterized by, The device includes: An information acquisition module configured to acquire identity verification information of a target cloud platform and configuration information of a target asset synchronization task when the target asset synchronization task is started, wherein the target asset synchronization task is an asset synchronization task of the target cloud platform in the cloud platform, the configuration information of the target asset synchronization task is stored in a relational database, the configuration information includes a synchronization policy, and the synchronization policy includes a coverage policy and a deletion policy, the coverage policy is used to indicate whether to use current asset data to cover historical asset data, and the deletion policy is used to indicate whether to delete historical asset data; A request sending module configured to send an asset synchronization request to the target cloud platform according to the configuration information of the target asset synchronization task, wherein the asset synchronization request is used to request synchronization of current asset data of a target asset in the target cloud platform, and the asset synchronization request includes the identity verification information of the target cloud platform; A data receiving module configured to receive asset synchronization data from the target cloud platform, wherein the asset synchronization data includes current asset data of the target asset; A data updating module configured to compare the current asset data of the target asset with historical asset data of the target asset; The data updating module is further configured to process the current asset data of the target asset and the historical asset data of the target asset according to the synchronization policy included in the configuration information of the target asset synchronization task, to obtain data change information of the target asset; The data updating module is further configured to update stored asset data of the target asset according to the data change information, wherein the asset data of the target asset is stored in a non-relational database.
10. An asset management apparatus of a cloud platform, characterized by, The device includes: A task display module configured to display asset synchronization tasks corresponding to a plurality of cloud platforms respectively, and start items corresponding to the asset synchronization tasks; An interface display module configured to display a task configuration interface in response to receiving a task creation instruction, wherein the task configuration interface includes at least one configuration item of a newly created asset synchronization task; An information display module configured to display configuration information corresponding to the configuration item in response to a configuration operation on the configuration item; and An information display module configured to display configuration information corresponding to the configuration item in response to a configuration operation on the configuration item. The task display module is further configured to display the newly created asset synchronization task generated based on the configuration information in response to a configuration completion instruction for the newly created asset synchronization task. The operation receiving module is configured to receive a trigger operation of a start item corresponding to a target asset synchronization task, the target asset synchronization task being an asset synchronization task of a target cloud platform in the plurality of cloud platforms, the target asset synchronization task being configured to synchronize current asset data of a target asset in the target cloud platform, the configuration information being stored in a relational database, the configuration information including a synchronization policy, the synchronization policy including an overwrite policy and a deletion policy, the overwrite policy being configured to indicate whether to overwrite historical asset data with the current asset data, the deletion policy being configured to indicate whether to delete the historical asset data, the synchronization policy included in the configuration information being configured to process the current asset data of the target asset and historical asset data of the target asset to obtain data change information of the target asset, the data change information being configured to update stored asset data of the target asset, the asset data of the target asset being stored in a non-relational database. The result display module is configured to display a synchronization result of the target asset synchronization task.
11. A computer device, comprising: The computer device includes a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the asset management method of the cloud platform according to any one of claims 1 to 5 or the asset management method of the cloud platform according to any one of claims 6 to 8.
12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one program, the at least one program being loaded and executed by the processor to implement the asset management method of the cloud platform according to any one of claims 1 to 5 or the asset management method of the cloud platform according to any one of claims 6 to 8.
13. A computer program product, characterised in that, The computer program product includes a computer program, the computer program being loaded and executed by the processor to implement the asset management method of the cloud platform according to any one of claims 1 to 5 or the asset management method of the cloud platform according to any one of claims 6 to 8.
Citation Information
Patent Citations
Cloud resource synchronization method, device and equipment and storage medium
CN111582824A