Virtual machine resource application method and device, electronic equipment and storage medium

By querying the quota information of the cloud platform type and integrating the virtual machine provisioning process, it solves the problem of complex provisioning methods for virtual machines of different cloud types and improves the efficiency and flexibility of virtual machine resource application.

CN118535310APending Publication Date: 2024-08-23ULTRAPOWER SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310145994.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Different cloud types have different ways to activate virtual machines, which requires users to conduct approval across multiple platforms, making the operation complex and inefficient.

Method used

By receiving virtual machine resource applications, including cloud platform type and virtual machine configuration parameters, querying the quota information of the corresponding cloud platform type, and responding to the virtual machine resource application based on the quota information, integrating the virtual machine activation processes of different cloud types, storage cloud platforms Type and virtual machine configuration parameters are sent to the configuration library, data is checked, virtual machine instance resources are generated, and virtual machine resources are activated.

Benefits of technology

It simplifies the virtual machine resource application process, improves efficiency, meets the data inspection of multiple resources, has good scalability and flexibility, and supports instance specification resource activation, network resource activation, and shared disk mounting and uninstallation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535310A
    Figure CN118535310A
Patent Text Reader

Abstract

The invention provides a virtual machine resource application method and device, electronic equipment and a storage medium. The method comprises the steps that a virtual machine resource application is received; the virtual machine resource application comprises a cloud platform type and virtual machine configuration parameters; querying quota information corresponding to the cloud platform type according to the cloud platform type; and responding to the virtual machine resource application according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type. The virtual machine resource application comprises cloud platform types and virtual machine configuration parameters, and virtual machines of different cloud types are opened by querying quota information of the corresponding cloud platform types. According to the method, the opening processes of the virtual machines of different cloud types are integrated, and the problem that the resource application efficiency of the virtual machines is low due to the fact that the opening modes of the virtual machines of different cloud types are different and a user needs to cross multiple platforms for examination and approval is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for applying for virtual machine resources. Background Art

[0002] As some businesses develop and grow in size, people from different companies and departments have more and more demands for cloud platforms. One of the indispensable functional indicators of cloud platforms is to provide resource viewing and resource activation services for different types of users. In some businesses, it is often necessary to apply for resources for different types of cloud platforms, and the activation methods of virtual machines of different cloud types are different. Users need to cross multiple platforms for approval, which is complicated and inefficient. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a virtual machine resource application method, device, electronic device and storage medium to integrate the virtual machine resource application process of multiple cloud platforms and improve the problem of complex and low efficiency of cross-cloud platform approval operations when applying for cloud resources.

[0004] In a first aspect, an embodiment of the present application provides a method for applying for virtual machine resources, including: receiving an application for virtual machine resources; the application for virtual machine resources includes a cloud platform type and virtual machine configuration parameters; based on the cloud platform type, querying quota information corresponding to the cloud platform type; and responding to the application for virtual machine resources based on the virtual machine configuration parameters and the quota information corresponding to the cloud platform type.

[0005] In the above implementation process, the virtual machine resource application includes the cloud platform type and virtual machine configuration parameters. By querying the quota information of the corresponding cloud platform type, virtual machines of different cloud types can be activated. The virtual machine activation process of different cloud types is integrated to improve the problem that the activation methods of virtual machines of different cloud types are different, and users need to cross multiple platforms for approval, resulting in low efficiency of virtual machine resource application.

[0006] Optionally, in an embodiment of the present application, a virtual machine resource application is responded to according to the quota information corresponding to the virtual machine configuration parameters and the cloud platform type, including: storing the cloud platform type and the virtual machine configuration parameters in a configuration library; performing a data check on the virtual machine configuration parameters in the configuration library to obtain a data check result; if the data check result indicates that the data check has passed, a virtual machine instance resource is generated according to the cloud platform type and the virtual machine configuration parameters; and a virtual machine resource application is responded to through the virtual machine instance resources.

[0007] In the above implementation process, by storing the cloud platform type and virtual machine configuration parameters in the configuration library, it is only necessary to perform a data check on the updated parameters in the configuration library to determine whether the virtual machine resource application has passed the data check. If it has passed the data check, the corresponding virtual machine instance resources can be created to complete the activation of virtual machine resources. It can also meet the activation of instance specification resources, network resource activation, and shared disk mounting and unmounting, etc., and has good scalability and flexibility.

[0008] Optionally, in an embodiment of the present application, a data check is performed on the virtual machine configuration parameters in the configuration library to obtain a data check result, including: determining whether the quota information corresponding to the cloud platform type meets the requirements corresponding to the virtual machine configuration parameters, and generating a data check result.

[0009] In the above implementation process, by comparing the quota information of the corresponding cloud platform type in the virtual machine resource application with the requirements corresponding to the virtual machine configuration parameters, a data inspection result is generated to ensure that the virtual machine configuration parameters in the virtual machine resource application can be satisfied by the remaining quota of the corresponding cloud platform in response to the virtual machine resource application.

[0010] Optionally, in an embodiment of the present application, virtual machine instance resources are generated according to the cloud platform type and virtual machine configuration parameters, including: obtaining connection parameters of the cloud platform according to the cloud platform type; the connection parameters are used to authenticate access to the cloud platform; according to the connection parameters and virtual machine configuration parameters, the virtual machine resource parameters corresponding to the cloud platform type are assembled to generate virtual machine activation parameters; according to the virtual machine activation parameters, the corresponding virtual machine resources are called from the cloud platform to generate virtual machine instance resources.

[0011] In the above implementation process, the virtual machine configuration parameters in the virtual machine resource application are assembled to generate virtual machine activation parameters, which are configuration information that can be understood by the underlying activation interface to realize the activation of virtual machine resources.

[0012] Optionally, in an embodiment of the present application, according to the cloud platform type, the quota information corresponding to the cloud platform type is queried, including: collecting cloud platform information of each cloud platform type, and storing each cloud platform information in a resource database; according to the cloud platform type, querying the quota information corresponding to the cloud platform type from the resource database.

[0013] In the above implementation process, the CMP multi-cloud management platform obtains cloud platform information of each cloud platform type on a regular basis, so that each query of the quota information of the cloud platform type is accurate data, ensuring the real-time and accuracy of the query data.

[0014] Optionally, in an embodiment of the present application, the method also includes: obtaining a process file, the process file is used to describe the process of the virtual machine resource application business; receiving a virtual machine resource application, generating a process instance based on the process file and the virtual machine resource application; responding to the virtual machine resource application, including: responding to the virtual machine resource application according to the process instance.

[0015] In the above implementation process, through customized process files, the business is driven to flow according to the set fixed process, ensuring the accuracy of business execution, and enabling users to approve and view work orders, create process forms, and publish flowcharts on one platform.

[0016] Optionally, in an embodiment of the present application, the method also includes: if the virtual machine resource application fails, generating resource application failure information; querying the processing personnel corresponding to the virtual machine resource application from the process instance, and sending the resource application failure information to the processing personnel.

[0017] In the above implementation process, resource application failure information is generated after the virtual machine resource application fails, and the resource application failure information is sent to the corresponding one set in the process instance so that the processing personnel can promptly troubleshoot the application failure information and improve the efficiency of virtual machine resource application processing.

[0018] In the second aspect, an embodiment of the present application also provides a virtual machine resource application device, including: an application receiving module, used to receive a virtual machine resource application; the virtual machine resource application includes a cloud platform type and virtual machine configuration parameters; a query module, used to query the quota information corresponding to the cloud platform type according to the cloud platform type; a response module, used to respond to the virtual machine resource application according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type.

[0019] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method described above is performed.

[0020] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described above is executed.

[0021] The present application provides a method, device, electronic device and storage medium for applying for virtual machine resources. The application for virtual machine resources includes cloud platform type and virtual machine configuration parameters. By querying the quota information of the corresponding cloud platform type, virtual machines of different cloud types can be activated. The virtual machine activation processes of different cloud types are integrated to improve the problem that the activation methods of virtual machines of different cloud types are different, and users need to cross multiple platforms for approval, resulting in low efficiency of virtual machine resource application. It can also meet the data inspection of multiple resources and has good scalability and flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application 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.

[0023] Figure 1 A flowchart of a method for applying for virtual machine resources provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a resource application process development method provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a resource application process provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of a virtual machine resource application device provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following embodiments of the technical solution of the present application will be described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0030] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0031] See also Figure 1 A flow chart of a method for applying for virtual machine resources provided by an embodiment of the present application is shown. The method for applying for virtual machine resources provided by an embodiment of the present application can be applied to electronic devices, which may include a terminal and a server; wherein the terminal may specifically be a smart phone, a tablet computer, a computer, a personal digital assistant (PDA), etc.; the server may specifically be an application server or a Web server. The method for applying for virtual machine resources may include the following steps:

[0032] Step S110: receiving a virtual machine resource application; the virtual machine resource application includes a cloud platform type and virtual machine configuration parameters.

[0033] Receive user's virtual machine resource application, which can be issued for different cloud platforms. A virtual machine (VM) refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.

[0034] The virtual machine resource application includes the type of cloud platform selected by the user and the virtual machine configuration parameters. The cloud platform is a cloud computing platform, which refers to a service based on hardware resources and software resources, providing computing, network and storage capabilities. Cloud platform types include VMware, FusionCompute, ManageOne, H3CCASS, TeleVIM and OpenStack. Virtual machine configuration parameters include network resources, CPU (central processing unit), memory parameters and disk parameters.

[0035] Step S120: According to the cloud platform type, query the quota information corresponding to the cloud platform type.

[0036] According to the cloud platform type in the virtual machine resource application, the quota information corresponding to the cloud platform type is queried. The quota information includes virtual machine instance specifications and network quota information. By calculating the remaining available percentage of the cloud platform quota in real time, the available configurations are automatically filtered out, and the corresponding cloud resource quota data is displayed according to the display indicators selected by the user. Among them, the display indicators, for example, the user can choose to display the configuration whose remaining available percentage of the quota is higher than the threshold, or can choose to display the virtual machine instance specifications and network quota information together, or display any one of the virtual machine instance specifications and network quota information.

[0037] Among them, the virtual machine instance specifications include virtual machine quota information and virtual machine type information. The virtual machine quota information includes CPU, memory and disk, etc.; the virtual machine type information includes virtual machine cluster, storage information and virtual machine template, etc. Network quota information includes intranet IP, public IP, floating IP, network segment address, gateway address and VLAN (Virtual Local Area Network) and other resources.

[0038] Step S130: respond to the virtual machine resource request according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type.

[0039] According to the quota information corresponding to the cloud platform type, the virtual machine configuration parameters are checked for data. If the data check passes, the corresponding virtual machine resources are generated and the virtual machine resource application is responded to.

[0040] For example, data checking can include determining whether the virtual machine configuration parameters in the virtual machine resource application are repeated, and the intranet IP information of the virtual machine application in the same region cannot be repeated; data checking can also include determining whether the quota information corresponding to the selected cloud platform type meets the virtual machine configuration parameters. If the results of all items of the data check indicate that they have passed, such as the virtual machine configuration parameters are not repeated and the quota information corresponding to the cloud platform type meets the virtual machine configuration parameters, then virtual machine resources are automatically created according to the virtual machine configuration parameters to respond to the virtual machine resource application.

[0041] In the above implementation process, the virtual machine resource application includes the cloud platform type and virtual machine configuration parameters. By querying the quota information of the corresponding cloud platform type, virtual machines of different cloud types can be activated. The virtual machine activation process of different cloud types is integrated to improve the problem of low efficiency of virtual machine resource application due to different activation methods of virtual machines of different cloud types and users needing to cross multiple platforms for approval.

[0042] Optionally, in an embodiment of the present application, a virtual machine resource application is responded to according to the quota information corresponding to the virtual machine configuration parameters and the cloud platform type, including: storing the cloud platform type and the virtual machine configuration parameters in a configuration library; performing a data check on the virtual machine configuration parameters in the configuration library to obtain a data check result; if the data check result indicates that the data check has passed, a virtual machine instance resource is generated according to the cloud platform type and the virtual machine configuration parameters; and a virtual machine resource application is responded to through the virtual machine instance resources.

[0043] In the specific implementation process: the multi-cloud management platform calls the server interface to store the virtual machine configuration parameters and cloud platform type in the virtual machine resource application in the configuration library. The multi-cloud management platform can uniformly manage public clouds and private clouds, build a unified multi-cloud platform, and realize cross-cloud platform and cross-regional business system deployment. Among them, the multi-cloud management platform can be a CMP (Cloud Management Platforms) multi-cloud management platform.

[0044] The multi-cloud intelligent distribution engine will automatically monitor the virtual machine configuration parameters in the configuration library. When the configuration information in the configuration library changes, the changed configuration parameters will be obtained. For example, if a new virtual machine resource application is received, the configuration information in the configuration library will increase the corresponding virtual machine configuration parameters, and the newly added virtual machine configuration parameters will be obtained. Among them, the multi-cloud intelligent distribution engine is used for application management of multi-cloud resources.

[0045] According to the cloud platform type, the newly added virtual machine configuration parameters are analyzed and processed. Specifically, for example, the virtual machine configuration parameters in the configuration library are checked for data to obtain data check results. The data check includes determining whether the virtual machine configuration parameters in the virtual machine resource application are repeated, and determining whether the quota information corresponding to the cloud platform type meets the requirements corresponding to the virtual machine configuration parameters.

[0046] If the data check result indicates that the data check has passed, virtual machine instance resources are generated according to the cloud platform type and virtual machine configuration parameters. For example, the multi-cloud intelligent distribution engine will reassemble the virtual machine configuration parameters according to the parameter assembly rules of different cloud platform types, and automatically construct the corresponding virtual machine activation parameters. The virtual machine activation parameters are the parameters that the underlying cloud platform can identify for activating virtual machine resources. Generate virtual machine instance resources according to the virtual machine activation parameters; respond to virtual machine resource requests through virtual machine instance resources.

[0047] In an optional embodiment, after the data check obtains the inspection result, if the inspection result indicates that the inspection has been passed, the specified parameters in the virtual machine resource application can also be processed. For example, the specified parameters in the virtual machine resource application include whether a shared disk needs to be mounted and whether network information is bound. If network information, such as network IP and network segment address, is bound in the virtual machine resource application. However, the network corresponding to the network information has not been created, then before the virtual machine instance resources are generated, the corresponding network resources corresponding to the network information will be generated first, and then the virtual machine instance resources will be generated. After that, the network information will be bound to the associated virtual machine, so that the generated virtual machine instance resources are bound to the relevant network information to meet the virtual machine resource application.

[0048] It should be noted that the order of creating virtual machine resources can be to first generate virtual machine instance resources, then bind network information, and finally process shared disks. The virtual machine instance resources, network information, and shared disks are checked step by step in turn. If the checks are successful, the creation of virtual machine resources is completed.

[0049] In the above implementation process, by storing the cloud platform type and virtual machine configuration parameters in the configuration library, it is only necessary to perform a data check on the updated parameters in the configuration library to determine whether the virtual machine resource application has passed the data check. If it has passed the data check, the corresponding virtual machine instance resources can be created to complete the activation of virtual machine resources. It can also meet the activation of instance specification resources, network resource activation, and shared disk mounting and unmounting, etc., and has good scalability and flexibility.

[0050] Optionally, in an embodiment of the present application, a data check is performed on the virtual machine configuration parameters in the configuration library to obtain a data check result, including: determining whether the quota information corresponding to the cloud platform type meets the requirements corresponding to the virtual machine configuration parameters, and generating a data check result.

[0051] In the specific implementation process: judging whether the quota information corresponding to the cloud platform type meets the requirements corresponding to the virtual machine configuration parameters includes: whether the resource quantity requirements are met, whether the specification data of the virtual machine configuration parameters and the quota information of the cloud platform meet the requirements, whether the template in the quota information exists, and whether the image resources in the quota information exist.

[0052] In the above implementation process, by comparing the quota information of the corresponding cloud platform type in the virtual machine resource application with the virtual machine configuration parameters, a data inspection result is generated to ensure that the virtual machine configuration parameters in the virtual machine resource application can be satisfied by the remaining quota of the corresponding cloud platform in response to the virtual machine resource application.

[0053] Optionally, in an embodiment of the present application, virtual machine instance resources are generated according to the cloud platform type and virtual machine configuration parameters, including: obtaining connection parameters of the cloud platform according to the cloud platform type; the connection parameters are used to authenticate access to the cloud platform; according to the connection parameters and virtual machine configuration parameters, the virtual machine resource parameters corresponding to the cloud platform type are assembled to generate virtual machine activation parameters; according to the virtual machine activation parameters, the corresponding virtual machine resources are called from the cloud platform to generate virtual machine instance resources.

[0054] In the specific implementation process: before obtaining the quota information corresponding to the cloud platform type, the cloud platform information of each cloud platform type will be collected. The cloud platform information includes the connection parameters of the cloud platform. The connection parameters are used to authenticate access to the cloud platform. If the authentication is passed, the permission to access the cloud platform resources can be obtained.

[0055] After obtaining the connection parameters, the connection parameters and virtual machine configuration parameters are assembled. The data assembly is performed according to the virtual machine activation rules of the corresponding cloud platform type. The business engine can keep the data format of the assembled connection parameters and virtual machine configuration parameters consistent to generate virtual machine activation parameters. After the business engine obtains the virtual machine activation parameters, it can first obtain the cloud platform authentication through the connection parameters in the activation parameters, and then call the corresponding virtual machine resources from the cloud platform through the assembled virtual machine configuration parameters to generate virtual machine instance resources.

[0056] In an optional embodiment, after the virtual machine instance resources are successfully created, the virtual machine configuration parameters in the configuration library may be updated, for example, the virtual machine configuration parameters for which the virtual machine instance resources have been created may be marked to avoid duplicate creation of resources.

[0057] After the virtual machine instance resources are successfully created, the quota information of the corresponding cloud platform type will be updated in a timely manner, and the latest quota information will be synchronized to the CMP multi-cloud management platform. When a new virtual machine resource application submitted for the cloud platform is received, data inspection and virtual machine resource creation will be performed based on the updated quota information of the cloud platform type.

[0058] In the above implementation process, the virtual machine configuration parameters in the virtual machine resource application are assembled to generate virtual machine activation parameters, which are configuration information that can be understood by the underlying activation interface to realize the activation of virtual machine resources.

[0059] Optionally, in an embodiment of the present application, according to the cloud platform type, the quota information corresponding to the cloud platform type is queried, including: collecting cloud platform information of each cloud platform type, and storing each cloud platform information in a resource database; according to the cloud platform type, querying the quota information corresponding to the cloud platform type from the resource database.

[0060] In the specific implementation process: before querying the quota information corresponding to the cloud platform type according to the cloud platform type, the cloud platform information of multiple cloud platforms can be managed first. For example, the cloud platform information of each cloud platform type is collected, and each cloud platform information is stored in the resource database in the CMP multi-cloud management platform. The quota information corresponding to the cloud platform type is queried from the cloud platform information managed by the user in the CMP multi-cloud management platform. The collection method can provide the CMP multi-cloud management platform with a general data collection entrance, and the cloud platform information of each cloud platform type is collected regularly through the general data collection entrance. The cloud platform information includes network resources and specification resources.

