Cloud resource query method and device, equipment, storage medium and program product

By receiving cloud resource query requests from target users, calling cloud resource query interface, determining and storing the associated information of target cloud resources, the problem of low cloud resource query efficiency and accuracy is solved, and efficient and accurate cloud resource query is achieved.

CN119691019APending Publication Date: 2025-03-25CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411584447.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In a cloud computing environment, the correlation between cloud resources is complex, and the cloud resource query efficiency and accuracy rate are low in the existing technology.

Method used

Provide a cloud resource query method, by receiving the cloud resource query request of the target user, calling the cloud resource query interface, obtaining the query results based on each account name in the account information, determining the cloud resource association information of the target cloud resource, and storing it in a preset storage space.

Benefits of technology

It realizes automatic query of cloud resource association information of target cloud resources, improves query efficiency and accuracy, reduces user learning curve and query complexity, and reduces query cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691019A_ABST
    Figure CN119691019A_ABST
Patent Text Reader

Abstract

The invention discloses a cloud resource query method and device, equipment, a storage medium and a program product, and relates to the technical field of data processing. The method comprises the following steps: receiving a cloud resource query request input by a target user; for each account name in the account information, calling a cloud resource query interface according to the account name, a password corresponding to the account name and a target cloud resource identifier, and obtaining a query result of the account name from the cloud resource management equipment; determining cloud resource associated information of the target cloud resource according to the query result of the at least one account name; and storing the cloud resource associated information of the target cloud resource in a preset storage space. The cloud resource query method is high in query efficiency and query accuracy, the complexity of cloud resource query is reduced, cross-account cloud resource query is realized, the comprehensiveness of query is improved, the number of times of calling a cloud resource query interface is reduced to a certain extent, and the query cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a cloud resource query method, device, equipment, storage medium and program product. Background Art

[0002] In a cloud computing environment, there are complex interrelationships between cloud resources. For example, in a business implementation process, a resource needs to call multiple resources to complete a complete business process. In order to achieve efficient resource management, users need to be able to easily find the relationships between these cloud resources.

[0003] Currently, users generally track cloud resources manually to query the relationship between cloud resources. However, this manual query method has low efficiency and accuracy. Summary of the invention

[0004] The present application provides a cloud resource query method, apparatus, device, storage medium and program product to solve the technical problem of low efficiency and accuracy in cloud resource query in related technologies.

[0005] In a first aspect, the present application provides a cloud resource query method, comprising:

[0006] Receive a cloud resource query request input by a target user; wherein the cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier;

[0007] For each account name in the account information, according to the account name, the password corresponding to the account name and the target cloud resource identifier, a cloud resource query interface is called to obtain a query result of the account name from a cloud resource management device; wherein the account information includes at least one account name and a corresponding password of the target user;

[0008] Determine the cloud resource association information of the target cloud resource according to the query result of at least one of the account names; wherein the cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier and call link information called by the target cloud resource;

[0009] The cloud resource association information of the target cloud resource is stored in a preset storage space; wherein the preset storage space is also used to store the cloud resource association information of the historical target cloud resource.

[0010] In a second aspect, the present application provides a cloud resource query device, the device comprising:

[0011] A first receiving module is used to receive a cloud resource query request input by a target user; wherein the cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier;

[0012] A first calling module is used to call a cloud resource query interface for each account name in the account information according to the account name, the password corresponding to the account name, and the target cloud resource identifier, and obtain a query result of the account name from the cloud resource management device; wherein the account information includes at least one account name of the target user and the corresponding password;

[0013] A first determination module, configured to determine the cloud resource association information of the target cloud resource according to a query result of at least one of the account names; wherein the cloud resource association information of the target cloud resource is used to indicate a cloud resource identifier and call link information called by the target cloud resource;

[0014] A storage module is used to store the cloud resource association information of the target cloud resource in a preset storage space; wherein the preset storage space is also used to store the cloud resource association information of the historical target cloud resource.

[0015] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a cloud resource query method as described in any one of the present applications is implemented.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a cloud resource query method as described in any one of the present applications.

[0017] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements a cloud resource query method as described in any one of the present applications.

[0018] The technical solution provided by the present application includes: receiving a cloud resource query request input by a target user, wherein the cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to indicate querying cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier; for each account name in the account information, calling a cloud resource query interface according to the account name, a password corresponding to the account name, and the target cloud resource identifier, and obtaining a query result of the account name from a cloud resource management device, wherein the account information includes at least one account name of the target user and a corresponding password; determining cloud resource association information of the target cloud resource according to the query result of at least one account name, wherein the cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier called by the target cloud resource and the call link information; storing the cloud resource association information of the target cloud resource in a preset storage space, wherein the preset storage space is also used to store cloud resource association information of historical target cloud resources. The cloud resource query method has the following technical effects: on the one hand, the cloud resource associated information of the target cloud resource can be automatically queried by calling the cloud resource query interface. Compared with the manual query method, the query efficiency and query accuracy are higher, and in the query process, the user does not need to understand the specific process of calling the cloud resource query interface, which reduces the user's learning curve and reduces the complexity of cloud resource query; on the other hand, it can be implemented to query each account name, realize cross-account cloud resource query, avoid missed queries, and improve the comprehensiveness of the query; on the other hand, by storing the cloud resource associated information of the target cloud resource and the cloud resource associated information of the historical target cloud resource in a preset storage space, the number of calls to the cloud resource query interface can be reduced to a certain extent in the future, avoiding the call restriction problem of the cloud resource query interface, reducing the query cost, and further improving the query efficiency of cloud resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A schematic diagram of an application scenario of the cloud resource query method provided in an embodiment of the present application;

[0021] Figure 2 A flowchart of a cloud resource query method provided in an embodiment of the present application;

[0022] Figure 3 A schematic diagram of cloud resource association information of a target cloud resource;

[0023] Figure 4 A flowchart of another cloud resource query method provided in an embodiment of the present application;

[0024] Figure 5 A flowchart of another cloud resource query method provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of a cloud resource association panorama for a historical target cloud resource;

[0026] Figure 7 A schematic diagram of a user interface provided in an embodiment of the present application;

[0027] Figure 8 A schematic diagram of cloud resource association information of historical target cloud resources before and after the update;

[0028] Fig. 9 A flowchart of another cloud resource query method provided in an embodiment of the present application;

[0029] Fig.10 A schematic diagram of cloud resource association information of cloud resources to be screened;

[0030] Fig.11 A schematic diagram of the structure of a cloud resource query device provided in an embodiment of the present application;

