CN113055410A - Cloud resource management method, device, equipment and system and readable storage medium - Google Patents

Cloud resource management method, device, equipment and system and readable storage medium Download PDF

Info

Publication number
CN113055410A
CN113055410A CN201911364716.9A CN201911364716A CN113055410A CN 113055410 A CN113055410 A CN 113055410A CN 201911364716 A CN201911364716 A CN 201911364716A CN 113055410 A CN113055410 A CN 113055410A
Authority
CN
China
Prior art keywords
cloud
resource management
cloud resource
target
application program
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
CN201911364716.9A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911364716.9A priority Critical patent/CN113055410A/en
Publication of CN113055410A publication Critical patent/CN113055410A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a cloud resource management method, a cloud resource management device, cloud resource management equipment, a cloud resource management system and a readable storage medium. The method comprises the following steps: receiving a cloud resource management request which accords with a preset grammar type; analyzing the cloud resource management request to acquire cloud resource management information of a target cloud; and according to the cloud resource management information, determining a target application program interface and target metadata information of the target cloud, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to a preset syntax type.

Description

Cloud resource management method, device, equipment and system and readable storage medium
Technical Field
The present invention relates to the technical field of cloud resource management, and more particularly, to a cloud resource management method, apparatus, device, system, and readable storage medium.
Background
With the rapid development of cloud computing, application modes of cloud products are also gradually diversified. A hybrid cloud is an application model of a cloud product that allows sharing of data and application services between a public cloud and a private cloud, using the public cloud in combination with the private cloud. The application mode of the hybrid cloud gradually becomes the preferred mode for many users to use cloud products due to the characteristics of good expansibility and richness.
However, in the application mode of the hybrid cloud, there may be different public cloud products provided by a plurality of cloud manufacturers, and the different public cloud products are used in combination with private cloud products developed by users, and the different cloud products have different product characteristics, for example, different openapis (open platforms) or product consoles are supported, and accordingly, the users need to simultaneously learn the product characteristics of the plurality of cloud products and independently maintain and use different cloud products, which correspondingly brings higher learning, research, development, and operation and maintenance costs.
For example, a user needs to combine a hybrid cloud environment with an elastic cloud computing product of a certain manufacturer and a private cloud developed based on an OpenStack (open source cloud computing management platform), and when creating a cloud resource, the user needs to learn the openapis and product consoles of the manufacturer and the OpenStack at the same time, and also needs to maintain the cloud resource independently during use, which accordingly requires high labor and time investment, and thus brings high cost.
Disclosure of Invention
An object of the present invention is to provide a new technical solution for managing cloud resources.
According to a first aspect of the present invention, a cloud resource management method is provided, including:
receiving a cloud resource management request which accords with a preset grammar type;
analyzing the cloud resource management request to acquire cloud resource management information of a target cloud;
and according to the cloud resource management information, determining a target application program interface and target metadata information of the target cloud, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type.
According to a second aspect of the present invention, there is provided a cloud resource management method implemented by a cloud resource management apparatus, the cloud resource management apparatus including a receiver, an analyzer, and an executor; the method comprises the following steps:
receiving, by the receiver, a cloud resource management request that conforms to a preset syntax type;
analyzing the cloud resource management request through the analyzer to obtain cloud resource management information of a target cloud;
and determining a target application program interface and target metadata information of the target cloud according to the cloud resource management information through the executor, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type.
According to a third aspect of the present invention, there is provided a cloud resource management apparatus, including:
the cloud resource management system comprises a receiver, a server and a server, wherein the receiver receives a cloud resource management request which accords with a preset grammar type;
the analyzer is used for analyzing the cloud resource management request to acquire cloud resource management information of a target cloud;
and the executor is used for determining a target application program interface and target metadata information of the target cloud according to the cloud resource management information, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type.
According to a fourth aspect of the present invention, there is provided a cloud resource management device, including:
a memory for storing executable instructions;
a processor, configured to operate the cloud resource management device according to the control of the executable instruction, to perform any one of the methods according to the first aspect of the present invention.
According to a fifth aspect of the present invention, there is provided a cloud resource management system, comprising:
a plurality of cloud resources;
the cloud resource management apparatus according to any one of the third aspect of the present invention or the cloud resource management device according to the fourth aspect of the present invention.
According to a sixth aspect of the present invention, there is provided a readable storage medium, in which a computer program is stored, the computer program being readable and executable by a computer, and the computer program being configured to, when being read and executed by the computer, perform any one of the cloud resource management methods according to the first aspect of the present invention.
According to one embodiment of the invention, by receiving a cloud resource management request conforming to a preset syntax type, analyzing the cloud resource management request, acquiring cloud resource management information of the target cloud, determining a target application program interface and target metadata information of the target cloud according to the cloud resource management information, calling the target application program interface according to the target metadata information, corresponding cloud resource management operation is executed on the target cloud, and a cloud resource management result is obtained, so that a user does not need to learn corresponding product characteristics and independently maintain and use different cloud products in an application mode of a mixed cloud, any cloud resource in the hybrid cloud can be managed only through one cloud resource management request which accords with the preset grammar type, so that unified management of different cloud resources is realized, and the learning, research and development, operation and maintenance costs of users are greatly reduced.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram showing an example of a hardware configuration of a management system 1000 that can be used to implement an embodiment of the present invention;
FIG. 2 is an application environment showing a hybrid cloud that can be used to implement embodiments of the present invention;
fig. 3 shows a flowchart of a cloud resource management method of the first embodiment of the present invention;
fig. 4 shows a block diagram of a cloud resource management apparatus 4000 according to a first embodiment of the present invention;
fig. 5 shows a block diagram of a cloud resource management device 5000 of the first embodiment of the present invention;
fig. 6 shows a block diagram of a cloud resource management system 6000 of a third embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an example of a cloud resource management method implemented by the cloud resource management system according to the third embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 shows a block diagram of a hardware configuration of a management system 1000 that can implement an embodiment of the present invention.
The management system 1000 of the present embodiment includes a management apparatus 1100 and a plurality of cloud resources 1200. As shown in fig. 1, it is schematically illustrated that cloud resources 1200 may include cloud resources 1200A, cloud resources 1200B, cloud resources 1200C, and cloud resources 1200D.
Cloud resources 1200 are cloud products that provide cloud computing resources for users.
Cloud resources 1200 may be a public cloud. A public cloud generally refers to cloud resources provided by third party providers to users that can be used over the internet. The core attribute of the public cloud is shared resource service, and users can register and acquire the use permission of the public cloud for free or low cost. The public cloud may include clouds and the like provided by various provider cloud services.
Cloud resources 1200 may also be private clouds. Private clouds are typically cloud resources built for individual use by one customer that can provide the most effective control over data, security, and quality of service. For example, the private cloud may be a cloud platform that is self-developed based on openstack (open source cloud computing management platform) for user-specific needs.
When the user uses the plurality of cloud resources 1200, an application mode of the hybrid cloud is adopted, and the application mode of the hybrid cloud may be an application mode in which a plurality of public clouds are used in a mixed manner, an application mode in which a plurality of private clouds are used in a mixed manner, or an application mode in which a plurality of public clouds and a plurality of private clouds are used in a mixed manner. For example, the management system 1000 includes 2 cloud resources 1200, the cloud resource 1200A is a flexible cloud computing product of a certain vendor, and the cloud resource 1200B is a cloud platform developed by itself based on openstack (open source cloud computing management platform).
In this embodiment, the number of cloud resources 1200 may be determined according to an actual scenario, and is not limited herein.
The management device 1100 is a device for managing the cloud resources 1200. For example, as shown in fig. 1, the management apparatus 1100 may include a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, and an input device 1160. Although the management device 1100 may also include a speaker, a microphone, and the like, these components are not relevant to the present invention and are omitted here. The processor 1110 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1120 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1130 includes, for example, a USB interface, a serial interface, and the like. The communication device 1140 is capable of wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display panel. Input devices 1160 may include, for example, a touch screen, a keyboard, and the like.
The management system 1000 shown in fig. 1 is merely illustrative and is in no way intended to limit the present invention, its application, or uses. In an embodiment of the present invention, the memory 1120 of the management device 1100 is configured to store instructions, which are used to control the processor 1110 to perform any one of the cloud resource management methods provided by the embodiment of the present invention. It should be understood by those skilled in the art that although a plurality of devices are shown for the management device 1100 in fig. 1, the present invention may only relate to some of the devices, for example, the management device 1100 only relates to the processor 1110 and the storage 1120, etc. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< first embodiment >
< method >
In the embodiment, a cloud resource management method is provided.
The cloud resource management method is implemented for an application mode of a hybrid cloud.
A hybrid cloud is an application model of a cloud product that allows sharing of data and application services between a public cloud and a private cloud, using the public cloud in combination with the private cloud.
The public cloud generally refers to cloud resources provided by a third-party provider for a user and capable of being used through the internet, and the user can acquire the use right of the public cloud through free or low-cost registration. The public cloud may include clouds and the like provided by various provider cloud services. Private clouds are typically cloud resources built for individual use by one customer that can provide the most effective control over data, security, and quality of service. For example, the private cloud may be a private cloud platform developed for a user-specific need, e.g., based on openstack (open source cloud computing management platform).
The application understands that the application mode of the hybrid cloud may be an application mode used by mixing a plurality of public clouds, an application mode used by mixing a plurality of private clouds, or an application mode used by mixing a plurality of public clouds and a plurality of private clouds.
For example, as shown in fig. 2, a user a places a WEB service (WEB) of a front end on a public cloud, and places an application service (APP Server) and a Database (Database) on a private cloud; the user B places one part of the webpage service and the application service of the front end on a public cloud, and places the other part of the application service and the database on a private cloud; the user C places the webpage service and the application service of the front end on a public cloud, the database is placed on a private cloud, the user D places one part of the webpage service, the application service and the database of the front end on the public cloud, and the other part of the database is placed on the private cloud.
However, in the prior art of the application, in an application mode of a hybrid cloud, different public cloud products provided by a plurality of cloud manufacturers may exist and may be used in combination with a private cloud product developed by a user, and different cloud products have different product characteristics, for example, different openapis (open platforms) or product consoles are supported, and accordingly, the user needs to simultaneously learn the product characteristics of the plurality of cloud products and independently maintain and use different cloud products, which correspondingly brings higher learning, research, development, and operation and maintenance costs.
As shown in fig. 3, the cloud resource management method may include: steps S3100-S3300.
Step S3100, receiving a cloud resource management request conforming to a preset syntax type.
The cloud resource management request is a user-triggered request related to a cloud resource desired to be managed. In this embodiment, the cloud resource management request may be received through an access service for the cloud resource management request, and the access service may be a HTTP (Hyper Text transfer Protocol) service.
The cloud resource management request conforms to a preset grammar type. The preset grammar type is a preset management language type for managing the cloud resources, and can be set according to a specific application scene or application requirements. For example, the preset syntax type may be SQL (Structured Query Language), i.e. a syntax type similar to a Structured Query Language, which is a database Query and programming Language for accessing data and querying, updating and managing a relational database system. In this embodiment, the SQL-like may support cloud resource management operation types such as Select (query), update (update), insert (insert), delete (delete), and the like.
The cloud resource management request may include a cloud resource management statement. The cloud resource management statement is a statement which conforms to a preset grammar type and is used for describing cloud resource management information. For example, the cloud resource management statement may be an SQL-like statement.
The cloud resource management statement at least comprises cloud resource information of the target cloud, a region parameter and a management type for implementing cloud resource management.
The cloud resource information is related information for describing a unique attribute of the cloud resource. The cloud resource information may include a product name of the cloud resource and a home cloud vendor. For example, the cloud resource is an elastic cloud computing product of the vendor Ayun, the cloud resource information may indicate a product name using an english abbreviation "ECS 1" of the elastic cloud computing product, and indicate a home cloud vendor using a name "Ayun" of the vendor Ayun, that is, the cloud resource information may be "Ayun. ECS 1"; the cloud resource is a cloud host of the manufacturer Byun, the product name may be indicated by using an english abbreviation "ECS 2" of the cloud host, and the home cloud manufacturer may be indicated by using a name "Byun" of the manufacturer Byun, that is, the cloud resource information may be "Byun.
The geographic parameter is an indication of the geographic location of the cloud resource. For example, the cloud resource is in the state of Hangzhou, and the regional parameter may indicate the region by using Hangzhou's full spelling "hangzhou".
The management type for implementing cloud resource management is a specific type that a user desires to manage cloud resources, and may be, for example, an operation type that the user desires to implement on cloud resources to be managed, and may include types of querying, inserting, deleting, updating, and the like.
In a specific example, assuming that the cloud resource that the user desires to manage is a cloud host located in beijing in a cloud product of a Byun manufacturer, the corresponding cloud resource information is byun.ecs, the regional parameter is cn-beijing, and the management type is "Select" (query), the corresponding cloud resource management statement may be as follows:
“Select*from Byun.ECS where region='cn-beijing'”;
the cloud resource management request may further include user account information. The user account information is used to uniquely identify the user who triggered the request for managing resources, and may be a user account name, a user account ID, or other identification. The management authority of the user on the cloud resources can be inquired through the user account information. The management authority includes resource use authority of the cloud resource which can be used by the user, resource operation authority of the cloud resource which can be operated by the user, and the like.
By providing the access service and receiving the cloud resource management request conforming to the preset grammar type, other steps can be combined, and a user can manage any one cloud resource in the hybrid cloud only through one cloud resource management request conforming to the preset grammar type in the application mode of the hybrid cloud, so that unified management of different cloud resources is realized.
After receiving the cloud resource management request conforming to the preset grammar type, entering:
step S3200, analyzing the cloud resource management request, and acquiring cloud resource management information of the target cloud.
The cloud resource management request which accords with the preset grammar type is a related request which is triggered by a user and expects to manage cloud resources, the cloud resource management request is analyzed, cloud resource management information of a target cloud which the user expects to manage can be obtained, and the target cloud is correspondingly managed in combination with other steps, so that the user can manage any one cloud resource in the mixed cloud only through one cloud resource management request which accords with the preset grammar type, and unified management of different cloud resources is achieved.
In one example, at least a cloud resource management statement is included in the cloud resource management request. The cloud resource management statement at least comprises cloud resource information of the target cloud, a region parameter and a management type for implementing cloud resource management. The target cloud is a cloud resource that the user desires to manage. The cloud resource information and the geographic parameter of the target cloud and the management type for implementing the cloud resource management are described above, and are not described herein again.
In this example, analyzing the cloud resource management request to obtain the cloud resource management information of the target cloud may include: and according to the preset grammar type, carrying out grammar analysis on the cloud resource management statement to acquire cloud resource management information corresponding to the target application program interface.
And the target application program interface is an application program interface supported by a target cloud which a user desires to manage.
The cloud resource management information at least comprises cloud resource information of the target cloud, a region parameter and a calling interface indication corresponding to the management type.
The cloud resource management statement is analyzed, cloud resource information and region parameters of a target cloud and a management type for implementing cloud resource management, which are included in the cloud resource management statement, can be extracted, a target application program interface supported by the target cloud is determined according to the cloud resource information, a specific application program interface to be called is determined according to the management type, and a corresponding calling interface instruction is obtained and used for instructing to call the application program interface of the target cloud for implementing the management type.
For example, assume a cloud resource management statement: select from byun. ecs where region ═ cn-beijing'; performing syntax analysis on the cloud resource management statement, wherein the acquired cloud resource management information comprises cloud resource information Byun.ECS (name of cloud manufacturer is Byun, name of product is ECS), region parameters cn-beijing and calling interface indication corresponding to the management type: desscribes interfaces.
Through syntax analysis of the received cloud resource management statements, cloud resource management information corresponding to the target application program interface is obtained, a user can simply and effectively provide relevant information required for cloud resource management by inputting the cloud resource management statements conforming to the preset syntax type, and through combination of subsequent steps, different types of cloud resources are managed based on the cloud resource management statements of the single syntax type, so that the operation complexity is reduced, and the cloud resource management efficiency is improved.
In another example, the cloud resource management request may further include user account information. The user account information is used to uniquely identify the user who triggered the request for managing resources, and may be a user account name, a user account ID, or other identification.
In this example, analyzing the cloud resource management request to obtain cloud resource management information of the target cloud may further include: steps S3210a-S3220 a.
Step S3210a, determining whether the corresponding user has the management authority of the target cloud according to the user account information and the cloud resource information.
The management rights may include one of resource usage rights and resource operation rights. The resource usage right is a right of whether the user allows the corresponding cloud resource to be used, and may specifically be, for example, whether the user purchases the corresponding cloud resource, or whether the user purchases the corresponding cloud resource within a validity period. The resource operation authority is an authority for a user to allow the user to operate the corresponding cloud resource, and may specifically be, for example, whether the user allows a related resource management operation on the cloud resource, or a specific operation authority range for supporting the user to manage the cloud resource.
Step S3220a, when it is determined that the user has the management right of the target cloud resource, obtains a cloud resource management result according to the cloud resource management information.
In this example, a specific implementation of obtaining the cloud resource management result according to the cloud resource management information may be as described later, and is not described herein again. After the cloud resource management information of the target cloud is obtained, the corresponding user is judged to have the management authority of the target cloud according to the user account information and the cloud resource information, and then the corresponding cloud resource management result is obtained according to the cloud resource management information, so that an illegal user without the management authority of the target cloud can carry out cloud resource management on the target cloud, and the safety of cloud resource management is improved.
In another example, analyzing the cloud resource management request to obtain cloud resource management information of the target cloud may further include: steps S3210b-S3220 b.
Step S3210b, according to the preset syntax type, performing syntax check on the cloud resource management statement, and determining whether the cloud resource management statement has a syntax problem.
In this example, the specific implementation manner of performing syntax checking on the cloud resource management statement corresponds to a preset syntax type, which is not illustrated here.
Step S3220b, when it is determined that there is no syntax problem in the cloud resource management statement, acquires cloud resource management information.
In this example, the specific implementation of obtaining the cloud resource management information may be described in other parts in this embodiment, and is not described herein again.
It should be understood that when it is determined that the syntax problem exists in the cloud resource management statement, the cloud resource management information is not acquired any more, and the cloud resource management is implemented according to the cloud resource management information. In practical application, a grammar error prompt can be sent to prompt that a grammar problem exists in a cloud resource management statement input by a user, so that the cloud resource management statement used for inputting a correct cloud resource management statement without the grammar problem is guided, and the processing efficiency is improved.
And carrying out grammar check on the cloud resource management statement according to the preset grammar type, and acquiring the cloud resource management information from the cloud resource management statement when the cloud resource management statement is determined to have no grammar problem, so that the problem that the subsequent cloud resource management is abnormal because the cloud resource management statement with a grammar error acquires the corresponding cloud resource management information can be avoided, and the efficiency of cloud resource management is improved.
After the cloud resource management information of the target cloud is obtained, the following steps are carried out:
step S3300, according to the cloud resource management information, determining a target application program interface and target metadata information of the target cloud, and according to the target metadata information, calling the target application program interface, executing corresponding cloud resource management operation on the target cloud, and obtaining a cloud resource management result conforming to a preset syntax type.
The cloud resource management information at least comprises cloud resource information, region parameters and calling interface instructions corresponding to management types of the target cloud, a target application program interface and target metadata information of the target cloud can be determined according to the cloud resource management information, and the target application program interface can be called according to the target metadata information to perform corresponding cloud resource management operation on the target cloud, so that a cloud resource management result conforming to a preset syntax type can be obtained, a user can manage any cloud resource in the mixed cloud only through a cloud resource management request conforming to the preset syntax type, and unified management of different cloud resources is achieved.
In an example, the cloud resource management information at least includes cloud resource information of the target cloud, a region parameter, and a call interface indication corresponding to a management type for implementing cloud resource management, which may be specifically described above and will not be described herein again.
In this example, determining the target application program interface and the target metadata information of the target cloud according to the cloud resource management information may include: steps S3310-S3320.
Step S3310, according to the cloud resource management information, inquiring in the metadata warehouse, and determining the target application program interface and the target metadata format supported by the target application program interface.
And the metadata warehouse stores metadata formats supported by application program interfaces supported by different cloud resources. In particular, the metadata repository is maintained in this example in the form of a database. The metadata formats correspond to application program interfaces supported by the cloud resources, i.e., different cloud resource-supported application program interfaces correspond to different metadata formats. The metadata format at least comprises a cloud resource information field, an application program interface name field, an application program interface parameter field and an interface call return value field.
The cloud resource information field is used for describing the cloud resource information of the corresponding cloud resource. The cloud resource information may include at least a home cloud vendor and a cloud product name as previously described.
The application program interface name field is used for describing the name of a specific application program interface supported by the corresponding cloud resource to be called.
The application program interface parameter field is used for describing an interface calling parameter of an application program interface supported by the corresponding cloud resource. For example, the application interface parameter field may describe a regional parameter of the cloud resource.
The interface call return value field is used for describing an interface return value for calling an application program interface supported by the corresponding cloud resource. By setting the metadata warehouse and inquiring in the metadata warehouse according to the cloud resource management information, the target application program interface and the target metadata format supported by the target application program interface can be determined according to the cloud resource information of the target cloud in the cloud resource management information, and the target application program interface and the target metadata format supported by the target application program interface do not need to be determined in real time according to crawling or searching of the cloud management resource information, so that the cloud resource management efficiency is further improved.
Step S3320, generating target metadata information according to the cloud resource management information and the target metadata format.
For example, the acquired cloud resource management information includes cloud resource information "byun. ecs" of the target cloud, a region parameter "cn-beijing", and a call interface indication corresponding to the management type "Select": DescripteInstances interface;
the format of the target metadata inquired in the metadata warehouse is as follows:
Provider:XXXX;
Product:XXXX;
AP:XXXXXX;
Parameters:{XXXXX};
response:{XXXX};
the Provider is a cloud manufacturer information field in the cloud resource information field, the Product is a cloud Product name information field in the cloud resource information field, the AP is an application program interface name field, the Parameters are application program interface parameter fields, and the response is an interface call return value field.
Generating the target metadata information as follows:
Provider:Byun;
Product:ECS;
AP:DescrieInstances;
Parameters:{region:cn-beijing};
response:{list[]};。
in another example, invoking a target application program interface according to the target metadata information, performing a corresponding cloud resource management operation on the target cloud, and obtaining a cloud resource management result that conforms to the preset syntax type may include: steps S3330-S3340.
Step S3330, according to the target metadata information, calling a target application program interface, executing corresponding cloud resource management operation on the target cloud, and acquiring a corresponding interface calling return value.
In a more specific example, invoking a target application program interface according to the target metadata information, performing a corresponding cloud resource management operation on the target cloud, and obtaining a corresponding interface call return value may include: steps S3331-S3332.
Step S3331, according to the target metadata information, calling an application program interface proxy layer, and carrying out corresponding cloud resource management operation on the target cloud by proxy calling the target application program interface through the application program interface proxy layer.
The application program interface agent layer integrates calling services of application program interfaces supported by different cloud resources, routing can be carried out on the basis of target metadata reflecting cloud resource management requirements of users through the application program interface agent layer, and the corresponding interface calling services are obtained by calling the designated application program interfaces in the designated target cloud resources. For example, the application program interface agent layer may be an OpenAPI agent, an OpenAPI (development platform) service that encapsulates different cloud resources in the OpenAPI agent layer, an agent layer is unified and abstracted, and an interface that maps and converts different cloud resources may be routed to corresponding cloud resources through the unified agent layer, for example, an OpenAPI of different cloud resources such as AWS, ECS, and an OpenStack-based private cloud may be integrated in the OpenAPI agent layer.
Step S3332, obtaining the proxy call result value returned by the application program interface proxy layer as the interface call return value.
The corresponding interface calling return value is obtained by the proxy calling of the target application program interface through the application program interface proxy layer of the calling service of the application program interface supported by different cloud resources, routing or searching can be carried out in real time without complex algorithms, and the corresponding target application program interface can be called, so that the management efficiency of cloud resource management is correspondingly improved.
After obtaining the corresponding interface call return value, entering:
step S3340, according to the preset grammar type, converting the interface call return value into a corresponding cloud resource management result.
After the interface call return value is obtained, the interface call return value can be analyzed, and the interface call return value is rendered and converted into a cloud resource management result which is in accordance with the preset grammar type and provided for a user, so that the user can intuitively obtain the cloud resource management result based on the preset grammar type without further analysis, the cloud resource management efficiency of the user is improved, and better cloud resource management experience is provided for the user.
For example, based on the previous example of the generated target metadata information, the descriptor interfaces are called to query the cloud resources byun.ecs, and assuming that the interface call return value is a non-empty list including a specific cloud host list, the cloud host list rendered to conform to a preset syntax type may be parsed and returned to the user.
In the cloud resource management method provided in this embodiment, the attached drawings and examples are combined to explain that, in the application mode of the hybrid cloud, a user may not need to learn corresponding product characteristics and independently maintain and use for different cloud products, and may manage any one cloud resource in the hybrid cloud only through a cloud resource management request conforming to a preset syntax type, so as to implement unified management on different cloud resources, and greatly reduce the learning, research, development, and operation and maintenance costs of the user.
< cloud resource management device >
In this embodiment, a cloud resource management apparatus 4000 is further provided, as shown in fig. 4, the cloud resource management apparatus 4000 includes a receiver 4100, an analyzer 4200, and an executor 4300, which are used to implement the cloud resource management method provided in this embodiment, and are not described herein again.
The receiver 4100 may be configured to receive a cloud resource management request conforming to a preset syntax type.
The analyzer 4200 may be configured to analyze the cloud resource management request and obtain cloud resource management information of the target cloud.
In one example, the cloud resource management request includes at least a cloud resource management statement; the cloud resource management statement at least comprises cloud resource information of the target cloud, a region parameter and a management type for implementing cloud resource management.
In this example, the parser 4200 may include a syntax parsing module 4210.
The syntax parsing module 4210 may be configured to perform syntax parsing on the cloud resource management statement according to a preset syntax type, and acquire cloud resource management information corresponding to the target application program interface.
The cloud resource management information at least comprises cloud resource information of the target cloud, a region parameter and a calling interface indication corresponding to the management type.
In another example, the cloud resource management request includes user account information.
In this example, analyzer 4200 may also include a rights module 4220.
The permission module 4220 may be further configured to determine whether the corresponding user has a management permission of the target cloud according to the user account information and the cloud resource information; and the method can be used for acquiring the cloud resource management result according to the cloud resource management information when the user is determined to have the management right of the target cloud resource.
In this example, a specific implementation of obtaining the cloud resource management result according to the cloud resource management information may be as described later, and is not described herein again.
The management authority at least comprises one of resource use authority and resource operation authority.
In yet another example, the analyzer 4200 may further include a syntax checking module 4230.
In this example, the syntax checking module 4230 may be further configured to perform syntax checking on the cloud resource management statement according to a preset syntax type, and determine whether the cloud resource management statement has a syntax problem.
The syntax parsing module 4210 may be configured to obtain the cloud resource management information when it is determined that the cloud resource statement does not have a syntax problem.
The executor 4300 may be configured to determine a target application program interface and target metadata information of the target cloud according to the cloud resource management information, and call the target application program interface according to the target metadata information, perform a corresponding cloud resource management operation on the target cloud, and obtain a cloud resource management result that meets a preset syntax type.
In one example, the cloud resource management information includes at least cloud resource information of the target cloud, a regional parameter, and a call interface indication corresponding to a management type implementing cloud resource management.
In this example, the executor 4300 further includes a metadata repository 4310, and the metadata repository 4310 stores therein metadata formats supported by application program interfaces supported by different cloud resources.
The metadata format at least comprises a cloud resource information field, an application program interface name field, an application program interface parameter field and an interface call return value field.
In this example, the executor 4300 may be configured to query the metadata repository according to the cloud resource management information to determine a target application program interface and a target metadata format supported by the target application program interface; and may be configured to generate the target metadata information according to the cloud resource management information and the target metadata format.
In another example, the executor 4300 may be configured to call a target application program interface according to the target metadata information, perform a corresponding cloud resource management operation on the target cloud, and obtain a corresponding interface call return value; and the interface call return value can be converted into a corresponding cloud resource management result according to the preset grammar type.
In a more specific example, the executor 4300 further includes an application program interface proxy layer 4320.
In this example, the executor 4300 may be configured to invoke the application program interface proxy layer 4320 according to the target metadata information, and proxy to invoke the target application program interface through the application program interface proxy layer 4320, so as to implement corresponding cloud resource management operation on the target cloud.
The application program interface proxy layer 4320 integrates a calling service of an application program interface supported by different cloud resources. The application program interface agent layer can perform routing based on target metadata reflecting cloud resource management requirements of the user, and call the target metadata to a specified target cloud resource and a specified application program interface to obtain corresponding interface calling service. For example, the application program interface agent layer may be an OpenAPI agent, an OpenAPI (development platform) service that encapsulates different cloud resources in the OpenAPI agent layer, an agent layer is unified and abstracted, and an interface that maps and converts different cloud resources may be routed to corresponding cloud resources through the unified agent layer, for example, an OpenAPI of different cloud resources such as AWS, ECS, and an OpenStack-based private cloud may be integrated in the OpenAPI agent layer.
In this example, the executor 4300 may also be configured to obtain a proxy call result value returned by the application program interface proxy layer 4320 as an interface call return value.
It will be appreciated by those skilled in the art that the cloud resource management apparatus 4000 may be implemented in various ways. For example, the cloud resource management apparatus 4000 may be implemented by an instruction configuration processor. For example, the cloud resource management apparatus 4000 may be implemented by storing instructions in a ROM and reading the instructions from the ROM into a programmable device when a device is started. For example, cloud resource management device 4000 may be consolidated into a dedicated device (e.g., ASIC). The cloud resource management apparatus 4000 unit may be divided into units independent of each other, or they may be implemented by being combined together. The cloud resource management apparatus 4000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
In this embodiment, the cloud resource management apparatus 4000 may be a central management apparatus that establishes a connection with a plurality of cloud resources, or the cloud resource management apparatus 4000 may be an application, a software product, a patch, an insert, or the like that is loaded or downloaded and installed in the central management apparatus that establishes a connection with a plurality of cloud resources, and the cloud resource management apparatus 4000 may be further packaged in a software development kit form (e.g., SDK) for download call to manage the cloud resources.
< cloud resource management apparatus >
In this embodiment, there is further provided a cloud resource management device 5000, as shown in fig. 5, including:
a memory 5100 that may be used to store executable instructions;
the processor 5200 may be configured to operate the cloud resource management apparatus according to the control of the executable instructions to perform the cloud resource management method as provided in this embodiment.
In this embodiment, the cloud resource management device 5000 may be the management device 1100 shown in fig. 1.
The cloud resource management apparatus 5000 may further include other devices, for example, a management apparatus 1100 shown in fig. 1, and may further include an input device, a communication device, an interface device, a display device, and the like.
< readable storage Medium >
In this embodiment, a readable storage medium is further provided, where a computer program that can be read and executed by a computer is stored in the readable storage medium, and the computer program is used to execute the cloud resource management method provided in this embodiment when the computer program is read and executed by the computer.
In this embodiment, the readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. A readable storage medium as used herein is not to be construed as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The cloud resource management method, apparatus, device, and readable storage medium provided in this embodiment have been described with reference to the accompanying drawings and examples, and may receive a cloud resource management request that is triggered by a user and conforms to a preset syntax type, analyze the cloud resource management request, obtain cloud resource management information of a target cloud, call a target application program interface according to the cloud resource management information, and perform corresponding cloud resource management operations on the target cloud, so as to obtain a cloud resource management result conforming to the preset syntax type, so that the user may manage any one cloud resource in a hybrid cloud only through one cloud resource management request conforming to the preset syntax type without learning corresponding product characteristics and maintaining and using independently for different cloud products in an application mode of the hybrid cloud, thereby implementing unified management of different cloud resources, greatly reducing the learning, research and development, operation and maintenance costs of users.
< second embodiment >
In the embodiment, a cloud resource management method is provided. The method is implemented by a cloud resource management device comprising a receiver, an analyzer, and an executor.
The cloud resource management method comprises the following steps: steps S6100-S6300.
In step S6100, the cloud resource management request conforming to the preset syntax type is received by the receiver.
The access service is provided through the receiver, the cloud resource management request conforming to the preset grammar type is received, other steps can be combined, and a user can manage any one cloud resource in the hybrid cloud only through one cloud resource management request conforming to the preset grammar type in the application mode of the hybrid cloud, so that unified management of different cloud resources is realized.
After receiving, by a receiver, a cloud resource management request conforming to a preset syntax type, entering:
step S6200, the cloud resource management request is analyzed through the analyzer, and cloud resource management information of the target cloud is obtained.
The cloud resource management request is analyzed through the analyzer, the cloud resource management information of the target cloud which the user desires to manage can be obtained, and the target cloud is correspondingly managed in combination with other steps, so that the user can manage any one cloud resource in the mixed cloud only through one cloud resource management request which accords with the preset syntax type, and unified management of different cloud resources is achieved.
In one example, the cloud resource management request includes at least a cloud resource management statement; the cloud resource management statement at least comprises cloud resource information of the target cloud, a region parameter and a management type for implementing cloud resource management.
In this example, analyzing, by the analyzer, the cloud resource management request to obtain the cloud resource management information of the target cloud may include: and according to the preset grammar type, carrying out grammar analysis on the cloud resource management statement to acquire cloud resource management information corresponding to the target application program interface.
The cloud resource management information at least comprises cloud resource information of the target cloud, a region parameter and a calling interface indication corresponding to the management type.
The received cloud resource management statement is parsed through the analyzer, the cloud resource management information corresponding to the target application program interface is obtained, the user can simply and effectively provide relevant information required by cloud resource management through inputting the cloud resource management statement conforming to the preset grammar type, the follow-up steps are combined, different types of cloud resources are managed based on the cloud resource management statement of the single grammar type, the operation complexity is reduced, and the cloud resource management efficiency is improved.
In another example, the cloud resource management request includes user account information.
In this example, analyzing, by the analyzer, the cloud resource management request to obtain cloud resource management information of the target cloud, may further include: steps S6210a-S6220 a.
Step S6210a, determining whether the corresponding user has the management authority of the target cloud according to the user account information and the cloud resource information.
The management authority at least comprises one of resource use authority and resource operation authority.
Step S6220a, when it is determined that the user has the management right of the target cloud resource, acquiring a cloud resource management result according to the cloud resource management information.
In this example, a specific implementation of obtaining the cloud resource management result according to the cloud resource management information may be as described later, and is not described herein again.
After the cloud resource management information of the target cloud is obtained, the analyzer judges that the corresponding user has the management authority of the target cloud according to the user account information and the cloud resource information, and then obtains the corresponding cloud resource management result according to the cloud resource management information, so that an illegal user without the management authority of the target cloud can carry out cloud resource management on the target cloud, and the safety of cloud resource management is improved.
In another example, analyzing the cloud resource management request through the analyzer to obtain cloud resource management information of the target cloud may further include: steps S6210b-S6220 b.
Step 6210b, according to the preset grammar type, performing grammar check on the cloud resource management statement, and determining whether the cloud resource management statement has grammar problems.
Step S6220b, when it is determined that there is no syntax problem in the cloud resource statement, acquiring cloud resource management information.
In this example, the specific implementation of obtaining the cloud resource management information may be described in other parts in this embodiment, and is not described herein again.
It should be understood that when it is determined that the syntax problem exists in the cloud resource management statement, the cloud resource management information is not acquired any more, and the cloud resource management is implemented according to the cloud resource management information. In practical application, a grammar error prompt can be sent to prompt that a grammar problem exists in a cloud resource management statement input by a user, so that the cloud resource management statement used for inputting a correct cloud resource management statement without the grammar problem is guided, and the processing efficiency is improved.
And carrying out grammar check on the cloud resource management statement according to the preset grammar type, and acquiring the cloud resource management information from the cloud resource management statement when the cloud resource management statement is determined to have no grammar problem, so that the problem that the subsequent cloud resource management is abnormal because the cloud resource management statement with a grammar error acquires the corresponding cloud resource management information can be avoided, and the efficiency of cloud resource management is improved.
After the cloud resource management information of the target cloud is acquired through the analyzer, the following steps are entered:
step S6300, determining a target application program interface and target metadata information of the target cloud according to the cloud resource management information through an executor, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to a preset syntax type.
Through the executor, a target application program interface and target metadata information of the target cloud can be determined according to the cloud resource management information, and the target application program interface can be called according to the target metadata information to execute corresponding cloud resource management operation on the target cloud, so that a cloud resource management result conforming to a preset grammar type can be obtained, a user can manage any one cloud resource in the mixed cloud only through one cloud resource management request conforming to the preset grammar type, and unified management on different cloud resources is achieved.
In one example, a metadata repository is further included in the executor, and the metadata repository stores metadata formats supported by application program interfaces supported by different cloud resources. The metadata format at least comprises a cloud resource information field, an application program interface name field, an application program interface parameter field and an interface call return value field.
In this example, determining, by the executor and according to the cloud resource management information, the target application program interface and the target metadata information of the target cloud may include: steps S6310-S6320.
Step S6310, according to the cloud resource management information, querying in a metadata warehouse, and determining a target application program interface and a target metadata format supported by the target application program interface.
By setting the metadata warehouse and inquiring in the metadata warehouse according to the cloud resource management information, the target application program interface and the target metadata format supported by the target application program interface can be determined according to the cloud resource information of the target cloud in the cloud resource management information, and the target application program interface and the target metadata format supported by the target application program interface do not need to be determined in real time according to crawling or searching of the cloud management resource information, so that the cloud resource management efficiency is further improved.
Step S6320, generate target metadata information according to the cloud resource management information and the target metadata format.
In another example, invoking, by an executor, a target application program interface according to target metadata information, and performing a corresponding cloud resource management operation on a target cloud to obtain a cloud resource management result that conforms to a preset syntax type may include: steps S6330-S6340.
Step S6330, according to the target metadata information, calling a target application program interface, executing corresponding cloud resource management operation on the target cloud, and acquiring a corresponding interface calling return value.
In a more specific example, invoking a target application program interface according to the target metadata information, performing a corresponding cloud resource management operation on the target cloud, and obtaining a corresponding interface call return value may include: steps S6331-S6333.
Step S6331, according to the target metadata information, an application program interface proxy layer is called, and a target application program interface is called in a proxy mode through the application program interface proxy layer, so that corresponding cloud resource management operation is executed on the target cloud.
The application program interface agent layer integrates calling services of application program interfaces supported by different cloud resources, routing can be carried out on the basis of target metadata reflecting cloud resource management requirements of users through the application program interface agent layer, and the corresponding interface calling services are obtained by calling the designated application program interfaces in the designated target cloud resources. For example, the application program interface agent layer may be an OpenAPI agent, an OpenAPI (development platform) service that encapsulates different cloud resources in the OpenAPI agent layer, an agent layer is unified and abstracted, and an interface that maps and converts different cloud resources may be routed to corresponding cloud resources through the unified agent layer, for example, an OpenAPI of different cloud resources such as AWS, ECS, and an OpenStack-based private cloud may be integrated in the OpenAPI agent layer.
In step S6332, the proxy call result value returned by the application program interface proxy layer is acquired as the interface call return value. The corresponding interface calling return value is obtained by the proxy calling of the target application program interface through the application program interface proxy layer of the calling service of the application program interface supported by different cloud resources, routing or searching can be carried out in real time without complex algorithms, and the corresponding target application program interface can be called, so that the management efficiency of cloud resource management is correspondingly improved.
After obtaining the corresponding interface call return value, entering:
step S6340, according to the preset grammar type, converting the interface call return value into a corresponding cloud resource management result.
After the interface call return value is obtained, the interface call return value can be analyzed, and the interface call return value is rendered and converted into a cloud resource management result which is in accordance with the preset grammar type and provided for a user, so that the user can intuitively obtain the cloud resource management result based on the preset grammar type without further analysis, the cloud resource management efficiency of the user is improved, and better cloud resource management experience is provided for the user.
The cloud resource management method provided in this embodiment has been described above with reference to the drawings and examples, and is implemented by a cloud resource management device, so that in an application mode of a hybrid cloud, a user can manage any one cloud resource in the hybrid cloud only through a cloud resource management request conforming to a preset syntax type without learning corresponding product characteristics and independently maintaining and using for different cloud products, thereby implementing unified management on different cloud resources, and greatly reducing learning, research, development, and operation and maintenance costs of the user.
< third embodiment >
In this embodiment, a cloud resource management system 6000 is further provided, as shown in fig. 6, including:
multiple cloud resources 6100, shown in fig. 1 as 2 cloud resources 6100, cloud resources 6100A and 6100B, respectively.
Cloud resources 6100 may be a public cloud. A public cloud generally refers to cloud resources provided by third party providers to users that can be used over the internet. The core attribute of the public cloud is shared resource service, and users can register and acquire the use permission of the public cloud for free or low cost. The public cloud may include clouds and the like provided by various provider cloud services. Cloud resources 6100 may also be private clouds. Private clouds are typically cloud resources built for individual use by one customer that can provide the most effective control over data, security, and quality of service. For example, the private cloud may be a cloud platform that is self-developed based on openstack (open source cloud computing management platform) for user-specific needs.
When the user uses a plurality of cloud resources 6100, an application mode of the hybrid cloud is adopted, and the application mode of the hybrid cloud may be an application mode in which a plurality of public clouds are used in a mixed manner, an application mode in which a plurality of private clouds are used in a mixed manner, or an application mode in which a plurality of public clouds and a plurality of private clouds are used in a mixed manner. For example, the cloud resource management system 6000 includes 2 cloud resources 6100, where the cloud resources 6100A are elastic cloud computing products of a vendor, and the cloud resources 6100B are private cloud platforms developed by the openstack.
In this embodiment, the number of cloud resources 6100 may be determined according to an actual scenario, and is not limited herein.
The cloud resource management apparatus 4000 or the cloud resource management device 5000 provided in this embodiment. The cloud resource management apparatus 4000 or the cloud resource management device 5000 is configured to manage the cloud resources 6100, and the cloud resource management apparatus 4000 or the cloud resource management device 5000 may be implemented by a server.
< example >
The cloud resource management method implemented by the cloud resource management system 6000 provided in this embodiment will be further described below with reference to fig. 7.
In this example, the cloud resource management system 6000 includes a plurality of cloud resources 6100 and a cloud resource management apparatus 4000, as shown in fig. 7. Assume in this example that cloud management system 6000 includes two cloud resources, respectively cloud resource 6100A and cloud resource 6100B.
As shown in fig. 7, the cloud resource management method includes: steps S701 to S709.
Step S701, receiving a cloud resource management statement.
Step S702, according to a preset grammar type, carrying out grammar check on the cloud resource management statement to determine whether the cloud resource management statement has a grammar problem, if the cloud resource management statement does not have the grammar problem, entering step S703, and if the cloud resource management statement has the grammar problem, entering step S701.
Step S703 is to perform syntax parsing on the cloud resource management statement according to a preset syntax type, and acquire cloud resource management information corresponding to an application program interface supported by the target cloud.
Step S704, determining whether the corresponding user has the management authority of the target cloud according to the user account information and the cloud resource information, if so, entering step S705, otherwise, entering step S701.
Step S705, according to the cloud resource management information, querying in a metadata repository, and determining a target application program interface and a target metadata format supported by the target application program interface.
Step S706, generating target metadata information according to the cloud resource management information and the target metadata format.
And step S707, according to the target metadata information, the target application program interface is invoked through the application program interface proxy layer in a proxy mode, and corresponding cloud resource management operation is executed on the target cloud.
Step S708, a proxy call result value returned by the application program interface proxy layer is obtained as an interface call return value.
Step S709, according to the preset syntax type, converts the interface call return value into a corresponding cloud resource management result.
In this example, when the user needs to query the cloud host of the cloud resource 6100A in the beijing area, the cloud resource management statement may be input to the cloud resource management apparatus 4000 as follows: select from ayun. ecs where region ═ cn-beijing'; triggering the cloud resource management device 4000, and performing syntax checking and syntax parsing on the cloud resource management statement according to the preset syntax type through the steps S701 to S709 to obtain cloud resource management information, including: ecs, a region parameter cn-beijing, and a call interface indication corresponding to the management type "Select" of the target cloud: DescripteInstances interface; then, inquiring a target metadata interface indication and a target application program interface in a metadata warehouse according to the cloud resource management information, generating corresponding target metadata information, and calling the target application program interface through an application program interface proxy based on the target metadata information to obtain a cloud host List finally conforming to a preset syntax type;
when the user needs to query the cloud host of the cloud resource 6100B in the hangzhou region, similarly, the cloud resource management statement may be input to the cloud resource management apparatus 4000 as follows: select from byun. ecs where region ═ cn-hangzhou'; triggering the cloud resource management device 4000, and performing syntax checking and syntax parsing on the cloud resource management statement according to the preset syntax type through the steps S701 to S709 to obtain cloud resource management information, including: ecs, a region parameter cn-hangzhou, and a calling interface indication corresponding to the management type "Select" of the target cloud: DescripteInstances interface; then, inquiring a target metadata interface indication and a target application program interface in a metadata warehouse according to the cloud resource management information, generating corresponding target metadata information, and calling the target application program interface through an application program interface proxy based on the target metadata information to obtain a cloud host List finally conforming to a preset syntax type;
therefore, in the embodiment, in the application mode of the hybrid cloud, a user does not need to learn corresponding product characteristics and independently maintain and use different cloud products, and only needs to manage any one cloud resource in the hybrid cloud through a cloud resource management request conforming to a preset grammar type, so that unified management of different cloud resources is realized, and the learning, research and development, operation and maintenance costs of the user are greatly reduced.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart 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 instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (16)

