CN116996374A - Cloud resource arrangement processing method and device - Google Patents

Cloud resource arrangement processing method and device Download PDF

Info

Publication number
CN116996374A
CN116996374A CN202311056136.XA CN202311056136A CN116996374A CN 116996374 A CN116996374 A CN 116996374A CN 202311056136 A CN202311056136 A CN 202311056136A CN 116996374 A CN116996374 A CN 116996374A
Authority
CN
China
Prior art keywords
interface
cloud
unified
resource
tenant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311056136.XA
Other languages
Chinese (zh)
Inventor
江泽奇
郑鹏
范莎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311056136.XA priority Critical patent/CN116996374A/en
Publication of CN116996374A publication Critical patent/CN116996374A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a cloud resource arrangement processing method and device, and relates to the technical field of cloud computing. One embodiment of the method comprises the following steps: responding to the selection operation of the unified interface specification download address, and acquiring a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among interfaces; analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet; and receiving the execution parameters input to each interface, and sequentially realizing each interface according to the logic execution sequence and interface definition so as to integrate and arrange cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances. According to the embodiment, the unified arrangement interface is formulated through the SPI mechanism so as to provide unified interface specifications for different cloud resource arrangement processes, the interface specifications are realized by the cloud service provider, a tenant does not need to pay attention to the process of creating the cloud resource, and the problems of complex cloud resource creation process and easiness in error are effectively solved.

Description