[0031] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0033] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of this application, the terms "first" and "target" are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models, and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. The purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0034] Figure 1 Schematic diagram of an application scenario of the cloud resource query method provided in the embodiment of the present application. Figure 1 As shown, the cloud resource query method provided in this embodiment can be applied to Figure 1 In the first electronic device 11 shown. The first electronic device 11 in this embodiment can be a computer device, a server, etc. The user can input a cloud resource query request in the user terminal 12, and the user terminal 12 sends a cloud resource query request to the first electronic device 11. Alternatively, the user directly inputs a cloud resource query request in the first electronic device 11. The first electronic device 11 can execute the cloud resource query method provided in this embodiment. During this process, the first electronic device 11 can interact with the cloud resource management device 13 to obtain the query result for each account name.

[0035] The cloud resource query method of the present application is further described in detail below through several specific embodiments.

[0036] Figure 2 The following is a flow chart of a cloud resource query method provided in an embodiment of the present application. The method can be executed by a cloud resource query device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. The electronic device here can be Figure 1 The first electronic device 11 in the embodiment. For example, the electronic device in this embodiment may be a server. Figure 2 As shown, the cloud resource query method provided in this embodiment includes the following steps.

[0037] Step 201: receiving a cloud resource query request input by a target user.

[0038] The cloud resource query request includes a target cloud resource identifier, and is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier.

[0039] The target user in this embodiment may be a developer or a common user of cloud resources. The cloud resources in this embodiment refer to the resources that form the cloud network. This embodiment does not limit the provider of the cloud network.

[0040] Cloud resources can be hardware resources or software resources. The cloud resources in this embodiment can also be called cloud services. Optionally, the cloud resources in this embodiment can be a certain machine, a certain cloud service in a content delivery network (Content Delivery Network, referred to as CDN), a certain cloud service in a load balancing service, and a certain cloud service in a domain name resolution service.

[0041] In this embodiment, the user can input the cloud resource query request in a variety of ways. For example, the user inputs the cloud resource query request through the user terminal, and the user terminal sends the cloud resource query request to the cloud resource query device. Alternatively, the user inputs the cloud resource query request through the user interface of the cloud resource query device. Alternatively, the user inputs the cloud resource query request in the cloud resource query device by voice input.

[0042] The target cloud resource identifier in this embodiment refers to the cloud resource identifier whose cloud resource association information needs to be queried. The user can determine the target cloud resource identifier according to actual needs.

[0043] The target cloud resource may have a complex mutual relationship with other cloud resources. For example, the target cloud resource may be a cloud service in the domain name resolution service, which is responsible for routing user requests to the correct virtual computer instance. In this process, there is an association relationship between the cloud service in the domain name resolution service and the virtual computer instance. The cloud resource query method provided in this embodiment can realize the query of cloud resource association information of the target cloud resource.

[0044] Step 202: For each account name in the account information, the cloud resource query interface is called according to the account name, the password corresponding to the account name, and the target cloud resource identifier, and the query result of the account name is obtained from the cloud resource management device.

[0045] The account information includes at least one account name and a corresponding password of the target user.

[0046] The account name in this embodiment may be referred to as an access key (AK for short). The password in this embodiment may be referred to as a secret key (SK for short).

[0047] The cloud resource query method provided in this embodiment can realize cross-account query. The scenario of cross-account query is: due to certain requirements, the user registers multiple different accounts in the cloud network, and each account can use at least one type of cloud resource in the cloud network. The account information in this embodiment includes at least one account name and corresponding password of the target user.

[0048] In step 202, in order to avoid missing queries of cloud resources, based on each account name, according to the account name, the password corresponding to the account name, and the target cloud resource identifier, a cloud resource query interface is called. Optionally, the cloud resource query interface in this embodiment may be an application programming interface (Application Programming Interface, referred to as: API). The specific process of calling the cloud resource query interface may be: based on the requirements of the cloud resource query interface, based on the account name, the password corresponding to the account name, and the target cloud resource identifier, a query request is constructed, and the query request is sent to the cloud resource management device; after receiving the query request, the cloud resource management device feeds back the query result to the cloud resource query device. That is, in step 202, the query result of each account name can be queried.

[0049] After receiving the query request, the cloud resource management device searches for cloud resource types corresponding to the account name to see whether there is a cloud resource associated with the target cloud resource. The correspondence between the account name and the cloud resource type is predetermined.

[0050] It should be noted that in step 202, when querying each account name, it can be a parallel query, a serial query, or a partially parallel and partially serial query.

[0051] Optionally, in order to successfully call the cloud resource query interface based on the account name, the password corresponding to the account name, and the target cloud resource identifier, that is, to improve the success rate of the query, in this embodiment, the following operations can also be performed: sending a permission configuration request to the cloud resource management device, wherein the permission configuration request is used to request configuration of query permissions for each account name; receiving permission configuration result information fed back by the cloud resource management device, wherein the permission configuration result information is used to indicate that the query permission configuration is successful.

[0052] The query permission in this embodiment refers to the permission to query in the cloud resource management device by calling the cloud resource query interface. In this implementation, only the query permission is configured, but the modification permission is not configured, which can ensure that the cloud resources in the cloud network are not modified at will, thereby improving the security of the cloud network. At the same time, since only the query permission is configured but the modification permission is not configured, the reliance on sensitive credentials during the query process is reduced.

[0053] In one scenario, the cloud resource query method provided by this embodiment may further include the following steps: receiving account update information, wherein the account update information is used to modify the account information; modifying the account information according to the account update information to obtain updated account information. More specifically, the above process of modifying the account information is performed before step 202. Correspondingly, the implementation process of step 202 is: for each account name in the updated account information, according to the account name, the password corresponding to the account name, and the target cloud resource identifier, calling the cloud resource query interface, and obtaining the query result of the account name from the cloud resource management device.

[0054] In this scenario, the account information can be modified. In this embodiment, the process of modifying the account information may include at least one of the following: adding a new AK and SK to the account information, deleting an existing AK and SK from the account information, and modifying an existing AK and SK in the account information. This implementation method can realize flexible update of account information, and further realize flexible cross-account cloud resource query.

[0055] Step 203: Determine cloud resource association information of the target cloud resource according to the query result of at least one account name.

[0056] The cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier and call link information called by the target cloud resource.

[0057] In one implementation, query results of various account names are combined to obtain cloud resource association information of the target cloud resource.

[0058] In another implementation, the implementation process of step 203 may include: if the query result of the account name includes the single-account cloud resource association information of the target cloud resource, obtaining the single-account cloud resource association information of the target cloud resource; merging at least one single-account cloud resource association information to obtain the cloud resource association information of the target cloud resource.

[0059] In this implementation, the query result of the account name may include the single-account cloud resource association information of the target cloud resource, or may not include the single-account cloud resource association information of the target cloud resource. When the query result of the account name does not include the single-account cloud resource association information of the target cloud resource, the query result may include indication information that the single-account cloud resource association information of the target cloud resource is not included.

[0060] In this implementation, in order to improve efficiency, single-account cloud resource association information of the target cloud resource is obtained, and then at least one single-account cloud resource association information is merged to obtain the cloud resource association information of the target cloud resource.

[0061] Figure 3 is a schematic diagram of the cloud resource association information of the target cloud resource. Figure 3 As shown, it is assumed that the target cloud resource is identified as cloud resource ID1, and there are 5 account names. Among them, the query result of account name 1 includes the single-account cloud resource association information of the target cloud resource, and the query result of account name 1 is: cloud resource ID1→cloud resource ID4→cloud resource ID8. The query result of account name 2 includes the single-account cloud resource association information of the target cloud resource, and the query result of account name 2 is: cloud resource ID1→cloud resource ID2→cloud resource ID3. The query result of account name 3 does not include the single-account cloud resource association information of the target cloud resource. The query result of account name 4 includes the single-account cloud resource association information of the target cloud resource, and the query result of account name 4 is: cloud resource ID1→cloud resource ID4→cloud resource ID7. The query result of account name 5 does not include the single-account cloud resource association information of the target cloud resource. Afterwards, the single-account cloud resource association information is merged to obtain the cloud resource association information 31 of cloud resource ID1.

[0062] The cloud resource association information of the target cloud resource in this embodiment is used to indicate the cloud resource identifier called by the target cloud resource and the call link information. The cloud resource called by the target cloud resource in this embodiment refers to the cloud resource that needs to cooperate with the target cloud resource to implement the business in the process of completing a certain business. The call link information in this embodiment includes the call path, that is, the cloud resource ID that initiates the call (that is, the target cloud resource ID) and the cloud resource ID called. It should be noted that the cloud resource identifier called by the target cloud resource in this embodiment includes: the cloud resource identifier directly called by the target cloud resource and the cloud resource identifier indirectly called by the target cloud resource. It can be understood that in the call link information, the target cloud resource ID must be the starting point of the call path.

[0063] As shown in the cloud resource association information 31 of cloud resource ID1, cloud resource ID1 can call cloud resource ID4, and cloud resource ID4 can call cloud resource ID8. Cloud resource ID1 can also call cloud resource ID2, and cloud resource ID2 can call cloud resource ID3. Cloud resource ID1 can also call cloud resource ID4, and cloud resource ID4 can call cloud resource ID7. In the cloud resource association information 31 of cloud resource ID1, cloud resource ID2 and cloud resource ID4 are cloud resource identifiers directly called by cloud resource ID1, and cloud resource ID3, cloud resource ID7, and cloud resource ID8 are cloud resource identifiers indirectly called by cloud resource ID1.

[0064] It should be noted that the cloud resource association information of the target cloud resource is not limited in this embodiment. The cloud resource association information of the target cloud resource can be represented in a table form, a network diagram form, or a data record form.

[0065] It can be understood that the cloud resource association information of the target cloud resource determined in this embodiment is dynamic cloud resource association information determined in real time and has high accuracy.

[0066] After determining the cloud resource association information of the target cloud resource, cloud resource management can be performed based on the cloud resource association information of the target cloud resource. Therefore, the cloud resource query method provided in this embodiment makes cross-account resource management simpler and more intuitive by querying each account name in the account information. Furthermore, the cost of cloud resources can be monitored and managed based on the cloud resource association information of the target cloud resource to predict and control costs and avoid unexpected high expenses.

[0067] Step 204: Store the cloud resource association information of the target cloud resource in a preset storage space.

[0068] The preset storage space is also used to store cloud resource association information of historical target cloud resources.

[0069] The purpose of storing the cloud resource association information of the target cloud resources in a preset storage space in this embodiment is that a part of the cloud resource association information can be filtered out based on the cloud resource association information of the target cloud resources in the storage space and the cloud resource association information of the historical target cloud resources, so as to reduce the number of calls to the cloud resource query interface to a certain extent, avoid the call restriction problem of the cloud resource query interface, reduce costs, and at the same time, improve the query efficiency and performance of cloud resources.

[0070] Optionally, the storage space in this embodiment may be a storage space in the cloud resource query device. Alternatively, the storage space in this embodiment may be a storage space in a storage device connected to the cloud resource query device. Further, in order to improve storage efficiency and storage reliability, the cloud resource association information of the target cloud resource and the cloud resource association information of the historical target cloud resource may be cached through a non-relational database, such as Redis.

[0071] The cloud resource query method provided in this embodiment can be written as a query tool using a programming language. For example, in order to achieve high concurrent query and save memory space when running the query tool, it can be written in Golang language.

[0072] Optionally, a software development kit (SDK) provided by a cloud network provider can be integrated into the query tool to implement the calling of cloud resource query interfaces, reduce the complexity of cloud resource queries, and reduce the learning curve of developers, so that they can focus on business logic rather than underlying implementation. That is, users can input cloud resource query requests through the query tool running in the cloud resource query device, and the query tool can automatically use the SDK to call the cloud resource query interface through a program written in a programming language to obtain the query results for each account name, and then obtain the cloud resource association information of the target cloud resource.

[0073] Optionally, you can regularly update Golang and SDK to the latest version to fix known vulnerabilities.

[0074] In order to further reduce the complexity of the query, the query tool can be encapsulated as an API for the front end or other services to call the API to query resource-related information, thereby reducing the complexity of the code and maintenance costs, and simplifying the integration work of developers. For example, the query tool is encapsulated as a Representational State Transfer (RESTful API) API.

[0075] In a scenario where the query tool is developed using the Golang language and Redis is used to cache the cloud resource association information of the target cloud resources and the cloud resource association information of the historical target cloud resources, the performance of the query tool can be improved and the maintainability of the query tool can be ensured by optimizing the Golang service and Redis configuration.

[0076] Optionally, the query tool is extensible, allowing for future support of more cloud services and more complex resource-related information queries to adapt to changing business needs and technological developments.

[0077] Optionally, the query tool may adopt a microservice architecture with front-end and back-end separation to facilitate future service expansion and maintenance. That is, in step 201, the user may input a cloud resource query request through the front-end of the query tool, ie, the user interface.

[0078] Optionally, logs during the operation of the query tool can also be recorded and monitored for problem tracking and performance optimization.

[0079] The cloud resource query method provided in this embodiment includes: receiving a cloud resource query request input by a target user, wherein the cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to indicate querying cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier; for each account name in the account information, calling a cloud resource query interface according to the account name, a password corresponding to the account name, and the target cloud resource identifier, and obtaining a query result of the account name from a cloud resource management device, wherein the account information includes at least one account name of the target user and a corresponding password; determining cloud resource association information of the target cloud resource according to the query result of at least one account name, wherein the cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier called by the target cloud resource and the call link information; storing the cloud resource association information of the target cloud resource in a preset storage space, wherein the preset storage space is also used to store cloud resource association information of historical target cloud resources. The cloud resource query method has the following technical effects: on the one hand, the cloud resource associated information of the target cloud resource can be automatically queried by calling the cloud resource query interface. Compared with the manual query method, the query efficiency and query accuracy are higher, and in the query process, the user does not need to understand the specific process of calling the cloud resource query interface, which reduces the user's learning curve and reduces the complexity of cloud resource query; on the other hand, it can be implemented to query each account name, realize cross-account cloud resource query, avoid missed queries, and improve the comprehensiveness of the query; on the other hand, by storing the cloud resource associated information of the target cloud resource and the cloud resource associated information of the historical target cloud resource in a preset storage space, the number of calls to the cloud resource query interface can be reduced to a certain extent in the future, avoiding the call restriction problem of the cloud resource query interface, reducing the query cost, and further improving the query efficiency of cloud resources.

[0080] Figure 4 A flowchart of another cloud resource query method provided in an embodiment of the present application. Figure 2 Based on the illustrated embodiment and various optional implementations, a detailed description is given of how to obtain the query result. In this embodiment, the account name in the account information is the encrypted account name, and the password is the encrypted password. Figure 4 As shown, the cloud resource query method provided in this embodiment includes the following steps.

[0081] Step 401: Receive a cloud resource query request input by a target user.

[0082] The cloud resource query request includes a target cloud resource identifier, and is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier.

[0083] The implementation process and technical principle of step 401 are similar to those of step 201 and will not be repeated here.

[0084] Step 402: For each account name in the account information, the encrypted account name is decrypted to obtain the account name, and the encrypted password corresponding to the account name is decrypted to obtain the password corresponding to the account name.

[0085] In order to protect the account name and password and improve the security of the cloud network, in step 402, after receiving the cloud resource query request input by the target user, the encrypted account name is decrypted and the encrypted password is decrypted. That is, in this embodiment, the account name and password are encrypted and stored and decrypted for use.

[0086] Step 403: For each account name, a cloud resource query interface is called according to the account name, the password corresponding to the account name, and the target cloud resource identifier.

[0087] The cloud resource management device is used to authenticate the account name and the password corresponding to the account name through the cloud resource query interface, and after the identity authentication is passed, feedback the query result of the account name.

[0088] In step 403, after calling the cloud resource query interface, the cloud resource management device authenticates the account name and the password corresponding to the account name through the cloud resource query interface. The verification process may be: based on the pre-stored registered account name information, determine whether the received account name is a registered account name; if it is determined that the received account name is a registered account name, based on the pre-stored registered account name and password mapping relationship, determine whether the received account name and password are mutually corresponding account names and passwords; when it is determined that the received account name and password correspond to each other, determine that the identity authentication is passed; and feedback the query result to the cloud resource query device.

[0089] Step 404: Receive the query result of the account name fed back by the cloud resource management device.

[0090] The implementation method of the query result in this embodiment is similar to the implementation method of the query result in step 202, and will not be repeated here.

[0091] Step 405: Determine cloud resource association information of the target cloud resource according to the query result of at least one account name.

[0092] The cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier and call link information called by the target cloud resource.

[0093] Step 406: Store the cloud resource association information of the target cloud resource in a preset storage space.

[0094] The preset storage space is also used to store cloud resource association information of historical target cloud resources.

[0095] The implementation process and technical principle of step 405 and step 203, and step 406 and step 204 are similar, and will not be repeated here.

[0096] The cloud resource query method provided in this embodiment obtains the account name by decrypting the encrypted account name for each account name in the account information, and obtains the password corresponding to the account name by decrypting the encrypted password. For each account name, the cloud resource query interface is called according to the account name, the password corresponding to the account name, and the target cloud resource identifier, thereby realizing the encrypted storage and decrypted use of the account name and password, improving the security of the account name and password, and further improving the security of the cloud network.

[0097] Figure 5 A flowchart of another cloud resource query method provided in an embodiment of the present application. Figure 2 and Figure 4 Based on the illustrated embodiment and various optional implementations, a detailed description is given of how to receive a cloud resource query request input by a user. Figure 5 As shown, the cloud resource query method provided in this embodiment includes the following steps.

[0098] Step 501: Generate a cloud resource association panorama of the historical target cloud resources according to the cloud resource association information of the historical target cloud resources.

[0099] In this embodiment, the cloud resource query device may execute step 501 when it is determined that the user needs to query the cloud resources. For example, when it is determined that the user triggers the query tool, step 501 is executed. Alternatively, when a command to generate a cloud resource associated panorama is received, step 501 is executed.

[0100] In step 501, the cloud resource association information of the historical target cloud resources may be integrated to obtain the integrated cloud resource association information, and then a cloud resource association panorama of the historical target cloud resources may be generated based on the integrated cloud resource association information.

[0101] Step 502: Display a cloud resource association panorama of the historical target cloud resources.

[0102] After the cloud resource association panorama of the historical target cloud resource is generated, in step 502, the cloud resource association panorama is displayed.

[0103] Figure 6 A schematic diagram of the cloud resource association panorama of the historical target cloud resource. Figure 6As shown, it is assumed that the cloud resource association information of the historical target cloud resource includes: cloud resource ID1→cloud resource ID2→cloud resource ID5; cloud resource ID5→cloud resource ID8→cloud resource ID10; cloud resource ID1→cloud resource ID5→cloud resource ID8; cloud resource ID8→cloud resource ID10→cloud resource ID2; cloud resource ID10→cloud resource ID11→cloud resource ID12. A cloud resource association panorama 61 of the historical target cloud resource is generated and displayed based on the cloud resource association information of the historical target cloud resource.

[0104] It should be noted that the cloud resource association panorama of the historical target cloud resources can be generated by incremental generation, that is, based on the cloud resource association panorama of the historical target cloud resources generated last time, the cloud resource association panorama of the historical target cloud resources this time is generated based on the cloud resource association information of the newly added historical target cloud resources.

