CN112115203A - Asset management method, device, equipment and storage medium of cloud platform - Google Patents

Asset management method, device, equipment and storage medium of cloud platform Download PDF

Info

Publication number
CN112115203A
CN112115203A CN202011053299.9A CN202011053299A CN112115203A CN 112115203 A CN112115203 A CN 112115203A CN 202011053299 A CN202011053299 A CN 202011053299A CN 112115203 A CN112115203 A CN 112115203A
Authority
CN
China
Prior art keywords
asset
target
synchronization
data
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011053299.9A
Other languages
Chinese (zh)
Inventor
杨小璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011053299.9A priority Critical patent/CN112115203A/en
Publication of CN112115203A publication Critical patent/CN112115203A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides an asset management method, an asset management device, asset management equipment and a storage medium of a cloud platform, and relates to the technical field of cloud. The method is applied to a configuration management server and comprises the following steps: under the condition that the target asset synchronization task is started, acquiring identity verification information of a target cloud platform and configuration information of the target asset synchronization task; the target asset synchronization task is an asset synchronization task of a target cloud platform in a plurality of cloud platforms; sending an asset synchronization request to a target cloud platform according to the configuration information of the target asset synchronization task; receiving asset synchronization data from a target cloud platform, wherein the asset synchronization data comprises current asset data of a target asset; and updating the stored asset data of the target asset according to the current asset data of the target asset. The technical scheme provided by the embodiment of the application can expand the management range of the configuration management server and improve the management capability of the configuration management server.

Description

Asset management method, device, equipment and storage medium of cloud platform
Technical Field
The embodiment of the application relates to the technical field of cloud, in particular to an asset management method, an asset management device, asset management equipment and a storage medium of a cloud platform.
Background
A CMDB (Configuration Management Database) is a logical Database which is responsible for storing and managing various assets and corresponding Configuration information in an enterprise IT (Internet Technology) architecture, and mainly provides functions of integrating, reconciling, synchronizing, mapping and visualizing the assets, which is a fundamental stone of an operation and maintenance system.
Currently, CMDB supports the management of all host resources and their configuration on the same cloud platform, and thus its capability is limited.
Disclosure of Invention
The embodiment of the application provides an asset management method, an asset management device, asset management equipment and a storage medium of a cloud platform, and the capability of receiving and managing CMDB can be improved. The technical scheme is as follows:
according to an aspect of an embodiment of the present application, there is provided an asset management method for a cloud platform, the method including:
under the condition that a target asset synchronization task is started, acquiring login information 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 of the plurality of cloud platforms;
according to the configuration information of the target asset synchronization task, sending an asset synchronization request to the target cloud platform, wherein the asset synchronization request is used for requesting to synchronize the current asset data of the target asset in the target cloud platform, and the asset synchronization request comprises login information identity verification information of the target cloud platform;
receiving asset synchronization data from the target cloud platform, wherein the asset synchronization data comprises current asset data of the target asset;
and updating the stored asset data of the target asset according to the current asset data of the target asset.
According to an aspect of an embodiment of the present application, there is provided an asset management method for a cloud platform, the method including:
displaying asset synchronization tasks corresponding to a plurality of cloud platforms respectively and starting items corresponding to the asset synchronization tasks;
receiving a trigger operation of a starting item corresponding to a target asset synchronization task, wherein the target asset synchronization task is an asset synchronization task of a target cloud platform in the plurality of cloud platforms, and the target asset synchronization task is used for synchronizing current asset data of a target asset in the target cloud platform;
and displaying the synchronization result of the target asset synchronization task.
According to an aspect of an embodiment of the present application, there is provided an asset management apparatus of a cloud platform, the apparatus including:
the information acquisition module is used for acquiring identity verification information of a target cloud platform and configuration information of a target asset synchronization task under the condition that 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;
a request sending module, configured to send an asset synchronization request to the target cloud platform according to configuration information of the target asset synchronization task, where 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 identity verification information of the target cloud platform;
the data receiving module is used for receiving asset synchronization data from the target cloud platform, wherein the asset synchronization data comprises current asset data of the target asset;
and the data updating module is used for updating the stored asset data of the target asset according to the current asset data of the target asset.
According to an aspect of an embodiment of the present application, there is provided an asset management apparatus of a cloud platform, the apparatus including:
the task display module is used for displaying asset synchronization tasks corresponding to the cloud platforms respectively and starting items corresponding to the asset synchronization tasks;
an operation receiving module, configured to receive a trigger operation of a start item corresponding to a target asset synchronization task, where the target asset synchronization task is an asset synchronization task of a target cloud platform in the multiple cloud platforms, and the target asset synchronization task is used to synchronize current asset data of a target asset in the target cloud platform;
and the result display module is used for displaying the synchronization result of the target asset synchronization task.
According to an aspect of the embodiments of the present application, there is provided a server including a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the asset management method of the cloud platform on the server side.
According to an aspect of the embodiments of the present application, there is provided a terminal, including a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the above-mentioned asset management method of a cloud platform on the terminal side.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having at least one instruction, at least one program, a code set, or a set of instructions stored therein, the at least one instruction, the at least one program, the code set, or the set of instructions being loaded and executed by a processor to implement the above-described asset management method of a server-side cloud platform, or to implement the above-described asset management method of a terminal-side cloud platform.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising 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 executes the computer instructions, so that the computer device performs the asset management method of the cloud platform on the server side or performs the asset management method of the cloud platform on the terminal side.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
by configuring the synchronous tasks of the multiple cloud platforms, a request can be sent to the target cloud platform according to the configuration information of the target cloud platform to acquire the current asset data of the 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 that the asset data synchronization of the multiple cloud platforms is realized, the management range of the configuration management server is expanded, and the management capability of the configuration management server is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a schema system architecture provided by one embodiment of the present application;
FIG. 2 is a schematic diagram of a schematic system architecture provided by another embodiment of the present application;
FIG. 3 is a flow diagram of a method for asset management of a cloud platform provided by an embodiment of the present application;
FIG. 4 is a flow diagram of a method for asset management of a cloud platform provided by another embodiment of the present application;
FIG. 5 is a flow diagram of a method for asset management of a cloud platform provided by another embodiment of the present application;
FIG. 6 is a schematic diagram of an asset synchronization task provided by one embodiment of the present application;
FIG. 7 is a schematic diagram of a task configuration interface provided by one embodiment of the present application;
FIG. 8 is a schematic diagram of a synchronization history provided by one embodiment of the present application;
FIG. 9 is a schematic diagram of detail view options provided by one embodiment of the present application;
FIG. 10 is a schematic illustration of asset data details provided by an embodiment of the present application;
FIG. 11 is a block diagram of an asset management device of a cloud platform provided by an embodiment of the present application;
FIG. 12 is a block diagram of an asset management device of a cloud platform provided by another embodiment of the present application;
FIG. 13 is a block diagram of an asset management device of a cloud platform provided in another embodiment of the present application;
FIG. 14 is a block diagram of an asset management device of a cloud platform provided by another embodiment of the present application;
FIG. 15 is a block diagram of a server according to an embodiment of the present application;
fig. 16 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The application relates to the field of cloud technology, and before the technical scheme of the application is introduced and explained, the relevant content of the cloud technology is introduced and explained.
Cloud Technology refers to a hosting Technology for unifying resources of hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied in the cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-like websites and more web portals. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing. Cloud-based technologies include cloud computing, cloud storage, databases, big data, and the like.
The Cloud Platform (Cloud Platform) refers to a hardware-based service that provides computing, networking, and storage capabilities.
The cloud platform capability has the following characteristics:
1. hardware management is highly abstract to the user/purchaser: the user does not know at all where the data is processed on which machine, nor how it is, and when he needs an application, he gives an indication to the "cloud" and the results of the effort for a while are presented on his screen. The distributed resources of cloud computing hide implementation details from the user and are ultimately presented to the user in an integrated form.
2. The user/buyer's investment in infrastructure is converted to OPEX (Operating cost): enterprises and institutions no longer need to plan data centers belonging to themselves, and do not need to expend energy on IT management unrelated to their home business. They only need to give an indication to the "cloud" to get different degrees and different types of information services. The saved time, energy and money can be put into the operation of the enterprise. For an individual user, a large amount of cost is not needed to buy the software, the service in the cloud provides the functions required by the user, and any difficulty can be solved.
3. The capabilities of the infrastructure are highly resilient (increasing and decreasing): dynamic expansion and configuration can be performed as required.
From the functional perspective of the cloud platform, the cloud platform can be divided into the following categories: 1. a storage type cloud platform mainly based on data storage; 2. a computing type cloud platform mainly based on data processing; 3. and the comprehensive cloud computing platform gives consideration to computing and data storage processing.
From the aspect of openness of the cloud platform, the cloud platform can be divided into the following categories: 1. a public cloud; 2. a private cloud; 3. a mixed cloud.
Public Cloud (Public Cloud) generally refers to a Cloud that can be used and provided by a third-party provider for a user, the Public Cloud can be generally used through the Internet (Internet) and can be free or low-cost, and the core attribute of the Public Cloud is a shared resource service. There are many instances of such a cloud that can provide services throughout the open public network today.
Private Cloud (Private Cloud) is a method for creating Cloud infrastructure and software and hardware resources in a firewall so that each department in an organization or enterprise can share the resources in a data center. A private cloud is created, typically with cloud equipment as a Service (IaaS) software in addition to hardware resources. The private cloud computing also comprises three layers of cloud hardware, a cloud platform and cloud service. In contrast, the cloud hardware is the user's own personal computer or server, not the cloud computing vendor's data center. Cloud computing vendors build data centers to provide public cloud services for millions of users, and therefore need to have tens of millions of servers. Private cloud computing serves only friends and relatives for an individual and the employees and customers and suppliers of the enterprise for the enterprise, so that the personal computer or server of the individual or enterprise is sufficient to provide cloud services.
Hybrid Cloud (Hybrid Cloud) merges public Cloud and private Cloud, and is the main mode and development direction of Cloud computing in recent years. The private cloud is mainly oriented to enterprise users, for safety, enterprises prefer to store data in the private cloud, but meanwhile hope to obtain computing resources of the public cloud, in the situation, the hybrid cloud is adopted more and more, the public cloud and the private cloud are mixed and matched to obtain the best effect, and the personalized solution achieves the purposes of saving money and being safe.
With the development and progress of industries, cloud technology will play an increasingly important role in various industries.
Referring to fig. 1, a schematic diagram of a system architecture of a solution provided by an embodiment of the present application is shown. The solution system architecture may include: a user terminal 10, a configuration management server 20, and a plurality of cloud platforms 30.
The configuration management server 20 is interfaced with a plurality of cloud platforms 30, and is configured to perform asset management on the plurality of cloud platforms 30, that is, the configuration management server 20 supports a function of performing asset management on the plurality of cloud platforms at the same time. For example, the configuration management server 20 may perform an asset synchronization task to synchronize asset data in the cloud platform to the configuration management server 20 so that a user may log into the configuration management server 20 for viewing. Alternatively, a CMDB service may be run in the configuration management server 20, and the above-described functions are implemented by the CMDB service. The configuration management server 20 and the cloud platform 30 may communicate with each other via a network.
The user terminal 10 may communicate with the configuration management server 20 through a network. Alternatively, a client (e.g., a client of the CMDB service) running a target application program is installed in the user terminal 10, and through the client, the user can perform operations of creating/configuring an asset synchronization task, inquiring a synchronization history, starting an asset synchronization task, and the like. Optionally, the client may provide a visualized configuration management interface to the user for configuration and viewing by the user.
Optionally, as shown in fig. 1, the scheme system architecture may further include: a first database 40 and a second database 50.
The first database 40 may be a relational database, such as a MySQL (Structured Query Language) database. The relational database is more suitable for storing data with more stable data structure. Therefore, in the present embodiment, the first database 40 may be used to store configuration information of the asset synchronization task, detail information of the synchronization history, and the like.
The second database 50 may be a non-relational database, such as a MongoDB database. The non-relational database has the expandability of a data structure and supports frequent change of the property data. Therefore, in the present technical solution, the second database 50 is used for storing the asset data of each cloud platform acquired by the configuration management server 20.
In the technical solution of the present application, the assets in the cloud platform may be, for example, hosts (including physical machines and/or virtual machines), containers, processes, middleware, and the like, and the asset data may be any data related to the assets, such as configuration, attribute, and the like.
As shown in fig. 2, it shows the interaction process between the various subjects under the schema system architecture shown in fig. 1.
The user may configure the asset synchronization task through the user terminal 10 and query the synchronization history of the asset synchronization task, may also initiate the asset synchronization task, and so on. When a certain operation needs to be performed, the user terminal 10 may send a corresponding operation request to the configuration management server 20, so that the configuration management server 20 performs processing.
The configuration management server 20 may include a front-end request processing module 21 and a synchronous task execution module 22.
The front-end request processing module 21 is configured to process an operation request (such as a request for configuring an asset synchronization task, querying a synchronization history, starting the asset synchronization task, etc.) of the user terminal 10, and persistently store configuration information of the asset synchronization task and the synchronization history in the first database 40.
The sync task execution module 22 is responsible for performing asset synchronization tasks. Optionally, the sync task execution module 22 supports multiple threads, such as starting a separate task process for each asset synchronization task, which processes are responsible for implementing the specific asset synchronization task. For example, in fig. 2, the configuration management server 20 runs a task process a and a task process B. The task process A is used for executing an asset synchronization task A and is used for acquiring related asset data from the cloud platform A. And the task process B is used for executing the asset synchronization task B and acquiring related asset data from the cloud platform B.
Optionally, the flow of the task process executing the asset synchronization task is as follows: receiving a command to initiate synchronization → acquiring asset data from a data source (some cloud platform → asset field mapping process → comparing the acquired asset data with historical asset data acquired from the second database 50 → processing updating the stored asset data → recording the synchronization history into the first database 40.
In addition, the asset synchronization task supports trigger starts and timed starts. The triggering means to start executing the asset synchronization task under the condition that the user manually triggers, and the timing means to automatically start executing the asset synchronization task at a set time point, for example, the asset synchronization task may be executed periodically or aperiodically according to the set time point.
Referring to fig. 3, a flowchart of an asset management method of a cloud platform according to an embodiment of the present application is shown. In the present embodiment, the method is applied to the configuration management server 20 in the above-described scheme system architecture for example. The method comprises the following steps (310-340):
step 310, acquiring identity verification information of a target cloud platform and configuration information of a target asset synchronization task under the condition that the target asset synchronization task is started; the target asset synchronization task is an asset synchronization task of a target cloud platform in the plurality of cloud platforms.
In the embodiment of the application, the configuration management server is in butt joint with the plurality of cloud platforms, and asset data in the plurality of cloud platforms can be synchronized. For a certain cloud platform, one or more asset synchronization tasks may be established, each asset synchronization task being used to synchronize asset data of one or more assets in the cloud platform.
If the configuration management server wants to synchronize asset data from a certain cloud platform, identity verification information of the cloud platform, such as login information of a login account number, a password and the like or other verification information, needs to be acquired, the cloud platform is logged in through the identity verification information, and the desired data can be acquired successfully after the cloud platform is subjected to identity verification. Therefore, in a case where the configuration management server is interfaced with a plurality of cloud platforms, the configuration management server needs to acquire identity verification information of each cloud platform. The identity verification information of each cloud platform can be filled in by a user in the client and submitted to the configuration management server, and then the configuration management server stores the identity verification information of each cloud platform.
Referring to table 1, the content included in the identity verification information of the cloud platform is exemplarily shown:
TABLE 1
Figure BDA0002710168510000081
Figure BDA0002710168510000091
It should be noted that, the content included in the identity verification information shown in table 1 is only exemplary and explanatory, and the content included in the identity verification information may be increased or decreased according to actual needs, which is not limited in the embodiment of the present application.
In some possible embodiments, the corresponding identity verification information may be different for different asset synchronization tasks, for example, even for different asset synchronization tasks of the same cloud platform (e.g., for synchronizing asset data of different types of assets). That is, different asset synchronization tasks of the same cloud platform may correspond to the same identity verification information or may correspond to different identity verification information, which is not limited in this embodiment of the present application. Under the condition that different asset synchronization tasks of the same cloud platform correspond to different identity verification information, then under the condition that the target asset synchronization task is started, the configuration management server needs to acquire the identity verification information of the target asset synchronization task, and subsequently, the asset synchronization request comprises the identity verification information of the target asset synchronization task. By the mode, finer-grained identity verification or authority verification can be achieved, and safety and reliability are improved.
Alternatively, the identity check information may be stored in a relational database (e.g., a MySQL database).
The configuration information for the target asset synchronization task is used to instruct the configuration management server how to perform the target asset synchronization task. Optionally, the configuration information includes, but is not limited to, at least one of the following: asset type, identification information of the cloud platform, identity verification information of the cloud platform, scanning region, synchronization period, synchronization strategy and the like.
Referring to table 2, the configuration information of the asset synchronization task is exemplarily shown to include:
TABLE 2
Figure BDA0002710168510000101
Figure BDA0002710168510000111
It should be noted that the contents included in the configuration information shown in table 2 are merely exemplary and explanatory, and the contents included in the configuration information may be increased or decreased according to actual needs, which is not limited in the embodiment of the present application.
In addition, configuration information for the asset synchronization task may be stored in a relational database (e.g., MySQL database). Optionally, the configuration information of the asset synchronization task may be configured by the client when the asset synchronization task is created or modified, 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.
In addition, the configuration management server supports running multiple task processes, with different task processes being used to perform different asset synchronization tasks. By the method, the execution efficiency and timeliness of different asset synchronization tasks can be guaranteed, and the synchronization performance of the configuration management server is improved.
Step 320, according to the configuration information of the target asset synchronization task, sending an asset synchronization request to the target cloud platform, where the asset synchronization request is used to request synchronization of current asset data of the target asset in the target cloud platform, and the asset synchronization request includes identity verification information of the target cloud platform.
And after the target asset synchronization task is triggered to start or started regularly, the configuration management server sends an asset synchronization request to the target cloud platform. On one hand, the asset synchronization request may include identity verification information of the target cloud platform or identity verification information of the target asset synchronization task, so that the target cloud platform performs identity verification on the requester, and corresponding data may be provided to the requester only when the identity verification passes. On the other hand, the asset synchronization request may further include request parameters, such as the type, region, time, and other information of the target asset, so that the target cloud platform can know which data the requester needs to synchronize.
Step 330, receiving asset synchronization data from the target cloud platform, wherein the asset synchronization data comprises current asset data of the target asset.
Optionally, the asset data of the target asset includes data such as configuration and attribute of the target asset, for example, a device identifier of a hardware device, size data of the hardware device, a model of a Central Processing Unit (CPU), a capacity of a disk, a status (on or off) of the target asset, an Internet Protocol (IP) address, an intranet gateway, an intranet mask, a maintainer, and the like. The current asset data of the target asset refers to the asset data of the target asset at the current time (i.e., the time of synchronization) in the target cloud platform, and the asset data of the target asset may change at different times.
Step 340, updating the stored asset data of the target asset according to the current asset data of the target asset.
After receiving the current asset data of the target asset in the target cloud platform, the configuration management server may update the stored asset data of the target asset in the target cloud platform. The asset data may be stored in a non-relational database, such as a MongoDB database.
In an exemplary embodiment, this step includes several substeps as follows:
1. comparing the current asset data of the target asset with the historical asset data of the target asset;
the historical asset data of the target asset refers to previously recorded asset data of the target asset obtained from the above-mentioned non-relational database.
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;
the configuration information of the target asset synchronization task may include a synchronization policy of the asset data of the target asset, for example, the synchronization policy may include an override policy, a deletion policy, and the like. The covering strategy is used for indicating whether to adopt the current asset data to cover the historical asset data, and the deleting strategy is used for indicating whether to delete the historical asset data.
The configuration management server can determine data change information of the target asset according to the synchronization policy, wherein the data change information is used for indicating whether historical asset data of the target asset stored in the non-relational database needs to be modified or not and how the historical asset data of the target asset needs to be modified if the historical asset data of the target asset needs to be modified.
3. And updating the stored asset data of the target asset according to the data change information.
And after determining the data change information, the configuration management server updates the stored asset data of the target asset.
In one example, if the current asset data of the target asset is not the same as the historical asset data of the target asset, then:
(1) under the condition that the configuration information of the target asset synchronization task comprises a first coverage strategy, automatically storing the current asset data of the target asset, and deleting the historical asset data of the target asset;
(2) under the condition that the configuration information of the target asset synchronization task comprises a second coverage strategy, automatically storing historical asset data of the target asset, and deleting the current asset data of the target asset;
(3) and under the condition that the configuration information of the target asset synchronization task comprises a third coverage strategy, determining a processing mode of the current asset data of the target asset and the historical asset data of the target asset according to a coverage operation instruction received from the client.
The first, second and third overlay policies described above are 3 different overlay policies. The overlay policy defines a corresponding conflict resolution when the current asset data of the target asset conflicts (e.g., does not coincide) with the historical asset data. Wherein the first overlay policy indicates that the source data (i.e., current asset data) is always the primary, synchronizing and overlaying the local data (i.e., historical asset data). The second overlay policy indicates that the local data is always kept, dominated by the local data (i.e., historical asset data), out of synchronization with the source data (i.e., current asset data). The third overlay policy indicates that conflicts are displayed for the user, and how to handle is decided by the user.
For example, for the third overlay policy, in the case of receiving a first overlay operation instruction from the client, where the first overlay operation instruction is used to instruct to save the current asset data of the target asset and delete the historical asset data of the target asset, the configuration management server saves the current asset data of the target asset according to the instruction and deletes the historical asset data of the target asset; in the case where a second override operation instruction is received from the client, the second override operation instruction being used to instruct the historical asset data of the target asset to be saved and the current asset data of the target asset to be deleted, the configuration management server saves the historical asset data of the target asset and deletes the current asset data of the target asset.
In another example, if the current asset data for the target asset does not exist, then:
(1) under the condition that the configuration information of the target asset synchronization task comprises a first deletion strategy, historical asset data of the target asset are automatically deleted immediately;
(2) under the condition that the configuration information of the target asset synchronization task comprises a second deletion strategy, automatically deleting the historical asset data of the target asset after the first set time length is finished;
(3) and under the condition that the configuration information of the target asset synchronization task comprises a third deletion strategy, determining a deletion mode of the historical asset data of the target asset according to a deletion operation instruction received from the client.
The first deletion policy, the second deletion policy, and the third deletion policy are 3 different deletion policies. The deletion policy defines the manner of deletion of the historical asset data of the target asset when the current asset data of the target asset does not exist. Wherein the first deletion policy indicates that historical asset data for the target asset is always automatically deleted immediately. The second deletion policy indicates that historical asset data for the target asset is always automatically deleted after the first set length of time has elapsed. The first set time period may 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, etc., and the specific time period of the first set time period may be set by a related technician according to practical situations, which is not limited in the embodiment of the present application. The third delete indicates that the current asset data for the target asset is not present, and is handled by the user's decision.
For example, with the third deletion policy described above, in a case where a first deletion operation instruction for instructing immediate deletion of the historical asset data of the target asset is received from the client, the configuration management server immediately deletes the historical asset data of the target asset according to the instruction; in the case where a second deletion operation instruction is received from the client, the second deletion operation instruction being used to instruct deletion of the historical asset data of the target asset after the first set duration ends, the configuration management server automatically deletes the historical asset data of the target asset after the first set duration ends.
In summary, according to the technical scheme provided by the embodiment of the application, by configuring the synchronization tasks of the multiple cloud platforms, a request can be sent to the target cloud platform according to the configuration information of the target cloud platform to acquire the current asset data of the 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 that the asset data synchronization of the multiple cloud platforms is realized, the management range of the configuration management server is expanded, and the management capability of the configuration management server is improved.
In addition, in the embodiment of the application, the asset data of the cloud platforms are managed in a centralized mode through one configuration management service, so that management resources are saved, and the convenience of acquiring the asset data of the cloud platforms is improved.
In an exemplary embodiment, as shown in FIG. 4, the method further comprises the steps (410-430) of:
step 410, receiving a synchronization record query request from a client, the synchronization record query request being used for requesting to query the synchronization history of the target asset synchronization task.
The synchronous record query request of the client may be automatically sent by the client every second set time length, or may be generated and sent by the client after receiving an operation instruction of the user. The second set time period may be 2 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, etc., and the specific time period of the second set time period may be set by a person skilled in the relevant art according to practical situations, which is not limited in the embodiments of the present application.
And step 420, acquiring the stored synchronization history of the target asset synchronization task according to the synchronization record query request.
Wherein the synchronization history of the target asset synchronization task comprises at least one of: the method comprises the steps of configuration information of a target asset synchronization task, starting and ending time 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.
Step 430, sending the synchronization history of the target asset synchronization task to the client.
By the method, the synchronization history of the target asset synchronization task can be conveniently and quickly acquired, so that the change condition of the asset data of the target asset and whether the configuration information of the target asset synchronization task is proper or not can be known, the configuration information of the target asset synchronization task can be adjusted according to the synchronization history of the target asset synchronization task, and the synchronization efficiency of the asset synchronization task is improved.
Referring to fig. 5, a flowchart of an asset management method of a cloud platform according to another embodiment of the present application is shown. In the present embodiment, the method is applied to the user terminal 10 in the above-mentioned scheme system architecture for illustration. The method may include the following steps (510-530):
and 510, displaying asset synchronization tasks corresponding to the multiple cloud platforms respectively and starting items corresponding to the asset synchronization tasks.
In some embodiments, the asset synchronization tasks respectively corresponding to the plurality of cloud platforms, and the start items corresponding to the asset synchronization tasks may be displayed in a display interface of the terminal or may be displayed in a projection manner by the terminal. The startup item is used to start a corresponding asset synchronization task. Each asset synchronization task is used to synchronize 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 assets, such as configuration, attribute, etc. Optionally, the plurality of cloud platforms includes a public cloud and/or a private cloud.
Step 520, receiving a trigger operation of a start item corresponding to a target asset synchronization task, where the target asset synchronization task is an asset synchronization task of a target cloud platform in the multiple cloud platforms, and the target asset synchronization task is used to synchronize current asset data of a target asset in the target cloud platform.
In some embodiments, the user may trigger a start item corresponding to the target asset synchronization task by clicking, touching, or the like, so as to execute the target asset synchronization task.
Step 530, displaying the synchronization result of the target asset synchronization task.
The synchronization result is used for indicating whether the asset synchronization task is successfully synchronized or not, and if the synchronization is successful, a synchronization success prompt message is displayed; and if the synchronization fails, displaying a synchronization failure prompt message.
In an example, as shown in fig. 6, in an interface of the terminal, asset synchronization tasks corresponding to a plurality of cloud platforms respectively and start items corresponding to the asset synchronization tasks are displayed; and if the triggering operation of the starting item 62 of the asset synchronization task 61 is received, displaying the synchronization result of the asset synchronization task 61.
For details which are not explained in detail in the embodiment of fig. 5, reference is made to the other embodiments described above.
In summary, according to the technical scheme provided by the embodiment of the application, asset synchronization tasks corresponding to a plurality of cloud platforms respectively are displayed in a terminal, and synchronization results of the target asset synchronization tasks are displayed by receiving triggering operations of start items corresponding to the target asset synchronization tasks, so that the asset synchronization tasks corresponding to the plurality of cloud platforms respectively can be conveniently and quickly acquired through the terminal, the synchronization results of the plurality of asset synchronization tasks can be conveniently acquired, and the management efficiency of asset data of the plurality of cloud platforms is improved.
In addition, the plurality of cloud platforms can be a hybrid cloud architecture (public cloud + private cloud), so that the configuration management server can manage the hybrid cloud architecture, and the management efficiency is further improved.
In some embodiments, as shown in fig. 7, the method further comprises the following steps:
1. in response to receiving a task creation instruction, displaying a task configuration interface 70, wherein the task configuration interface 70 comprises at least one configuration project of the newly-built asset synchronization task;
2. responding to the configuration operation aiming at the configuration items, and displaying configuration information corresponding to the configuration items;
3. and responding to a configuration completion instruction aiming at the newly-built asset synchronization task, and displaying the newly-built asset synchronization task generated based on the configuration information.
The configuration information includes at least one of: asset type, identification information of the cloud platform, identity verification information of the cloud platform, scanning region, synchronization period and synchronization strategy.
For example, for the synchronization period configuration item 71 in the task configuration interface 70, the synchronization period 72 is input in the input box of the synchronization period configuration item 71 and confirmed, i.e., the configuration operation for the synchronization period configuration item 71 is completed. Optionally, a confirmation control 73 is included in the task configuration interface 70, and a configuration completion instruction for the newly-built asset synchronization task is generated in response to a triggering operation on the confirmation control 73.
In the implementation mode, the newly-built asset synchronization task is conveniently and quickly configured through a visual interface, and the flexibility and convenience of configuration are improved.
In some embodiments, the method further comprises the steps of:
1. displaying a record viewing control corresponding to the target asset synchronization task;
2. receiving a trigger operation of a record viewing control corresponding to a target asset synchronization task;
3. displaying a synchronization history of the target asset synchronization task;
wherein, as shown in FIG. 8, the synchronization history of the target asset synchronization task comprises at least one of: configuration information of the target asset synchronization task, start and stop time 81 of the target asset synchronization task, error information 82 of the target asset synchronization task, synchronization comparison details 83 of the target asset synchronization task, synchronization result 84 of the target asset synchronization task, and synchronization operator 85 of the target asset synchronization task.
In some embodiments, as shown in fig. 9, when the current asset data of the target asset is not the same as the historical asset data of the target asset, a detail viewing option 91 is displayed, and if the detail viewing option 91 is triggered, a corresponding detail interface is displayed. In the details interface, an override option 92 and an ignore option 93 are also included, the override option 92 being used to save the current asset data of the target asset and delete the historical asset data of the target asset, and the ignore option 93 being used to save the historical asset data of the target asset and delete the current asset data of the target asset.
In some embodiments, as shown in FIG. 10, asset data details 103 of a corresponding asset 102 can be obtained by triggering a detail view control 101 in a details interface.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 11, a block diagram of an asset management device of a cloud platform according to an embodiment of the present application is shown. The device has the functions of realizing the method example of the asset management of the cloud platform, and the functions can be realized by hardware or by hardware executing corresponding software. The device may be the configuration management server described above, or may be provided on the configuration management server. The apparatus 1100 may include: an information acquisition module 1110, a request transmission module 1120, a data reception module 1130, and a data update module 1140.
The information obtaining module 1110 is configured to obtain 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 of a plurality of cloud platforms.
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, where 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 identity verification information of the target cloud platform.
The data receiving module 1130 is configured to receive asset synchronization data from the target cloud platform, where the asset synchronization data includes current asset data of the target asset.
The data updating module 1140 is configured to update the stored asset data of the target asset according to the current asset data of the target asset.
In summary, according to the technical scheme provided by the embodiment of the application, by configuring the synchronization tasks of the multiple cloud platforms, a request can be sent to the target cloud platform according to the configuration information of the target cloud platform to acquire the current asset data of the 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 that the asset data synchronization of the multiple cloud platforms is realized, the management range of the configuration management server is expanded, and the management capability of the configuration management server is improved.
In some embodiments, as shown in fig. 12, the data update module 1140 includes: a data comparison sub-module 1141, a data processing sub-module 1142, and a data update sub-module 1143.
The data comparison submodule 1141 is configured to compare the current asset data of the target asset with the historical asset data of the target asset.
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, so as to obtain data change information of the target asset.
The data updating submodule 1143 is configured to update the stored asset data of the target asset according to the data change information.
In some embodiments, as shown in fig. 12, the data processing sub-module 1142 is configured to:
if the current asset data of the target asset is not the same as the historical asset data of the target asset, then:
under the condition that the configuration information of the target asset synchronization task comprises a first coverage strategy, automatically storing the current asset data of the target asset and deleting the historical asset data of the target asset;
or, under the condition that the configuration information of the target asset synchronization task comprises a second coverage strategy, automatically storing historical asset data of the target asset and deleting the current asset data of the target asset;
or, under the condition that the configuration information of the target asset synchronization task comprises a third coverage strategy, determining a processing mode of the current asset data of the target asset and the historical asset data of the target asset according to a coverage operation instruction received from a client.
In some embodiments, as shown in fig. 12, the data processing sub-module 1142 is configured to:
if the current asset data of the target asset does not exist, then:
under the condition that the configuration information of the target asset synchronization task comprises a first deletion strategy, immediately and automatically deleting the historical asset data of the target asset;
or, under the condition that the configuration information of the target asset synchronization task comprises a second deletion strategy, automatically deleting the historical asset data of the target asset after the first set time length is finished;
or, under the condition that the configuration information of the target asset synchronization task includes a third deletion strategy, determining a deletion mode of the historical asset data of the target asset according to a deletion operation instruction received from a client.
In some embodiments, as shown in fig. 12, the apparatus 1100 further comprises: an information receiving module 1150 and a data storage module 1160.
The information receiving module 1150 is configured to receive configuration information of the target asset synchronization task from a client.
The data storage module 1160 is configured to store the configuration information of the target asset synchronization task in a relational database.
In some embodiments, as shown in fig. 12, the apparatus 1100 further comprises: a record acquisition module 1170, and a record sending module 1180.
The information receiving module 1150 is further configured to receive a synchronization record query request from a client, where the synchronization record query request is used to request to query the synchronization history of the target asset synchronization task.
The record obtaining module 1170 is configured to obtain a stored synchronization history record of the target asset synchronization task according to the synchronization record query request; wherein the synchronization history of the target asset synchronization task comprises at least one of: the configuration information of the target asset synchronization task, the starting and ending 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.
The record sending module 1180 is configured to send the synchronization history record of the target asset synchronization task to the client.
In some embodiments, as shown in FIG. 12, the configuration management server supports running multiple task processes, with different task processes for performing different asset synchronization tasks.
Referring to fig. 13, a block diagram of an asset management device of a cloud platform according to another embodiment of the present application is shown. The device has the functions of realizing the method example of the asset management of the cloud platform, and the functions can be realized by hardware or by hardware executing corresponding software. The device may be the terminal described above, or may be provided on the terminal. The apparatus 1300 may include: a task display module 1310, an operation receiving module 1320, and a result display module 1330.
The task display module 1310 is configured to display asset synchronization tasks corresponding to the multiple cloud platforms respectively, and start items corresponding to the asset synchronization tasks.
The operation receiving module 1320 is configured to receive a trigger operation for a start item corresponding to a target asset synchronization task, where the target asset synchronization task is an asset synchronization task of a target cloud platform in the multiple cloud platforms, and the target asset synchronization task is used to synchronize current asset data of a target asset in the target cloud platform.
The result displaying module 1330 is configured to display a synchronization result of the target asset synchronization task.
In summary, according to the technical scheme provided by the embodiment of the application, the synchronization history of the target asset synchronization task can be conveniently and quickly acquired, so that the change condition of the asset data of the target asset and whether the configuration information of the target asset synchronization task is appropriate can be known, the configuration information of the target asset synchronization task can be adjusted according to the synchronization history of the target asset synchronization task, and the synchronization efficiency of the asset synchronization task is improved.
In some embodiments, as shown in fig. 14, the apparatus 1300 further comprises: an interface display module 1340 and an information display module 1350.
The interface display module 1340 is configured to, in response to receiving a task creation instruction, display a task configuration interface, where the task configuration interface includes at least one configuration project of a newly-created asset synchronization task.
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.
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 for the newly created asset synchronization task.
In some embodiments, the configuration information comprises at least one of: asset type, identification information of the cloud platform, identity verification information of the cloud platform, scanning region, synchronization period and synchronization strategy.
In some embodiments, as shown in fig. 14, the apparatus 1300 further comprises: a control display module 1360 and a record display module 1370.
The control display module 1360 is configured to display a record viewing control corresponding to the target asset synchronization task.
The operation receiving module 1320 is further configured to receive a trigger operation of a record viewing control corresponding to the target asset synchronization task.
The record display module 1370 is configured to display the synchronization history record of the target asset synchronization task.
Wherein the synchronization history of the target asset synchronization task comprises at least one of: the configuration information of the target asset synchronization task, the starting and ending 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.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 15, a block diagram of a computer device according to an embodiment of the present application is shown. The computer device is used for implementing the asset management method of the cloud platform provided in the above embodiment. Specifically, the method comprises the following steps:
the computer apparatus 1500 includes a CPU (Central Processing Unit) 1501, a system Memory 1504 including a RAM (Random Access Memory) 1502 and a ROM (Read-Only Memory) 1503, and a system bus 1505 connecting the system Memory 1504 and the Central Processing Unit 1501. The computer device 1500 also includes a basic I/O (Input/Output) system 1506 that facilitates transfer of information between devices within the computer, and a mass storage device 1507 that stores an operating system 1513, application programs 1514, and other program modules 1515.
The basic input/output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 1508 and the input device 1509 are connected to the central processing unit 1501 via an input output controller 1510 connected to the system bus 1505. The basic input/output system 1506 may also include an input/output controller 1510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 1510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) 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 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, 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, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1504 and mass storage device 1507 described above may be collectively referred to as memory.
According to various embodiments of the present application, the computer device 1500 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 1500 may be connected to the network 1512 through the network interface unit 1511 connected to the system bus 1505 or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1511.
Referring to fig. 16, a block diagram of a terminal 1600 according to an embodiment of the present application is shown. The terminal 1600 may be an electronic device such as a mobile phone, a tablet computer, a game console, an electronic book reader, a multimedia player device, a wearable device, a PC, etc. The terminal is used for implementing the asset management method of the cloud platform on the terminal side provided in the above embodiment. The terminal may be the terminal 10 in the implementation environment shown in fig. 1. Specifically, the method comprises the following steps:
generally, terminal 1600 includes: a processor 1601, and a memory 1602.
Processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1602 is used to store at least one instruction, at least one program, set of codes, or set of instructions, and is configured to be executed by one or more processors to implement the above-described asset management method of a terminal-side cloud platform.
In some embodiments, the terminal 1600 may also optionally include: peripheral interface 1603 and at least one peripheral. Processor 1601, memory 1602 and peripheral interface 1603 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1603 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1604, a display 1605, a camera assembly 1606, audio circuitry 1607, a positioning assembly 1608, and a power supply 1609.
Those skilled in the art will appreciate that the configuration shown in fig. 16 is not intended to be limiting of terminal 1600, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, there is also provided a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the above-mentioned asset management method of a server-side cloud platform.
In an exemplary embodiment, there is also provided a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the above-mentioned asset management method of a terminal-side cloud platform.
Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State drive), or optical disk. The Random Access Memory may include a ReRAM (resistive Random Access Memory) and a DRAM (Dynamic Random Access Memory).
In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising 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 executes the computer instructions, so that the computer device executes the asset management method of the cloud platform on the server side.
In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising 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 executes the computer instructions, so that the computer device executes the asset management method of the cloud platform on the terminal side.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. The asset management method of the cloud platform is characterized by being applied to a configuration management server, wherein the configuration management server is used for carrying out asset management on a plurality of cloud platforms;
the method comprises the following steps:
under the condition that a target asset synchronization task is started, acquiring 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 of the plurality of cloud platforms;
according to the configuration information of the target asset synchronization task, sending an asset synchronization request to the target cloud platform, wherein the asset synchronization request is used for requesting synchronization of current asset data of a target asset in the target cloud platform, and the asset synchronization request comprises identity verification information of the target cloud platform;
receiving asset synchronization data from the target cloud platform, wherein the asset synchronization data comprises current asset data of the target asset;
and updating the stored asset data of the target asset according to the current asset data of the target asset.
2. The method of claim 1, wherein updating the target of the stored asset data of the target asset based on the current asset data of the target asset comprises:
comparing the current asset data of the target asset with the historical asset data of the target asset;
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;
and updating the stored asset data of the target asset according to the data change information.
3. The method according to claim 2, wherein the 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 the data change information of the target asset comprises:
if the current asset data of the target asset is not the same as the historical asset data of the target asset, then:
under the condition that the configuration information of the target asset synchronization task comprises a first coverage strategy, automatically storing the current asset data of the target asset and deleting the historical asset data of the target asset;
or the like, or, alternatively,
under the condition that the configuration information of the target asset synchronization task comprises a second coverage strategy, automatically storing historical asset data of the target asset and deleting current asset data of the target asset;
or the like, or, alternatively,
and under the condition that the configuration information of the target asset synchronization task comprises a third coverage strategy, determining a processing mode of the current asset data of the target asset and the historical asset data of the target asset according to a coverage operation instruction received from a client.
4. The method according to claim 2, wherein the 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 the data change information of the target asset comprises:
if the current asset data of the target asset does not exist, then:
under the condition that the configuration information of the target asset synchronization task comprises a first deletion strategy, immediately and automatically deleting the historical asset data of the target asset;
or the like, or, alternatively,
under the condition that the configuration information of the target asset synchronization task comprises a second deletion strategy, automatically deleting the historical asset data of the target asset after the first set time length is finished;
or the like, or, alternatively,
and under the condition that the configuration information of the target asset synchronization task comprises a third deletion strategy, determining a deletion mode of the historical asset data of the target asset according to a deletion operation instruction received from a client.
5. The method of claim 1, further comprising:
receiving configuration information of the target asset synchronization task from a client;
and storing the configuration information of the target asset synchronization task in a relational database.
6. The method of claim 1, further comprising:
receiving a synchronous record query request from a client, wherein the synchronous record query request is used for requesting to query a synchronous history record of the target asset synchronous task;
acquiring a stored synchronization history record of the target asset synchronization task according to the synchronization record query request; wherein the synchronization history of the target asset synchronization task comprises at least one of: the configuration information of the target asset synchronization task, the starting and ending 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;
and sending the synchronization history of the target asset synchronization task to the client.
7. The method of any of claims 1 to 6, wherein the configuration management server supports running multiple task processes, different task processes being used to perform different asset synchronization tasks.
8. A method for asset management of a cloud platform, the method comprising:
displaying asset synchronization tasks corresponding to a plurality of cloud platforms respectively and starting items corresponding to the asset synchronization tasks;
receiving a trigger operation of a starting item corresponding to a target asset synchronization task, wherein the target asset synchronization task is an asset synchronization task of a target cloud platform in the plurality of cloud platforms, and the target asset synchronization task is used for synchronizing current asset data of a target asset in the target cloud platform;
and displaying the synchronization result of the target asset synchronization task.
9. The method of claim 8, further comprising:
responding to a received task creating instruction, and displaying a task configuration interface, wherein the task configuration interface comprises at least one configuration project of a newly-built asset synchronization task;
responding to the configuration operation aiming at the configuration items, and displaying configuration information corresponding to the configuration items;
and responding to a configuration completion instruction aiming at the newly-built asset synchronization task, and displaying the newly-built asset synchronization task generated based on the configuration information.
10. The method of claim 9, wherein the configuration information comprises at least one of: asset type, identification information of the cloud platform, identity verification information of the cloud platform, scanning region, synchronization period and synchronization strategy.
11. The method according to any one of claims 8 to 10, further comprising:
displaying a record viewing control corresponding to the target asset synchronization task;
receiving a trigger operation of a record viewing control corresponding to the target asset synchronization task;
displaying a synchronization history of the target asset synchronization task;
wherein the synchronization history of the target asset synchronization task comprises at least one of: the configuration information of the target asset synchronization task, the starting and ending 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.
12. An asset management device of a cloud platform, the device comprising:
the information acquisition module is used for acquiring identity verification information of a target cloud platform and configuration information of a target asset synchronization task under the condition that 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;
a request sending module, configured to send an asset synchronization request to the target cloud platform according to configuration information of the target asset synchronization task, where 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 identity verification information of the target cloud platform;
the data receiving module is used for receiving asset synchronization data from the target cloud platform, wherein the asset synchronization data comprises current asset data of the target asset;
and the data updating module is used for updating the stored asset data of the target asset according to the current asset data of the target asset.
13. An asset management device of a cloud platform, the device comprising:
the task display module is used for displaying asset synchronization tasks corresponding to the cloud platforms respectively and starting items corresponding to the asset synchronization tasks;
an operation receiving module, configured to receive a trigger operation of a start item corresponding to a target asset synchronization task, where the target asset synchronization task is an asset synchronization task of a target cloud platform in the multiple cloud platforms, and the target asset synchronization task is used to synchronize current asset data of a target asset in the target cloud platform;
and the result display module is used for displaying the synchronization result of the target asset synchronization task.
14. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the asset management method of a cloud platform as claimed in any one of claims 1 to 7 or the asset management method of a cloud platform as claimed in any one of claims 8 to 11.
15. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the asset management method of a cloud platform according to any one of claims 1 to 7, or to implement the asset management method of a cloud platform according to any one of claims 8 to 11.
CN202011053299.9A 2020-09-29 2020-09-29 Asset management method, device, equipment and storage medium of cloud platform Pending CN112115203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011053299.9A CN112115203A (en) 2020-09-29 2020-09-29 Asset management method, device, equipment and storage medium of cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011053299.9A CN112115203A (en) 2020-09-29 2020-09-29 Asset management method, device, equipment and storage medium of cloud platform

Publications (1)

Publication Number Publication Date
CN112115203A true CN112115203A (en) 2020-12-22

Family

ID=73797653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011053299.9A Pending CN112115203A (en) 2020-09-29 2020-09-29 Asset management method, device, equipment and storage medium of cloud platform

Country Status (1)

Country Link
CN (1) CN112115203A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014656A (en) * 2021-03-09 2021-06-22 北京百度网讯科技有限公司 Private cloud information synchronization method and device
CN113032483A (en) * 2021-03-12 2021-06-25 北京百度网讯科技有限公司 Cross-platform data asset sharing method and device and electronic equipment
CN113709170A (en) * 2021-09-01 2021-11-26 京东科技信息技术有限公司 Asset safe operation system, method and device
CN114610407A (en) * 2022-03-10 2022-06-10 中国建设银行股份有限公司 Method and device for creating configuration management object, electronic equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014656A (en) * 2021-03-09 2021-06-22 北京百度网讯科技有限公司 Private cloud information synchronization method and device
CN113014656B (en) * 2021-03-09 2023-04-07 北京百度网讯科技有限公司 Private cloud information synchronization method and device
CN113032483A (en) * 2021-03-12 2021-06-25 北京百度网讯科技有限公司 Cross-platform data asset sharing method and device and electronic equipment
CN113032483B (en) * 2021-03-12 2023-08-08 北京百度网讯科技有限公司 Cross-platform data asset sharing method and device and electronic equipment
CN113709170A (en) * 2021-09-01 2021-11-26 京东科技信息技术有限公司 Asset safe operation system, method and device
CN114610407A (en) * 2022-03-10 2022-06-10 中国建设银行股份有限公司 Method and device for creating configuration management object, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP7202369B2 (en) Leveraging microservice containers to provide tenant isolation in a multi-tenant API gateway
US20200389532A1 (en) Field service management mobile offline synchronization
CN112115203A (en) Asset management method, device, equipment and storage medium of cloud platform
CN112104723B (en) Multi-cluster data processing system and method
US10291704B2 (en) Networked solutions integration using a cloud business object broker
CN104380253B (en) Application resource file based on high in the clouds
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
WO2018119601A1 (en) Data conversion method and back-up server
US10891282B1 (en) Mutations with immediate feedback
US11159634B1 (en) Subscription fan out
CN111651418B (en) Document content downloading method and device, computer equipment and storage medium
CN110196843B (en) File distribution method based on container cluster and container cluster
CN111327613A (en) Distributed service authority control method and device and computer readable storage medium
CN108632354A (en) Physical machine receives pipe method, apparatus and cloud desktop management platform
US11126610B1 (en) Conflict resolution in a data proxy
US11089133B1 (en) Synchronizing data with delayed subscriptions
US20200045139A1 (en) Remote procedure call using quorum state store
CN114650320B (en) Task scheduling method and device, storage medium and electronic equipment
CN113254424B (en) Data service migration method, device and equipment
CN101378389A (en) Server, system and information sharing method
CN116360918A (en) Modeling data processing method, modeling data processing device, computer equipment and storage medium
CN113656378A (en) Server management method, device and medium
US9197519B2 (en) Tracking objects within dynamic environments
US11483381B1 (en) Distributing cloud migration
CN112055057B (en) Method, system and equipment for dynamic expansion of Web system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination