Cloud server management method and apparatus, electronic device, and readable medium
By adopting a general OpenAPI interface and cloud assistant agent service in the cloud platform, the standardization and batch processing of cloud host management are realized, which solves the problem of batch operation and maintenance management of cloud host clusters in the existing platform, improves management efficiency and security, and adapts to the flexibility of multi-availability zone architecture.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CHINA TELECOM CLOUD TECH CO LTD
- Filing Date
- 2025-11-11
- Publication Date
- 2026-05-21
AI Technical Summary
Existing management platforms are unable to meet users' needs for batch operation and maintenance management of large cloud server clusters, and cannot realize users' more customized and granular cloud server management scenarios. In particular, when there are special needs such as viewing and monitoring the running status of services inside cloud servers without logging into the cloud servers or upgrading the software inside cloud servers in batches, the existing platforms cannot handle them conveniently.
The system uses a general OpenAPI interface to issue cloud host management operation commands. Through a unified permission authentication, data storage and cloud assistant scheduling mechanism, it achieves standardized and batch processing of cloud host management operations. The system uses the cloud assistant Agent service to execute operation commands inside the cloud host and communicates through the QGA interface to record and store the execution results.
It enables refined cloud server management, supports batch operation and maintenance management, improves operational efficiency and security, reduces operation and maintenance costs, ensures operational security and reliability and data traceability, and adapts to the flexibility and high availability of multi-availability zone architecture.
Smart Images

