A processing method, device, equipment and storage medium for cloud services
By receiving and registering the pricing attributes and API interface information of cloud services, the problem of maintenance and expansion difficulties in the existing cloud service billing methods is solved, and the flexible configuration of the operation platform is realized and the development and maintenance of the operation platform is simplified.
Patent Information
- Application Number
- CN202111425116.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-11-26
AI Technical Summary
The existing cloud service billing methods have many logical branches and high coupling, which leads to maintenance and expansion difficulties.
By receiving the pricing attributes and API interface information of the target cloud service, the preset cloud service registration interface is called for registration, the registration identifier is generated, and the registration identifier is put on the shelves according to the registration identifier, so as to decouple the operation platform and the specific cloud service.
It realizes flexible configuration and maintenance of the operation platform, reduces the difficulty of connecting to different underlying cloud platforms, and simplifies the development and maintenance process.
Smart Images

Figure CN114118986B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of cloud services, and in particular to a method, device, equipment and storage medium for processing cloud services. Background Art
[0002] Cloud computing is a type of distributed computing, which means that through the network "cloud", huge data computing programs are decomposed into countless small programs, and then a system composed of multiple servers processes and analyzes these small programs to obtain results and return them to users.
[0003] In recent years, the development of cloud computing has advanced by leaps and bounds. Many cloud computing service providers and operators have emerged in various directions such as public clouds, private clouds, and dedicated clouds. They provide continuous and stable cloud computing services for different users in various industries. More and more customer groups have moved their computing and storage-related demand services to the cloud. However, due to different requirements and usage scenarios, customer groups have connected to the underlying services provided by different cloud service providers, and the billing schemes of different cloud services are not the same.
[0004] Therefore, for the existing cloud service billing scheme, it is necessary to clearly know the specific cloud services actually billed through the billing system, such as billing cloud services such as cloud hosts, cloud hard disks, and public network IPs. For different billing resources, there are respective online-enabled APIs (application programming interfaces). After the user pays the order, according to different cloud service types, they will call the APIs of each cloud service to activate the corresponding resources. And the billing system will bill the cloud services according to the billing policies enabled by the operation platform.
[0005] Since it is necessary to write cloud service judgment logic specifically, and it is necessary to know the underlying cloud platform APIs and keep them consistent at any time, the existing cloud service billing methods have defects such as being difficult to maintain due to more logical branches and difficult to expand cloud services due to high coupling. Summary of the Invention
[0006] The purpose of this application is to provide a method, device, equipment and storage medium for processing cloud services to facilitate the development and maintenance of the operation platform.
[0007] The first aspect of this application provides a method for processing cloud services, which is applied to an operation platform and includes:
[0008] Receiving a processing request for putting a target cloud service on the shelf, where the processing request includes the pricing attributes and API interface information of the target cloud service;
[0009] According to the processing request, calling a preset cloud service registration interface to register the target cloud service to obtain a registration identifier of the target cloud service;
[0010] According to the registration identifier of the target cloud service, put the target cloud service on the shelves according to the corresponding specifications.
[0011] In a possible implementation manner, in the above-mentioned cloud service processing method provided by this application, it further includes:
[0012] Receive an order request from a user for a target cloud service, where the order request includes the registration identifier and specification information of the target cloud service;
[0013] Obtain the pricing attribute and API interface information of the target cloud service corresponding to the registration identifier;
[0014] Generate a target request body according to the specification information and the API interface information, and send the target request body to the cloud platform to which the target cloud service belongs, so that the cloud platform enables the target cloud service according to the target request body;
[0015] Charge the enabled target cloud service according to the pricing attribute.
[0016] In a possible implementation manner, in the above-mentioned cloud service processing method provided by this application, the generating a target request body according to the specification information and the API interface information includes:
[0017] Determine target parameters according to the specification information;
[0018] Generate a target request body after replacing the corresponding parameters in the API interface information with the target parameters.
[0019] In a possible implementation manner, in the above-mentioned cloud service processing method provided by this application, the charging the enabled target cloud service according to the pricing attribute includes:
[0020] Parse the pricing attribute to determine the charging policy corresponding to the pricing attribute;
[0021] Charge the enabled target cloud service according to the charging policy.
[0022] In a possible implementation manner, in the above-mentioned cloud service processing method provided by this application, it further includes: integrating and displaying the registered and shelved cloud services of each cloud platform.
[0023] A second aspect of this application provides a cloud service processing device, which is applied to an operation platform and includes:
[0024] A management-side receiving module, configured to receive a processing request for putting a target cloud service on the shelves, where the processing request includes the pricing attribute and API interface information of the target cloud service;
[0025] A registration module, configured to call a preset cloud service registration interface according to the processing request to register a target cloud service, and obtain a registration identifier of the target cloud service;
[0026] A shelving module, configured to perform shelving processing on the target cloud service according to the corresponding specifications based on the registration identifier of the target cloud service.
[0027] In a possible implementation manner, in the above-mentioned cloud service processing device provided in this application, it further includes:
[0028] A user-side receiving module, configured to receive an order request from a user for a target cloud service, where the order request includes a registration identifier and specification information of the target cloud service;
[0029] An obtaining module, configured to obtain the pricing attribute and API interface information of the target cloud service corresponding to the registration identifier;
[0030] An activation module, configured to generate a target request body according to the specification information and the API interface information, and send the target request body to the cloud platform to which the target cloud service belongs, so that the cloud platform activates the target cloud service according to the target request body;
[0031] A charging module, configured to charge the activated target cloud service according to the pricing attribute.
[0032] In a possible implementation manner, in the above-mentioned cloud service processing device provided in this application, the activation module is specifically configured to:
[0033] Determine target parameters according to the specification information;
[0034] Generate a target request body after replacing the corresponding parameters in the API interface information with the target parameters.
[0035] In a possible implementation manner, in the above-mentioned cloud service processing device provided in this application, the charging module is specifically configured to:
[0036] Parse the pricing attribute to determine the charging policy corresponding to the pricing attribute;
[0037] Charge the activated target cloud service according to the charging policy.
[0038] In a possible implementation manner, in the above-mentioned cloud service processing device provided in this application, it further includes: an integrated display module, configured to integrate and display the registered and shelved cloud services of each cloud platform.
[0039] The third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor runs the computer program, it is executed to implement the method described in the first aspect.
[0040] The fourth aspect of the present application provides a computer-readable storage medium, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the method described in the first aspect.
[0041] Compared with the prior art, the method, device, equipment, and storage medium for processing cloud services provided by the present application receive a processing request for putting a target cloud service on the shelf. The processing request includes the pricing attribute and API interface information of the target cloud service; according to the processing request, a preset cloud service registration interface is called to register the target cloud service, and a registration identifier of the target cloud service is obtained; according to the registration identifier of the target cloud service, the target cloud service is put on the shelf according to the corresponding specifications. In this solution, through cloud service registration, the operation platform can be decoupled from the specific cloud service, so that the underlying cloud platform docked by the operation platform can be flexibly configured, which greatly facilitates the development and maintenance of the cloud service operation platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present application. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0043] Figure 1 One of the flowcharts showing a method for processing a cloud service provided by the present application is shown;
[0044] Figure 2 Another flowchart showing a method for processing a cloud service provided by the present application is shown;
[0045] Figure 3 The flowchart showing the entire cloud service processing provided by the present application is shown;
[0046] Figure 4 One of the schematic diagrams showing a device for processing a cloud service provided by the present application is shown;
[0047] Figure 5 Another schematic diagram showing a device for processing a cloud service provided by the present application is shown;
[0048] Figure 6 The schematic diagram showing an electronic device provided by the present application is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.
[0050] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the ordinary meanings understood by those skilled in the art to which this application belongs.
[0051] In addition, terms such as "first" and "second" are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.
[0052] The cloud platform provides cloud services, and the operation platform enables corresponding billing policies to bill the cloud services. For prepayment, when generating an order, the user will pay in advance for a fixed period of time and a fixed amount of resources. After each fixed period of time or the fixed amount of resource usage is reached, a new order can be generated as needed for a new prepayment (renewal). For post-payment, no payment is required when generating an order. After the fixed time or the fixed resource usage amount is reached, the billing system issues a bill for the user to pay the price.
[0053] The existing cloud operation platform billing scheme has the following disadvantages:
[0054] 1. For the existing cloud operation platform, it is necessary to clearly know what the cloud service to be billed is and what the opening API of the corresponding cloud service is, and then corresponding resources can be opened through targeted logic, which involves many logical branches at the code level and is difficult to maintain.
[0055] 2. Each cloud operation platform can only be docked with a certain or a certain type of fixed underlying cloud platform. When the underlying cloud platform is different or the API of the docked underlying cloud platform changes, the operation platform needs to modify the code to re-adapt to the new API. At the same time, for different underlying cloud platforms, the operation platform will have feature branches, which are very inconvenient for management and maintenance.
[0056] 3. For each cloud platform, for newly added cloud service types, corresponding cloud service codes must be added at the operation level, with high code invasiveness. Expanding new cloud services requires a large amount of manpower, high coupling, and is difficult to expand.
[0057] In view of this, embodiments of the present application provide a method and apparatus for processing cloud services, an electronic device, and a computer-readable storage medium, which will be described below with reference to the accompanying drawings.
[0058] Please refer to Figure 1 , which shows a flowchart of a method for processing cloud services provided by some embodiments of the present application. This method is applied to the operation platform of cloud services. As shown in the figure, it may specifically include the following steps S101 to S103:
[0059] S101. Receive a processing request for putting a target cloud service on the shelf. The processing request includes the pricing attributes and API interface information of the target cloud service.
[0060] Specifically, the target cloud service can be any cloud service on any cloud platform. For example, the cloud platform can be H3C Cloud, Alibaba Cloud, Huawei Cloud, etc., and the cloud services on each cloud platform can be cloud resources such as cloud hosts and cloud hard disks.
[0061] The pricing attributes of cloud services refer to the attributes that can be used to price cloud services, such as cloud computing speed, cloud storage speed, specifications, etc. The API interface information refers to the information of the API interfaces used to open cloud services on the cloud platform. The API interface can be a create, read, update, and delete interface (CRUD API). According to the API interface information, the corresponding API interface can be called to process the cloud service.
[0062] In addition, the processing request may further include other information of the target cloud service, such as basic information (such as which company's cloud platform it belongs to), description attributes, etc.
[0063] S102. According to the processing request, call a preset cloud service registration interface to register the target cloud service and obtain a registration identifier of the target cloud service.
[0064] Specifically, for cloud services that need to be put on the operation platform, call the cloud service registration interface provided by the operation platform to declare service resources. Specifically, the operation platform has formulated a series of registration specifications for the cloud service registration interface, and each cloud service needs to register its pricing attributes, API interface information of resources, etc. into the operation platform. In addition, the basic information, description attributes, etc. of the cloud service can also be registered into the operation platform.
[0065] After registration, each cloud service will correspond to a registration identifier. According to this registration identifier, the registration information such as the pricing attributes, API interface information of resources, basic information, and description attributes of the corresponding cloud service can be found.
[0066] S103. According to the registration identifier of the target cloud service, perform a shelving process on the target cloud service according to the corresponding specifications.
[0067] Specifically, according to the registration identifier, obtain attribute information such as the pricing attribute, basic information, and description attribute of the cloud service registration, and then call the unified interface provided by the operation platform with the cloud service listing function to list the cloud service on the product center of the operation platform. When the cloud service is listed on the product center, the product center generates a SKU (Stock Keeping Unit) code according to the pricing attribute declared by the cloud service, and uniformly manages the cloud service as a commodity.
[0068] In some embodiments of the present application, in the above-mentioned cloud service processing method provided by the present application, the steps may further include: integrating and displaying the registered and listed cloud services of each cloud platform.
[0069] After the cloud services of different cloud platforms are listed on the operation platform, in order to facilitate users to select the required cloud services, the operation platform of the present application integrates and displays the registered and listed cloud services of each cloud platform. Users can select the cloud services and their specifications to be enabled on the operation platform according to their needs. For example, select to enable 100G H3C cloud storage.
[0070] Therefore, as Figure 2 shown, in the above-mentioned cloud service processing method provided by the present application, the following steps may further include:
[0071] S201. Receive an order request from the user for the target cloud service, where the order request includes the registration identifier and specification information of the target cloud service;
[0072] S202. Obtain the pricing attribute and API interface information of the target cloud service corresponding to the registration identifier;
[0073] S203. Generate a target request body according to the specification information and the API interface information, and send the target request body to the cloud platform to which the target cloud service belongs, so that the cloud platform enables the target cloud service according to the target request body;
[0074] S204. Charge the enabled target cloud service according to the pricing attribute.
[0075] Specifically, in step S203, generating the target request body according to the specification information and the API interface information specifically includes:
[0076] Determine the target parameters according to the specification information;
[0077] Generate a target request body after replacing the corresponding parameters in the API interface information with the target parameters.
[0078] Specifically, when a user purchases cloud services, they select the cloud services and the required specifications by querying the products listed on the operation platform, and submit an order request. The order request submitted by the user contains information such as the cloud service registration identifier and the cloud service specification information. The operation platform can use the cloud service registration identifier to find the API interface for activating the cloud service and the parameter information to be replaced in the cloud service registration information, and then obtain the parameters from the specification information in the order request to replace the corresponding parameters in the API interface information, that is, replace the corresponding attribute characters, to generate a target request body.
[0079] After the target request body is sent to the cloud platform to which the target cloud service belongs, the cloud platform completes the automated activation and delivery of the cloud service resources according to the API interface information in the target request body. Similarly, automated reconfiguration, deletion, etc. of the cloud service resources can also be achieved.
[0080] When activating the cloud service, billing is required. Specifically, in step S204, the activated target cloud service is billed according to the pricing attribute, which specifically includes:
[0081] Analyze the pricing attribute to determine the billing policy corresponding to the pricing attribute;
[0082] Bill the activated target cloud service according to the billing policy.
[0083] Specifically, after the order request is submitted to the operation platform, the operation platform can analyze the pricing attribute of the activated cloud service, thereby matching the corresponding billing policy, and bill the activated cloud service according to the billing policy, generate a bill, and deduct the account amount, etc.
[0084] The method for processing cloud services provided by this application can bring the following beneficial effects:
[0085] 1. Through cloud service registration, the operation platform can be decoupled from specific cloud services, and the underlying cloud platforms docked by the operation platform can be flexibly configured. For different underlying cloud platforms, or different versions of the same cloud platform, only need to register their respective cloud service attribute information to the operation platform, and the unified management of the operation platform can be achieved, and the operation platform can complete the docking of different cloud platforms without any modification.
[0086] 2. When the operation platform performs automated delivery after receiving an order, it can automatically obtain the corresponding activation API from the specific information of the cloud service registration according to the cloud service registration identifier included in the order, without knowing the specific cloud service to be activated, so there is no need to write targeted judgment logic, which greatly facilitates the development and maintenance of the operation platform.
[0087] As Figure 3 shown is the flowchart of the entire cloud service processing provided by this application. As Figure 3As shown in the figure, the entire process of cloud service processing in practical applications is as follows:
[0088] In the management interface of the cloud service, the cloud service registration interface registers the cloud service and declares service resources to the corresponding cloud platform; the specification shelving interface shelves the cloud service to the product center of the operation platform according to the registration information of the cloud service and the determined shelving specification, and the virtual resource pool is the resource pool corresponding to the cloud service;
[0089] In the user interface of the cloud service, after the user browses the product, the user makes a service application, and the operation platform receives the order request and performs automated delivery of the cloud service according to the order request.
[0090] The processing method of the cloud service provided in the embodiment of the present application receives a processing request for shelving a target cloud service, where the processing request includes the pricing attribute and API interface information of the target cloud service; according to the processing request, a preset cloud service registration interface is called to register the target cloud service to obtain a registration identifier of the target cloud service; according to the registration identifier of the target cloud service, the target cloud service is shelved according to the corresponding specification. In this solution, through cloud service registration, the operation platform can be decoupled from the specific cloud service, so that the underlying cloud platform docked by the operation platform can be flexibly configured, which greatly facilitates the development and maintenance of the cloud service operation platform.
[0091] In the above embodiment, a processing method of a cloud service is provided. Correspondingly, the present application also provides a processing device for a cloud service. The processing device for a cloud service provided in the embodiment of the present application can implement the above processing method of the cloud service. Please refer to Figure 4 which shows a schematic diagram of a processing device for a cloud service provided by some embodiments of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and for the related parts, refer to the partial description of the method embodiment. The device embodiments described below are only illustrative.
[0092] As Figure 4 shown, the processing device 10 for a cloud service, which is applied to an operation platform, may include:
[0093] A management-side receiving module 101, configured to receive a processing request for shelving a target cloud service, where the processing request includes the pricing attribute and API interface information of the target cloud service;
[0094] A registration module 102, configured to register the target cloud service by calling a preset cloud service registration interface according to the processing request to obtain a registration identifier of the target cloud service;
[0095] A shelving module 103, configured to shelve the target cloud service according to the corresponding specification according to the registration identifier of the target cloud service.
[0096] In a possible implementation, as Figure 5 shown, in the above-mentioned processing device 10 of the cloud service provided in this application, it further includes:
[0097] A user-side receiving module 201, configured to receive an order request from a user for a target cloud service, where the order request includes a registration identifier and specification information of the target cloud service;
[0098] An obtaining module 202, configured to obtain the pricing attribute and API interface information of the target cloud service corresponding to the registration identifier;
[0099] An activation module 203, configured to generate a target request body according to the specification information and the API interface information, and send the target request body to the cloud platform to which the target cloud service belongs, so that the cloud platform activates the target cloud service according to the target request body;
[0100] A charging module 204, configured to charge the activated target cloud service according to the pricing attribute.
[0101] In a possible implementation, in the above-mentioned processing device 10 of the cloud service provided in this application, the activation module 203 is specifically configured to:
[0102] Determine target parameters according to the specification information;
[0103] Generate a target request body after replacing the corresponding parameters in the API interface information with the target parameters.
[0104] In a possible implementation, in the above-mentioned processing device 10 of the cloud service provided in this application, the charging module 204 is specifically configured to:
[0105] Parse the pricing attribute to determine the charging policy corresponding to the pricing attribute;
[0106] Charge the activated target cloud service according to the charging policy.
[0107] In a possible implementation, in the above-mentioned processing device 10 of the cloud service provided in this application, it further includes: an integrated display module, configured to integrate and display the registered and listed cloud services of each cloud platform.
[0108] The processing device of the cloud service provided in the above embodiment of this application and the processing method of the cloud service provided in the embodiment of this application are based on the same inventive concept and have the same beneficial effects.
[0109] The embodiments of the present application further provide an electronic device corresponding to the method for processing cloud services provided in the foregoing embodiments. The device may be a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method for processing cloud services described above.
[0110] Please refer to Figure 6 , which shows a schematic diagram of an electronic device provided in some embodiments of the present application. As Figure 6 shown, the electronic device 20 includes: a processor 200, a memory 201, a bus 202, and a communication interface 203. The processor 200, the communication interface 203, and the memory 201 are connected through the bus 202. A computer program that can run on the processor 200 is stored in the memory 201. When the processor 200 runs the computer program, it executes the method for processing cloud services provided in any of the foregoing embodiments of the present application. Among them, the memory 201 may include a high-speed random access memory (RAM: Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 203 (which can be wired or wireless), a communication connection is established between this system network element and at least one other network element, and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.
[0111] The bus 202 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Among them, the memory 201 is used to store programs. After receiving an execution instruction, the processor 200 executes the program. The method for processing cloud services disclosed in any of the foregoing embodiments of the present application can be applied to the processor 200 or implemented by the processor 200.
[0112] The processor 200 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 200 or the instructions in the form of software. The above-mentioned processor 200 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by the combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and combines its hardware to complete the steps of the above method.
[0113] The electronic device provided by the embodiment of the present application and the processing method of the cloud service provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by it.
[0114] The embodiment of the present application also provides a computer-readable storage medium corresponding to the processing method of the cloud service provided by the foregoing embodiment. The computer-readable storage medium may be an optical disc, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the processing method of the cloud service provided by any foregoing embodiment.
[0115] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which will not be elaborated here one by one.
[0116] The computer-readable storage medium provided by the above embodiment of the present application and the processing method of the cloud service provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored in it.
[0117] Finally, it should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of 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 blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
[0118] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0119] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed with each other may be through some communication interfaces, and the indirect couplings or communication connections of the devices or units may be in electrical, mechanical, or other forms.
[0120] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the various embodiments of the present application, and they should all be covered by the scope of the claims and the description of the present application.
Claims
1. A processing method for cloud services, applied to an operation platform, characterized in that, Including: Receiving a processing request for putting a target cloud service on the shelves, where the processing request includes the pricing attribute and API interface information of the target cloud service; According to the processing request, calling a preset cloud service registration interface to register the target cloud service to obtain a registration identifier of the target cloud service; According to the registration identifier of the target cloud service, performing a shelving process on the target cloud service according to the corresponding specifications; The method further includes: Receiving an order request from a user for a target cloud service, where the order request includes the registration identifier and specification information of the target cloud service; Obtaining the pricing attribute and API interface information of the target cloud service corresponding to the registration identifier; Determining target parameters according to the specification information, replacing the corresponding parameters in the API interface information with the target parameters to generate a target request body, and sending the target request body to the cloud platform to which the target cloud service belongs, so that the cloud platform opens the target cloud service according to the target request body; Billing the opened target cloud service according to the pricing attribute.
2. The method according to claim 1, wherein The billing the opened target cloud service according to the pricing attribute includes: Parsing the pricing attribute to determine the billing policy corresponding to the pricing attribute; Billing the opened target cloud service according to the billing policy.
3. The method according to claim 1, wherein The method further includes: integrating and displaying the registered and shelved cloud services of each cloud platform.
4. A processing device for cloud services, applied to an operation platform, characterized in that Including: A management-side receiving module, configured to receive a processing request for putting a target cloud service on the shelves, where the processing request includes the pricing attribute and API interface information of the target cloud service; A registration module, configured to register the target cloud service by calling a preset cloud service registration interface according to the processing request to obtain a registration identifier of the target cloud service; A shelving module, configured to perform a shelving process on the target cloud service according to the corresponding specifications according to the registration identifier of the target cloud service; The apparatus further includes: A user-side receiving module, configured to receive an order request from a user for a target cloud service, where the order request includes the registration identifier and specification information of the target cloud service; An obtaining module, configured to obtain the pricing attribute and API interface information of the target cloud service corresponding to the registration identifier; An opening module, configured to determine target parameters according to the specification information, replace the corresponding parameters in the API interface information with the target parameters to generate a target request body, and send the target request body to the cloud platform to which the target cloud service belongs, so that the cloud platform opens the target cloud service according to the target request body; A billing module, configured to bill the opened target cloud service according to the pricing attribute.
5. An electronic device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that when the processor runs the computer program, it is executed to implement the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, Stored thereon are computer-readable instructions that can be executed by a processor to implement the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Cloud service transaction method, cloud service transaction system and cloud service transaction platform
CN102254275A
Cloud service medium, cloud computing method and cloud system
CN102255933A
Cloud service management system and cloud-cloud management system
CN104580302A
Multi-cloud management platform resource charging method and device
CN113516507A