[0061] In the above implementation process, the CMP multi-cloud management platform obtains cloud platform information of each cloud platform type on a regular basis, so that each query of the quota information of the cloud platform type is accurate data, ensuring the real-time and accuracy of the query data.

[0062] Optionally, in an embodiment of the present application, the method also includes: obtaining a process file, the process file is used to describe the process of the virtual machine resource application business; receiving a virtual machine resource application, generating a process instance based on the process file and the virtual machine resource application; responding to the virtual machine resource application, including: responding to the virtual machine resource application according to the process instance.

[0063] In the specific implementation process: the application and creation process of virtual machine resources are completed in the CMP multi-cloud management platform. The CMP multi-cloud management platform includes a process page. Users can customize all processes for applying for virtual machine resources in the process page of the CMP multi-cloud management platform. After the user completes the customized process, a process orchestration description file suitable for actual needs is generated based on the content filled in by the user, that is, the process file. The process file is used to describe the process of the virtual machine resource application business. Among them, the process file can include a flowchart, a form file, and a process configuration. The process file also includes the approver of each approval node. After the process file is generated, the process file is published through the CMP multi-cloud management platform.

[0064] The CMP multi-cloud management platform provides a general cloud resource application template, which can include instance specification information, template image information, associated business system information, shared disk information, billing information, and file template information of cloud resources. After the user fills out the virtual machine resource application according to the cloud resource application template, the process engine of the CMP multi-cloud management platform generates a process instance. One process instance can correspond to one virtual machine resource application. The role of the process engine is to drive the business to flow according to the set fixed process. In complex and changing business situations, using established processes can greatly reduce the cost of designing business and ensure the accuracy of business execution.

[0065] In the above implementation process, through customized process files, the business is driven to flow according to the set fixed process, ensuring the accuracy of business execution, and enabling users to approve and view work orders, create process forms, and publish flowcharts on one platform.

[0066] Optionally, in an embodiment of the present application, the method also includes: if the virtual machine resource application fails, generating resource application failure information; querying the processing personnel corresponding to the virtual machine resource application from the process instance, and sending the resource application failure information to the processing personnel.

[0067] In the specific implementation process: the above-mentioned custom process file also includes the approvers of each approval node, and the approvers include the operation and maintenance personnel involved when the virtual machine resource application fails. After setting the approvers of each node, if the virtual machine resource application fails, the resource application failure information is generated. The resource application failure information may include the resource application failure alarm, the reason for the resource application failure, and the status of the resource application. Query the corresponding processing personnel of the virtual machine resource application from the process instance, and send the resource application failure information to the corresponding processing personnel, so that the processing personnel can verify and process the application failure information in time.

[0068] In the above implementation process, resource application failure information is generated after the virtual machine resource application fails, and the resource application failure information is sent to the corresponding one set in the process instance so that the processing personnel can promptly troubleshoot the application failure information and improve the efficiency of virtual machine resource application processing.

[0069] See also Figure 2 A schematic diagram of a resource application process development method provided in an embodiment of the present application is shown.

[0070] In an optional embodiment, the development of a new cloud resource application process needs to connect the CMP multi-cloud management platform and the process engine, where the CMP multi-cloud management platform is used to obtain the quota information corresponding to each cloud platform type, the virtual machine configuration parameters in the virtual machine resource application, and the activation of virtual machine resources according to the virtual machine configuration parameters; the CMP multi-cloud management platform also integrates the management of unified virtual machine resource application work orders. The process engine is used to send virtual machine resource application work orders and review and approve each node, ensuring the stable operation of the resource application process.

[0071] See also Figure 3 A schematic diagram of the resource application process provided in an embodiment of the present application is shown.

[0072] The CMP multi-cloud management platform includes a process page, where users can customize all processes for applying for virtual machine resources. After the user completes the customized process, a process orchestration description file suitable for actual needs, i.e., a process file, is generated based on the content filled in by the user. After the process file is generated, it is published through the CMP multi-cloud management platform.

[0073] The CMP multi-cloud management platform provides a general cloud resource application template, which can include instance specification information, template image information, associated business system information, shared disk information, billing information, and file template information of cloud resources. After the user fills out the virtual machine resource application according to the cloud resource application template, the process instance is generated through the process engine of the CMP multi-cloud management platform. At the same time as the process instance is generated, the virtual machine resource application information will also be saved to the CMP multi-cloud management platform to complete the entry of cloud resource application information.

[0074] According to the cloud platform type in the virtual machine resource application, query the quota information corresponding to the cloud platform type, including virtual machine instance specifications and network quota information. By calculating the remaining available percentage of the corresponding cloud platform quota in real time, automatically filter out the available configurations, and visualize the cloud platform quota information according to the user's selected dimension. Dynamically allocate virtual machine resources based on the quota information of the cloud platform type and the virtual machine resource application information.

[0075] By calling the server interface through the CMP multi-cloud management platform, the virtual machine configuration parameters selected in the process file for applying for cloud resources are saved in the configuration library. The multi-cloud intelligent distribution engine will automatically monitor the virtual machine configuration parameters in the configuration library. When the configuration information in the configuration library changes, it will obtain the newly added virtual machine configuration parameters, perform parameter analysis on the virtual machine configuration parameters, and perform data inspection on the virtual machine configuration parameters in the configuration library to obtain the data inspection results. If the data inspection result indicates that the data inspection has passed, the virtual machine instance resources are generated according to the cloud platform type and virtual machine configuration parameters.

[0076] The CMP multi-cloud management platform has a cloud resource application work order system. The CMP multi-cloud management platform can not only provide data query for the entire life cycle of the process, but also increase support for custom components of cloud resources compared to the original work order system of the process engine. For example, file management, designation of approvers, and shopping carts, resource applicants can view all work order data in their customized cloud resource processes through the CMP multi-cloud management platform.

[0077] See also Figure 4 The structure diagram of the virtual machine resource application device provided in the embodiment of the present application is shown; the embodiment of the present application provides a virtual machine resource application device 200, including:

[0078] The application receiving module 210 is used to receive a virtual machine resource application; the virtual machine resource application includes a cloud platform type and virtual machine configuration parameters;

[0079] A query module 220 is used to query the quota information corresponding to the cloud platform type according to the cloud platform type;

[0080] The response module 230 is used to respond to the virtual machine resource application according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type.

[0081] Optionally, in an embodiment of the present application, the virtual machine resource application device, the response module 230, is specifically used to store the cloud platform type and virtual machine configuration parameters in the configuration library; perform a data check on the virtual machine configuration parameters in the configuration library to obtain a data check result; if the data check result indicates that the data check has passed, a virtual machine instance resource is generated according to the cloud platform type and the virtual machine configuration parameters; and a virtual machine resource application is responded to through the virtual machine instance resource.

[0082] Optionally, in an embodiment of the present application, the virtual machine resource application device, the response module 230, is also used to determine whether the quota information corresponding to the cloud platform type meets the requirements corresponding to the virtual machine configuration parameters, and generate a data inspection result.

[0083] Optionally, in an embodiment of the present application, the virtual machine resource application device, the response module 230, is also used to obtain connection parameters of the cloud platform according to the cloud platform type; the connection parameters are used to perform access authentication on the cloud platform; according to the connection parameters and the virtual machine configuration parameters, the virtual machine resource parameters corresponding to the cloud platform type are assembled to generate virtual machine activation parameters; according to the virtual machine activation parameters, the corresponding virtual machine resources are called from the cloud platform to generate virtual machine instance resources.

[0084] Optionally, in an embodiment of the present application, the virtual machine resource application device, the query module 220, is specifically used to collect cloud platform information of each cloud platform type and store each cloud platform information in a resource database; according to the cloud platform type, the quota information corresponding to the cloud platform type is queried from the resource database.

[0085] Optionally, in an embodiment of the present application, a virtual machine resource application device includes a process module for obtaining a process file, where the process file is used to describe the process of a virtual machine resource application business; receiving a virtual machine resource application, and generating a process instance based on the process file and the virtual machine resource application; and responding to a virtual machine resource application, including: responding to the virtual machine resource application based on the process instance.

[0086] Optionally, in an embodiment of the present application, the virtual machine resource application device also includes: a push module, which is used to generate resource application failure information if the virtual machine resource application fails; query the processing personnel corresponding to the virtual machine resource application from the process instance, and send the resource application failure information to the processing personnel.

[0087] It should be understood that the device corresponds to the above-mentioned virtual machine resource application method embodiment and can execute the various steps involved in the above-mentioned method embodiment. The specific functions of the device can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device.

[0088] See also Figure 5 The electronic device 300 provided in the embodiment of the present application includes: a processor 310 and a memory 320, wherein the memory 320 stores machine-readable instructions executable by the processor 310, and when the machine-readable instructions are executed by the processor 310, the above method is executed.

[0089] An embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method is executed.

[0090] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0091] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.

[0093] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.

Claims

1. A method for applying for virtual machine resources. It is characterized in that include: Receive a virtual machine resource application; the virtual machine resource application includes a cloud platform type and virtual machine configuration parameters; According to the cloud platform type, query the quota information corresponding to the cloud platform type; The virtual machine resource application is responded to according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type.

2. The method according to claim 1, It is characterized in that Responding to the virtual machine resource application according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type includes: Storing the cloud platform type and virtual machine configuration parameters in a configuration library; Performing data check on the virtual machine configuration parameters in the configuration library to obtain data check results; If the data check result indicates that the data check has passed, generating virtual machine instance resources according to the cloud platform type and virtual machine configuration parameters; The virtual machine resource application is responded to through the virtual machine instance resources.

3. The method according to claim 2, It is characterized in that The step of performing data inspection on the virtual machine configuration parameters in the configuration library to obtain data inspection results includes: Determine whether the quota information corresponding to the cloud platform type meets the requirements corresponding to the virtual machine configuration parameters, and generate a data check result.

4. The method according to claim 2, It is characterized in that Generate virtual machine instance resources according to the cloud platform type and virtual machine configuration parameters, including: According to the type of the cloud platform, obtaining connection parameters of the cloud platform; the connection parameters are used to perform access authentication on the cloud platform; Assembling virtual machine resource parameters corresponding to the cloud platform type according to the connection parameters and the virtual machine configuration parameters to generate virtual machine activation parameters; According to the virtual machine activation parameters, corresponding virtual machine resources are called from the cloud platform to generate virtual machine instance resources.

5. The method according to claim 1, It is characterized in that According to the cloud platform type, query the quota information corresponding to the cloud platform type, including: Collecting cloud platform information of each cloud platform type, and storing each of the cloud platform information in a resource database; According to the cloud platform type, the quota information corresponding to the cloud platform type is queried from the resource database.

6. The method according to claim 1, It is characterized in that The method further comprises: Obtain a process file, wherein the process file is used to describe the process of the virtual machine resource application service; Receive the virtual machine resource application, and generate a process instance according to the process file and the virtual machine resource application; The responding to the virtual machine resource application includes: According to the process instance, respond to the virtual machine resource request.

7. The method according to claim 6, It is characterized in that The method further comprises: If the virtual machine resource application fails, generating resource application failure information; The processing personnel corresponding to the virtual machine resource application are queried from the process instance, and the resource application failure information is sent to the processing personnel.

8. A virtual machine resource application device, It is characterized in that include: An application receiving module is used to receive a virtual machine resource application; the virtual machine resource application includes a cloud platform type and virtual machine configuration parameters; A query module, used to query the quota information corresponding to the cloud platform type according to the cloud platform type; The response module is used to respond to the virtual machine resource application according to the virtual machine configuration parameters and the quota information corresponding to the cloud platform type.

9. An electronic device, It is characterized in that include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is performed.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.