Figure CN2025134164_21052026_PF_FP_ABST
Abstract
Description
A cloud server management method, apparatus, electronic device, and readable medium
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411644426.0, filed on November 18, 2024, entitled "A Cloud Host Management Method, Apparatus, Electronic Device and Readable Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of cloud computing technology, and in particular to a cloud host management method, a cloud host management device, an electronic device, and a computer-readable medium. Background Technology
[0004] In the cloud computing field, various platforms offer different management methods for users to manage their cloud servers. These include VMware vSphere (a virtualization platform) virtualization infrastructure management tool, virt-manager (Virtual Machine Manager, an open-source virtualization management tool), and OpenStack (an open-source cloud computing management platform project). These tools and platforms, when combined, meet users' requirements for different virtualization and cloud computing environments, allowing them to choose the appropriate management method for managing cloud servers and cloud resources. They also provide corresponding interfaces for users to call and perform secondary development to meet their customization needs.
[0005] As user business needs expand, existing management platforms are struggling to meet the demands for batch operation and maintenance management of large cloud server clusters. They also fall short in addressing users' increasingly customized and granular cloud server management scenarios. For example, users may desire to view and monitor the operational status of services within cloud servers without logging in, or they may require batch upgrades of software within cloud servers. Current management platforms cannot easily handle these issues. Furthermore, the cloud server management methods offered by existing platforms do not support users' batch operation and maintenance needs. If batch management and maintenance of cloud servers is required, such as batch distribution of scripts and files to cloud servers, customized secondary development with human intervention is still necessary. Summary of the Invention
[0006] This application provides a cloud server management method, device, electronic device, and computer-readable storage medium to solve the problem that existing management platforms are unable to meet users' needs for batch operation and maintenance management of large cloud server groups and are unable to realize more customized and granular cloud server management scenarios.
[0007] This application discloses a cloud server management method, applied to a cloud platform, including:
[0008] S1: Obtain the user's cloud server management operation commands;
[0009] S2: Issue cloud server management operation instructions in the form of general API (Application Programming Interface) requests;
[0010] S3: Perform permission authentication on cloud server management operation commands;
[0011] S4: When the cloud server management operation command passes the authorization authentication, a user identity credential is generated, and the cloud server management operation command is sent to the cloud assistant API service in the corresponding availability zone of the cloud server.
[0012] S5: Verify the parameters of user identity credentials and cloud server management operation commands;
[0013] S6: When the user's identity credentials and cloud host management operation instructions are verified, the cloud host management operation instructions will be sent to the cloud assistant agent (intelligent agent) service of the corresponding computing node of the cloud host.
[0014] S7: Parse and execute cloud server management operation commands;
[0015] S8: Storage cloud host management operation commands and corresponding execution results.
[0016] This application discloses a cloud server management device applied to a cloud platform, comprising:
[0017] The OpenAPI (Open Application Programming Interface) module is used to obtain cloud server management operation commands from users and issue cloud server management operation commands in the form of general API requests.
[0018] The authentication module is used to verify the permissions of cloud server management operation commands;
[0019] The cloud assistant scheduling module is used to generate user identity credentials when the cloud host management operation command passes the authorization authentication, and send the cloud host management operation command to the cloud assistant API service in the corresponding availability zone of the cloud host;
[0020] The Cloud Assistant API module is used to verify the parameters of user identity credentials and cloud host management operation commands. When the user identity credentials and cloud host management operation commands are verified, the cloud host management operation commands are sent to the Cloud Assistant Agent service of the corresponding computing node of the cloud host.
[0021] The Cloud Assistant Agent module is used to parse and execute cloud host management operation commands;
[0022] The database storage module is used to store cloud host management operation commands and their corresponding execution results.
[0023] This application also discloses 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;
[0024] The memory is used to store computer programs;
[0025] When the processor executes the program stored in the memory, it implements the cloud host management method as described in the embodiments of this application.
[0026] This application also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the cloud host management method as described in this application.
[0027] The embodiments of this application have the following advantages:
[0028] This application adopts a general OpenAPI interface to issue cloud host management operation instructions in the form of general API requests, thereby improving the fine-grained management capabilities of cloud hosts in the cloud computing environment. It adopts a unified permission authentication method to support batch processing scenarios in a user-friendly manner, adopts a unified data storage method to ensure that data processing records are traceable, and adopts a unified cloud assistant scheduling method to ensure that the entire user operation process is secure and identifiable, traffic concurrency is controllable, and resource scheduling and processing are rapid, thus meeting users' needs for batch operation and maintenance management of large cloud host groups. Attached Figure Description
[0029] Figure 1 is a flowchart of the steps of a cloud host management method provided in an embodiment of this application;
[0030] Figure 2 is a structural block diagram of a cloud host management device provided in an embodiment of this application;
[0031] Figure 3 is a block diagram of an electronic device provided in an embodiment of this application;
[0032] Figure 4 is a schematic diagram of a computer-readable medium provided in an embodiment of this application. Detailed Implementation
[0033] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] Referring to Figure 1, a flowchart of the steps of a cloud server management method provided in an embodiment of this application is shown. The cloud server management method is applied to a cloud platform and may specifically include the following steps:
[0035] S1: Obtain the user's cloud server management operation commands.
[0036] S2: Issue cloud server management operation commands in the form of general API requests.
[0037] API is an open interface used for interaction between users and the cloud platform, providing management and operation functions for cloud hosts.
[0038] In this application, a universal API request is used to standardize the management operations of different types of cloud servers. All operation instructions are transmitted through the same interface format, making the system design simpler and maintenance easier. At the same time, the universal API interface supports batch operations, allowing multiple instructions to be issued with a single API request, enabling the management of large-scale cloud servers and improving operational efficiency.
[0039] S3: Perform permission authentication on cloud server management operation commands.
[0040] In one possible implementation, S3 specifically involves: using the username and password to authenticate the user who initiates the cloud host management operation command.
[0041] It should be noted that this step can be implemented by the authentication module. The authentication module is a region-level identity authentication and authorization service, primarily responsible for providing user identity management, authentication, and authorization services. For users calling the Cloud Assistant service, permission is verified. For compliant users, authentication is performed using their username and password. Upon successful authentication, a corresponding token is generated, authorizing access to the Cloud Assistant API module for further operations.
[0042] In this application, usernames and passwords are used for authentication to ensure that only authenticated users can access the cloud assistant service, preventing unauthorized users from performing operations. Token-based authorization avoids transmitting usernames and passwords for every operation, reducing the risk of exposing sensitive information and further enhancing security.
[0043] S4: When the cloud host management operation command passes the authorization authentication, a user identity credential is generated, and the cloud host management operation command is sent to the cloud assistant API service in the corresponding availability zone (AZ) of the cloud host.
[0044] It should be noted that this step can be implemented by the Cloud Assistant scheduling module. The Cloud Assistant scheduling module is a Region-level scheduling module, which is mainly responsible for processing requests issued through the Cloud Assistant OpenAPI, performing relevant permission authentication, and then scheduling them to the Cloud Assistant API service in the corresponding availability zone of the cloud host.
[0045] In this application, permission authentication is performed in the region-level scheduling module, which prevents unauthorized requests from entering the specific availability zone through the scheduling module, thereby preventing invalid or malicious requests from entering the next layer of processing in the cloud platform.
[0046] S5: Verify the parameters of user identity credentials and cloud server management operation commands.
[0047] S6: When the user's identity credentials and cloud host management operation instructions are verified, the cloud host management operation instructions will be sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
[0048] In one possible implementation, in S6, the cloud host management operation instructions are sent to the cloud assistant agent service of the corresponding computing node of the cloud host. Specifically, based on the watch (event listening) mechanism of the distributed key-value storage system (etc daemon, ETCD), the cloud host management operation instructions are sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
[0049] It should be noted that this step can be implemented by the Cloud Assistant API module. The Cloud Assistant API module receives REST (Representational State Transfer) requests from the Cloud Assistant scheduling module and further verifies the parameters and user token in the request. Simultaneously, the ETCD database stores metadata information related to the cloud host and its corresponding compute node information. The Cloud Assistant API module can obtain the compute node information of the corresponding cloud host. Then, using the watch mechanism based on a distributed key-value storage system, the Cloud Assistant API module, located on the control node, successfully forwards the request to the Cloud Assistant Aagent module on the corresponding compute node of the cloud host.
[0050] The watch mechanism is primarily an event monitoring mechanism that allows applications to monitor changes to specific keys in ETCD (Enterprise Transfer Code), i.e., one or a group of keys, and receive notifications when changes occur. The watch mechanism essentially relies on resource revision numbers. In this design pattern, each update to a specific key increases the atomicity of the revision, and the detection of change events is achieved by comparing revision values. Based on the watch mechanism, after receiving a request, the Cloud Assistant API module selects the Cloud Assistant Agent module on the node where the cloud host resides, and distributes the request task to ETCD. The Cloud Assistant Agent module listens for changes in task information through ETCD's watch mechanism and receives notifications, thus receiving script commands from the Cloud Assistant API module to execute the task request. Simultaneously, for ETCD data storage, several data compression tasks will run, periodically compressing and cleaning up expired data to ensure that the ETCD data storage volume does not exceed the cluster's capacity limit, guaranteeing cluster reliability.
[0051] S7: Parse and execute cloud server management operation commands.
[0052] In one possible implementation, S7 specifically includes sub-steps S701 to S704:
[0053] S701: Parse cloud server management operation commands.
[0054] S702: Arrangement operation execution logic.
[0055] S703: By calling the general interface of the guest agent (QGA, QEMU Guest Agent), the QGA service is invoked to send the instruction script corresponding to the cloud host management operation instructions to the cloud host for execution.
[0056] QGA is a tool that helps improve cloud host management and monitoring. It provides a standardized approach to enable more interaction and communication between the host system and the cloud host, thereby improving the manageability and security of the virtualization environment.
[0057] Optionally, the QGA generic interface is configured in Libvirt (a virtualization management toolset). Libvirt is an open-source virtualization management tool and library that provides a set of APIs and command-line tools for managing different virtualization technologies. Libvirt's main goal is to provide a consistent management interface for different virtualization technologies to simplify the management and integration of cloud hosts.
[0058] The QGA service is essentially a QGA client (QEMU Guest Agent Client) process running inside the cloud host, providing specific QGA services. It is created by installing the relevant software into the image template and running in the background after the cloud host is created. The Cloud Assistant Agent module triggers QGA execution commands by calling Libvirt's interface and passes the return value to the Cloud Assistant Agent module.
[0059] S704: Collect the return data after the QGA service is executed.
[0060] Furthermore, the collected data is organized and returned to the Cloud Assistant API module, which in turn pushes it to the Cloud Assistant scheduling module. The asynchronous statistical task of the Cloud Assistant scheduling module persistently stores the execution results in the data storage module.
[0061] In this application, the standardized interface provided by QGA enables the host system to communicate and manage the virtual machine in a standardized manner. This standardized approach avoids inconsistencies between different virtualization platforms and simplifies cross-platform management operations. Simultaneously, QGA acts as a client process within the cloud host, allowing the host machine to directly transmit operation commands to the cloud host for execution via the QGA interface, avoiding the latency and instability of traditional network communication and improving execution efficiency and stability.
[0062] S8: Storage cloud host management operation commands and corresponding execution results.
[0063] Optionally, the execution result includes: execution successful, execution failed, and execution timed out.
[0064] It should be noted that the issued cloud server management operation commands are recorded in the database storage module. Users can also create frequently used commands to achieve unified management and batch issuance of command content. User-issued script command execution records are also stored in the database storage module for subsequent user queries of execution records and statistical analysis of execution results. Each execution record is persistently processed; whether a task succeeds or fails, its status will be updated in the execution record based on the script execution result within the cloud server. If script execution times out, the service will stop the task and update the script execution result to a timeout status. Each execution record is clearly and accurately recorded, allowing users to query script task execution results and choose to reissue or execute the next task. Since each command issuance generates an execution record, the idempotency and consistency of each script command execution result are guaranteed. Simultaneously, the cloud assistant scheduling module performs traffic processing and security audits to ensure task execution reliability and prevent users from issuing dangerous commands or scripts.
[0065] Optionally, the data storage module is a MariaDB (open-source relational database) cluster, also a Region-level database cluster. It stores records of user commands issued to the cloud assistant service, as well as records of operation execution results. This allows users to subsequently query execution records and corresponding results. The Region-level database ensures high availability of the database storage module.
[0066] Furthermore, this application provides a unified OpenAPI interface to achieve unified management of cloud servers. It supports batch operation and maintenance management capabilities for cloud servers through general interface calls. This includes executing general commands, distributing and executing script files such as Shell (command-line interpreter), PowerShell (command-line tool and scripting language), Bat (batch file), and Python (programming language), as well as collecting and aggregating command and script execution results. Users can utilize the cloud assistant platform to perform common usage scenarios such as installing and uninstalling software, starting and stopping services, and upgrading services within cloud servers. They can also rely on the cloud assistant management channel capabilities to achieve customized operation and maintenance operations and internal service monitoring, including memory and CPU (Central Processing Unit) resource monitoring. It adopts a general OpenAPI interface to provide granular management capabilities for cloud servers in a cloud computing environment, providing a complete new cloud server batch operation and maintenance channel and service monitoring system.
[0067] Furthermore, in this application, the entire process of cloud server operation and maintenance management is password-free, login-free, and does not require the use of jump servers, greatly reducing operation and maintenance management costs and complexity. The cloud assistant platform can realize user authentication, traffic resource distribution, operation record storage and query, and operation command whitelist restriction, making it more secure and efficient. At the same time, the cloud assistant management channel system mainly uses QGA to realize the interaction between the host machine and the cloud server, which does not rely on the network, and the communication is more efficient and stable compared to TCP (Transmission Control Protocol) network.
[0068] Furthermore, this application provides a unified authentication module, offering user-friendly support for batch processing scenarios. It also provides a unified data storage module, ensuring that data processing records are traceable and verifiable. Finally, it provides a unified cloud assistant scheduling module, guaranteeing secure and identifiable user operations throughout the entire process, controllable traffic concurrency, and rapid resource scheduling. Based on QGA channel encapsulation, it possesses good data exchange stability and scalability. The proposed and implemented cloud assistant management channel system achieves multiple functions including user authentication, security auditing, traffic limiting, batch cloud host operation and maintenance, and service management, offering numerous advantages such as security, efficiency, ease of control, and reliable service.
[0069] Furthermore, this application implements a cloud assistant service system under a multi-availability zone architecture, providing batch management capabilities for cloud hosts in multi-availability zone scenarios. Compared with existing technologies, this application's cloud assistant management channel system adapts to multi-availability zone resource pools, achieving a flexible and adaptable architecture that aligns with the mainstream trends in current cloud computing underlying service architectures. Simultaneously, the multi-availability zone architecture design also ensures the stability and high availability of the cloud assistant management channel system service itself.
[0070] The embodiments of this application have the following advantages:
[0071] This application adopts a general OpenAPI interface to issue cloud host management operation instructions in the form of general API requests, thereby improving the fine-grained management capabilities of cloud hosts in the cloud computing environment. It adopts a unified permission authentication method to support batch processing scenarios in a user-friendly manner, adopts a unified data storage method to ensure that data processing records are traceable, and adopts a unified cloud assistant scheduling method to ensure that the entire user operation process is secure and identifiable, traffic concurrency is controllable, and resource scheduling and processing are rapid, thus meeting users' needs for batch operation and maintenance management of large cloud host groups.
[0072] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.
[0073] Referring to Figure 2, a structural block diagram of a cloud server management device provided in an embodiment of this application is shown. The cloud server management device is applied to a cloud platform and may specifically include the following modules:
[0074] OpenAPI module 201 is used to obtain cloud server management operation commands from users; and to issue cloud server management operation commands in the form of general API requests.
[0075] The authentication module 202 is used to authenticate the permissions of cloud host management operation commands.
[0076] The cloud assistant scheduling module 203 is used to generate user identity credentials when the cloud host management operation command passes the authorization authentication, and send the cloud host management operation command to the cloud assistant API service in the corresponding availability zone of the cloud host.
[0077] The Cloud Assistant API module 204 is used to verify the parameters of user identity credentials and cloud host management operation commands. When the user identity credentials and cloud host management operation commands are verified, the cloud host management operation commands are sent to the Cloud Assistant Agent service of the corresponding computing node of the cloud host.
[0078] The Cloud Assistant Agent module 205 is used to parse and execute cloud host management operation commands;
[0079] Database storage module 206 is used to store cloud host management operation commands and corresponding execution results.
[0080] In one possible implementation, the authentication module 202 is specifically used to: authenticate the user who initiates the cloud host management operation command using the username and password.
[0081] In one possible implementation, the cloud assistant API module 204 is specifically used to: send cloud host management operation instructions to the cloud assistant agent service of the corresponding computing node of the cloud host based on the watch mechanism of the distributed key-value storage system.
[0082] In one possible implementation, the cloud assistant agent module 205 is specifically used for:
[0083] Parse cloud server management operation commands;
[0084] Arrange the execution logic of operations;
[0085] By calling the client agent's general interface and the QGA service, the command script corresponding to the cloud host management operation command is sent to the cloud host for execution.
[0086] Collect the return data after the QGA service is executed.
[0087] In one possible implementation, the execution result includes: execution success, execution failure, and execution timeout.
[0088] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0089] The embodiments of this application have the following advantages:
[0090] This application adopts a general OpenAPI interface to issue cloud host management operation instructions in the form of general API requests, thereby improving the fine-grained management capabilities of cloud hosts in the cloud computing environment. It adopts a unified permission authentication method to support batch processing scenarios in a user-friendly manner, adopts a unified data storage method to ensure that data processing records are traceable, and adopts a unified cloud assistant scheduling method to ensure that the entire user operation process is secure and identifiable, traffic concurrency is controllable, and resource scheduling and processing are rapid, thus meeting users' needs for batch operation and maintenance management of large cloud host groups.
[0091] Additionally, referring to FIG3, a block diagram of an electronic device provided in an embodiment of this application is shown. This application embodiment also provides an electronic device including a processor 1301, a communication interface 1302, a memory 1303, and a communication bus 1304, wherein the processor 1301, the communication interface 1302, and the memory 1303 communicate with each other via the communication bus 1304.
[0092] Memory 1303 is used to store computer programs;
[0093] When processor 1301 executes a program stored in memory 1303, it performs the following steps:
[0094] S1: Obtain the user's cloud server management operation commands;
[0095] S2: Issue cloud server management operation commands in the form of general API requests;
[0096] S3: Perform permission authentication on cloud server management operation commands;
[0097] S4: When the cloud server management operation command passes the authorization authentication, a user identity credential is generated, and the cloud server management operation command is sent to the cloud assistant API service in the corresponding availability zone of the cloud server.
[0098] S5: Verify the user's identity credentials and the parameters of the cloud host management operation command;
[0099] S6: When the user's identity credentials and cloud host management operation instructions pass the verification, the cloud host management operation instructions will be sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
[0100] S7: Parse and execute cloud server management operation commands;
[0101] S8: Storage cloud host management operation commands and corresponding execution results.
[0102] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0103] The communication interface is used for communication between the aforementioned terminal and other devices.
[0104] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0105] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0106] Referring to Figure 4, a schematic diagram of a computer-readable medium provided in an embodiment of this application is shown. In another embodiment provided in this application, a computer-readable storage medium 1401 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the cloud host management method in the above embodiments.
[0107] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the cloud host management method in the above embodiments.
[0108] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs (Digital Versatile Discs)), or semiconductor media (e.g., solid-state drives (SSDs)).
[0109] 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 the element.
[0110] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0111] The above are merely preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.
Claims
1. A cloud host management method, characterized by, Applied to cloud platforms, including: S1: Obtain the user's cloud server management operation commands; S2: Issue the cloud host management operation instructions in the form of a general API request; S3: Perform permission authentication on the cloud host management operation command; S4: When the cloud host management operation command passes the authorization authentication, a user identity credential is generated, and the cloud host management operation command is sent to the cloud assistant API service in the corresponding availability zone of the cloud host. S5: Verify the parameters of the user identity credential and the cloud host management operation command; S6: When the user identity credential and the cloud host management operation instruction pass the verification, the cloud host management operation instruction is sent to the cloud assistant agent service of the corresponding computing node of the cloud host. S7: Parse and execute the cloud host management operation instructions; S8: Store the cloud host management operation instructions and the corresponding execution results.
2. The cloud host management method of claim 1, wherein, Specifically, S3 is: The user who initiates the cloud server management operation command is authenticated using the username and password.
3. The cloud host management method of claim 1, wherein, The step S6, which involves sending the cloud host management operation command to the cloud assistant agent service corresponding to the cloud host's computing node, specifically involves: Based on the watch mechanism of the distributed key-value storage system, the cloud host management operation instructions are sent to the cloud assistant agent service of the corresponding computing node of the cloud host.
4. The cloud host management method of claim 1, wherein, Specifically, S7 includes: S701: Parse the cloud host management operation instructions; S702: Arrangement operation execution logic; S703: By calling the client agent general interface and the QGA service, the instruction script corresponding to the cloud host management operation instruction is sent to the cloud host for execution. S704: Collect the return data after the QGA service is executed.
5. The cloud host management method of claim 1, wherein, The execution results include: execution successful, execution failed, and execution timed out.
6. A cloud host management apparatus characterized by comprising: Applied to cloud platforms, including: The OpenAPI module is used to obtain the user's cloud server management operation instructions; and to issue the cloud server management operation instructions in the form of general API requests. The authentication module is used to authenticate the permissions of the cloud host management operation commands; The cloud assistant scheduling module is used to generate user identity credentials when the cloud host management operation command passes the authorization authentication, and send the cloud host management operation command to the cloud assistant API service in the corresponding availability zone of the cloud host. The Cloud Assistant API module is used to verify the parameters of the user identity credentials and the cloud host management operation instructions; when the user identity credentials and the cloud host management operation instructions pass the verification, the cloud host management operation instructions are sent to the Cloud Assistant Agent service of the corresponding computing node of the cloud host. The Cloud Assistant Agent module is used to parse and execute the cloud host management operation commands; The database storage module is used to store the cloud host management operation instructions and the corresponding execution results.
7. The cloud host management apparatus according to claim 6, characterized by, The authentication module is specifically used for: The user who initiates the cloud server management operation command is authenticated using the username and password.
8. The cloud host management apparatus according to claim 6, characterized by, The cloud assistant API module is specifically used for: A watch mechanism based on a distributed key-value storage system is used to issue the cloud host management operation instruction to a cloud helper Agent service of a computing node corresponding to the cloud host.
9. An electronic device, comprising: The device comprises 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 for storing a computer program. The processor is used for executing the program stored on the memory, and the cloud host management method in any one of claims 1-5 is realized.
10. A computer readable medium characterized by The instructions stored thereon, when executed by one or more processors, cause the processors to execute the cloud host management method in any one of claims 1-5.