1. A cloud resource management method, comprising:
receiving a cloud resource management request matched with a preset grammar type;
analyzing the cloud resource management request to acquire cloud resource management information of a target cloud;
and according to the cloud resource management information, determining a target application program interface and target metadata information of the target cloud, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type.
2. The method of claim 1, wherein the cloud resource management request includes at least a cloud resource management statement; the cloud resource management statement at least comprises cloud resource information, region parameters and a management type for implementing cloud resource management of the target cloud; the analyzing the cloud resource management request to obtain the cloud resource management information of the target cloud includes:
according to the preset grammar type, carrying out grammar analysis on the cloud resource management statement to acquire cloud resource management information corresponding to the target application program interface; the cloud resource management information at least comprises cloud resource information of the target cloud, a region parameter and a calling interface indication corresponding to the management type.
3. The method of claim 2, wherein the cloud resource management request includes user account information; the analyzing the cloud resource management request to obtain the cloud resource management information of the target cloud further comprises:
determining whether the corresponding user has the management authority of the target cloud or not according to the user account information and the cloud resource information; the management authority at least comprises one of resource use authority and resource operation authority;
and when the user is determined to have the management right of the target cloud resource, acquiring the cloud resource management result according to the cloud resource management information.
4. The method of claim 2, wherein analyzing the cloud resource management request to obtain cloud resource management information of a target cloud further comprises:
according to the preset grammar type, carrying out grammar check on the cloud resource management statement to determine whether the cloud resource management statement has a grammar problem;
and when the fact that the syntax problem does not exist in the cloud resource statement is determined, the cloud resource management information is obtained.
5. The method of claim 1, wherein the cloud resource management information at least includes cloud resource information of the target cloud, a regional parameter, and a call interface indication corresponding to a management type of implementing cloud resource management;
the determining the target application program interface and the target metadata information of the target cloud according to the cloud resource management information includes:
inquiring in a metadata warehouse according to cloud resource management information, and determining the target application program interface and a target metadata format supported by the target application program interface; the metadata warehouse stores metadata formats supported by application program interfaces supported by different cloud resources; the metadata format at least comprises a cloud resource information field, an application program interface name field, an application program interface parameter field and an interface call return value field;
and generating the target metadata information according to the cloud resource management information and the target metadata format.
6. The method of claim 1,
the calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type includes:
calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a corresponding interface calling return value;
and converting the interface call return value into a corresponding cloud resource management result according to the preset grammar type.
7. The method according to claim 6, wherein the calling the target application program interface according to the target metadata information, performing a corresponding cloud resource management operation on the target cloud, and obtaining a corresponding interface call return value comprises:
calling an application program interface proxy layer according to the target metadata information, and carrying out corresponding cloud resource management operation on the target cloud by proxy calling the target application program interface through the application program interface proxy layer; the application program interface agent layer integrates calling services of application program interfaces supported by different cloud resources;
and acquiring a proxy call result value returned by the application program interface proxy layer as the interface call return value.
8. The cloud resource management method is implemented by a cloud resource management device, wherein the cloud resource management device comprises a receiver, an analyzer and an executor; the method comprises the following steps:
receiving, by the receiver, a cloud resource management request that conforms to a preset syntax type;
analyzing the cloud resource management request through the analyzer to obtain cloud resource management information of a target cloud;
and determining a target application program interface and target metadata information of the target cloud according to the cloud resource management information through the executor, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type.
9. The method according to claim 8, wherein the executor further comprises a metadata repository, and the metadata repository stores metadata formats supported by application program interfaces supported by different cloud resources; the metadata format at least comprises a cloud resource information field, an application program interface name field, an application program interface parameter field and an interface call return value field;
the determining, by the executor, a target application program interface and target metadata information of the target cloud according to the cloud resource management information, further comprising:
inquiring in the metadata warehouse according to cloud resource management information, and determining the target application program interface and a target metadata format supported by the target application program interface;
and generating the target metadata information according to the cloud resource management information and the target metadata format.
10. The method according to claim 8, wherein the executor further comprises an application program interface proxy layer, and the application program interface proxy layer integrates call services of application program interfaces supported by different cloud resources;
the step of calling the target application program interface according to the target metadata information through the executor, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type includes:
calling the application program interface proxy layer according to the target metadata information, and proxy-calling the target application program interface through the application program interface proxy layer to realize the execution of corresponding cloud resource management operation on the target cloud;
acquiring a proxy call result value returned by the application program interface proxy layer as the interface call return value;
and converting the interface call return value into a corresponding cloud resource management result according to the preset grammar type.
11. A cloud resource management apparatus, comprising:
the cloud resource management system comprises a receiver, a server and a server, wherein the receiver receives a cloud resource management request which accords with a preset grammar type;
the analyzer is used for analyzing the cloud resource management request to acquire cloud resource management information of a target cloud;
and the executor is used for determining a target application program interface and target metadata information of the target cloud according to the cloud resource management information, calling the target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and acquiring a cloud resource management result conforming to the preset syntax type.
12. The apparatus of claim 11,
the executor also comprises a metadata warehouse, and metadata formats supported by application program interfaces supported by different cloud resources are saved in the metadata warehouse; the metadata format at least comprises a cloud resource information field, an application program interface name field, an application program interface parameter field and an interface call return value field.
13. The apparatus of claim 11,
the executor also comprises an application program interface proxy layer, and the application program interface proxy layer is integrated with calling services of application program interfaces supported by different cloud resources.
14. A cloud resource management device, comprising:
a memory for storing executable instructions;
a processor configured to operate the cloud resource management device according to the control of the executable instructions to perform the method according to any one of claims 1 to 7.
15. A cloud resource management system, comprising:
a plurality of cloud resources;
the cloud resource management apparatus of any of claims 11-13, or the cloud resource management device of claim 14.
16. A readable storage medium, comprising:
the readable storage medium stores a computer program readable and executable by a computer, and the computer program is used for executing the cloud resource management method according to any one of claims 1 to 7 when the computer program is read and executed by the computer.
CN201911364716.9A 2019-12-26 2019-12-26 Cloud resource management method, device, equipment and system and readable storage medium Pending CN113055410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911364716.9A CN113055410A (en) 2019-12-26 2019-12-26 Cloud resource management method, device, equipment and system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911364716.9A CN113055410A (en) 2019-12-26 2019-12-26 Cloud resource management method, device, equipment and system and readable storage medium