Cloud resource arrangement processing method and device
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a cloud resource arrangement processing method and device.
Background
Cloud resources are various computing, storage, and network resources located in a cloud computing environment. Most of the existing ways of creating cloud resource instances are original, by providing a single IaaS Infrastructure as a Service, infrastructure as a service) creating interface, tenants create and integrate the cloud resource instances one by one, and for the tenants, the process is complex and tedious, errors are easy to occur, and different types of cloud resources have large difference in steps, so that the learning cost of the tenants is overlarge.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a cloud resource arrangement processing method and apparatus, which at least can solve the problems in the prior art that the process of creating a cloud resource instance is complex and cumbersome, the cost is high, and errors are prone to occur.
To achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a cloud resource arrangement processing method, including:
responding to the selection operation of the unified interface specification download address, and acquiring a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among interfaces; different interface definitions correspond to different types of cloud resources;
analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
and receiving the execution parameters input to each interface, and sequentially realizing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances.
Optionally, before the operation of responding to the selection of the uniform interface specification download address, the method further comprises:
transmitting a resource instance generation request to a server in response to a selection operation of generating a resource instance, so as to receive and display a unified interface specification download address returned by the server;
the server determines the corresponding unified serial peripheral interface according to the service type in the resource instance generation request, inquires the download address corresponding to the unified serial peripheral interface and returns.
Optionally, the unified interface specification package includes a configuration file, where the configuration file includes an access path of an interface implementation class;
after the obtaining the resource instance, the method further comprises:
receiving an operation of logging in a unified cloud platform by a tenant by using an account number and a password, and calling a method for acquiring a cloud service side identifier to acquire the identifier of the cloud service side corresponding to the account number in response to a selection operation of the tenant on acquiring a cloud resource instance;
according to the access path in the configuration file, determining an interface implementation class corresponding to the identifier of the cloud service side;
and calling a method for acquiring the cloud resource instance in the interface implementation class to acquire and display the resource instance corresponding to the identifier of the cloud service side.
Optionally, the interface includes a reclamation interface, and the method further includes:
and in response to the selection recycling operation of the tenant on one or more resource instances, invoking a recycling interface to destroy the one or more resource instances.
Optionally, after the receiving the execution parameters input to each interface, the method further includes:
and determining cloud resources corresponding to interface definitions for each interface, calling a verification mode corresponding to the cloud resources, and performing verification processing on the execution parameters.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a cloud resource arrangement processing apparatus, including:
the downloading module is used for responding to the selection operation of the unified interface specification downloading address and obtaining a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among the interfaces; different interface definitions correspond to different types of cloud resources;
the analysis module is used for analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
and the arrangement module is used for receiving the execution parameters input to each interface, and sequentially realizing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange the cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances.
Optionally, the apparatus further includes a request module configured to:
transmitting a resource instance generation request to a server in response to a selection operation of generating a resource instance, so as to receive and display a unified interface specification download address returned by the server;
the server determines the corresponding unified serial peripheral interface according to the service type in the resource instance generation request, inquires the download address corresponding to the unified serial peripheral interface and returns.
Optionally, the unified interface specification package includes a configuration file, where the configuration file includes an access path of an interface implementation class;
the apparatus further comprises a tenant module for:
receiving an operation of logging in a unified cloud platform by a tenant by using an account number and a password, and calling a method for acquiring a cloud service side identifier to acquire the identifier of the cloud service side corresponding to the account number in response to a selection operation of the tenant on acquiring a cloud resource instance;
according to the access path in the configuration file, determining an interface implementation class corresponding to the identifier of the cloud service side;
and calling a method for acquiring the cloud resource instance in the interface implementation class to acquire and display the resource instance corresponding to the identifier of the cloud service side.
Optionally, the interface includes a reclamation interface, and the tenant module is further configured to:
and in response to the selection recycling operation of the tenant on one or more resource instances, invoking a recycling interface to destroy the one or more resource instances.
Optionally, the arrangement module is further configured to:
and determining cloud resources corresponding to interface definitions for each interface, calling a verification mode corresponding to the cloud resources, and performing verification processing on the execution parameters.
In order to achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a cloud resource arrangement processing electronic device.
The electronic equipment of the embodiment of the invention comprises: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the cloud resource arrangement processing method.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements any one of the cloud resource arrangement processing methods described above.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer program product. The computer program product of the embodiment of the invention comprises a computer program, and the program is executed by a processor to realize the cloud resource arrangement processing method provided by the embodiment of the invention.
According to the solution provided by the present invention, one embodiment of the above invention has the following advantages or beneficial effects: the flows of different types of cloud resource examples can be different, the data format definitions can be different, the advantages of SPI service discovery and framework expansion are utilized, a unified arrangement interface is formulated to provide a unified interface specification for different cloud resource arrangement processes, the interface specification is realized by a cloud service provider, and tenants are not concerned about the process of creating cloud resources, so that the problems of complex cloud resource creation process and easy error are effectively solved, and the use cost of the tenants is reduced.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic flow diagram of a cloud resource arrangement processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a particular cloud resource orchestration processing method according to an embodiment of the present invention;
FIG. 3 is a flow diagram of an alternative cloud resource orchestration processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a cloud resource orchestration interface architecture according to embodiments of the present invention;
fig. 5 is a schematic diagram of main modules of a cloud resource arrangement processing apparatus according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing a mobile device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It is noted that embodiments of the invention and features of the embodiments may be combined with each other without conflict. In the technical scheme of the invention, the related aspects of collection, analysis, use, transmission, storage and the like of tenant personal information all meet the requirements of related laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the legal use aspects and the like, and are subjected to supervision and management of a supervision department. Necessary measures should be taken on tenant personal information to prevent illegal access to such personal information data, ensure that personnel having access to the personal information data comply with the regulations of relevant laws and regulations, and ensure tenant personal information security.
Once these tenant personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting data collection and/or deleting data. Tenant privacy is protected, when applicable, by de-identifying data, including in certain related applications, such as by removing a particular identifier (e.g., date of birth, etc.), controlling the amount or specificity of stored data (e.g., collecting location data at a city level rather than at a specific address level), controlling how data is stored, and/or other methods.
Referring to fig. 1, a main flowchart of a cloud resource arrangement processing method provided by an embodiment of the present invention is shown, including the following steps:
s101: responding to the selection operation of the unified interface specification download address, and acquiring a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among interfaces; different interface definitions correspond to different types of cloud resources;
s102: analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
s103: and receiving the execution parameters input to each interface, and sequentially realizing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances.
In the above embodiments, cloud resources are various computing, storage, and network resources located in a cloud computing environment. Currently, when applying IaaS (resources are used for deploying applications, for example, an applet application needs to be deployed step by step, the tenant needs to create a cloud server instance, and the execution steps include applying CVM (Cloud Virtual Machines, cloud server (virtual machine)) -applying CBS (Cloud Block Storage, cloud hard disk) -applying VPC (Virtual Private Cloud, virtual private network) -mounting CBS for CVM-creating a subnet and configuring a security group-adding routing and routing rules, etc., wherein IaaS packages basic resources such as hardware equipment into services for the tenant, the tenant does not need to care about realization of underlying hardware environment, such as calculation, storage and network service, and the obtained services are IaaS cloud services.
For step S101, SPI (Service Provider Interface), a service provision discovery mechanism built in JDK. In order to solve the problems, the method utilizes the advantages of SPI service discovery and framework extension to encapsulate the process of creating cloud resource instances, and a cloud service provider realizes interface specifications; the SPI is a set of interfaces provided by Java and used for being realized or expanded by a third party, and can be used for enabling a framework expansion and a replacement component, the SPI is a calling party to set interface specifications and is provided for the outside to be realized, the calling party selects the outside to be realized when calling, and the SPI is used by framework expansion personnel from the aspect of users.
The third service side configures corresponding unified SPI interface specifications for different service types, such as data storage service and calculation service, and establishes a corresponding relation between the service types and the unified SPI-interface specifications. Therefore, if the cloud service provider needs to create the resource instance, the cloud service provider can click a 'generate resource instance' button in the interface and input a corresponding service type, and the client generates a resource instance generation request and sends the resource instance generation request to the third service side. After receiving the request for generating the resource instance, the third service side determines the corresponding unified SPI according to the service type in the request, and then inquires the interface specification corresponding to the unified SPI.
In order to improve the data transmission speed, the scheme returns the uniform interface specification download address to the client, and the cloud service provider can download the required information according to the download address, so that the corresponding relation between the service type and the uniform SPI-interface specification download address is essentially constructed.
After receiving the unified interface specification download address returned by the third service side, the cloud service provider clicks the address to obtain a unified SPI interface specification jar packet, all interface paths, interface definitions and preset logic execution sequences among interfaces included in the packet; wherein different interface definitions correspond to different types of cloud resources, such as interface a-VPC, interface B-CVM. All interface paths included in the packet may be presented in a list, such as an Excel table including paths of interface a in the jar packet and paths of interface B in the jar packet, where the paths are distinct from the storage paths. The interface definition is the structure definition of how the front end requests information and how the back end returns information when the software is developed, and the front end and the back end follow the same interface definition, so that different modules can cooperate with each other to realize complex functions and ensure the stability and reliability of the system.
For steps S102 and S103, the arrangement flow of different types of cloud resource instances may be different, the data format definition may also be different, and based on the SPI mechanism, an interface specification may be defined for each cloud resource instance, and all interfaces need to be implemented by the cloud service provider.
The unified SPI interface specification jar packet is parsed to determine therefrom the interfaces corresponding to each interface path, such as interface a and interface B. Different cloud service providers have different cloud resource instances to be created due to different execution environments and execution demands, but if the same uniform SPI interface specification jar packet is downloaded, the same cloud resource instance generation flow is downloaded, and the difference is that the execution parameters input by different cloud service providers are different. For example: VPC: IP address ":", bandwidth ":", CVM: "region": "parameters",// territory, "zoneId": ",// availability area," name ":",// name.
After receiving the execution parameters input by the cloud service provider for each interface, the client also needs to call a parameter checking program to perform compliance check on the input execution parameters. The checking basis of different cloud resources is different, for example, the created memory, the CPU and the disk information are required to be provided for creating the CVM instance; creating CLBs requires providing source IP address (Internet Protocol Address ), destination IP address, destination port, and open rule information. Through parameter verification, the validity and legality of the parameters can be ensured, invalid or illegal parameters are prevented from being transmitted to the program, so that the robustness and safety of the program are improved, and the developer can be helped to capture and process potential errors or abnormal conditions.
And under the condition that the execution parameters pass the verification, each interface is realized in sequence according to the preset logic execution sequence and interface definition among the downloaded interfaces, so that the cloud resources and the execution parameters corresponding to each interface are integrated and arranged to obtain cloud resource instances. For example, the interface a is executed first and then the interface B is executed, where the CVM information includes:
i.e. it is dependent on the execution result of the VPC. Firstly, arranging VPC resources and execution parameters of an interface A, obtaining an execution result after execution is completed, taking the execution result as input of an interface B, arranging the interface B, namely arranging CVM resources, the execution parameters and the execution result, obtaining a cloud resource instance after arrangement is completed, and subsequently storing the resource instance into a resource library.
According to the method provided by the embodiment, the Java SPI mechanism is utilized to encapsulate the cloud resource instance creating process, unified cloud resource instance creating interface specification is provided for the cloud service provider, and the cloud service provider can integrate and arrange the cloud resource instance creating process according to the cloud service provider service implementation interface, so that the creating efficiency is improved.
Referring to fig. 2, a main flowchart of a specific cloud resource arrangement processing method provided by an embodiment of the present invention is shown, including the following steps:
s201: transmitting a resource instance generation request to a server in response to a selection operation of generating a resource instance, so as to receive and display a unified interface specification download address returned by the server; the server side determines a corresponding unified peripheral interface according to the service type in the resource instance generation request, inquires a download address corresponding to the unified peripheral interface and returns the download address;
s202: responding to the selection operation of the unified interface specification download address, and acquiring a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among interfaces; different interface definitions correspond to different types of cloud resources;
s203: analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
s204: receiving execution parameters input to each interface, determining cloud resources corresponding to interface definitions for each interface, calling a verification mode corresponding to the cloud resources, and performing verification processing on the execution parameters;
s205: and responding to the verification result to pass, and sequentially realizing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange cloud resources and execution parameters corresponding to each interface to obtain cloud resource examples.
Referring to fig. 3, a flowchart of an optional cloud resource arrangement processing method according to an embodiment of the present invention is shown, including the following steps:
s301: responding to the selection operation of the unified interface specification download address, and acquiring a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among interfaces; the unified interface specification package comprises a configuration file, wherein the configuration file comprises an access path of an interface implementation class;
s302: analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
s303: receiving execution parameters input to each interface, and sequentially implementing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances;
s304: receiving an operation of logging in a unified cloud platform by a tenant by using an account number and a password, and calling a method for acquiring a cloud service side identifier to acquire the identifier of the cloud service side corresponding to the account number in response to a selection operation of the tenant on acquiring a cloud resource instance;
s305: according to the access path in the configuration file, determining an interface implementation class corresponding to the identifier of the cloud service side;
s306: and calling a method for acquiring the cloud resource instance in the interface implementation class to acquire and display the resource instance corresponding to the identifier of the cloud service side.
In the above embodiment, the steps S301 to S303 are described with reference to fig. 1, and are not described herein.
For step S304, the tenant may purchase services of multiple cloud service providers, so that the tenant may have multiple accounts and passwords, and in this scheme, in order to facilitate unified management of each cloud service provider, a unified cloud platform is set, where the tenant only needs to set one account and password, and the correspondence between the account and the cloud service provider identifier is stored in the unified cloud platform, where the cloud service provider identifier may be multiple.
For example, in some cloud resource arrangement, an interface to create a CVM cloud server may be defined as follows:
public interface CreateCvm(){
void create (); creation of instances
String getCloud (); // return to current cloud service provider
}
Therefore, after the tenant logs in the unified cloud platform by using the account number password, if the 'acquire cloud resource instance' is clicked, the unified cloud platform invokes the 'getCloud ()' method to acquire the identification of the cloud service party associated with the tenant account number, and if the tenant has the service of purchasing the cloud service provider X and the cloud service provider Y, the cloud service provider X and the cloud service provider Y are queried.
For steps S305 to S306, different cloud service providers need to implement the interface and make a jar package, and each cloud service provider needs to include a configuration file describing an implementation class of the interface in the jar package, for example, the configuration files of the cloud service provider X and the cloud service provider Y are respectively:
cloud service provider X:
configuration file: META-INF/services/xservice
The complete class name of the interface implementation class listed in the configuration file is:
cloud service provider Y:
configuration file: META-INF/services/capabilities
The complete class name of the interface implementation class listed in the configuration file is:
when the program runs, different interface realization classes can be selected according to the selected cloud service provider, so that possibility is provided for realizing cloud resource arrangement of different cloud service providers.
For the cloud service provider X and the cloud service provider Y, the client determines an interface implementation class corresponding to the cloud service provider X and the cloud service provider Y according to the access path in the configuration file, and calls a method for acquiring cloud resource instances in the interface implementation class to acquire resource instances corresponding to the identification of the cloud service side for display for selection by tenants. For example, a resource instance corresponding to cloud service provider X is displayed, including qwer, and a resource instance corresponding to cloud service provider Y is displayed, including qwty.
Referring to fig. 4, the SPI can achieve the purposes of interfacing and separating, and the API (Application Program Interface ) provider only provides the interface. And a unified arrangement interface is formulated based on a registration discovery mechanism of the SPI, and different cloud service providers can realize arrangement methods according to the standard. The tenant does not need to pay attention to how to create the cloud resource instance, directly depends on an orchestration interface formulated by the SPI-based registration discovery mechanism, and only needs to use the created cloud resource instance. For example, creating a CVM instance, a tenant does not have to pay attention to how cloud service provider X and cloud service provider Y create, different cloud service providers may employ different policies for creating a CVM instance, such as cloud service provider X may mount a cloud hard disk at the same time when creating a CVM instance, and cloud service provider Y may configure a security group when creating a CVM instance.
In addition, the unified interface specification jar package also includes a recycling interface, when a tenant no longer uses a certain resource instance, the tenant clicks a recycling button, and the client responds to the operation and calls the recycling interface to destroy the resource instance. The tenant uses the resource instance to pay a certain fee, and does not continue to pay after destroying.
According to the method provided by the embodiment, the uniform interface specification is provided for different cloud resource instance arrangement processes by using the SPI service discovery and framework extension mechanism, the cloud service provider realizes the interface, and the tenant call interface obtains the cloud resource instance, so that the method is free from paying attention to the creation process, and is simple and convenient to operate and low in cost.
The embodiment of the invention provides a mode for arranging cloud resources by using an SPI service discovery and framework extension mechanism, and a unified arranging interface is formulated based on an SPI registration discovery mechanism provided by Java, so that corresponding unified interface specifications can be provided for different cloud resource arranging processes, a cloud service provider integrates and arranges the process of creating cloud resource instances according to a service implementation interface, a tenant does not care about the process of creating cloud resources, the problems of complex cloud resource creating process and easy error are effectively solved, and the use cost of the tenant is reduced. Meanwhile, based on the pluggable characteristics of SPI, the possibility is provided for the personalized requirements of different cloud service providers; the pluggable characteristics are that the interface is decoupled and realized specifically through one configuration file, so that the plug-in effect is achieved, plug-in and play are realized, and no plug-in exists.
Referring to fig. 5, a schematic diagram of main modules of a cloud resource arrangement processing apparatus 500 according to an embodiment of the present invention is shown, including:
a download module 501, configured to obtain a unified interface specification packet, an interface path, an interface definition, and a logic execution order preset between interfaces in response to a selection operation of a unified interface specification download address; different interface definitions correspond to different types of cloud resources;
the parsing module 502 is configured to parse the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
and the arrangement module 503 is configured to receive the execution parameters input to each interface, and implement each interface in sequence according to the logic execution sequence and the interface definition, so as to integrate and arrange the cloud resources and the execution parameters corresponding to each interface, and obtain a cloud resource instance.
The implementation device of the invention further comprises a request module for:
transmitting a resource instance generation request to a server in response to a selection operation of generating a resource instance, so as to receive and display a unified interface specification download address returned by the server;
the server determines the corresponding unified serial peripheral interface according to the service type in the resource instance generation request, inquires the download address corresponding to the unified serial peripheral interface and returns.
In the implementation device of the invention, the unified interface specification package comprises a configuration file, wherein the configuration file comprises an access path of an interface implementation class;
the apparatus further comprises a tenant module for:
receiving an operation of logging in a unified cloud platform by a tenant by using an account number and a password, and calling a method for acquiring a cloud service side identifier to acquire the identifier of the cloud service side corresponding to the account number in response to a selection operation of the tenant on acquiring a cloud resource instance;
according to the access path in the configuration file, determining an interface implementation class corresponding to the identifier of the cloud service side;
and calling a method for acquiring the cloud resource instance in the interface implementation class to acquire and display the resource instance corresponding to the identifier of the cloud service side.
In the embodiment of the invention, the interface comprises a recycling interface, and the tenant module is further used for:
and in response to the selection recycling operation of the tenant on one or more resource instances, invoking a recycling interface to destroy the one or more resource instances.
In the embodiment of the present invention, the arranging module 503 is further configured to:
and determining cloud resources corresponding to interface definitions for each interface, calling a verification mode corresponding to the cloud resources, and performing verification processing on the execution parameters.
In addition, the implementation of the apparatus in the embodiments of the present invention has been described in detail in the above method, so that the description is not repeated here.
Fig. 6 shows an exemplary system architecture 600 in which embodiments of the invention may be applied, including terminal devices 601, 602, 603, a network 604, and a server 605 (by way of example only).
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, and are installed with various communication client applications, and a tenant may interact with the server 605 through the network 604 using the terminal devices 601, 602, 603 to receive or transmit messages, etc.
The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The server 605 may be a server providing various services, and it should be noted that, the method provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the apparatus is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor comprises a downloading module, an analyzing module and an arranging module. The names of these modules do not constitute a limitation on the module itself in some cases, and for example, the orchestration module may also be described as a "verification orchestration module".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform any of the cloud resource arrangement processing methods described above.
The computer program product of the present invention comprises a computer program which, when executed by a processor, implements the cloud resource orchestration processing method in embodiments of the present invention.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (13)

1. The cloud resource arrangement processing method is characterized by comprising the following steps of:
responding to the selection operation of the unified interface specification download address, and acquiring a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among interfaces; different interface definitions correspond to different types of cloud resources;
analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
and receiving the execution parameters input to each interface, and sequentially realizing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances.
2. The method of claim 1, wherein prior to said responding to the selection of the unified interface specification download address, the method further comprises:
transmitting a resource instance generation request to a server in response to a selection operation of generating a resource instance, so as to receive and display a unified interface specification download address returned by the server;
the server determines the corresponding unified serial peripheral interface according to the service type in the resource instance generation request, inquires the download address corresponding to the unified serial peripheral interface and returns.
3. The method of claim 1, wherein the unified interface specification package includes a configuration file including access paths for interface implementation classes;
after the obtaining the resource instance, the method further comprises:
receiving an operation of logging in a unified cloud platform by a tenant by using an account number and a password, and calling a method for acquiring a cloud service side identifier to acquire the identifier of the cloud service side corresponding to the account number in response to a selection operation of the tenant on acquiring a cloud resource instance;
according to the access path in the configuration file, determining an interface implementation class corresponding to the identifier of the cloud service side;
and calling a method for acquiring the cloud resource instance in the interface implementation class to acquire and display the resource instance corresponding to the identifier of the cloud service side.
4. A method according to claim 3, wherein the interface comprises a reclamation interface, the method further comprising:
and in response to the selection recycling operation of the tenant on one or more resource instances, invoking a recycling interface to destroy the one or more resource instances.
5. The method of claim 1, wherein after said receiving the execution parameters entered for each interface, the method further comprises:
and determining cloud resources corresponding to interface definitions for each interface, calling a verification mode corresponding to the cloud resources, and performing verification processing on the execution parameters.
6. A cloud resource arrangement processing apparatus, comprising:
the downloading module is used for responding to the selection operation of the unified interface specification downloading address and obtaining a unified interface specification packet, an interface path, interface definition and a preset logic execution sequence among the interfaces; different interface definitions correspond to different types of cloud resources;
the analysis module is used for analyzing the unified interface specification packet to determine an interface corresponding to each interface path from the unified interface specification packet;
and the arrangement module is used for receiving the execution parameters input to each interface, and sequentially realizing each interface according to the logic execution sequence and the interface definition so as to integrate and arrange the cloud resources and the execution parameters corresponding to each interface to obtain cloud resource instances.
7. The apparatus of claim 6, further comprising a request module to:
transmitting a resource instance generation request to a server in response to a selection operation of generating a resource instance, so as to receive and display a unified interface specification download address returned by the server;
the server determines the corresponding unified serial peripheral interface according to the service type in the resource instance generation request, inquires the download address corresponding to the unified serial peripheral interface and returns.
8. The apparatus of claim 6, wherein the unified interface specification package includes a configuration file including access paths for interface implementation classes;
the apparatus further comprises a tenant module for:
receiving an operation of logging in a unified cloud platform by a tenant by using an account number and a password, and calling a method for acquiring a cloud service side identifier to acquire the identifier of the cloud service side corresponding to the account number in response to a selection operation of the tenant on acquiring a cloud resource instance;
according to the access path in the configuration file, determining an interface implementation class corresponding to the identifier of the cloud service side;
and calling a method for acquiring the cloud resource instance in the interface implementation class to acquire and display the resource instance corresponding to the identifier of the cloud service side.
9. The apparatus of claim 8, wherein the interface comprises a reclamation interface, the tenant module further to:
and in response to the selection recycling operation of the tenant on one or more resource instances, invoking a recycling interface to destroy the one or more resource instances.
10. The apparatus of claim 6, wherein the orchestration module is further to:
and determining cloud resources corresponding to interface definitions for each interface, calling a verification mode corresponding to the cloud resources, and performing verification processing on the execution parameters.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
12. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5.
CN202311056136.XA 2023-08-22 2023-08-22 Cloud resource arrangement processing method and device Pending CN116996374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311056136.XA CN116996374A (en) 2023-08-22 2023-08-22 Cloud resource arrangement processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311056136.XA CN116996374A (en) 2023-08-22 2023-08-22 Cloud resource arrangement processing method and device

Publications (1)

Publication Number Publication Date
CN116996374A true CN116996374A (en) 2023-11-03

Family

ID=88521321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311056136.XA Pending CN116996374A (en) 2023-08-22 2023-08-22 Cloud resource arrangement processing method and device

Country Status (1)

Country Link
CN (1) CN116996374A (en)

Similar Documents

Publication Publication Date Title
US9444787B2 (en) Non-intrusive method and apparatus for automatically dispatching security rules in cloud environment
CN110839087B (en) Interface calling method and device, electronic equipment and computer readable storage medium
US20120131641A1 (en) Optimizing interactions between co-located processes
CN110083338B (en) Service system based on intelligent gateway
US20150254740A1 (en) Non-Intrusive Cloud Services Billing
CN103813329A (en) Capability calling method and capability opening system
CN112202744B (en) Multi-system data communication method and device
CN113821352A (en) Remote service calling method and device
US11468189B1 (en) Method, system, apparatus and device for data exchange
CN112764726A (en) Data synthesis method and device
CN112015383A (en) Login method and device
CN112748962B (en) Application loading method, device, electronic equipment and computer readable medium
CN113778499A (en) Method, device, equipment and computer readable medium for publishing service
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN116996374A (en) Cloud resource arrangement processing method and device
US11568069B1 (en) Data security protection system
CN114070618A (en) Data processing method and system based on micro front end
CN114648012A (en) Bill processing method and device, electronic equipment and computer readable medium
CN116917858A (en) Runtime communication protocol parameter adjustment in containerized applications
CN113709171A (en) Method and device for cross-component state communication
CN112905273A (en) Service calling method and device
CN114760630A (en) Communication method, device and system
CN111831566A (en) Test method, test device, electronic equipment and computer readable storage medium
US11637781B1 (en) Method, apparatus and system for managing traffic data of client application
CN115037572B (en) Application request identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination