Resource access system, method, electronic device, and storage medium
By connecting the management module and the host agent module, the problem of lacking a unified access method in different cloud environments is solved, realizing unified access and friendly interaction to resources in different cloud environments, and improving the convenience and efficiency of operation and maintenance analysis.
Patent Information
- Application Number
- CN202211079773.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-05
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2042-09-05
AI Technical Summary
The lack of a unified access method between different cloud environments makes business operation and maintenance analysis inconvenient.
A resource access system is provided, including a connection management module and a host proxy module. By receiving resource access requests and routing them to the host proxy module, the system determines the target access method and achieves unified access to different cloud environments.
It provides a unified interface for the front end, simplifies access to resources in different cloud environments, and improves the convenience and efficiency of operation and maintenance analysis.
Smart Images

Figure CN115623073B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of resource access technology, and in particular to a resource access system, method, electronic device and storage medium. Background Technology
[0002] Considering factors such as reliability, cost, and functionality, business platforms typically deploy different applications in different cloud environments. These cloud environments can be various types, including public clouds, private clouds, container clouds, and hybrid clouds. When problems arise during application operation, it may be necessary to access the terminal within the application's cloud environment to locate and analyze the problem. This terminal can be located in environments such as virtual machines, physical machines, Docker containers, or Kubernetes pods. Due to the differences between different cloud environments, the access technologies for virtualized environments such as hosts, containers, and pods also differ. Currently, cloud environment vendors typically provide an access interface tool tailored to the specific cloud environment they offer, using SSH and WebSocket technologies. However, this lack of a unified access method can cause significant inconvenience for business operations and analysis. Summary of the Invention
[0003] This application provides a resource access system, method, electronic device, and storage medium to solve the problem of inconvenience caused to business operation and maintenance analysis due to the lack of a unified access method for different cloud environments.
[0004] In a first aspect, this application provides a resource access system, which includes a connection management module and a host proxy module, wherein the connection management module and the host proxy module are communicatively connected.
[0005] The connection management module receives resource access requests sent by the front end and routes the resource access requests to the host proxy module; the resource access request includes a host identifier and / or an application identifier, and the resource access request is used to access resources located in any cloud environment;
[0006] The host proxy module determines the target access method based on the host identifier and / or application identifier in the resource access request, and uses the target access method to access the target resource; the target access method is the access method of the cloud environment where the target resource is located.
[0007] Optionally, routing the resource access request to the host proxy module includes:
[0008] Based on the host identifier in the resource access request, a query is performed in the database to determine the host address corresponding to the host identifier as the address of the target host; the database is used to store the correspondence between host addresses and host identifiers, and the target host is the host where the target resource is located;
[0009] Based on the address of the target host, a connection is established with the host proxy module corresponding to the target host, and the resource access request is routed to the host proxy module corresponding to the target host.
[0010] Optionally, the resource access request includes a host identifier;
[0011] The step of determining the target access method based on the host identifier and / or application identifier in the resource access request includes:
[0012] Based on the host identifier in the resource access request, the target resource is determined to be the target host;
[0013] The access method of the cloud environment where the target host is located is determined as the target access method.
[0014] Optionally, the resource access request includes a host identifier and an application identifier;
[0015] The step of determining the target access method based on the host identifier and / or application identifier in the resource access request includes:
[0016] Based on the host identifier and application identifier in the resource access request, the target resource is determined to be a target application on the target host, and the target application is the application corresponding to the application identifier;
[0017] The access method of the cloud environment where the target application is located is determined as the target access method.
[0018] Optionally, accessing the target resource using the target access method includes:
[0019] If the target application is not directly deployed on the physical machine of the target host, then the target application deployed on the physical machine of the target host is accessed using the target access method.
[0020] If the target application is deployed on a virtual machine on the target host, then the identifier of the target virtual machine is determined, and based on the identifier of the target virtual machine, the target application deployed on the target virtual machine is accessed using the target access method; the target virtual machine is the virtual machine on the target host used to deploy the target application.
[0021] Optionally, the resource access request may also include authentication information;
[0022] After receiving the resource access request from the front end and before routing the resource access request to the host proxy module, the method further includes:
[0023] The resource access request is authenticated based on the authentication information to obtain the authentication result;
[0024] If the authentication result is successful, access to the target resource is permitted;
[0025] If the authentication result is authentication failure, access to the target resource is denied.
[0026] Secondly, this application provides a resource access method, which includes:
[0027] Receive resource access requests;
[0028] The resource access request is routed to the host proxy module, so that the host proxy module can determine the target access method based on the host identifier and / or application identifier in the resource access request, and use the target access method to access the target resource.
[0029] The resource access request includes a host identifier and / or an application identifier, and is used to access resources located in any cloud environment; the target access method is the access method of the cloud environment where the target resource is located.
[0030] Thirdly, this application provides a resource access method, which includes:
[0031] Receive resource access requests forwarded by the connection management module. The resource access requests include a host identifier and / or an application identifier. The resource access requests are used to access resources located in any cloud environment.
[0032] Based on the host identifier and / or application identifier in the resource access request, a target access method is determined, and the target resource is accessed using the target access method, wherein the target access method is the access method of the cloud environment where the target resource is located.
[0033] Fourthly, this application provides a resource access device, which includes:
[0034] The receiving module is used to receive resource access requests;
[0035] The routing module is used to route the resource access request to the host proxy module, so that the host proxy module can determine the target access method based on the host identifier and / or application identifier in the resource access request, and use the target access method to access the target resource.
[0036] The resource access request includes a host identifier and / or an application identifier, and is used to access resources located in any cloud environment; the target access method is the access method of the cloud environment where the target resource is located.
[0037] Fifthly, this application provides a resource access device, which includes:
[0038] A receiving module is used to receive resource access requests forwarded by the connection management module. The resource access request includes a host identifier and / or an application identifier. The resource access request is used to access resources located in any cloud environment.
[0039] The determination module is used to determine the target access method based on the host identifier and / or application identifier in the resource access request, wherein the target access method is the access method of the cloud environment where the target resource is located;
[0040] The access module is used to access the target resource using the target access method.
[0041] Sixthly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0042] Memory, used to store computer programs;
[0043] A processor, when executing a program stored in memory, implements the steps of the resource access method described in any embodiment of the second or third aspect.
[0044] In a seventh aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the resource access method as described in any embodiment of the first aspect.
[0045] The technical solutions provided in this application have the following advantages compared with the prior art:
[0046] The resource access system provided in this application includes a connection management module and a host proxy module, which are communicatively connected. Upon receiving a resource access request, the connection management module routes the request to the corresponding host proxy module based on the host identifier and / or application identifier in the request. The host proxy module then determines the appropriate access method (target access method) and uses that method to access the target resource. This eliminates the need for the front-end to directly access different cloud environments using different access methods. Instead, the connection management module and host proxy module provide a unified interface for the front-end. The front-end only needs to send the resource access request to the connection management module, which then connects to the host proxy module to access resources in different cloud environments, thus providing a unified access method across various cloud environments. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 A schematic diagram of a resource access system provided in an embodiment of this application;
[0050] Figure 2 A schematic diagram of a resource access process provided in an embodiment of this application;
[0051] Figure 3 A flowchart illustrating a resource access method provided in this application embodiment. Figure 1 ;
[0052] Figure 4 A flowchart illustrating a resource access method provided in this application embodiment. Figure 2 ;
[0053] Figure 5 A schematic diagram of a resource access device provided in an embodiment of this application. Figure 1 ;
[0054] Figure 6 A schematic diagram of a resource access device provided in an embodiment of this application. Figure 2 ;
[0055] Figure 7This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0057] To address the inconvenience caused to business operation and maintenance analysis due to the lack of a unified access method for different cloud environments, embodiments of this application provide a resource access system, such as... Figure 1 As shown, the resource access system includes a connection management module and a host agent module.
[0058] The connection management module and the host agent module can communicate with each other.
[0059] In one possible implementation, the connection management module includes a gateway, which may be, for example, an API gateway.
[0060] In one possible implementation, the host agent module can be set on the host or on other devices that can communicate with the host.
[0061] Optionally, the connection management module receives resource access requests sent by the front end and routes the resource access requests to the host proxy module, that is, forwards the resource access requests to the corresponding host proxy module. The resource access request includes a host identifier and / or an application identifier, and the resource access request is used to access resources in any cloud environment.
[0062] Subsequently, the host proxy module determines the target access method, i.e. the access method of the cloud environment where the target resource is located, based on the host identifier and / or application identifier in the resource access request, and uses the target access method to access the target resource.
[0063] Depending on the target resource to be accessed, the resource access request contains different content.
[0064] In one possible implementation, if the target resource to be accessed is a host resource, such as host configuration information, then the resource access request includes the host identifier; if the target resource to be accessed is an application resource, such as application configuration information, then the resource access request includes both the host identifier and the application identifier.
[0065] In other words, based on the content included in the resource access request, it can be determined whether the resource to be accessed, i.e. the target resource, is the host itself or an application set up on the host.
[0066] In one possible implementation, after receiving a resource access request, the connection management module queries the database based on the host identifier in the request to determine the host address corresponding to the host identifier as the address of the target host. Subsequently, based on the address of the target host, the connection management module establishes a connection with the host proxy module corresponding to the target host and routes the resource access request to the host proxy module corresponding to the target host.
[0067] The aforementioned database is used to store the correspondence between host addresses and host identifiers. The target host is the host where the target resource is located.
[0068] In one possible implementation, the host proxy module corresponding to the target host is either the host proxy module on the target host or the host proxy module set on other devices that can communicate with the target host.
[0069] In this way, the connection management module can establish a connection with any host where the resource to be accessed is located through the corresponding host proxy module, which facilitates providing a unified interface for accessing the resource.
[0070] In one possible implementation, during the application deployment process on the business platform, a database is established to store the mapping between host addresses and host identifiers. A mapping exists between host addresses and host identifiers; the host address corresponding to a host identifier is the address of the host represented by that host identifier.
[0071] The content of the resource management request received by the connection management module from the front end will differ depending on the target resource to be accessed.
[0072] In another possible implementation, if the target resource to be accessed is a host resource, the resource access request includes the host identifier; if the target resource to be accessed is an application resource, the resource access request includes both the host identifier and the application identifier.
[0073] At this point, based on the content included in the resource access request, it can be determined whether the resource to be accessed, i.e., the target resource, is the host itself or an application set up on the host. If the resource access request includes a host identifier, the target resource can be determined to be the target host corresponding to that host identifier; if the resource access request includes an application identifier, the target resource is the target application corresponding to that application identifier.
[0074] Similarly, in this case, the aforementioned database is used to store the mapping between host addresses, host identifiers, and application identifiers. Specifically, there is a mapping between host identifiers and application identifiers; the host identifier corresponding to an application identifier is the identifier of the host on which the application represented by that application identifier is deployed. Similarly, there is a mapping between host addresses and host identifiers; the host address corresponding to a host identifier is the address of the host represented by that host identifier.
[0075] At this point, the connection management module can query the database based on the application identifier in the resource access request, directly determine the host address corresponding to the application identifier as the address of the target host, and then establish a connection with the host proxy module corresponding to the target host based on this address, and route the resource access request to the host proxy module corresponding to the target host.
[0076] Optionally, if the resource access request includes a host identifier, the connection management module routes the resource management request to the corresponding host proxy module. The host proxy module can then determine the target resource (i.e., the target host) based on the host identifier in the resource access request. Subsequently, the host proxy module determines the access method of the cloud environment where the target host resides as the target access method. At this point, the target host is the host corresponding to the host identifier in the resource access request.
[0077] In this way, the front end does not need to distinguish between cloud environments. The host proxy module can achieve unified access to the target host located in any cloud environment, thereby realizing a friendly interaction between the front end and the user and facilitating operation.
[0078] Optionally, if the resource access request includes a host identifier and an application identifier, the connection management module routes the resource management request to the corresponding host proxy module based on the host identifier. The host proxy module can then determine the target resource (i.e., the application) to be accessed based on the application identifier in the resource access request. The target application is the application corresponding to the application identifier in the resource access request. Subsequently, the host proxy module determines the access method of the cloud environment where the target application resides as the target access method.
[0079] In one possible implementation, the host proxy module determines the host on which the target application is deployed by querying resource tags. Generally, the host on which the target application is deployed is the host corresponding to the application identifier of the target application, i.e., the target host.
[0080] In one possible implementation, when the target resource is a target application, the target access method is used to access the target application based on whether the target application is directly deployed on the target host. That is, the appropriate target access method is used based on whether the target application is deployed directly on the physical machine of the target host or on a virtual machine of the target host.
[0081] If the target application is deployed directly on the physical machine of the target host, then the target access method is used to directly access the target application deployed on the physical machine of the target host.
[0082] Specifically, the host proxy module determines that the target application is directly deployed on the physical machine of the target host by querying resource tags. Then, it uses the target access method to establish a connection with the target host and accesses the target application directly deployed on the target host based on the connection.
[0083] Correspondingly, if the target application is not directly deployed on the physical machine of the target host, but rather on a virtual machine of the target host, then the identifier of the target virtual machine is determined, and based on this identifier, the target application deployed on the target virtual machine is accessed using the target access method. The target virtual machine is the virtual machine on the target host used to deploy the target application.
[0084] Specifically, the host proxy module determines the target application is deployed on the virtual machine of the target host, i.e., the target virtual machine, by querying the resource tags. Then, based on the identifier of the target virtual machine, it establishes a connection with the target virtual machine using the target access method, and accesses the target application deployed on the target virtual machine based on the connection.
[0085] Each application is assigned a corresponding resource tag during deployment. The content of this resource tag varies depending on the deployment scenario. For applications deployed directly on the host machine, the resource tag typically includes the application identifier and the host identifier. For applications deployed on a virtual machine on the host machine, the resource tag typically includes the application identifier, the host identifier, and the virtual machine identifier. Optionally, for any application, the resource tag may also include information such as the application type.
[0086] Understandably, the target access method will differ depending on the target resource to be accessed. After determining the target resource, the host proxy module can determine the target access method used to access that resource.
[0087] In existing technologies, different cloud environments may have different authentication requirements for accessing their resources, meaning the authentication methods for resource access requests are inconsistent, causing inconsistencies in accessing resources across different cloud environments. Optionally, in the resource access system provided in this application, after receiving a resource access request from the front end, the host proxy module authenticates the received resource access request before routing it to the host proxy module. At this time, the resource access request also includes authentication information. After receiving the resource access request, the connection management module authenticates the resource access request based on the authentication information in the request, obtaining an authentication result. If the authentication result is successful, access to the target resource is allowed, and the resource access request is routed to the host proxy module. If the authentication result is unsuccessful, access to the target resource is denied, for example, the resource access request is discarded, and it is not routed to the host proxy module.
[0088] It should be noted that, through the above resource access system, the front end does not need to directly access different cloud environments through different access methods. Instead, the connection management module and the host proxy module provide a unified interface for the front end. The front end only needs to send the resource access request to the connection management module, and it can access resources in different cloud environments through the unified interface, namely the host proxy module connected to the connection management module, thereby providing the front end with a unified access method in different cloud environments.
[0089] For example, taking the need to access application resources as an example, the resource access process can be as follows: Figure 2 As shown, the frontend connects to the API gateway in the connection management module via WebSocket. After receiving the corresponding instruction, the frontend sends the resource access request to the API gateway through this connection. Subsequently, the API gateway performs connection permission authentication based on the received resource access request and obtains the authentication result. If the authentication result is successful, based on the service registration mechanism, it queries the database for the corresponding host address and routes the resource access request to the host proxy module of the corresponding host based on the host address. The host proxy module establishes a connection between the host and the connection management module, and determines the appropriate access method based on the resource access request. The host proxy module deploys access tools for various cloud environments, such as access tools for pod cloud environments, docker cloud environments, and VB cloud environments. Subsequently, based on the resource tag, the host proxy module determines the cloud environment corresponding to the application to be accessed and selects the appropriate access tool to access the application deployed in different cloud environments, such as application instances deployed in shell, application instances deployed in dockerd, and application instances deployed in Kubernetes.
[0090] Each application instance is assigned a corresponding resource tag during deployment. This resource tag includes information such as application instance identifier, application instance type, and host identifier.
[0091] Generally, a host proxy module is deployed on the host resources where the application instance is located. This host proxy module is used to manage and forward connections to the terminal of the application instance (i.e. the terminal where the application instance is deployed, such as a host, virtual machine, container, etc.). It can shield the connection differences between the front end and various cloud environments, so that the front end does not need to distinguish between the differences between cloud environments and can directly access resources in various cloud environments.
[0092] In one possible implementation, the host proxy module will register all host proxy modules based on resource tags through a service registration mechanism.
[0093] It should be noted that through the middleware mechanism of the API gateway, the authentication mechanism provided by the API gateway can be used to achieve a secure connection, that is, a secure connection between the front end and the host proxy module or the host where the host proxy module is located. At the same time, it can shield the authentication differences when accessing various cloud environments.
[0094] For example, the page initiates a connection request to a resource terminal, carrying a host identifier and / or application identifier. Upon passing through the API gateway, user authentication is performed, and the page is routed to the corresponding host proxy module based on the host identifier and / or application identifier. Subsequently, the host proxy module, based on the current environment, employs the appropriate resource access technology, finding the corresponding host based on the host identifier, and the corresponding application based on the application identifier, or both, to establish a connection with the terminal where the application is deployed. This achieves a unified approach where the host proxy module automatically adjusts the access method according to the environment, providing a user-friendly and convenient interface.
[0095] In this application, a unified resource access method can be provided in a multi-cloud environment and with multiple deployment methods by using tagging technology in combination with API gateway, proxy technology, WebSocket and other technologies. This provides terminal access methods for personalized applications of business platforms, shields the resource access verification of cloud vendors, and provides a unified security authentication method according to business needs.
[0096] To address the inconvenience caused to business operation and maintenance analysis due to the lack of a unified access method for different cloud environments, this application provides a resource access method. This method is applied to the connection management module of the above-mentioned resource access system, such as an API gateway.
[0097] like Figure 3 As shown, the resource access method includes steps 301-302:
[0098] 301. Receive access request.
[0099] The resource access request includes a host identifier and / or an application identifier, and is used to access resources located in any cloud environment.
[0100] 302. Route resource access requests to the host proxy module.
[0101] This allows the host proxy module to determine the target access method based on the host identifier and / or application identifier in the resource access request, and then use that target access method to access the target resource.
[0102] The target access method refers to the access method of the cloud environment where the target resource is located.
[0103] For details on the specific implementation of this method, please refer to the above content, which will not be elaborated here.
[0104] To address the inconvenience caused to business operation and maintenance analysis due to the lack of a unified access method for different cloud environments, this application provides a resource access method. This method is applied to a host proxy module in the aforementioned resource access system. This host proxy module can be located in the host or in any device capable of communicating with the host. For example... Figure 4 As shown, the resource access method includes steps 401-402:
[0105] 401. Receive resource access requests forwarded by the connection management module.
[0106] The resource access request includes a host identifier and / or an application identifier, and is used to access resources located in any cloud environment.
[0107] 402. Determine the target access method based on the host identifier and / or application identifier in the resource access request.
[0108] The target access method refers to the access method of the cloud environment where the target resource is located.
[0109] 403. Access the target resource using the target access method.
[0110] For details on the specific implementation of this method, please refer to the above content, which will not be elaborated here.
[0111] like Figure 5 As shown in the figure, this application embodiment provides a resource access device, which includes a receiving module 501 and a routing module 502.
[0112] The receiving module 501 is used to receive access requests.
[0113] Routing module 502 is used to route resource access requests to the host proxy module.
[0114] like Figure 6 As shown in the figure, this application provides a resource access device, which includes a receiving module 601, a determining module 602, and an access module 603.
[0115] The receiving module 601 is used to receive resource access requests forwarded by the connection management module.
[0116] The determination module 602 is used to determine the target access method based on the host identifier and / or application identifier in the resource access request.
[0117] Access module 603 is used to access the target resource using the target access method.
[0118] like Figure 7 As shown in the figure, this application provides an electronic device, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0119] Memory 703 is used to store computer programs;
[0120] In one embodiment of this application, when the processor 701 executes the program stored in the memory 703, it implements the steps of the resource access method provided in any of the foregoing method embodiments.
[0121] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the resource access method provided in any of the foregoing method embodiments.
[0122] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0123] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A resource access system, characterized by, The resource access system comprises a connection management module and a host agent module, and the connection management module is in communication connection with the host agent module; The connection management module receives a resource access request sent by a front end and routes the resource access request to the host agent module; the resource access request comprises a host identifier and / or an application identifier, and the resource access request is used to access a resource located in any cloud environment; The host agent module determines a target access mode based on the host identifier and / or the application identifier in the resource access request and accesses a target resource by using the target access mode; the target access mode is an access mode of a cloud environment where the target resource is located, wherein the access mode refers to an access tool used to access a cloud environment, and the access tool comprises an access tool of a pod cloud environment, an access tool of a docker cloud environment, and an access tool of a VB cloud environment; in the case where the host identifier is included in the resource access request, it is determined that the target resource is a target host; in the case where the host identifier and the application identifier are included in the resource access request, it is determined that the target resource is a target application.
2. The resource access system of claim 1, wherein, The routing of the resource access request to the host agent module comprises: querying a database based on the host identifier in the resource access request, determining a host address corresponding to the host identifier as an address of a target host; the database is used to store a correspondence between host addresses and host identifiers, and the target host is a host where the target resource is located; based on the address of the target host, establishing a connection with a host agent module corresponding to the target host, and routing the resource access request to the host agent module corresponding to the target host.
3. The resource access system according to claim 2, wherein the resource access request comprises a host identifier; the determination of a target access mode based on the host identifier and / or an application identifier in the resource access request comprises: determining the target resource as the target host based on the host identifier in the resource access request; and determining an access mode of a cloud environment where the target host is located as the target access mode.
4. The resource access system according to claim 2, wherein the resource access request comprises a host identifier and an application identifier; the determination of a target access mode based on the host identifier and / or an application identifier in the resource access request comprises: determining the target resource as a target application on the target host based on the host identifier and the application identifier in the resource access request, wherein the target application is an application corresponding to the application identifier; and determining an access mode of a cloud environment where the target application is located as the target access mode.
5. The resource access system of claim 4, wherein, the access of the target resource by using the target access mode comprises: if the target application is directly deployed on a physical machine of the target host, the target application deployed on the physical machine of the target host is accessed by using the target access mode. If the target application is deployed on a virtual machine of the target host, an identifier of a target virtual machine is determined, and based on the identifier of the target virtual machine, the target application deployed on the target virtual machine is accessed by using the target access mode; the target virtual machine is a virtual machine of the target host used for deploying the target application.
6. The resource access system of claim 1, wherein, the resource access request further comprises authentication information; after receiving the resource access request sent by the receiving front end, before routing the resource access request to the host agent module, the resource access request is authenticated based on the authentication information to obtain an authentication result; if the authentication result is authentication success, the target resource is accessed; if the authentication result is authentication failure, the target resource is refused to be accessed.
7. A resource access method, characterized by, The method comprises: receiving a resource access request; routing the resource access request to a host agent module, so that the host agent module determines a target access mode based on a host identifier and / or an application identifier in the resource access request, and accesses a target resource by using the target access mode; wherein the resource access request comprises a host identifier and / or an application identifier, and the resource access request is used to access a resource located in any cloud environment; the target access mode is an access mode of a cloud environment where the target resource is located, wherein the access mode refers to an access tool used to access a cloud environment, and the access tool comprises a pod cloud environment access tool, a docker cloud environment access tool, and a VB cloud environment access tool; in the case where the resource access request comprises the host identifier, it is determined that the target resource is a target host; in the case where the resource access request comprises the host identifier and the application identifier, it is determined that the target resource is a target application.
8. A resource access method, characterized by, The method comprises: receiving a resource access request forwarded by a connection management module, wherein the resource access request comprises a host identifier and / or an application identifier, and the resource access request is used to access a resource located in any cloud environment; determining a target access mode based on the host identifier and / or the application identifier in the resource access request, and accessing a target resource by using the target access mode, wherein the target access mode is an access mode of a cloud environment where the target resource is located, and the access mode refers to an access tool used to access a cloud environment, and the access tool comprises a pod cloud environment access tool, a docker cloud environment access tool, and a VB cloud environment access tool; in the case where the resource access request comprises the host identifier, it is determined that the target resource is a target host; in the case where the resource access request comprises the host identifier and the application identifier, it is determined that the target resource is a target application.
9. An electronic device, comprising: comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus; the memory is used to store a computer program; the processor is used to execute the program stored on the memory, and implement the resource access method of claim 7 or 8.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the resource access method according to claim 7 or 8.
Citation Information
Patent Citations
Hybrid cloud platform management system and hybrid cloud platform management method
CN108449418A