Publications (1)

Publication Number Publication Date
CN113055410A true CN113055410A (en) 2021-06-29

Family

ID=76505918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911364716.9A Pending CN113055410A (en) 2019-12-26 2019-12-26 Cloud resource management method, device, equipment and system and readable storage medium

Country Status (1)

Country Link
CN (1) CN113055410A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722105A (en) * 2021-09-14 2021-11-30 百度在线网络技术(北京)有限公司 Cloud application operation method, device, equipment, medium and product
CN114143048A (en) * 2021-11-18 2022-03-04 绿盟科技集团股份有限公司 Method, device and storage medium for managing security resources

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440303A (en) * 2013-08-21 2013-12-11 曙光信息产业股份有限公司 Heterogeneous cloud storage system and data processing method thereof
CN104580302A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cloud service management system and cloud-cloud management system
CN106101258A (en) * 2016-07-08 2016-11-09 腾讯科技(深圳)有限公司 A kind of interface interchange method of mixed cloud, Apparatus and system
US9893959B1 (en) * 2014-02-05 2018-02-13 Goldman Sachs & Co. LLC Resource modeling language to specify and control the placement of resources in a cloud environment
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN109951548A (en) * 2019-03-19 2019-06-28 深信服科技股份有限公司 The management method and cloud Guan Pingtai of the resource of cloud platform
CN110557433A (en) * 2019-07-26 2019-12-10 华云超融合科技有限公司 Resource management method, platform, cloud gateway, system and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440303A (en) * 2013-08-21 2013-12-11 曙光信息产业股份有限公司 Heterogeneous cloud storage system and data processing method thereof
CN104580302A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cloud service management system and cloud-cloud management system
US9893959B1 (en) * 2014-02-05 2018-02-13 Goldman Sachs & Co. LLC Resource modeling language to specify and control the placement of resources in a cloud environment
CN106101258A (en) * 2016-07-08 2016-11-09 腾讯科技(深圳)有限公司 A kind of interface interchange method of mixed cloud, Apparatus and system
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN109951548A (en) * 2019-03-19 2019-06-28 深信服科技股份有限公司 The management method and cloud Guan Pingtai of the resource of cloud platform
CN110557433A (en) * 2019-07-26 2019-12-10 华云超融合科技有限公司 Resource management method, platform, cloud gateway, system and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722105A (en) * 2021-09-14 2021-11-30 百度在线网络技术(北京)有限公司 Cloud application operation method, device, equipment, medium and product
CN114143048A (en) * 2021-11-18 2022-03-04 绿盟科技集团股份有限公司 Method, device and storage medium for managing security resources
CN114143048B (en) * 2021-11-18 2023-09-26 绿盟科技集团股份有限公司 Method, device and storage medium for managing safety resources

Similar Documents

Publication Publication Date Title
US10839011B2 (en) Application programing interface document generator
US10013458B2 (en) Detecting logical relationships based on structured query statements
US20180316551A1 (en) Portable instance provisioning framework for cloud services
JP2017535854A (en) JSON style sheet language conversion
US11093222B2 (en) Generating interfaces from annotated entity definitions for developing applications
TW201439792A (en) System and method for accessing database
US11150892B2 (en) Software versioning for network connected devices
CN110555030A (en) SQL statement processing method and device
CN111563257B (en) Data detection method and device, computer readable medium and terminal equipment
CN111563015B (en) Data monitoring method and device, computer readable medium and terminal equipment
CN111176859A (en) Service calling method and device and electronic equipment
CN113055410A (en) Cloud resource management method, device, equipment and system and readable storage medium
CN111708753A (en) Method, device and equipment for evaluating database migration and computer storage medium
CN113760722A (en) Test system and test method
CN115599386A (en) Code generation method, device, equipment and storage medium
US11194602B2 (en) Runtime execution of entities and services in an application object runtime environment
CN114153473A (en) Module integration method, device, storage medium and electronic equipment
US10372760B2 (en) Building queries directed to objects hosted on clouds
US11093220B2 (en) Generating interfaces from data and service definitions for developing applications
CN114996554A (en) Database query method and device, storage medium and electronic equipment
CN111488286B (en) Method and device for independently developing Android modules
CN113468342A (en) Data model construction method, device, equipment and medium based on knowledge graph
KR20180007792A (en) Apparatus and method for providing data based on cloud service
CN113032004A (en) Method, apparatus and program product for managing development jobs in a development environment
CN111125759A (en) Database login account shielding method and device and electronic equipment

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