Disclosure of Invention
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
The invention aims to solve the problems and provides a method and a system for managing hybrid cloud resources, which can manage the hybrid cloud resources better, effectively and conveniently.
The technical scheme of the invention is as follows: the invention discloses a management method of hybrid cloud resources, which comprises the following steps:
step 1: judging whether the user has login authority or not when the user logs in, and allowing the user to log in after judging that the user has the login authority;
step 2: after judging that the user has the login authority, further judging whether the user applies for public resources or private resources, if the user applies for the public resources, executing the processing of the step 3, and if the user applies for the private resources, executing the processing of the step 4;
and step 3: judging whether the user has a public resource authority, if so, checking whether the user has a public cloud quota, and if so, applying for a public cloud resource;
and 4, step 4: judging whether the user has a private resource authority, if so, checking whether the user has a private cloud quota, and if so, applying for the private cloud resources;
and 5: creating resources, creating resources through private and public resource identifiers selected by a user, judging the identifiers by the API for creating the resources, and selecting the bottom API of the private cloud or the public cloud to create the resources.
According to an embodiment of the management method of the hybrid cloud resource, in step 1, if the login authority does not exist, the authentication authority is opened for the user, and after the authentication is passed, the login operation is performed.
According to an embodiment of the management method for the hybrid cloud resources, in step 3, if the user does not have the public resource authority, the public resource authority is firstly opened for the user, and if the user does not have the public cloud quota, the public cloud quota is firstly applied for the user.
According to an embodiment of the management method of the hybrid cloud resource, in step 4, if the user does not have the private resource authority, the private resource authority is firstly opened for the user, and if the user does not have the private cloud quota, the private cloud quota is firstly applied for the user.
The invention also discloses a management system of the hybrid cloud resource, which comprises the following steps:
the login module is configured to judge whether the user has login authority or not when the user logs in, and allow the user to log in after judging that the user has the login authority;
the application type judging module is configured to further judge whether the user applies for public resources or private resources after judging that the user has the login authority;
the public cloud processing module is configured to judge whether the user has a public resource authority, check whether the user has a public cloud quota if the user has the public resource authority, and apply for public cloud resources if the user has the public cloud quota;
the private cloud processing module is configured to judge whether the user has a private resource authority, check whether the user has a private cloud quota if the user has the private resource authority, and apply for the private cloud resources if the user has the private cloud quota;
and the resource creating module is configured to create resources, create the resources through the private and public resource identifiers selected by the user, judge the identifiers through the API for creating the resources, and select the bottom API of the private cloud or the public cloud to create the resources.
According to an embodiment of the management system of the hybrid cloud resource, the login module is further configured to open an authentication authority for the user if the login authority does not exist, and perform login operation after the authentication is passed.
According to an embodiment of the management system for hybrid cloud resources of the present invention, the public cloud processing module is further configured to open the public resource authority for the user first if the user does not have the public resource authority, and apply for the public cloud quota for the user first if the user does not have the public cloud quota.
According to an embodiment of the management system for hybrid cloud resources, the private cloud processing module is further configured to firstly open the private resource authority for the user if the user does not have the private resource authority, and firstly apply for the private cloud quota for the user if the user does not have the private cloud quota.
The invention also discloses a management system of the hybrid cloud resource, which comprises the following steps:
a processor; and
a memory configured to store a series of computer-executable instructions and computer-accessible data associated with the series of computer-executable instructions,
wherein the series of computer executable instructions, when executed by the processor, cause the processor to perform the method as described above.
Also disclosed is a non-transitory computer readable storage medium having stored thereon a series of computer executable instructions which, when executed by a computing device, cause the computing device to perform the method as described above.
Compared with the prior art, the invention has the following beneficial effects: the invention encapsulates the API of the private cloud and the public cloud, can apply for two resources in the same system, and encapsulates the resource application method to acquire the resources. Public and private are distinguished through the identification bit, and corresponding personnel management and resource quota management are needed. Specifically, the invention realizes unified management, and the same portal can apply for public and private resources; setting authority control, subdividing login, public and private resource authorities; quota management is implemented, and resources can be applied only if quota has balance; and finally, the diversification of API drive is realized, and the private cloud API is connected with the public cloud API.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. It is noted that the aspects described below in connection with the figures and the specific embodiments are only exemplary and should not be construed as imposing any limitation on the scope of the present invention.
Fig. 1 shows a flow of an embodiment of a management method of a hybrid cloud resource of the present invention. Referring to fig. 1, the following is a detailed description of implementation steps of the management method of the present embodiment.
Step 1: and judging whether the user has login authority or not when the user logs in, opening authentication authority for the user if the user does not have the login authority, and performing login operation after the user passes the authentication.
Step 2: and after judging that the user has the login authority, further judging whether the user applies for the public resource or the private resource, if the user applies for the public resource, executing the processing of the step 3, and if the user applies for the private resource, executing the processing of the step 4.
And step 3: judging whether the user has a public resource authority, if not, opening the public resource authority for the user, if so, checking whether the user has a public cloud quota, if not, applying for the public cloud quota for the user, and if so, applying for the public cloud resources.
And 4, step 4: judging whether the user has the private resource authority, if not, opening the private resource authority for the user, if so, checking whether the user has the private cloud quota, if not, applying for the private cloud quota for the user, and if so, applying for the private cloud resources.
And 5: creating resources, creating resources through private and public resource identifications selected by a user on a foreground interface, judging the identifications by an API for creating the resources, and creating the resources by selecting different implementation methods, wherein the API for creating the resources is a method for creating the resources by encapsulating a bottom API of a public cloud and a private cloud, if the API has the private identification, the bottom API of the private cloud is selected for implementation, and if the API has the public identification, the bottom API of the public cloud is selected for implementation.
Fig. 2 illustrates the principle of an embodiment of the management system of the hybrid cloud resources of the present invention. Referring to fig. 2, the system of the present embodiment includes: the system comprises a login module, an application type judgment module, a public cloud processing module, a private cloud processing module and a resource creation module.
And the login module is configured to judge whether the user has login authority or not when the user logs in, open authentication authority for the user if the user does not have the login authority, and perform login operation after the authentication is passed.
And the application type judging module is configured to further judge whether the user applies for the public resources or the private resources after judging that the user has the login authority, execute the processing of the public cloud processing module if the user applies for the public resources, and execute the processing of the private cloud processing module if the user applies for the private resources.
The public cloud processing module is configured to judge whether the user has a public resource authority, if not, open the public resource authority for the user, if so, check whether the user has a public cloud quota, if not, apply for the public cloud quota for the user, and if so, apply for the public cloud resources.
The private cloud processing module is configured to judge whether the user has a private resource authority, if not, open the private resource authority for the user, if so, check whether the user has a private cloud quota, if not, apply for the private cloud quota for the user, and if so, apply for the private cloud resources.
The resource creating module is configured to create resources, create the resources through private and public resource identifiers selected by a user on a foreground interface, then judge the identifiers by an API for creating the resources, and select different implementation methods to create the resources, wherein the API for creating the resources is a method for creating the resources by a bottom API which encapsulates a public cloud and a private cloud, if the API has the private identifier, the bottom API of the private cloud is selected to be implemented, and if the API is the public identifier, the bottom API of the public cloud is selected to be implemented.
Further, the system shown in FIG. 3 includes a processor and a memory. The memory is configured to store a series of computer-executable instructions and computer-accessible data associated with the series of computer-executable instructions. When executed by a processor, the series of computer-executable instructions cause the processor to perform the method as shown in fig. 1.
A non-transitory computer readable storage medium having stored thereon a series of computer executable instructions which, when executed by a computing device, cause the computing device to perform the method as shown in fig. 1.
While, for purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated that the methodologies are not limited by the order of acts, as some acts may, in accordance with one or more embodiments, occur in different orders and/or concurrently with other acts from that shown and described herein or not shown and described herein, as would be understood by one skilled in the art.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a web site, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk (disk) and disc (disc), as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks (disks) usually reproduce data magnetically, while discs (discs) reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.