CN113055410B - Cloud resource management method, device, equipment, system and readable storage medium - Google Patents
Cloud resource management method, device, equipment, system and readable storage medium Download PDFInfo
- Publication number
- CN113055410B CN113055410B CN201911364716.9A CN201911364716A CN113055410B CN 113055410 B CN113055410 B CN 113055410B CN 201911364716 A CN201911364716 A CN 201911364716A CN 113055410 B CN113055410 B CN 113055410B
- Authority
- CN
- China
- Prior art keywords
- resource management
- cloud resource
- cloud
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 496
- 238000000034 method Methods 0.000 claims abstract description 26
- 238000004458 analytical method Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 9
- 239000000758 substrate Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 17
- 238000012545 processing Methods 0.000 description 10
- 239000003795 chemical substances by application Substances 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000001902 propagating effect Effects 0.000 description 4
- 238000012827 research and development Methods 0.000 description 4
- 239000000835 fiber Substances 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 238000000844 transformation Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 230000009193 crawling Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 102100023513 Flotillin-2 Human genes 0.000 description 1
- 101000828609 Homo sapiens Flotillin-2 Proteins 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5072—Grid computing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a cloud resource management method, device, equipment, system and readable storage medium. The method comprises the following steps: receiving a cloud resource management request conforming to a preset grammar type; analyzing the cloud resource management request to acquire cloud resource management information of the target cloud; and 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, and executing corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result which accords with a preset grammar type.
Description
Technical Field
The present invention relates to the field of cloud resource management technologies, and in particular, to a cloud resource management method, device, equipment, system, and readable storage medium.
Background
With the rapid development of cloud computing, application modes of cloud products are gradually diversified. The hybrid cloud is an application model of a cloud product that allows sharing of data and application services between public and private clouds, combining public and private clouds for use. The application mode of the hybrid cloud gradually becomes a preferred mode of using cloud products by a plurality of users due to the good expansibility and the rich characteristics of the hybrid cloud.
However, in the application mode of the hybrid cloud, there may be different public cloud products provided by multiple cloud vendors, which are used in combination with private cloud products developed by the user, where different cloud products have different product characteristics, for example, support different openapis (open platforms) or product consoles, so that the user correspondingly needs to learn the product characteristics of multiple cloud products at the same time, and independently maintain and use the different cloud products, which correspondingly brings higher learning, developing and operation cost.
For example, a user needs to use an elastic cloud computing product of a certain manufacturer and a private cloud developed based on OpenStack (open-source cloud computing management platform) to combine a hybrid cloud environment, and when creating cloud resources, the user needs to learn openapis and product consoles of the manufacturer and the OpenStack at the same time, and also needs to independently maintain the product consoles when using the product console, which correspondingly needs to put in higher manpower and time, and brings extremely high cost.
Disclosure of Invention
It is an object of the present invention to provide a new solution for managing cloud resources.
According to a first aspect of the present invention, there is provided a cloud resource management method, including:
receiving a cloud resource management request conforming to a preset grammar type;
analyzing the cloud resource management request to acquire 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, calling the target application program interface according to the target metadata information, and executing corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result conforming to the preset grammar 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 including a receiver, an analyzer, and an actuator; the method comprises the following steps:
receiving a cloud resource management request conforming to a preset grammar type through the receiver;
Analyzing the cloud resource management request through the analyzer to acquire cloud resource management information of the 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, and executing corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result conforming to the preset grammar 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 storage device and a storage device, wherein the receiver receives a cloud resource management request conforming to a preset grammar type;
The analyzer analyzes the cloud resource management request and acquires cloud resource management information of the target cloud;
and the executor determines a target application program interface and target metadata information of the target cloud according to the cloud resource management information, calls the target application program interface according to the target metadata information, executes corresponding cloud resource management operation on the target cloud, and acquires a cloud resource management result conforming to the preset grammar type.
According to a fourth aspect of the present invention, there is provided a cloud resource management apparatus, including:
A memory for storing executable instructions;
And the processor is used for running the cloud resource management equipment according to the control of the executable instructions and executing any method according to the first aspect of the invention.
According to a fifth aspect of the present invention, there is provided a cloud resource management system, including:
a plurality of cloud resources;
Any one of the cloud resource management apparatuses according to 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 having stored therein a computer program readable for executing any one of the cloud resource management methods according to the first aspect of the present invention when executed by a computer.
According to the embodiment of the invention, the cloud resource management request is analyzed by receiving the cloud resource management request conforming to the preset grammar type, cloud resource management information of the target cloud is obtained, the target application program interface and the target metadata information of the target cloud are determined according to the cloud resource management information, the target application program interface is called according to the target metadata information, corresponding cloud resource management operation is executed on the target cloud, cloud resource management results are obtained, and a user does not need to learn corresponding product characteristics and independently maintain and use for different cloud products in an application mode of the hybrid cloud.
Other features of the present invention and its advantages will become apparent from the following detailed description of exemplary embodiments of the invention, 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 a diagram showing an application environment for a hybrid cloud that may be used to implement embodiments of the present invention;
FIG. 3 shows a flow chart of a cloud resource management method of a first embodiment of the present invention;
Fig. 4 shows a block diagram of a cloud resource management apparatus 4000 of 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 showing an example of a cloud resource management method implemented by the cloud resource management system of 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, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to one 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 specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
< Hardware configuration >
Fig. 1 shows a block diagram of a hardware configuration of a management system 1000 in which an embodiment of the present invention may be implemented.
The management system 1000 of the present embodiment includes a management device 1100 and a plurality of cloud resources 1200. As shown in fig. 1, cloud resources 1200 may include cloud resources 1200A, cloud resources 1200B, cloud resources 1200C, and cloud resources 1200D, schematically shown.
Cloud resource 1200 is a cloud product that provides cloud computing resources for users.
Cloud resource 1200 may be a public cloud. Public clouds generally refer to cloud resources provided by third party providers for users that can be used over the internet. The public cloud has the core attribute of shared resource service, and the user can acquire the use authority of the public cloud through free or low-cost registration. Public clouds may include clouds provided by individual providing cloud service providers, and the like.
Cloud resource 1200 may also be a private cloud. Private clouds are typically cloud resources built for individual use by a customer, providing the most effective control over data, security, and quality of service. For example, the private cloud may be a cloud platform developed on its own based on openstack (open source cloud computing management platform) for user-specific needs.
When a user uses a plurality of cloud resources 1200, an application mode of a hybrid cloud is adopted, and the application mode of the hybrid cloud can be an application mode of mixed use of a plurality of public clouds, an application mode of mixed use of a plurality of private clouds, or an application mode of mixed use of a plurality of public clouds and a plurality of private clouds. For example, the management system 1000 includes 2 cloud resources 1200, where the cloud resources 1200A are elastic cloud computing products of a manufacturer, and the cloud resources 1200B are cloud platforms that are self-developed 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, which is not limited in any way.
The management device 1100 is a device for managing the cloud resource 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, microphone, etc., 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, ROM (read only memory), RAM (random access memory), 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 can perform wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display. The input device 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 invention, its applications or uses. In an embodiment of the present invention, the memory 1120 of the management device 1100 is configured to store instructions for controlling the processor 1110 to operate to perform any one of the cloud resource management methods provided by the embodiment of the present invention. It will be appreciated by those skilled in the art that although a plurality of devices are shown for the management apparatus 1100 in fig. 1, the present invention may relate to only some of the devices, for example, the management apparatus 1100 may relate to only the processor 1110 and the storage device 1120, etc. The skilled person can design instructions according to the disclosed solution. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
< First embodiment >
< Method >
In this embodiment, a cloud resource management method is provided.
The cloud resource management method is implemented for an application mode of the hybrid cloud.
The hybrid cloud is an application model of a cloud product that allows sharing of data and application services between public and private clouds, combining public and private clouds for use.
Public cloud generally refers to cloud resources provided by third party providers for users and capable of being used through the internet, and users can acquire the use rights of the public cloud through free or low-cost registration. Public clouds may include clouds provided by individual providing cloud service providers, and the like. Private clouds are typically cloud resources built for individual use by a customer, providing the most effective control over data, security, and quality of service. For example, the private cloud may be a private cloud platform developed by itself for user-specific needs, e.g., based on opentack (open source cloud computing management platform).
The application is understood that the application mode of the hybrid cloud can be an application mode of mixed use of a plurality of public clouds, an application mode of mixed use of a plurality of private clouds, or an application mode of mixed use of a plurality of public clouds and a plurality of private clouds.
For example, as shown in fig. 2, user a places a front-end WEB service (WEB) on a public cloud, and places an application service (APP SERVER) and a Database (Database) on a private cloud; the user B places the webpage service and one part of the application service at the front end on the public cloud, and places the other part of the application service and the database on the private cloud; user C places the front-end web services and application services on the public cloud, places the database on the private cloud, user D places one part of the front-end web services, application services and database on the public cloud, and places the other part of the database on the private cloud.
However, in the prior art of the present application, in the application mode of the hybrid cloud, there may be different public cloud products provided by multiple cloud vendors, and the private cloud products developed by the user are used in combination, while different cloud products have different product characteristics, for example, support different openapis (open platforms) or product consoles, so that the user correspondingly needs to learn the product characteristics of multiple cloud products at the same time, and independently maintain and use the different cloud products, which correspondingly brings higher learning, developing and operation 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 grammar type.
The cloud resource management request is a user-triggered request related to cloud resources 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, which may be an HTTP (Hyper Text Transport Protocol, hypertext 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 cloud resources, and can be set according to specific application scenes or application requirements. For example, the preset grammar type may be SQL-like (Structured Query Language ), i.e., a grammar type similar to structured query language, which is a database query and programming language used to access data and query, update, and manage relational database systems. In this embodiment, the class SQL may support cloud resource management operation types such as Select (query), upadte (update), insert (insert), delete (delete), and the like.
Cloud resource management statements may be included in the cloud resource management request. The cloud resource management statement is a statement which accords with 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, regional parameters and management types for implementing cloud resource management of the target cloud.
The cloud resource information is related information for describing unique attributes 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 vendor Ayun, the cloud resource information may indicate a product name using an english abbreviation "ECS1" of the elastic cloud computing product, and a home cloud vendor is indicated using a name "Ayun" of vendor Ayun, that is, the cloud resource information may be "ayun.ecs1"; the cloud resource is a cloud host of a manufacturer Byun, the cloud resource information can indicate a product name by using an English abbreviation ' ECS2 ' of the cloud host, and the cloud resource information can be ' Byun ' ECS2 ' by using a name ' Byun ' of the manufacturer Byun.
The regional parameter is a regional indication of where the cloud resource is located. For example, the cloud resource may be in Hangzhou, and the regional parameters may indicate the region using the Hangzhou's full spelling "hangzhou".
The management type for implementing cloud resource management is a specific type of a user desiring to manage cloud resources, for example, may be an operation type which the user desires to implement on cloud resources to be managed, and may include types of query, insertion, deletion, update, and the like.
In a specific example, assuming that the cloud resource desired to be managed by the user is a cloud host located in beijing in a cloud product of Byun manufacturer, the corresponding cloud resource information is Byun.
“Select*from Byun.ECS where region='cn-beijing'”;
User account information may also be included in the cloud resource management request. The user account information is used to uniquely identify the user that triggered the resource management request, and may be a user account name, user account ID, or other identification. The user can be queried through the user account information to have management authority on cloud resources. The management authority includes resource use authority of cloud resources that can be used by the user, resource operation authority of cloud resources that can be operated by the user, and the like.
By providing the access service, receiving the cloud resource management request conforming to the preset grammar type can be combined with other steps, 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 under the application mode of the hybrid cloud, so that unified management of different cloud resources is realized.
After receiving a cloud resource management request conforming to a preset grammar type, entering:
Step S3200, analyzing the cloud resource management request to obtain cloud resource management information of the target cloud.
The cloud resource management request conforming to the preset grammar type is a related request which is triggered by a user and is expected 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 hybrid cloud only through one cloud resource management request conforming to the preset grammar type, and unified management of different cloud resources is realized.
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, regional parameters and management types for implementing cloud resource management of the target cloud. The target cloud is a cloud resource that the user desires to manage. The cloud resource information, the regional parameters and the management types for implementing cloud resource management of the target cloud are described above, and are not described herein.
In this example, analyzing the cloud resource management request to obtain cloud resource management information of the target cloud may include: and carrying out grammar analysis on the cloud resource management statement according to the preset grammar type to acquire cloud resource management information corresponding to the target application program interface.
The target application program interface is an application program interface supported by a target cloud which the user desires to manage.
The cloud resource management information at least comprises cloud resource information of the target cloud, regional parameters and calling interface instructions corresponding to the management type.
The cloud resource management statement is analyzed, cloud resource information, regional parameters and management types for implementing cloud resource management of the target cloud 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, and an application program interface to be specifically called is determined according to the management types, so that a corresponding calling interface indication is obtained and used for indicating the application program interface for implementing the management types and requiring the target cloud to be called.
For example, assume that the cloud resource management statement is: select from byun, ecs sphere= 'cn-beijing'; the cloud resource management statement is parsed, and the acquired cloud resource management information comprises cloud resource information Byun.ECS (cloud manufacturer name is Byun, product name is ECS) of a target cloud, regional parameters cn-beijing and calling interface instructions corresponding to management types: describeInstances interfaces.
By carrying out grammar analysis on the received cloud resource management statement to acquire cloud resource management information corresponding to the target application program interface, a user can simply and effectively provide relevant information required by cloud resource management by inputting the cloud resource management statement conforming to a preset grammar type, and the cloud resource management statement based on a single grammar type is used for managing cloud resources of different types in combination with the follow-up steps, so that the operation complexity is reduced, and the cloud resource management efficiency is improved.
In another example, user account information may also be included in the cloud resource management request. The user account information is used to uniquely identify the user that triggered the resource management request, and may be a user account name, user account ID, or other identification.
In this example, the analyzing the cloud resource management request to obtain cloud resource management information of the target cloud may further include: steps S3210a-S3220a.
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 authority may include one of resource usage authority and resource operation authority. The resource usage right is a right of whether the user allows to use the corresponding cloud resource, for example, specifically, whether the user purchases the corresponding cloud resource, or whether the user purchases the corresponding cloud resource is still within the validity period. The resource operation authority is authority that whether the user allows to operate the corresponding cloud resource, for example, specifically, whether the user allows to perform related resource management operation on the cloud resource, or a specific operation authority range supporting the user to manage the cloud resource, and the like.
In step S3220a, when it is determined that the user has the management right of the target cloud resource, the cloud resource management result is obtained according to the cloud resource management information.
In this example, the specific embodiment of obtaining the cloud resource management result according to the cloud resource management information may be described later, which is not described herein. After cloud resource management information of the target cloud is acquired, after the corresponding user has the management authority of the target cloud according to the user account information and the cloud resource information, a corresponding cloud resource management result is acquired according to the cloud resource management information, and therefore an illegal user without the target cloud management authority can perform cloud resource management on the target cloud, and the safety of cloud resource management is improved.
In yet another example, the cloud resource management request is analyzed to obtain cloud resource management information of the target cloud, and the method may further include: steps S3210b-S3220b.
Step S3210b, carrying out grammar verification on the cloud resource management statement according to a preset grammar type, and determining whether the cloud resource management statement has grammar problems.
In this example, the specific implementation manner of performing grammar verification on the cloud resource management statement corresponds to a preset grammar type, and is not illustrated here.
Step S3220b, when it is determined that the cloud resource management statement does not have a grammar problem, acquires cloud resource management information.
In this embodiment, a specific implementation manner of obtaining the cloud resource management information may be described in other parts of this embodiment, which is not described herein.
It should be understood that when it is determined that the grammar problem exists in the cloud resource management statement, the cloud resource management information is not acquired any more, so that cloud resource management is implemented according to the cloud resource management information. In practical application, the user can be prompted to input the cloud resource management statement with grammar problem by sending out the grammar error prompt, so that the cloud resource management statement which is used for inputting the correct cloud resource management statement and does not have grammar problem is guided, and the processing efficiency is improved.
According to the method, grammar verification is carried out on the cloud resource management statement according to the preset grammar type, when the fact that the grammar problem does not exist in the cloud resource management statement is determined, cloud resource management information is obtained on the cloud resource management statement, the fact that the cloud resource management statement based on grammar errors obtains corresponding cloud resource management information can be avoided, follow-up cloud resource management abnormality is caused, and cloud resource management efficiency is improved.
After acquiring cloud resource management information of the target cloud, entering:
Step S3300, determining a target application program interface and target metadata information of a target cloud according to cloud resource management information, and calling the target application program interface according to the target metadata information to execute corresponding cloud resource management operation on the target cloud, thereby obtaining a cloud resource management result conforming to a preset grammar type.
The cloud resource management information at least comprises cloud resource information, regional 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 execute corresponding cloud resource management operation on the target cloud, so that cloud resource management results conforming to preset grammar types can be obtained, a user can manage any one cloud resource in the hybrid cloud only through one cloud resource management request conforming to the preset grammar types, and unified management of different cloud resources is achieved.
In an example, the cloud resource management information at least includes cloud resource information, regional parameters of the target cloud, and call interface instructions corresponding to a management type for implementing cloud resource management, which may be specifically described in the foregoing, 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 to S3320.
Step S3310, according to the cloud resource management information, the target application program interface and the target metadata format supported by the target application program interface are determined by querying in the metadata repository.
Metadata formats supported by application program interfaces supported by different cloud resources are stored in a metadata repository. Specifically, the metadata repository is stored in this example in the form of a database. The metadata formats correspond to the application program interfaces supported by the cloud resources, i.e., different application program interfaces supported by different cloud resources 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 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 described above.
The application program interface name field is used for describing the name of the specific application program interface supported by the cloud resource to be called.
The application program interface parameter field is used for describing interface calling parameters of the application program interface supported by the corresponding cloud resource. For example, the application program 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 of an application program interface for calling the corresponding cloud resource support. By setting the metadata warehouse, according to cloud resource management information, the metadata warehouse is queried, 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 are not required to be determined by crawling or searching according to the cloud resource management information in real time, so that the cloud resource management efficiency is further improved.
In step S3320, target metadata information is generated 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 regional parameter "cn-beijing" and a call interface instruction corresponding to a management type "Select": describeInstances interfaces;
The target metadata format queried in the metadata repository is:
Provider:XXXX;
Product:XXXX;
AP:XXXXXX;
Parameters:{XXXXX};
response:{XXXX};
the Provider is a cloud vendor information field in a 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 is an application program interface parameter field, and the response is an interface call return value field.
The generation of the target metadata information is as follows:
Provider:Byun;
Product:ECS;
AP:DescrieInstances;
Parameters:{region:cn-beijing};
response:{list[]};。
in another example, according to the target metadata information, a target application program interface is called, a corresponding cloud resource management operation is performed on a target cloud, and a cloud resource management result conforming to a preset grammar type is obtained, which may include: steps S3330-S3340.
Step S3330, according to the target metadata information, a target application program interface is called, corresponding cloud resource management operation is executed on the target cloud, and a corresponding interface call return value is obtained.
In a more specific example, according to the target metadata information, calling the target application program interface, executing a corresponding cloud resource management operation on the target cloud, and obtaining a corresponding interface call return value may include: steps S3331 to S3332.
Step S3331, call the application program interface agent layer according to the target metadata information, call the target application program interface by the application program interface agent layer, realize the execution of the corresponding cloud resource management operation to the target cloud.
The application program interface agent layer integrates calling services of application program interfaces supported by different cloud resources, and can route, call the calling services to the appointed target cloud resources and the appointed application program interfaces to acquire corresponding interface calling services based on target metadata reflecting cloud resource management requirements of users. For example, the application program interface proxy layer may be an OpenAPI proxy, in which OpenAPI services of different cloud resources are encapsulated, and a unified abstract layer proxy may route interfaces of different cloud resource mapping transformations to corresponding cloud resources through a unified proxy layer, for example, openAPI of different cloud resources such as AWS, ECS, and OpenStack-based private cloud may be integrated in the OpenAPI proxy.
Step S3332, obtain the proxy call result value returned by the proxy layer of the application program interface, as the interface call return value.
The application program interface proxy layer of the calling service of the application program interfaces supported by different cloud resources is integrated to proxy the calling target application program interfaces to acquire the corresponding interface calling return values, so that the corresponding target application program interfaces can be called without routing or searching through a complex algorithm in real time, and the management efficiency of cloud resource management is correspondingly improved.
After obtaining the corresponding interface call return value, entering:
step S3340, converting the interface call return value into a corresponding cloud resource management result according to the preset grammar type.
After the interface call return value is obtained, the interface call return value can be analyzed, rendering is converted into a cloud resource management result conforming to 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, 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 cloud resource byun.
In the cloud resource management method provided in the embodiment, the user can learn corresponding product characteristics and independently maintain and use for different cloud products in an application mode of the hybrid cloud by only managing any one cloud resource in the hybrid cloud according to a cloud resource management request conforming to a preset grammar type, so that unified management of different cloud resources is realized, and learning, research and development and operation cost of the user are greatly reduced.
< Cloud resource management device >
In this embodiment, as shown in fig. 4, the cloud resource management apparatus 4000 includes a receiver 4100, an analyzer 4200 and an executor 4300, and is used to implement the cloud resource management method provided in this embodiment, which is not described herein.
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 to 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, regional parameters and management types for implementing cloud resource management of the target cloud.
In this example, the analyzer 4200 may include a syntax parsing module 4210.
The syntax parsing module 4210 may be configured to parse the cloud resource management statement according to a preset syntax type, and obtain 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, regional parameters and calling interface instructions corresponding to the management type.
In another example, the user account information is included in the cloud resource management request.
In this example, analyzer 4200 may also include 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 cloud resource management method can be used for acquiring cloud resource management results according to cloud resource management information when the user is determined to have the management authority of the target cloud resources.
In this example, the specific embodiment of obtaining the cloud resource management result according to the cloud resource management information may be described later, which is not described herein.
The management authority comprises at least one of resource use authority and resource operation authority.
In yet another example, analyzer 4200 may also include a grammar checking module 4230.
In this example, the grammar checking module 4230 may be further configured to perform grammar checking on the cloud resource management statement according to a preset grammar type, so as to determine whether the cloud resource management statement has a grammar problem.
The syntax parsing module 4210 may be configured to obtain cloud resource management information when it is determined that the cloud resource sentence does not have a syntax problem.
The executor 4300 may be configured to determine, according to the cloud resource management information, a target application program interface and target metadata information of the target cloud, 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 according with 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 instruction corresponding to a management type for implementing cloud resource management.
In this example, the executor 4300 further includes a metadata repository 4310, where the metadata repository 4310 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, the executor 4300 may be configured to query in a metadata repository according to cloud resource management information, determine a target application program interface and a target metadata format supported by the target application program interface; and may be used to generate target metadata information from 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 used for converting the interface call return value 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 call the application program interface proxy layer 4320 according to the target metadata information, and call the target application program interface through the application program interface proxy layer 4320 in a proxy manner, so as to implement a corresponding cloud resource management operation on the target cloud.
The application program interface proxy layer 4320 integrates the calling services of the application program interfaces supported by different cloud resources. The application program interface agent layer can route based on target metadata reflecting cloud resource management requirements of users, and call the target metadata into specified target cloud resources to obtain corresponding interface call services through specified application program interfaces. For example, the application program interface proxy layer may be an OpenAPI proxy, in which OpenAPI services of different cloud resources are encapsulated, and a unified abstract layer proxy may route interfaces of different cloud resource mapping transformations to corresponding cloud resources through a unified proxy layer, for example, openAPI of different cloud resources such as AWS, ECS, and OpenStack-based private cloud may be integrated in the OpenAPI proxy.
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 should 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 instructions from the ROM into a programmable device when the device is started. For example, cloud resource management apparatus 4000 may be solidified into a dedicated device (e.g., ASIC). The cloud resource management apparatus 4000 units 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 above-described various implementations, or may be implemented by a combination of two or more of the above-described various implementations.
In this embodiment, the cloud resource management apparatus 4000 may be a central management apparatus that establishes 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 into the central management apparatus that establishes connection with a plurality of cloud resources, and the cloud resource management apparatus 4000 may also be packaged in a software development package form (e.g., SDK) for download call to manage cloud resources.
< Cloud resource management device >
In this embodiment, there is also provided a cloud resource management apparatus 5000, as shown in fig. 5, including:
Memory 5100, which may be used to store executable instructions;
the processor 5200 may be configured to execute the cloud resource management apparatus according to control of executable instructions, and perform the cloud resource management method as provided in the present embodiment.
In the present embodiment, the cloud resource management apparatus 5000 may be a management apparatus 1100 as shown in fig. 1.
The cloud resource management apparatus 5000 may further include other devices, for example, the 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, there is also provided a readable storage medium having stored therein a computer program readable by a computer for executing the cloud resource management method as provided in this embodiment when the computer program is read 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 storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves 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 itself, 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 pulse of light through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The cloud resource management method, the device, the equipment and the readable storage medium provided by the embodiment have been described above with reference to the accompanying drawings and examples, the cloud resource management request which is triggered by the user and accords with the preset grammar type can be received, the cloud resource management request is analyzed, cloud resource management information of the target cloud is obtained, the target application program interface is called according to the cloud resource management information, and corresponding cloud resource management operation is executed on the target cloud, so that a cloud resource management result which accords with the preset grammar type can be obtained, the user can learn corresponding product characteristics and independently maintain and use for different cloud products in an application mode of the hybrid 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, unified management of different cloud resources is realized, and learning, research and development as well as operation and maintenance costs of the user are greatly reduced.
< Second embodiment >
In this 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 to S6300.
In step S6100, a cloud resource management request conforming to a preset grammar type is received by a receiver.
The cloud resource management request meeting the preset grammar type is received through the receiver, other steps can be combined, and a user can manage any cloud resource in the hybrid cloud only through one cloud resource management request meeting the preset grammar type under the application mode of the hybrid cloud, so that unified management of different cloud resources is realized.
After receiving, by the receiver, a cloud resource management request conforming to a preset grammar type, entering:
in step S6200, the cloud resource management request is analyzed by the analyzer, so as to obtain cloud resource management information of the target cloud.
By analyzing the cloud resource management request through the analyzer, cloud resource management information of a target cloud expected to be managed by a user can be obtained, and other steps are combined to perform corresponding management on the target cloud, so that the user can manage any one cloud resource in the hybrid cloud only through one cloud resource management request conforming to a preset grammar type, and unified management on different cloud resources is realized.
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, regional parameters and management types for implementing cloud resource management of the target cloud.
In this example, the analyzing, by the analyzer, the cloud resource management request to obtain cloud resource management information of the target cloud may include: and carrying out grammar analysis on the cloud resource management statement according to the preset grammar type 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, regional parameters and calling interface instructions corresponding to the management type.
The analyzer analyzes the grammar of the received cloud resource management statement to acquire cloud resource management information corresponding to the target application program interface, so that a user can simply and effectively provide relevant information required by cloud resource management by inputting the cloud resource management statement conforming to a preset grammar type, and the cloud resource management statement based on a single grammar type is used for managing cloud resources in combination with the follow-up steps, so that the operation complexity is reduced, and the cloud resource management efficiency is improved.
In another example, the user account information is included in the cloud resource management request.
In this example, the analyzing, by the analyzer, the cloud resource management request to obtain cloud resource management information of the target cloud may further include: steps S6210a to S6220a.
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 comprises at least one of resource use authority and resource operation authority.
In step S6220a, when it is determined that the user has the management right of the target cloud resource, the cloud resource management result is obtained according to the cloud resource management information.
In this example, the specific embodiment of obtaining the cloud resource management result according to the cloud resource management information may be described later, which is not described herein.
After cloud resource management information of the target cloud is acquired, the analyzer judges that the corresponding user has management authority of the target cloud according to the user account information and the cloud resource information, and then acquires a corresponding cloud resource management result according to the cloud resource management information, so that an illegal user without the target cloud management authority can manage the cloud resource of the target cloud, and the security of cloud resource management is improved.
In yet another example, analyzing, by the analyzer, the cloud resource management request to obtain cloud resource management information of the target cloud may further include: steps S6210b to S6220b.
Step S6210b, according to the preset grammar type, carrying out grammar verification on the cloud resource management statement to determine whether the cloud resource management statement has grammar problems.
Step S6220b, when it is determined that the cloud resource sentence does not have a grammar problem, acquiring cloud resource management information.
In this embodiment, a specific implementation manner of obtaining the cloud resource management information may be described in other parts of this embodiment, which is not described herein.
It should be understood that when it is determined that the grammar problem exists in the cloud resource management statement, the cloud resource management information is not acquired any more, so that cloud resource management is implemented according to the cloud resource management information. In practical application, the user can be prompted to input the cloud resource management statement with grammar problem by sending out the grammar error prompt, so that the cloud resource management statement which is used for inputting the correct cloud resource management statement and does not have grammar problem is guided, and the processing efficiency is improved.
According to the method, grammar verification is carried out on the cloud resource management statement according to the preset grammar type, when the fact that the grammar problem does not exist in the cloud resource management statement is determined, cloud resource management information is obtained on the cloud resource management statement, the fact that the cloud resource management statement based on grammar errors obtains corresponding cloud resource management information can be avoided, follow-up cloud resource management abnormality is caused, and cloud resource management efficiency is improved.
After cloud resource management information of the target cloud is acquired by the analyzer, entering:
Step S6300, determining, by an executor, a target application program interface and target metadata information of a target cloud according to cloud resource management information, and calling the target application program interface according to the target metadata information to execute a corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result conforming to a preset grammar type.
The cloud resource management method comprises the steps that through an executor, a target application program interface and target metadata information of a target cloud can be determined according to cloud resource management information, and according to the target metadata information, the target application program interface can be called to execute corresponding cloud resource management operation on the target cloud, so that cloud resource management results conforming to a preset grammar type can be obtained, a user can manage any one cloud resource in a hybrid cloud only through one cloud resource management request conforming to the preset grammar type, and unified management of different cloud resources is achieved.
In one example, the executor further includes a metadata repository, where metadata formats supported by application program interfaces supported by different cloud resources are stored. 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, the target application program interface and the target metadata information of the target cloud according to the cloud resource management information may include: steps S6310-S6320.
Step S6310, inquiring in a metadata warehouse according to cloud resource management information, and determining a target application program interface and a target metadata format supported by the target application program interface.
By setting the metadata warehouse, according to cloud resource management information, the metadata warehouse is queried, 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 are not required to be determined by crawling or searching according to the cloud resource management information in real time, so that the cloud resource management efficiency is further improved.
In step S6320, the target metadata information is generated according to the cloud resource management information and the target metadata format.
In another example, the method for obtaining the cloud resource management result according to the preset grammar type may include: steps S6330-S6340.
Step S6330, calling a target application program interface according to the target metadata information, executing corresponding cloud resource management operation on the target cloud, and obtaining a corresponding interface calling return value.
In a more specific example, according to the target metadata information, calling the target application program interface, executing 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, calling an 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.
The application program interface agent layer integrates calling services of application program interfaces supported by different cloud resources, and can route, call the calling services to the appointed target cloud resources and the appointed application program interfaces to acquire corresponding interface calling services based on target metadata reflecting cloud resource management requirements of users. For example, the application program interface proxy layer may be an OpenAPI proxy, in which OpenAPI services of different cloud resources are encapsulated, and a unified abstract layer proxy may route interfaces of different cloud resource mapping transformations to corresponding cloud resources through a unified proxy layer, for example, openAPI of different cloud resources such as AWS, ECS, and OpenStack-based private cloud may be integrated in the OpenAPI proxy.
Step S6332, obtaining the proxy call result value returned by the application program interface proxy layer as the interface call return value. The application program interface proxy layer of the calling service of the application program interfaces supported by different cloud resources is integrated to proxy the calling target application program interfaces to acquire the corresponding interface calling return values, so that the corresponding target application program interfaces can be called without routing or searching through a complex algorithm in real time, and the management efficiency of cloud resource management is correspondingly improved.
After obtaining the corresponding interface call return value, entering:
Step S6340, converting the interface call return value into a corresponding cloud resource management result according to the preset grammar type.
After the interface call return value is obtained, the interface call return value can be analyzed, rendering is converted into a cloud resource management result conforming to 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, 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 the embodiment has been described above with reference to the drawings and examples, and the method is implemented by the cloud resource management device, so that a user does not need to learn corresponding product characteristics and independently maintain and use for different cloud products in an application mode of the hybrid cloud, and can manage any one cloud resource in the hybrid cloud only by one cloud resource management request conforming to a preset grammar type, thereby realizing unified management of different cloud resources and greatly reducing learning, research and development and operation cost of the user.
< Third embodiment >
In this embodiment, there is also provided a cloud resource management system 6000, as shown in fig. 6, including:
a plurality of cloud resources 6100, 2 cloud resources 6100 are shown in fig. 1, cloud resources 6100A and cloud resources 6100B, respectively.
Cloud resource 6100 may be public cloud. Public clouds generally refer to cloud resources provided by third party providers for users that can be used over the internet. The public cloud has the core attribute of shared resource service, and the user can acquire the use authority of the public cloud through free or low-cost registration. Public clouds may include clouds provided by individual providing cloud service providers, and the like. Cloud resource 6100 may also be a private cloud. Private clouds are typically cloud resources built for individual use by a customer, providing the most effective control over data, security, and quality of service. For example, the private cloud may be a cloud platform developed on its own based on openstack (open source cloud computing management platform) for user-specific needs.
When a 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 can be an application mode of mixed use of a plurality of public clouds, an application mode of mixed use of a plurality of private clouds, or an application mode of mixed use of a plurality of public clouds and a plurality of private clouds. For example, cloud resource management system 6000 includes 2 cloud resources 6100, cloud resource 6100A is an elastic cloud computing product of a manufacturer, and cloud resource 6100B is a private cloud platform self-developed based on opentack.
In this embodiment, the number of cloud resources 6100 may be determined according to the actual scenario, which is not limited in any way.
The cloud resource management apparatus 4000 or the cloud resource management device 5000 provided in the present embodiment. The cloud resource management apparatus 4000 or the cloud resource management device 5000 is used for managing the cloud resource 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 the present 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 cloud resource management devices 4000, as shown in fig. 7. Assume in this example that cloud management system 6000 includes two cloud resources, cloud resource 6100A and cloud resource 6100B, respectively.
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, carrying out grammar verification on the cloud resource management statement according to a preset grammar type, determining whether the cloud resource management statement has grammar problems, if not, entering step S703, and if so, entering step S701.
Step S703, performing syntax analysis on the cloud resource management statement according to the preset syntax type, and obtaining cloud resource management information corresponding to the 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, inquiring in a metadata warehouse, 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.
Step S707, according to the target metadata information, the target application program interface is invoked in a proxy mode through the application program interface proxy layer, and corresponding cloud resource management operation is implemented on the target cloud.
Step S708, the proxy call result value returned by the application program interface proxy layer is obtained and used as an interface call return value.
Step S709, converting the interface call return value into a corresponding cloud resource management result according to the preset grammar type.
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 sentence may be input to the cloud resource management device 4000 as follows: select from ayun, ecs sphere= 'cn-beijing'; triggering the cloud resource management device 4000, performing grammar verification and grammar analysis on the cloud resource management statement according to the preset grammar type through the steps S701-S709, and obtaining cloud resource management information, including: cloud resource information ayun. Ecs of the target cloud, regional parameters cn-beijing, and call interface indication corresponding to management type "Select": describeInstances interfaces; inquiring a target metadata interface indication and a target application program interface in a metadata warehouse according to cloud resource management information, generating corresponding target metadata information, and calling the target application program interface through an application program interface agent based on the target metadata information to obtain a cloud host List which finally accords with a preset grammar type;
When the user needs to query the cloud host of the cloud resource 6100B of the Hangzhou area, similarly, a cloud resource management sentence may be input to the cloud resource management device 4000 as follows: select from byun, ecs sphere= 'cn-hangzhou'; triggering the cloud resource management device 4000, performing grammar verification and grammar analysis on the cloud resource management statement according to the preset grammar type through the steps S701-S709, and obtaining cloud resource management information, including: cloud resource information Byun.ECS of the target cloud, regional parameters cn-hangzhou, and calling interface indication corresponding to management type "Select": describeInstances interfaces; inquiring a target metadata interface indication and a target application program interface in a metadata warehouse according to cloud resource management information, generating corresponding target metadata information, and calling the target application program interface through an application program interface agent based on the target metadata information to obtain a cloud host List which finally accords with a preset grammar type;
Therefore, in this example, in the application mode of the hybrid cloud, the user can manage any one cloud resource in the hybrid cloud only through one cloud resource management request conforming to the preset grammar type without learning corresponding product characteristics and independently maintaining and using different cloud products, so that unified management of different cloud resources is realized, and the learning, research and development and operation cost of the user is 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 thereon for causing a processor to implement aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage 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: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through 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 over 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 transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface 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.
Computer program instructions for carrying out operations of the present invention may be assembly 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 be executed 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected 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 electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information for computer readable program instructions, which can execute the computer readable program instructions.
Various 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 having the instructions stored therein includes 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 flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of 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, implementation by software, and implementation by a combination of software and hardware are all equivalent.
The foregoing description of embodiments of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or 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 various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements 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 (15)
1. A cloud resource management method, comprising:
Receiving a cloud resource management request matched with a preset grammar type; the cloud resource management request at least comprises a cloud resource management statement; the cloud resource management statement at least comprises cloud resource information, regional parameters and management types for implementing cloud resource management of the target cloud;
according to the preset grammar type, carrying out grammar analysis on the cloud resource management statement to acquire cloud resource management information corresponding to a target application program interface; the cloud resource management information at least comprises cloud resource information, regional parameters and calling interface instructions corresponding to the management type of the target cloud;
And 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, and executing corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result conforming to the preset grammar type.
2. The method of claim 1, wherein the cloud resource management request includes user account information; the analyzing the cloud resource management request to obtain cloud resource management information of the target cloud further includes:
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;
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.
3. The method of claim 1, 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 verification on the cloud resource management statement to determine whether the cloud resource management statement has grammar problems;
And when determining that the cloud resource management statement does not have the grammar problem, acquiring the cloud resource management information.
4. The method of claim 1, wherein 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 for implementing cloud resource management;
the determining, according to the cloud resource management information, the target application program interface and the target metadata information of the target cloud 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 formats supported by the application program interfaces supported by different cloud resources are stored 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;
And generating the target metadata information according to the cloud resource management information and the target metadata format.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
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 the preset grammar type, wherein the cloud resource management result comprises the following steps:
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 corresponding interface calling return value;
And converting the interface call return value into the corresponding cloud resource management result according to the preset grammar type.
6. The method of claim 5, 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:
According to the target metadata information, an application program interface proxy layer is called, and the target application program interface is called in a proxy way through the application program interface proxy layer, so that corresponding cloud resource management operation is implemented on the target cloud; calling services of application program interfaces supported by different cloud resources are integrated in the application program interface proxy layer;
and acquiring a proxy call result value returned by the application program interface proxy layer as the interface call return value.
7. A cloud resource management method, characterized in that the method is implemented by a cloud resource management device, the cloud resource management device comprises a receiver, an analyzer and an actuator; the method comprises the following steps:
receiving a cloud resource management request conforming to a preset grammar type through the receiver; the cloud resource management request at least comprises a cloud resource management statement; the cloud resource management statement at least comprises cloud resource information, regional parameters and management types for implementing cloud resource management of the target cloud;
Carrying out grammar analysis on the cloud resource management statement according to the preset grammar type by the analyzer to obtain cloud resource management information corresponding to a target application program interface; the cloud resource management information at least comprises cloud resource information, regional parameters and calling interface instructions corresponding to the management type of the 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, and executing corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result conforming to the preset grammar type.
8. The method of claim 7, further comprising a metadata repository in the executor, wherein the metadata repository stores metadata formats supported by different cloud resource supported application program interfaces; 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, the target application program interface and the target metadata information of the target cloud according to the cloud resource management information, further includes:
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.
9. The method of claim 7, wherein the executor further comprises an application program interface proxy layer, and the application program interface proxy layer integrates calling services of application program interfaces supported by different cloud resources;
And calling the target application program interface according to the target metadata information by the executor, and executing corresponding cloud resource management operation on the target cloud to obtain a cloud resource management result conforming to the preset grammar type, wherein the cloud resource management result comprises the following steps:
According to the target metadata information, calling the application program interface proxy layer, and calling the target application program interface in a proxy way through the application program interface proxy layer to realize the execution of corresponding cloud resource management operation on the target cloud;
acquiring a proxy calling result value returned by the application program interface proxy layer as an interface calling return value;
And converting the interface call return value into the corresponding cloud resource management result according to the preset grammar type.
10. A cloud resource management apparatus, comprising:
The cloud resource management system comprises a receiver, a storage device and a storage device, wherein the receiver receives a cloud resource management request conforming to a preset grammar type; the cloud resource management request at least comprises a cloud resource management statement; the cloud resource management statement at least comprises cloud resource information, regional parameters and management types for implementing cloud resource management of the target cloud;
The analyzer is used for carrying out grammar analysis on the cloud resource management statement according to the preset grammar type to acquire cloud resource management information corresponding to a target application program interface; the cloud resource management information at least comprises cloud resource information, regional parameters and calling interface instructions corresponding to the management type of the target cloud;
and the executor determines a target application program interface and target metadata information of the target cloud according to the cloud resource management information, calls the target application program interface according to the target metadata information, executes corresponding cloud resource management operation on the target cloud, and acquires a cloud resource management result conforming to the preset grammar type.
11. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
The executor also comprises a metadata warehouse, wherein 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.
12. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
The executor also comprises an application program interface proxy layer, and calling services of application program interfaces supported by different cloud resources are integrated in the application program interface proxy layer.
13. A cloud resource management apparatus, characterized by comprising:
A memory for storing executable instructions;
a processor, configured to execute the cloud resource management apparatus according to control of the executable instructions, and perform the method according to any one of claims 1-6.
14. A cloud resource management system, comprising:
a plurality of cloud resources;
the cloud resource management apparatus of any of claims 10-12, or the cloud resource management device of claim 13.
15. A readable storage medium, comprising:
The readable storage medium stores a computer program readable by a computer and executable by the computer, the computer program being configured to perform the cloud resource management method according to any of claims 1-6 when executed by the computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911364716.9A CN113055410B (en) | 2019-12-26 | 2019-12-26 | Cloud resource management method, device, equipment, system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911364716.9A CN113055410B (en) | 2019-12-26 | 2019-12-26 | Cloud resource management method, device, equipment, system and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113055410A CN113055410A (en) | 2021-06-29 |
CN113055410B true CN113055410B (en) | 2024-07-23 |
Family
ID=76505918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911364716.9A Active CN113055410B (en) | 2019-12-26 | 2019-12-26 | Cloud resource management method, device, equipment, system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113055410B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113722105B (en) * | 2021-09-14 | 2023-08-01 | 百度在线网络技术(北京)有限公司 | Cloud application operation method, device, equipment, medium and product |
CN114143048B (en) * | 2021-11-18 | 2023-09-26 | 绿盟科技集团股份有限公司 | Method, device and storage medium for managing safety resources |
Citations (2)
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 |
CN106101258A (en) * | 2016-07-08 | 2016-11-09 | 腾讯科技(深圳)有限公司 | A kind of interface interchange method of mixed cloud, Apparatus and system |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
EP3484125B1 (en) * | 2016-07-08 | 2022-09-07 | Tencent Technology (Shenzhen) Company Limited | Method and device for scheduling interface of hybrid cloud |
US10949903B2 (en) * | 2017-05-05 | 2021-03-16 | Servicenow, Inc. | System, computer-readable medium, and method for blueprint-based cloud management |
CN108449418B (en) * | 2018-03-29 | 2021-08-06 | 新华三云计算技术有限公司 | Hybrid cloud platform management system and method |
CN114025004A (en) * | 2018-09-11 | 2022-02-08 | 华为技术有限公司 | Method, device and equipment for processing cloud service in cloud system |
CN109710380A (en) * | 2018-12-25 | 2019-05-03 | 杭州数梦工场科技有限公司 | Manage the method and device of virtual resource in Cloud Server |
CN109951548B (en) * | 2019-03-19 | 2021-11-19 | 深信服科技股份有限公司 | Resource management method of cloud platform and cloud management platform |
CN110290075A (en) * | 2019-04-17 | 2019-09-27 | 李士锋 | A kind of method for managing resource and system of police cloud computing platform |
CN110557433B (en) * | 2019-07-26 | 2021-02-26 | 华云超融合科技有限公司 | Resource management method, platform, cloud gateway, system and storage medium |
-
2019
- 2019-12-26 CN CN201911364716.9A patent/CN113055410B/en active Active
Patent Citations (2)
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 |
CN106101258A (en) * | 2016-07-08 | 2016-11-09 | 腾讯科技(深圳)有限公司 | A kind of interface interchange method of mixed cloud, Apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN113055410A (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210056138A1 (en) | Query language for selecting object graphs from application metadata | |
US10942708B2 (en) | Generating web API specification from online documentation | |
US20190325074A1 (en) | Application programing interface document generator | |
JP6698646B2 (en) | JSON style sheet language conversion | |
US10452407B2 (en) | Adapter configuration | |
US11150893B2 (en) | Collaborative software development tool for resolving potential code-change conflicts in real time | |
CN109997114B (en) | Service layer resource management for universal interworking and extensibility | |
CN109062563B (en) | Method and device for generating page | |
CN110324169B (en) | Interface management method and device | |
WO2019155369A1 (en) | Tri-affinity model driven method and platform for authoring, realizing, and analyzing a cross-platform application | |
US11150892B2 (en) | Software versioning for network connected devices | |
US20180196647A1 (en) | Application Programming Interface Discovery Using Pattern Recognition | |
CN113055410B (en) | Cloud resource management method, device, equipment, system and readable storage medium | |
US10248535B2 (en) | On-demand automated locale seed generation and verification | |
CN115599386A (en) | Code generation method, device, equipment and storage medium | |
CN115587575A (en) | Data table creation method, target data query method, device and equipment | |
US10372760B2 (en) | Building queries directed to objects hosted on clouds | |
US20240187501A1 (en) | Techniques for distributed interface component generation | |
US10540187B2 (en) | User-initiated dynamic data application programming interface creation | |
Miravet et al. | Framework for the declarative implementation of native mobile applications | |
CN114996554A (en) | Database query method and device, storage medium and electronic equipment | |
CN115878860A (en) | Menu generation method, device, server equipment and medium | |
CN110554892A (en) | Information acquisition method and device | |
US20160277269A1 (en) | Dynamic community support | |
US20240205099A1 (en) | Dynamic creation of schema framework for inventory management |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |