CN117614953A - Cloud asset information acquisition method and device, computer equipment and medium - Google Patents

Cloud asset information acquisition method and device, computer equipment and medium Download PDF

Info

Publication number
CN117614953A
CN117614953A CN202311692837.2A CN202311692837A CN117614953A CN 117614953 A CN117614953 A CN 117614953A CN 202311692837 A CN202311692837 A CN 202311692837A CN 117614953 A CN117614953 A CN 117614953A
Authority
CN
China
Prior art keywords
asset information
cloud platform
target cloud
target
information acquisition
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
CN202311692837.2A
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.)
Runxin Commercial Investment Shenzhen Co ltd
Original Assignee
Runxin Commercial Investment 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 Runxin Commercial Investment Shenzhen Co ltd filed Critical Runxin Commercial Investment Shenzhen Co ltd
Priority to CN202311692837.2A priority Critical patent/CN117614953A/en
Publication of CN117614953A publication Critical patent/CN117614953A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a cloud asset information acquisition method, a cloud asset information acquisition device, a computer and a medium. The method comprises the following steps: responding to an asset information acquisition instruction, and reading a target configuration file to determine a target cloud platform needing to acquire asset information; the number of the target cloud platforms is multiple; an asset information acquisition request is sent to each target cloud platform through an asset information acquisition interface provided by each target cloud platform; receiving first asset information returned by each target cloud platform; processing the first asset information into second asset information which meets the format requirement of an asset information writing interface of the configuration management database; the second asset information is written to the configuration management database. The method can realize the unbinding and independent maintenance of the asset information acquisition tool and the CMDB, so that the updating operation of the asset information acquisition tool becomes simpler, the updating of the asset information acquisition tool does not interfere with the iteration of the CMDB version, and the reliability of the CMDB is further improved.

Description

Cloud asset information acquisition method and device, computer equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of big data, in particular to a cloud asset information acquisition method, a cloud asset information acquisition device, a cloud asset information acquisition computer and a cloud asset information acquisition medium.
Background
In performing asset management, a technology center of some enterprises needs asset information management involving multiple cloud platforms and data centers, including, for example: ali cloud, tengxun cloud, huarun cloud, data center, self-built machine room and the like. Under the hybrid cloud deployment architecture, the work of integrating, unifying and timely updating the asset information of each cloud platform and each data center becomes very complicated, wherein the acquisition of the asset information of each cloud platform and each data center is an important ring in the work.
For collection of asset information, the solution commonly adopted in the industry is to integrate the asset collection function into the CMDB (Configuration Management Database ) to develop together, and maintain along with the life cycle of the CMDB, and this solution has the disadvantage that the update of the asset information collection function needs to be updated together with the CMDB, which makes the procedure for realizing asset information collection strongly bind with the CMDB, and the operation is complicated when the update is needed, and the reliability of the CMDB is affected by the procedure.
Disclosure of Invention
Aiming at the defects or shortcomings, the application provides a cloud asset information acquisition method, device, computer and medium. In the embodiment of the application, the asset information acquisition end performs information interaction with the CMDB and each cloud platform through the API to acquire asset information, and the asset information acquisition end operates an asset information acquisition tool for realizing an asset information acquisition function, and the asset information acquisition tool is unbinding with the CMDB and is independently maintained, so that the updating operation of the asset information acquisition tool becomes simpler, and the updating of the asset information acquisition tool does not interfere with CMDB version iteration, so that the reliability of the CMDB is improved. In addition, the collection tool supports asset information collection for an in-line data center in the form of a table file and writes to the CMDB.
The application provides a cloud asset information acquisition method according to a first aspect, which comprises the following steps:
responding to an asset information acquisition instruction, and reading a target configuration file to determine a target cloud platform needing to acquire asset information; the number of the target cloud platforms is multiple;
an asset information acquisition request is sent to each target cloud platform through an asset information acquisition interface provided by each target cloud platform;
receiving first asset information returned by each target cloud platform;
processing the first asset information into second asset information which meets the format requirement of an asset information writing interface of the configuration management database;
the second asset information is written to the configuration management database.
In some embodiments, the first asset information returned by each target cloud platform is obtained by serializing the original asset information by each target cloud platform according to a return format of an own asset information acquisition interface.
In some embodiments, processing the first asset information into second asset information conforming to format requirements of an asset information writing interface of a configuration management database includes:
performing deserialization processing on the first asset information according to a preset format to obtain third asset information;
and carrying out serialization processing on the third asset information according to the data format of the asset information writing interface of the configuration management database to obtain the second asset information.
In some embodiments, the first asset information and the second asset information are byte stream data in json format, and the third asset information is object data.
In some embodiments, the method further comprises:
acquiring an imported data center table file;
analyzing the data center table file, and carrying out serialization processing on the analysis result according to the data format of the asset information writing interface of the configuration management database to obtain fourth asset information;
and writing the fourth asset information into a configuration management database.
In some embodiments, the method further comprises:
and responding to the target cloud platform configuration instruction, generating a target configuration file, wherein the target configuration file comprises the address and authentication information of the asset information writing interface of the configuration management database, and the address and authentication information of the asset information acquisition interface of each target cloud platform.
In some embodiments, the above-described methods are applied to an asset information collection peer that runs an asset information collection tool that runs independently of a configuration management database.
The present application provides a cloud asset information collection device according to a second aspect, the device comprising:
the cloud platform query module is used for responding to the asset information acquisition instruction, reading the target configuration file and determining a target cloud platform needing to acquire asset information; the number of the target cloud platforms is multiple;
the asset information acquisition module is used for sending an asset information acquisition request to each target cloud platform through an asset information acquisition interface provided by each target cloud platform;
and the asset information processing module is used for receiving the first asset information returned by each target cloud platform, processing the first asset information into second asset information which accords with the format requirement of the asset information writing interface of the configuration management database, and writing the second asset information into the configuration management database.
According to a third aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the cloud asset information collection method of any of the preceding claims when executing the computer program.
According to a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the cloud asset information collection method of any of the above.
In the embodiment of the application, the asset information collection terminal performs information interaction with the CMDB and each cloud platform through the API to collect asset information. When a user manually activates the collection action of the asset information collection terminal, the asset information collection terminal firstly reads the target configuration file to determine target cloud platforms needing to collect asset information, wherein the number of the target cloud platforms is multiple. And then, sending an asset information acquisition request to each target cloud platform through an API (Application Programming Interface, asset information acquisition) interface provided by each target cloud platform, and receiving first asset information returned by each target cloud platform by an asset information acquisition end. Then, the asset information collection terminal processes the first asset information into second asset information which meets the format requirement of the asset information writing interface of the CMDB, and finally writes the second asset information into the CMDB. The asset information acquisition end is operated with an asset information acquisition tool for realizing an asset information acquisition function. In this way, the asset information collection tool is unbinding and independently maintained with the CMDB, so that the updating operation of the asset information collection tool becomes simpler, and the updating of the asset information collection tool does not interfere with CMDB version iteration, thereby improving the reliability of the CMDB. In addition, the collection tool supports asset information collection for an in-line data center in the form of a table file and writes to the CMDB.
Drawings
Fig. 1 is a schematic view of an application environment of a cloud asset information collection method according to one or more embodiments of the present application;
FIG. 2 is a timing diagram of a method of cloud asset information collection in one or more embodiments of the present application;
FIG. 3 is a flowchart of a method for collecting cloud asset information according to one or more embodiments of the present application;
FIG. 4 is a flowchart of a method for processing cloud asset information according to one or more embodiments of the present application;
FIG. 5 is a flow diagram of a method for data collection in an offline data center in accordance with one or more embodiments of the present application;
fig. 6 is a schematic structural diagram of a cloud asset information collection device according to one or more embodiments of the present application;
FIG. 7 is a schematic diagram of a computer device in one or more embodiments of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
According to a first aspect, the application provides a cloud asset information collection method, in some embodiments, the method is applied to an application environment shown in fig. 1, the method achieves an asset information collection function through an asset information collection end, an asset information collection tool of the asset information collection end is used for collecting asset information of various cloud platforms, and asset information from each cloud platform is converted into a unified format and written into a CMDB. The asset information acquisition tool is not integrated with the CMDB program, but is independently developed, so that the asset information acquisition tool and the CMDB are not in a binding state but in a unbinding state, and have no mutual dependency relationship with each cloud platform and the CMDB during operation, and based on the fact, the asset information acquisition tool can be independently maintained without participating in product iteration of the CMDB and without updating with the CMDB. The asset information collection tool is unbinding with the CMDB, so that the reliability of the CMDB is not affected, and the asset information collection tool can be adapted to a plurality of different CMDB, so that the asset information collection functions can be multiplexed without developing corresponding asset information collection functions for each CMDB.
Further, the asset information collection tool specifically performs data interaction with each cloud platform and each CMDB through an API (Application Programming Interface ), and can be operated in any environment capable of requesting to the CMDB and the API opened by the cloud platform at the same time, i.e. has strong deployment flexibility and broad compatibility, and can be specifically deployed on ARM (Advanced RISC Machines) or x86 architecture processor platforms, i.e. can be operated on various different types of devices (including mobile devices, embedded systems, traditional desktops and servers), and meanwhile, can be operated on different operating systems such as Linux, windows, which is beneficial to meeting the requirements of different users in different scenes.
Illustratively, as shown in a timing chart of the cloud asset information collection method shown in fig. 2, after a user manually triggers a collection action of an asset information collection tool, the asset information collection end sequentially collects cloud asset information of the cloud platform a, the cloud platform B and the data center. Finally, when the user queries the cloud asset information, the CMDB returns the cloud asset information collected from the cloud platform A, B and the data center to the user as a query result. By the method, cloud asset information can be automatically captured, and complicated steps of repeated manual operation of a user are omitted.
In some embodiments, the method includes steps as shown in fig. 3, and the steps are described below by taking as an example that the method is applied to an asset information collection terminal, that is, a device running the asset information collection tool (it may be understood that other applications other than the tool may also be running on the device).
S110: responding to an asset information acquisition instruction, and reading a target configuration file to determine a target cloud platform needing to acquire asset information; the number of the target cloud platforms is multiple;
the number of target cloud platforms is usually a plurality of target cloud platforms, and in some cases, only one target cloud platform can be used.
Specifically, when the cloud asset manager manually activates the acquisition action of the acquisition tool on the terminal device, the terminal device sends an asset information acquisition instruction to the cloud processor platform. Then, after receiving the asset information acquisition instruction, an acquisition tool on the cloud processor platform reads the target configuration file to determine a target cloud platform for acquiring asset information. Or the cloud processor platform sends asset information acquisition instructions to the acquisition tool at regular time. Through the steps of the method, the acquisition tool is started manually or at regular time in a procedure, and a cloud asset manager can determine what type of starting mode is adopted specifically according to personal requirements.
Generally, before the collection tool starts the collection action to be executed, the cloud asset manager needs to perform target cloud platform configuration on the collection tool, so that the collection tool automatically and accurately determines the target cloud platform.
In some embodiments, the method further comprises:
and responding to the target cloud platform configuration instruction, generating a target configuration file, wherein the target configuration file comprises the address and authentication information of the asset information writing interface of the configuration management database, and the address and authentication information of the asset information acquisition interface of each target cloud platform.
Specifically, a cloud asset manager manually sets a target configuration file on a terminal device. Then, the terminal equipment sends a target cloud platform configuration instruction to the cloud processor platform, so that the acquisition tool generates a corresponding target configuration file. The address and authentication information of the asset information writing interface of the configuration management database may be the API address and authentication information of the CMDB, and the address and authentication information of the asset information obtaining interface of each target cloud platform may be the API address and authentication information of each cloud service provider. In addition, the configuration of the target configuration file itself should also include log configuration, work directory, number of work threads, and the like.
Through the steps of the method, accurate matching of cloud asset information acquisition is achieved. Illustratively, if the cloud asset manager locates the enterprise cloud asset information to be collected in the ali cloud according to personal requirements, the cloud asset manager sets the API address in the target configuration file to be an API address matched with the ali cloud.
S120: an asset information acquisition request is sent to each target cloud platform through an asset information acquisition interface provided by each target cloud platform;
in particular, the asset information acquisition interface may be an API. The collection tool determines a target cloud platform needing to collect asset information, and sends an asset information acquisition request to each target cloud platform through each target cloud platform API.
S130: receiving first asset information returned by each target cloud platform;
s140: processing the first asset information into second asset information which meets the format requirement of an asset information writing interface of the configuration management database;
specifically, the first asset information includes an asset ID, an asset tag, an asset specification, an access address, and the like.
In some embodiments, the first asset information returned by each target cloud platform is obtained by serializing the original asset information by each target cloud platform according to a return format of an own asset information acquisition interface.
The flow of serializing the original asset information by each target cloud platform according to the return format of its own API is as follows:
and each target cloud platform takes out the data (such as a serial number field and the like) of the original asset information from the database of the cloud platform and assembles the data into a return format (the return format is generally Json byte stream) of the open API, and the process is the serialization process of the cloud platform. The purpose of serializing the collected data in the tool is to avoid the problem of inconsistent data formats exposed by OpenAPI of each target cloud platform.
In some embodiments, as shown in FIG. 4, processing the first asset information into second asset information conforming to the format requirements of the asset information writing interface of the configuration management database includes:
s210: performing deserialization processing on the first asset information according to a preset format to obtain third asset information;
specifically, the collection tool may perform a deserialization process on the first asset information according to the following predetermined format, where the process is as follows:
after receiving the first asset information returned from the target cloud platform, the acquisition tool analyzes the first asset information in the acquisition tool according to a preset format, such as the following structural bodies:
the structure corresponds to a cloud platform API return parameter field, and the process is a reverse serialization process of the acquisition tool, namely, converting a byte stream form of the first asset information into object data of the third asset information.
S220: and carrying out serialization processing on the third asset information according to the data format of the asset information writing interface of the configuration management database to obtain the second asset information.
In some embodiments, the first asset information and the second asset information are byte stream data in json format, and the third asset information is object data.
Specifically, the collection tool may sequence the third asset information according to the data format of the API of the CMDB, as follows:
the collection tool installs the above-mentioned object after reverse serialization in the API format output accepted by the CMDB, so as to conform to the processing logic of the CMDB, and outputs the byte stream in Json format as follows:
the above process is to perform serialization processing on the third asset information.
Because the cloud platform database table structure is generally not completely consistent with the structure represented by the CMDB, the collection tool needs to deserialize and re-serialize the asset information obtained through the cloud platform API to output to the CMDB in order to avoid format mismatch that would not be able to write to the CMDB.
In addition, the collected asset information is subjected to serialization and deserialization processes in the collection tool, so that the purpose of solving the problem that the exposed data formats of the OpenAPI (OpenAPI Specification, openAPI specification, OSA for short) of each target cloud platform are inconsistent is that the collected asset information is deserialized in the collection tool, is stored in a memory structure body of the collection tool, and then the structure body data is serialized through subsequent program codes so as to be assembled into a data format conforming to the table structure of the configuration management database for output, so that smooth transmission of the asset information is realized.
S150: the second asset information is written to the configuration management database.
In some embodiments, the above-described methods are applied to an asset information collection peer that runs an asset information collection tool that runs independently of a configuration management database.
Specifically, the asset information collection terminal may be the collection tool described above.
By the steps of the method, when the acquisition tool in the cloud processor platform is used for acquiring the asset information of the cloud platform, the acquisition tool is unbinding with the CMDB and is independently maintained, iteration of the CMDB version is not interfered, and the cloud asset information management efficiency is improved.
In some embodiments, as shown in fig. 5, the method further comprises:
s310: acquiring an imported data center table file;
specifically, when a cloud asset manager needs to collect an offline data center, a collection action of the collection tool on the data center is started manually on the terminal device. Then, the collection tool obtains the imported data center Exel table file.
S320: analyzing the data center table file, and carrying out serialization processing on the analysis result according to the data format of the asset information writing interface of the configuration management database to obtain fourth asset information;
s330: and writing the fourth asset information into a configuration management database.
Specifically, the collection tool uses a third party package in go language to process the excel file to complete the parsing process of the data center table file. Then, the collecting tool performs serialization processing on the analysis result according to the data format of the API of the CMDB according to the method in the steps of the above embodiment, and finally writes the fourth asset information into the CMDB.
Through the steps of the method, the acquisition tool is utilized to acquire asset information of the data center under the line in the form of an Exel table, and the cloud asset information is collected and output in a uniform format so as to be uniformly written into the CMDB.
It should be noted that, regarding the steps included in the cloud asset information collection method provided in any of the foregoing embodiments, the steps are not strictly limited in order unless explicitly stated herein, and may be performed in other orders. Moreover, at least some of these steps may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
The present application provides a cloud asset information collection device according to a second aspect, as shown in fig. 6, the device includes:
the cloud platform query module 110 is configured to read a target configuration file in response to an asset information acquisition instruction to determine a target cloud platform that needs to acquire asset information; the number of the target cloud platforms is multiple;
in some embodiments, the cloud platform query module 110 is further configured to generate, in response to the target cloud platform configuration instruction, a target configuration file, where the target configuration file includes an address and authentication information of an asset information writing interface of the configuration management database, and the asset information of each target cloud platform obtains the address and authentication information of the interface.
The asset information obtaining module 120 is configured to send an asset information obtaining request to each target cloud platform through an asset information obtaining interface provided by each target cloud platform;
the asset information processing module 130 is configured to receive first asset information returned by each target cloud platform, process the first asset information into second asset information that meets the format requirement of the asset information writing interface of the configuration management database, and write the second asset information into the configuration management database;
in some embodiments, the first asset information returned by each target cloud platform is obtained by serializing the original asset information by each target cloud platform according to a return format of an own asset information acquisition interface.
In some embodiments, the asset information processing module 130 is further configured to perform deserialization processing on the first asset information according to a predetermined format to obtain third asset information;
and carrying out serialization processing on the third asset information according to the data format of the asset information writing interface of the configuration management database to obtain the second asset information.
In some embodiments, the first asset information and the second asset information are byte stream data in json format, and the third asset information is object data.
For specific limitation of the cloud asset information collection device, reference may be made to the limitation of the cloud asset information collection method hereinabove, and no further description is given here. All or part of the modules in the cloud asset information acquisition device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
According to a third aspect of the present application, there is provided a computer device, as shown in fig. 7, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the cloud asset information collection method of any one of the above when executing the computer program.
In some embodiments, the internal block diagrams of the computer devices described above may include a processor, memory, network interface, and database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as the target configuration file, and the specific stored data can also be referred to as limitation in the embodiment of the method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements the cloud asset information collection method provided in any of the embodiments described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
According to a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the cloud asset information collection method of any of the above.
Those of ordinary skill in the art will appreciate that implementing all or part of the above described method embodiments may be accomplished by computer programs to instruct related hardware. The computer program may be stored in a non-transitory computer readable storage medium, which when executed may include the flow of embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus (RamCus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A cloud asset information collection method, the method comprising:
responding to an asset information acquisition instruction, and reading a target configuration file to determine a target cloud platform needing to acquire asset information; the number of the target cloud platforms is multiple;
an asset information acquisition request is sent to each target cloud platform through an asset information acquisition interface provided by each target cloud platform;
receiving first asset information returned by each target cloud platform;
processing the first asset information into second asset information which accords with the format requirement of an asset information writing interface of a configuration management database;
and writing the second asset information into the configuration management database.
2. The method of claim 1, wherein the first asset information returned by each target cloud platform is obtained by serializing original asset information by each target cloud platform according to a return format of an own asset information acquisition interface.
3. The method of claim 2, wherein processing the first asset information into second asset information conforming to format requirements of an asset information writing interface of a configuration management database comprises:
performing deserialization processing on the first asset information according to a preset format to obtain third asset information;
and carrying out serialization processing on the third asset information according to the data format of the asset information writing interface of the configuration management database to obtain second asset information.
4. The method of claim 3, wherein the first asset information and the second asset information are byte stream data in json format, and the third asset information is object data.
5. The method of claim 1, wherein the method further comprises:
acquiring an imported data center table file;
analyzing the data center table file, and carrying out serialization processing on the analysis result according to the data format of the asset information writing interface of the configuration management database to obtain fourth asset information;
writing the fourth asset information into the configuration management database.
6. The method of claim 1, wherein the method further comprises:
and responding to a target cloud platform configuration instruction, generating a target configuration file, wherein the target configuration file comprises the address and authentication information of an asset information writing interface of the configuration management database, and the address and authentication information of an asset information acquisition interface of each target cloud platform.
7. The method of claim 1, wherein the method is applied to an asset information collection peer that runs an asset information collection tool that runs independently of the configuration management database.
8. A cloud asset information collection device, the device comprising:
the cloud platform query module is used for responding to the asset information acquisition instruction, reading the target configuration file and determining a target cloud platform needing to acquire asset information; the number of the target cloud platforms is multiple;
the asset information acquisition module is used for sending asset information acquisition requests to each target cloud platform through asset information acquisition interfaces provided by each target cloud platform;
and the asset information processing module is used for receiving the first asset information returned by each target cloud platform, processing the first asset information into second asset information which accords with the format requirement of an asset information writing interface of a configuration management database, and writing the second asset information into the configuration management database.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
CN202311692837.2A 2023-12-11 2023-12-11 Cloud asset information acquisition method and device, computer equipment and medium Pending CN117614953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311692837.2A CN117614953A (en) 2023-12-11 2023-12-11 Cloud asset information acquisition method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311692837.2A CN117614953A (en) 2023-12-11 2023-12-11 Cloud asset information acquisition method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN117614953A true CN117614953A (en) 2024-02-27

Family

ID=89944316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311692837.2A Pending CN117614953A (en) 2023-12-11 2023-12-11 Cloud asset information acquisition method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN117614953A (en)

Similar Documents

Publication Publication Date Title
CN109032662B (en) Code file generation method and device, computer equipment and storage medium
CN111752571B (en) Program upgrading method, device, equipment and storage medium
CN114465937B (en) Network card testing method, device, server and medium
CN109597618B (en) Program development method, program development device, computer device, and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN109062906B (en) Translation method and device for program language resources
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN112395202B (en) Interface automation test method and device, computer equipment and storage medium
CN112256318A (en) Construction method and equipment for dependent product
CN112306533A (en) Front-end framework automatic conversion method and device, computer equipment and storage medium
CN106990974B (en) APP updating method and device and electronic equipment
CN114969215A (en) Method for automatically loading data in batches on data warehouse source layer and related equipment
CN112148351B (en) Cross-version compatibility method and system for application software
CN111625330B (en) Cross-thread task processing method and device, server and storage medium
CN111159025B (en) Application program interface testing method and device, computer equipment and storage medium
CN112783866A (en) Data reading method and device, computer equipment and storage medium
CN117614953A (en) Cloud asset information acquisition method and device, computer equipment and medium
CN115695570A (en) Conversion method, device, equipment and storage medium of medical image scanning protocol
CN115705297A (en) Code call detection method, device, computer equipment and storage medium
CN113873037B (en) Data pushing method, device, computer equipment and storage medium
CN110674214A (en) Big data synchronization method and device, computer equipment and storage medium
CN112015478B (en) Kernel loading method, server, device, computer device and storage medium
CN112416631B (en) Consumer end generation method, device, computer equipment and storage medium
CN116016158B (en) Hybrid cloud aPaaS platform deployment method, device, equipment and computer storage medium
CN109462499B (en) Initialization method and device of multi-network-port server and computer equipment

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