[0105] In the first implementation, the dynamic update of the status of each cloud resource in the cloud resource association information of the historical target cloud resource can also be realized by passively triggering, so as to ensure the real-time and accuracy of the cloud resource association information of the historical target cloud resource, so as to cope with the dynamic changes of cloud resources in the cloud environment. The passive dynamic update process of the cloud resource status includes the following steps: calling the cloud resource query interface at a preset frequency, obtaining the status information of the cloud resources corresponding to each cloud resource identifier in the cloud resource association information of the historical target cloud resource from the cloud resource management device; if the status information of the first cloud resource indicates that the first cloud resource is unavailable, then deleting the first cloud resource identifier and the identifier of the cloud resource called by the first cloud resource from the cloud resource association information of the historical target cloud resource, and obtaining the cloud resource association information of the first updated historical target cloud resource. Based on this implementation, correspondingly, the implementation process of step 501 can be: generating a cloud resource association panorama of the historical target cloud resource according to the cloud resource association information of the first updated historical target cloud resource.

[0106] When the cloud resource query interface is called at a preset frequency to obtain the status information of the cloud resources corresponding to each cloud resource identifier in the cloud resource association information of the historical target cloud resource from the cloud resource management device, it can be implemented through a scheduled task. Exemplarily, when the cloud resource query method is implemented in Golang language, the time package (time package) of Golang or cron job can be used to implement the scheduled task.

[0107] In the above process, when calling the cloud resource query interface, the cloud resource query interface can also be called by the account name, password, and cloud resource identifier in the cloud resource association information of the historical target cloud resource. In this embodiment, the status information of the cloud resource can indicate that the cloud resource is in an available state or in an unavailable state. When the status information of a cloud resource (referred to as the first cloud resource for the convenience of description) indicates that it is unavailable, the first cloud resource identifier and the identifier of the cloud resource called by the first cloud resource are deleted from the cloud resource association information of the historical target cloud resource.

[0108] Figure 8 Figure 1 is a schematic diagram of cloud resource association information of historical target cloud resources before and after the update. Figure 8 As shown in the figure, the cloud resource association information of the historical target cloud resource before the update is the same as Figure 6 The cloud resource association information of the historical target cloud resource in is the same. Assuming that the first cloud resource identifier is cloud resource ID11, when deleting the first cloud resource identifier and the identifier of the cloud resource called by the first cloud resource from the cloud resource association information of the historical target cloud resource, the "cloud resource ID11→cloud resource ID12" in "cloud resource ID10→cloud resource ID11→cloud resource ID12" is deleted. Since only cloud resource ID10 is left after the deletion, it is impossible to represent the association relationship with other cloud resource IDs. Therefore, cloud resource ID10 in the cloud resource association information is also deleted. The updated cloud resource association information of the historical target cloud resource includes: cloud resource ID1→cloud resource ID2→cloud resource ID5; cloud resource ID5→cloud resource ID8→cloud resource ID10; cloud resource ID1→cloud resource ID5→cloud resource ID8; cloud resource ID8→cloud resource ID10→cloud resource ID2.

[0109] In the second implementation, the dynamic update of the status of each cloud resource in the cloud resource association information of the historical target cloud resource can be actively triggered, that is, the status of each cloud resource in the cloud resource association information of the historical target cloud resource is updated through health check. The implementation process of step 501 may include the following implementation: calling the cloud resource query interface to obtain the status information of each cloud resource in the cloud resource association information of the historical target cloud resource from the cloud resource management device; if the status information of the second cloud resource indicates that the second cloud resource is unavailable, then deleting the second cloud resource identifier and the identifier of the cloud resource called by the second cloud resource from the cloud resource association information of the historical target cloud resource, and obtaining the second updated cloud resource association information of the historical target cloud resource; based on the second updated cloud resource association information of the historical target cloud resource, generating a cloud resource association panorama of the historical target cloud resource.

[0110] The difference between this implementation and the first implementation is that: in the first implementation, each cloud resource status in the cloud resource association information of the historical target cloud resource is passively updated at a preset frequency, while in the second implementation, each cloud resource status in the cloud resource association information of the historical target cloud resource is actively triggered to update. In the second implementation, when calling the cloud resource query interface, the cloud resource query interface can also be called by the account name, password, and cloud resource identifier in the cloud resource association information of the historical target cloud resource.

[0111] In the third implementation, the first implementation is combined with the second implementation, which not only passively triggers the dynamic update of the status of each cloud resource in the cloud resource association information of the historical target cloud resource, but also actively triggers the dynamic update of the status of each cloud resource in the cloud resource association information of the historical target cloud resource. The cloud resource association information of the historical target cloud resource after the first update is obtained through the first implementation. The implementation process of step 501 can be: calling the cloud resource query interface to obtain the status information of each cloud resource in the cloud resource association information of the historical target cloud resource after the first update from the cloud resource management device; if the status information of the second cloud resource indicates that the second cloud resource is unavailable, then deleting the second cloud resource identifier and the identifier of the cloud resource called by the second cloud resource from the cloud resource association information of the historical target cloud resource after the first update, and obtaining the cloud resource association information of the historical target cloud resource after the second update; according to the cloud resource association information of the historical target cloud resource after the second update, a cloud resource association panorama of the historical target cloud resource is generated.

[0112] Optionally, the historical target cloud resources include initialization target cloud resources. In the initialization process before step 501, the cloud resource association information of the historical target cloud resources can be obtained in the following manner: during initialization, for each account name in the account information, according to the account name, the password corresponding to the account name, and the initialization target cloud resource identifier, the cloud resource query interface is called to obtain the initialization query result of the account name from the cloud resource management device; according to the initialization query result of at least one account name, the cloud resource association information of the initialization target cloud resource corresponding to the initialization target cloud resource identifier is determined; and the cloud resource association information of the initialization target cloud resource is stored in the storage space.

[0113] In this implementation, in order to facilitate subsequent users to input cloud resource query requests and improve user experience and query efficiency, initialization can be performed first to obtain cloud resource association information of the initialization target cloud resource. The initialization target cloud resource identifier is predefined or determined based on the user's historical cloud resource query request. In step 501, a cloud resource association panorama of the historical target cloud resource can be generated based on the cloud resource association information of the initialization target cloud resource.

[0114] Step 503: receiving a cloud resource query request input by a target user based on the cloud resource association panorama of the historical target cloud resource.

[0115] The cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to indicate querying cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier.

[0116] In step 503, the target user may input a cloud resource query request based on the displayed cloud resource association panorama of the historical target cloud resources to improve query efficiency.

[0117] Figure 7 A schematic diagram of a user interface provided in an embodiment of the present application. Figure 7 As shown, the cloud resource association panorama 61 of the historical target cloud resource is displayed on the user interface 71. Assuming that the user selects the cloud resource ID 5 and then clicks the query button 72, it is equivalent to triggering a cloud resource query request. This implementation method facilitates the target user to quickly select the target cloud resource identifier, improves the efficiency of the target user inputting the cloud resource query request, and further improves the cloud resource query efficiency.

[0118] Step 504: for each account name in the account information, call the cloud resource query interface according to the account name, the password corresponding to the account name, and the target cloud resource identifier, and obtain the query result of the account name from the cloud resource management device.

[0119] The account information includes at least one account name and a corresponding password of the target user.

[0120] Step 505: Determine cloud resource association information of the target cloud resource according to the query result of at least one account name.

[0121] The cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier and call link information called by the target cloud resource.

[0122] Step 506: Store the cloud resource association information of the target cloud resource in a preset storage space.

[0123] The preset storage space is also used to store cloud resource association information of historical target cloud resources.

[0124] The implementation process and technical principle of step 504 and step 202, step 505 and step 203, and step 506 and step 204 are similar, and will not be repeated here.

[0125] Optionally, when redis is used to cache cloud resource association information of historical target cloud resources in the storage space, this embodiment can adopt a suitable cache update strategy to ensure the consistency and real-time performance of cache data while reducing the risk of cache avalanche. Exemplarily, a cache aside pattern can be used as a cache update strategy.

[0126] Optionally, in order to ensure the data freshness of the cloud resource association information of the historical target cloud resources in the storage space, an expiration time can be set for the cloud resource association information of each historical target cloud resource. When the expiration time of the cloud resource association information of a certain historical target cloud resource is reached, the cloud resource association information of the historical target cloud resource is deleted to save storage space.

[0127] The cloud resource query method provided in this embodiment, on the one hand, generates a cloud resource association panorama of the historical target cloud resources according to the cloud resource association information of the historical target cloud resources, displays the cloud resource association panorama of the historical target cloud resources, and receives a cloud resource query request input by the target user based on the cloud resource association panorama of the historical target cloud resources, so that the target user can input the cloud resource query request based on the displayed cloud resource association panorama of the historical target cloud resources, thereby improving the efficiency of the target user inputting the cloud resource query request, and further improving the cloud resource query efficiency; on the other hand, it can passively trigger the dynamic update of each cloud resource status in the cloud resource association information of the historical target cloud resources, and / or actively trigger the dynamic update of each cloud resource status in the cloud resource association information of the historical target cloud resources, thereby ensuring the real-time and accuracy of the cloud resource association information of the historical target cloud resources to cope with the dynamic changes of cloud resources in the cloud environment, so that the user can input the cloud resource query request based on the accurate cloud resource association panorama of the historical target cloud resources, avoid query errors, and improve the reliability of the query process.

[0128] Fig. 9 A flowchart of another cloud resource query method provided in an embodiment of the present application. Figure 5 Based on the illustrated embodiment and various optional implementations, a detailed description is given of the implementation of filtering cloud resource association information based on the cloud resource association panorama of the historical target cloud resources. Fig. 9 As shown, the cloud resource query method provided in this embodiment includes the following steps.

[0129] Step 901: Generate a cloud resource association panorama of the historical target cloud resources according to the cloud resource association information of the historical target cloud resources.

[0130] Step 902: Display a cloud resource association panorama of the historical target cloud resources.

[0131] The implementation process and technical principle of step 901 and step 501, and step 902 and step 502 are similar, and will not be repeated here.

[0132] Step 903: receiving a cloud resource association information screening request input by a target user based on a cloud resource association panorama of historical target cloud resources.

[0133] The cloud resource association information screening request includes a to-be-screened cloud resource identifier, and is used to instruct to screen out the cloud resource association information of the to-be-screened cloud resource corresponding to the to-be-screened cloud resource identifier from the cloud resource association panorama of the historical target cloud resource.

[0134] In this embodiment, the cloud resource association information of a certain cloud resource (for the convenience of description, it is called the cloud resource to be screened) can be screened based on the cloud resource association panorama of the historical target cloud resource.

[0135] The user may input a cloud resource association information filtering request based on a user interface that displays a cloud resource association panorama of historical target cloud resources. The cloud resource association information filtering request may include one or more cloud resource identifiers to be filtered.

[0136] Step 904: Filter out cloud resource association information of the cloud resources to be filtered from the cloud resource association panorama of the historical target cloud resources.

[0137] After receiving the cloud resource association information screening request, the cloud resource query device can screen out the cloud resource association information of the cloud resources to be screened from the cloud resource association panorama.

[0138] Fig.10 FIG. 1 is a schematic diagram of cloud resource association information of cloud resources to be screened. Fig.10 As shown, the cloud resource association panorama 61 of the historical target cloud resource is displayed in the user interface 101. Assuming that the target user selects the cloud resource ID 11 (equivalent to the cloud resource identifier to be filtered), and then clicks the filter button 103, it is equivalent to triggering the cloud resource association information filtering request. The cloud resource query device executes steps 903 and 904 to obtain the cloud resource association information of the cloud resource to be filtered, and displays the cloud resource association information 104 of the cloud resource to be filtered in the user interface 102.

[0139] Optionally, the cloud resource query method provided in this embodiment may further include steps 201 to 204, or steps 401 to 406, or steps 503 to 506.

[0140] The cloud resource query method provided in this embodiment generates and displays a cloud resource association panorama of historical target cloud resources according to the cloud resource association information of historical target cloud resources stored in the storage space, receives a cloud resource association information screening request input by the target user based on the cloud resource association panorama of the historical target cloud resources, and screens out the cloud resource association information of the cloud resources to be screened from the cloud resource association panorama of the historical target cloud resources, thereby achieving the goal of obtaining the cloud resource association information of the cloud resources to be screened based on the cloud resource association information of the stored historical target cloud resources, reducing the number of calls to the cloud resource query interface to a certain extent, avoiding the call restriction problem of the cloud resource query interface, reducing the query cost, and improving the efficiency of obtaining the cloud resource association information.

[0141] Fig.11 This is a schematic diagram of the structure of a cloud resource query device provided in an embodiment of the present application. Fig.11 As shown, the cloud resource query device provided by this embodiment includes the following modules: a first receiving module 1101 , a first calling module 1102 , a first determining module 1103 and a storage module 1104 .

[0142] The first receiving module 1101 is used to receive a cloud resource query request input by a target user.

[0143] The cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier.

[0144] The first calling module 1102 is used to call the cloud resource query interface for each account name in the account information according to the account name, the password corresponding to the account name and the target cloud resource identifier, and obtain the query result of the account name from the cloud resource management device.

[0145] The account information includes at least one account name and a corresponding password of the target user.

[0146] The first determination module 1103 is configured to determine the cloud resource association information of the target cloud resource according to a query result of at least one of the account names.

[0147] The cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier and call link information called by the target cloud resource.

[0148] The storage module 1104 is used to store the cloud resource association information of the target cloud resource in a preset storage space.

[0149] The preset storage space is also used to store cloud resource association information of historical target cloud resources.

[0150] In one embodiment, the first determination module 1103 is used to: if the query result of the account name includes the single-account cloud resource association information of the target cloud resource, then obtain the single-account cloud resource association information of the target cloud resource; merge at least one of the single-account cloud resource association information to obtain the cloud resource association information of the target cloud resource.

[0151] In one embodiment, the account name in the account information is an encrypted account name, and the password is an encrypted password. The first calling module 1102 is used to: for each account name in the account information, decrypt the encrypted account name to obtain the account name, decrypt the encrypted password corresponding to the account name to obtain the password corresponding to the account name; for each account name, call the cloud resource query interface according to the account name, the password corresponding to the account name, and the target cloud resource identifier, wherein the cloud resource management device is used to authenticate the account name and the password corresponding to the account name through the cloud resource query interface, and after the identity authentication is passed, feedback the query result of the account name; receive the query result of the account name fed back by the cloud resource management device.

[0152] In one embodiment, the device further includes: a generating module and a display module.

[0153] The generation module is used to generate a cloud resource association panorama of the historical target cloud resource according to the cloud resource association information of the historical target cloud resource. The display module is used to display the cloud resource association panorama of the historical target cloud resource. The first receiving module 1101 is used to: receive a cloud resource query request input by the target user based on the cloud resource association panorama of the historical target cloud resource.

[0154] In one embodiment, the device further includes: a second receiving module and a screening module.

[0155] The second receiving module is used to receive a cloud resource association information screening request input by the target user based on the cloud resource association panorama of the historical target cloud resource.

[0156] The cloud resource association information screening request includes a to-be-screened cloud resource identifier. The cloud resource association information screening request is used to instruct to screen out the cloud resource association information of the to-be-screened cloud resource corresponding to the to-be-screened cloud resource identifier from the cloud resource association panorama of the historical target cloud resource.

[0157] The screening module is used to screen out the cloud resource association information of the cloud resource to be screened from the cloud resource association panorama of the historical target cloud resource.

[0158] In one embodiment, the device further includes: a second calling module and a first deleting module.

[0159] The second calling module is used to call the cloud resource query interface at a preset frequency to obtain the status information of the cloud resources corresponding to each cloud resource identifier in the cloud resource association information of the historical target cloud resource from the cloud resource management device.

[0160] The first deletion module is used to delete the first cloud resource identifier and the identifier of the cloud resource called by the first cloud resource from the cloud resource association information of the historical target cloud resource if the status information of the first cloud resource indicates that the first cloud resource is unavailable, so as to obtain the first updated cloud resource association information of the historical target cloud resource.

[0161] In one embodiment, a generation module is used to generate a cloud resource association panorama of the historical target cloud resource based on the cloud resource association information of the first updated historical target cloud resource.

[0162] In one embodiment, the historical target cloud resources include initialization target cloud resources. The device also includes: a third calling module and a second determining module.

[0163] The third calling module is used to call the cloud resource query interface for each account name in the account information during initialization, according to the account name, the password corresponding to the account name, and the initialization target cloud resource identifier, and obtain the initialization query result of the account name from the cloud resource management device.

[0164] The second determination module is used to determine the cloud resource association information of the initialization target cloud resource corresponding to the initialization target cloud resource identifier according to the initialization query result of at least one of the account names.

[0165] The storage module is also used to store the cloud resource association information of the initialization target cloud resource in the storage space.

[0166] In one embodiment, a generation module is used to: call the cloud resource query interface to obtain the status information of each cloud resource in the cloud resource association information of the historical target cloud resource from the cloud resource management device; if the status information of the second cloud resource indicates that the second cloud resource is unavailable, then delete the second cloud resource identifier and the identifier of the cloud resource called by the second cloud resource from the cloud resource association information of the historical target cloud resource to obtain the second updated cloud resource association information of the historical target cloud resource; and generate a cloud resource association panoramic view of the historical target cloud resource based on the second updated cloud resource association information of the historical target cloud resource.

[0167] In one embodiment, the device further includes a sending module and a third receiving module.

[0168] The sending module is used to send a permission configuration request to the cloud resource management device.

[0169] The permission configuration request is used to request configuration of query permissions for each of the account names.

[0170] The third receiving module is used to receive the permission configuration result information fed back by the cloud resource management device.

[0171] The permission configuration result information is used to indicate that the query permission configuration is successful.

[0172] In one embodiment, the device further includes a fourth receiving module and a modifying module.

[0173] The fourth receiving module is used to receive account update information.

[0174] The account update information is used to modify the account information.

[0175] The modification module is used to modify the account information according to the account update information to obtain updated account information.

[0176] The first calling module 1102 is used to call the cloud resource query interface for each account name in the updated account information according to the account name, the password corresponding to the account name and the target cloud resource identifier, and obtain the query result of the account name from the cloud resource management device.

[0177] The cloud resource query device provided in the embodiment of the present application can be used to execute the technical solution of the cloud resource query method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0178] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the first receiving module 1101, the first calling module 1102, the first determining module 1103 and the storage module 1104 can be separately established processing elements, or they can be integrated in a chip of the above device for implementation. In addition, they can also be stored in the memory of the above device in the form of program code, and a processing element of the above device can call and execute the functions of the first receiving module 1101, the first calling module 1102, the first determining module 1103 and the storage module 1104. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in a processor element or an instruction in software form.

[0179] Fig.12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device may include: a processor 142 and a memory 143.

[0180] The processor 142 executes the computer execution instructions stored in the memory, so that the processor 142 executes the scheme in the above embodiment. The processor 142 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0181] The memory 143 is connected to the processor 142 via a system bus and completes communication between them. The memory 143 is used to store computer program instructions.

[0182] Optionally, the electronic device may further include a transceiver 141. The transceiver 141 may be used to receive various requests and implement interaction with the cloud resource management device.

[0183] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the cloud resource query device and other computer devices. The memory may include random access memory (RAM) and may also include non-volatile memory.

[0184] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the cloud resource query method in the above embodiment.

[0185] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the cloud resource query method of the above embodiment.

[0186] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements a cloud resource query method as provided in any embodiment of the present application.

[0187] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present application, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0188] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A cloud resource query method, characterized in that: include: Receive a cloud resource query request input by a target user; wherein the cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier; For each account name in the account information, according to the account name, the password corresponding to the account name and the target cloud resource identifier, a cloud resource query interface is called to obtain a query result of the account name from a cloud resource management device; wherein the account information includes at least one account name and a corresponding password of the target user; Determine the cloud resource association information of the target cloud resource according to the query result of at least one of the account names; wherein the cloud resource association information of the target cloud resource is used to indicate the cloud resource identifier and call link information called by the target cloud resource; The cloud resource association information of the target cloud resource is stored in a preset storage space; wherein the preset storage space is also used to store the cloud resource association information of the historical target cloud resource.

2. The method according to claim 1, characterized in that The determining the cloud resource association information of the target cloud resource according to the query result of at least one of the account names includes: If the query result of the account name includes the single-account cloud resource association information of the target cloud resource, obtaining the single-account cloud resource association information of the target cloud resource; At least one of the single-account cloud resource association information is merged to obtain the cloud resource association information of the target cloud resource.

3. The method according to claim 1, characterized in that The account name in the account information is an encrypted account name, and the password is an encrypted password; For each account name in the account information, according to the account name, the password corresponding to the account name, and the target cloud resource identifier, a cloud resource query interface is called to obtain a query result of the account name from a cloud resource management device, including: For each account name in the account information, decrypt the encrypted account name to obtain the account name, and decrypt the encrypted password corresponding to the account name to obtain the password corresponding to the account name; For each account name, the cloud resource query interface is called according to the account name, the password corresponding to the account name, and the target cloud resource identifier; wherein the cloud resource management device is used to authenticate the account name and the password corresponding to the account name through the cloud resource query interface, and after the identity authentication is passed, feedback the query result of the account name; Receive the query result of the account name fed back by the cloud resource management device.

4. The method according to any one of claims 1 to 3, characterized in that: Before receiving the cloud resource query request input by the target user, the method further includes: Generate a cloud resource association panorama of the historical target cloud resource according to the cloud resource association information of the historical target cloud resource; Display a cloud resource association panorama of the historical target cloud resource; The receiving a cloud resource query request input by a target user includes: A cloud resource query request input by the target user based on the cloud resource association panorama of the historical target cloud resource is received.

5. The method according to claim 4, characterized in that After displaying the cloud resource association panorama of the historical target cloud resource, the method further includes: Receive a cloud resource association information screening request input by the target user based on the cloud resource association panorama of the historical target cloud resource; wherein the cloud resource association information screening request includes a cloud resource identifier to be screened, and the cloud resource association information screening request is used to instruct to screen out the cloud resource association information of the cloud resource to be screened corresponding to the cloud resource identifier to be screened from the cloud resource association panorama of the historical target cloud resource; The cloud resource association information of the cloud resource to be screened is screened out from the cloud resource association panorama of the historical target cloud resource.

6. The method according to claim 4, characterized in that The method further comprises: By calling the cloud resource query interface at a preset frequency, the cloud resource status information corresponding to each cloud resource identifier in the cloud resource association information of the historical target cloud resource is obtained from the cloud resource management device; If the status information of the first cloud resource indicates that the first cloud resource is unavailable, the first cloud resource identifier and the identifier of the cloud resource called by the first cloud resource are deleted from the cloud resource association information of the historical target cloud resource to obtain the first updated cloud resource association information of the historical target cloud resource.

7. The method according to claim 6, characterized in that The step of generating a cloud resource association panorama of the historical target cloud resource according to the cloud resource association information of the historical target cloud resource includes: Based on the cloud resource association information of the first updated historical target cloud resource, a cloud resource association panoramic view of the historical target cloud resource is generated.

8. The method according to claim 4, characterized in that The historical target cloud resources include initialization target cloud resources; Before generating the cloud resource association panorama of the historical target cloud resource according to the cloud resource association information of the historical target cloud resource, the method further includes: During initialization, for each account name in the account information, according to the account name, the password corresponding to the account name, and the initialization target cloud resource identifier, the cloud resource query interface is called to obtain the initialization query result of the account name from the cloud resource management device; Determine, according to the initialization query result of at least one of the account names, cloud resource association information of the initialization target cloud resource corresponding to the initialization target cloud resource identifier; The cloud resource association information of the initialization target cloud resource is stored in the storage space.

9. The method according to claim 4, characterized in that The step of generating a cloud resource association panorama of the historical target cloud resource according to the cloud resource association information of the historical target cloud resource includes: Calling the cloud resource query interface to obtain, from the cloud resource management device, status information of each cloud resource in the cloud resource association information of the historical target cloud resource; If the status information of the second cloud resource indicates that the second cloud resource is unavailable, deleting the second cloud resource identifier and the identifier of the cloud resource called by the second cloud resource from the cloud resource association information of the historical target cloud resource, to obtain the second updated cloud resource association information of the historical target cloud resource; According to the second updated cloud resource association information of the historical target cloud resource, a cloud resource association panoramic view of the historical target cloud resource is generated.

10. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Sending a permission configuration request to the cloud resource management device; wherein the permission configuration request is used to request configuration of query permissions for each of the account names; Receive the permission configuration result information fed back by the cloud resource management device; wherein the permission configuration result information is used to indicate that the query permission configuration is successful.

11. The method according to any one of claims 1 to 3, characterized in that: Before the step of calling a cloud resource query interface for each account name in the account information according to the account name, the password corresponding to the account name, and the target cloud resource identifier, and obtaining a query result of the account name from the cloud resource management device, the method further includes: Receiving account update information; wherein the account update information is used to modify the account information; Modify the account information according to the account update information to obtain updated account information; The step of calling a cloud resource query interface for each account name in the account information according to the account name, a password corresponding to the account name, and the target cloud resource identifier to obtain a query result of the account name from a cloud resource management device includes: For each account name in the updated account information, a cloud resource query interface is called according to the account name, the password corresponding to the account name, and the target cloud resource identifier to obtain a query result of the account name from a cloud resource management device.

12. A cloud resource query device, characterized in that: include: A first receiving module is used to receive a cloud resource query request input by a target user; wherein the cloud resource query request includes a target cloud resource identifier, and the cloud resource query request is used to instruct to query cloud resource association information of a target cloud resource corresponding to the target cloud resource identifier; A first calling module is used to call a cloud resource query interface for each account name in the account information according to the account name, the password corresponding to the account name, and the target cloud resource identifier, and obtain a query result of the account name from the cloud resource management device; wherein the account information includes at least one account name of the target user and the corresponding password; A first determination module, configured to determine the cloud resource association information of the target cloud resource according to a query result of at least one of the account names; wherein the cloud resource association information of the target cloud resource is used to indicate a cloud resource identifier and call link information called by the target cloud resource; A storage module is used to store the cloud resource association information of the target cloud resource in a preset storage space; wherein the preset storage space is also used to store the cloud resource association information of the historical target cloud resource.

13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the cloud resource query method according to any one of claims 1 to 11 when executing the computer program.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cloud resource query method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the cloud resource query method according to any one of claims 1 to 11.