CN113626314B - Verification method, device and equipment for cloud platform resource parameters and readable medium - Google Patents
Verification method, device and equipment for cloud platform resource parameters and readable medium Download PDFInfo
- Publication number
- CN113626314B CN113626314B CN202110807375.9A CN202110807375A CN113626314B CN 113626314 B CN113626314 B CN 113626314B CN 202110807375 A CN202110807375 A CN 202110807375A CN 113626314 B CN113626314 B CN 113626314B
- Authority
- CN
- China
- Prior art keywords
- user
- parameter
- resource
- verified
- verification
- 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
- 238000012795 verification Methods 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000004044 response Effects 0.000 claims abstract description 21
- 238000004806 packaging method and process Methods 0.000 claims abstract description 7
- 238000004590 computer program Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 230000004048 modification Effects 0.000 abstract description 6
- 238000012986 modification Methods 0.000 abstract description 6
- 238000013461 design Methods 0.000 abstract description 5
- 238000000926 separation method Methods 0.000 abstract description 3
- 238000011161 development Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000001419 dependent effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
- G06F11/3608—Software analysis for verifying properties of programs using formal methods, e.g. model checking, abstract interpretation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention discloses a verification method of cloud platform resource parameters, which comprises the following steps: connecting a plurality of resources to be checked in a chain structure based on the checking sequence, and packaging to generate a parameter checker; in response to receiving a request of a user for executing a service through an interface, a parameter checker is called to check the resource parameters of the user; and if the verification of the resource parameters of the user by the calling parameter verifier passes, allowing the user to execute the service through the interface. The invention also discloses a verification device for the cloud platform resource parameters, computer equipment and a readable storage medium. The invention designs all the resources to be checked into a chained structure, realizes the separation of service flow and parameter check, and uniformly maintains the parameter check logic, if the check logic needs to be added or modified, only the logic in the checker needs to be modified, thereby reducing the influence range of code modification, simplifying the development flow and improving the maintainability and the robustness of the system.
Description
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a method, an apparatus, a device, and a readable medium for verifying a cloud platform resource parameter.
Background
In the cloud computing era, more and more services are migrated from an original physical server to a cloud platform, the services of the cloud platform are more and more abundant, and the services of a core resource cloud host of the cloud platform are more and more complex, so that parameters such as a mirror image, a CPU, a memory, a network card and a hard disk are not only set, but also parameters such as a virtual resource pool, a project, a user, a designated host, a mounted data disk and a startup password are required to be set, and the parameters are required to be transmitted to a background interface to realize related functions of the cloud host when the cloud host is created and modified.
For system security, these parameters need to be checked in the background, and conventionally, the parameters are checked in sequence in the relevant interfaces, for example, whether the name is legal, whether there is a name, whether ip is legal, whether a network to which ip belongs exists, etc. need to be checked for creating a cloud host. The verification is also needed when the cloud host is modified, but the verification logic is different from the verification logic when the cloud host is created, the verification logic is also needed when the cloud host is modified, and the verification is needed when the cloud host is added with a network card and a cloud hard disk is mounted, and the verification is needed to be maintained in a corresponding interface. This creates redundancy in the code and also does not facilitate reading of the code.
With the development of business, if the demand is changed and check logic needs to be added or reduced, the interface of the cloud host needs to be combed and created, and the corresponding check is added or removed, so that the core code is changed and the opening and closing principle is violated.
Disclosure of Invention
Therefore, an object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a readable medium for checking parameters of resources of a cloud platform, wherein all resources to be checked are designed into a chained structure, when parameter checking is required, a checker is uniformly called to execute the checking method of each resource on the chained structure in turn, and specific function checking is performed in the checking method of each resource. Therefore, the separation of the business flow and the parameter verification is realized, the parameter verification logic is uniformly maintained, and if the verification logic needs to be added or modified, the logic in the verifier only needs to be modified, the code of the business main flow does not need to be modified, and the influence range of the code modification is reduced.
Based on the above object, an aspect of the embodiments of the present invention provides a method for verifying a cloud platform resource parameter, including the following steps: connecting a plurality of resources to be checked in a chain structure based on the checking sequence, and packaging to generate a parameter checker; in response to receiving a request of a user for executing a service through an interface, invoking the parameter checker to check the resource parameter of the user; and if the parameter checker is called to check the resource parameters of the user, allowing the user to execute the service through an interface.
In some embodiments, further comprising: and in response to the resource to be verified needs to be added/deleted/modified, adding/deleting/modifying the corresponding position in the parameter verifier.
In some embodiments, invoking the parameter verifier to verify the user's resource parameters comprises: judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service; if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user; if the resource parameter verification of the user passes, judging whether the next resource to be verified in the parameter verifier needs verification at a node of the user executing service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification.
In some embodiments, further comprising: if the node of the resource to be verified in the parameter verifier for executing the service by the user does not need to be verified, judging whether the node of the next resource to be verified in the parameter verifier for executing the service by the user needs to be verified or not.
In some embodiments, further comprising: if the verification of the resource parameters of the user is not passed, prompting that the resource parameters are abnormal and ending the verification.
In some embodiments, the resource to be verified comprises at least one of: name resource parameters, network resource parameters, status resource parameters, storage resource parameters.
In some implementations, responding to receiving a request from a user to perform a service through an interface includes: responding to a received request of a user for creating a cloud host through an interface; or in response to receiving a request from a user to change the cloud host through the interface; or respond to receiving the request that the user adds the network card through the interface; or in response to receiving a request from a user to mount the cloud hard disk via the interface.
In another aspect of the embodiment of the present invention, there is also provided a verification apparatus for cloud platform resource parameters, including: the first module is configured to connect a plurality of resources to be checked in a chained structure based on the checking sequence, and package the resources to be checked to generate a parameter checker; the second module is configured to respond to the received request of the user for executing the service through the interface, and call the parameter checker to check the resource parameter of the user; and the third module is configured to allow the user to execute the service through an interface if the parameter checker is invoked to check the resource parameter of the user.
In still another aspect of the embodiment of the present invention, there is also provided a computer apparatus, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor performing steps of a method comprising: connecting a plurality of resources to be checked in a chain structure based on the checking sequence, and packaging to generate a parameter checker; in response to receiving a request of a user for executing a service through an interface, invoking the parameter checker to check the resource parameter of the user; and if the parameter checker is called to check the resource parameters of the user, allowing the user to execute the service through an interface.
In some embodiments, further comprising: and in response to the resource to be verified needs to be added/deleted/modified, adding/deleting/modifying the corresponding position in the parameter verifier.
In some embodiments, invoking the parameter verifier to verify the user's resource parameters comprises: judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service; if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user; if the resource parameter verification of the user passes, judging whether the next resource to be verified in the parameter verifier needs verification at a node of the user executing service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification.
In some embodiments, further comprising: if the node of the resource to be verified in the parameter verifier for executing the service by the user does not need to be verified, judging whether the node of the next resource to be verified in the parameter verifier for executing the service by the user needs to be verified or not.
In some embodiments, further comprising: if the verification of the resource parameters of the user is not passed, prompting that the resource parameters are abnormal and ending the verification.
In some embodiments, the resource to be verified comprises at least one of: name resource parameters, network resource parameters, status resource parameters, storage resource parameters.
In some implementations, responding to receiving a request from a user to perform a service through an interface includes: responding to a received request of a user for creating a cloud host through an interface; or in response to receiving a request from a user to change the cloud host through the interface; or respond to receiving the request that the user adds the network card through the interface; or in response to receiving a request from a user to mount the cloud hard disk via the interface.
In yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps as described above.
The invention has the following beneficial technical effects: and designing all the resources to be checked into a chain structure, and when parameter checking is required, uniformly calling a checker to execute the checking methods of all the resources on the chain structure in sequence, and checking specific functions in the checking methods of all the resources. Therefore, the separation of the business flow and the parameter verification is realized, the parameter verification logic is uniformly maintained, and if the verification logic needs to be added or modified, the logic in the verifier only needs to be modified, the code of the business main flow does not need to be modified, and the influence range of the code modification is reduced.
Based on the thought of the appearance mode, a parameter checker is designed, and the business flow does not need to care about check logic and only needs to carry out check by transferring; based on the idea of the responsibility chain mode, a chain type data structure of parameter verification is designed, different businesses execute the chain for parameter verification, and each node of the chain judges which businesses verify the parameters of the current node.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an embodiment of a method for verifying cloud platform resource parameters provided by the present invention;
fig. 2 is a schematic diagram of an embodiment of a verification device for cloud platform resource parameters provided by the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
fig. 4 is a schematic diagram of an embodiment of a computer readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
Based on the above objective, in a first aspect of the embodiments of the present invention, embodiments of a method for verifying cloud platform resource parameters are provided. Fig. 1 is a schematic diagram of an embodiment of a verification method for cloud platform resource parameters provided by the invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s01, connecting a plurality of resources to be checked in a chain structure based on a checking sequence, and packaging to generate a parameter checker;
s02, responding to the received request of the user for executing the service through the interface, and calling a parameter checker to check the resource parameter of the user; and
and S03, if the verification of the resource parameters of the user by calling the parameter verifier is passed, allowing the user to execute the service through the interface.
In this embodiment, a parameter checker is introduced, and parameter resources to be checked are packaged into a class in the parameter checker, the check classes have a common parent class, and are mutually dependent to form a chained structure, and each node checks a parameter. When the calling interface executes the creation of the resource and the updating service requires the parameter verification, the parameter verifier is called, the chained first verification node is called first, the verification of the second node is called automatically after success, and when the verification of one node fails, the error exit is reported until all the nodes pass the verification.
In this embodiment, the specific steps include: creating a parameter checker; packaging parameters to be checked into check types, and forming a chain structure according to the check sequence in a mutually dependent manner; implementing check logic in each check class, and judging which operation needs to execute the check logic; setting a first node of a check link into a parameter checker; when parameter verification is to be performed, a verification method in the parameter verifier is called, a first node in a verification chain is called, and then the first node is called downwards in sequence until the verification is completed.
In the embodiment, based on the thought of the appearance mode, a parameter checker is designed, and the business flow does not need to care about check logic and only needs to be transmitted to check; based on the idea of the responsibility chain mode, a chain type data structure of parameter verification is designed, different businesses execute the chain for parameter verification, and each node of the chain judges which businesses verify the parameters of the current node. The appearance mode refers to a design mode, some functions are packaged and interfaces are exposed, and a calling party does not need to care about internal implementation and directly calls the exposed interfaces to realize the functions; the responsibility chain mode refers to a design mode, logic to be processed is integrated into a chain structure, whether the current operation needs to execute business logic of the node is judged in each chain node, and the next node is directly executed if the current operation does not need to be executed.
In some embodiments of the invention, further comprising: and in response to the need of adding/deleting/modifying the resource to be verified, adding/deleting/modifying the corresponding position in the parameter checker.
In this embodiment, when the logic to be checked needs to be modified by the demand change, only the corresponding check node needs to be modified, the main flow service does not need to be changed, and when the check logic needs to be added, only the corresponding check node needs to be added, and the node is added into the check chain.
In some embodiments of the present invention, invoking the parameter verifier to verify the resource parameter of the user comprises: judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service; if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user; if the user's resource parameter verification passes, judging whether the next resource to be verified in the parameter verifier needs verification at the node where the user executes the service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification.
In this embodiment, when the service parameter is required to be checked, the check method in the checker is called, first the first check method in the check node is executed, first it is determined whether the current service needs to check the node, if not, the check of the next node is directly called, if so, the check of the node is executed, if the check of the next node is passed, the check method of the second node is continuously called, and the check of the third node is completed by the second node until all the verification ends.
In some embodiments of the invention, further comprising: if the node of the parameter checker, which is to be checked, of the user-executed service does not need to be verified, judging whether the node of the next resource to be checked in the parameter checker, which is to be checked, of the user-executed service needs to be verified.
In some embodiments of the invention, further comprising: if the verification of the resource parameters of the user is not passed, prompting that the resource parameters are abnormal and ending the verification.
In this embodiment, if any node fails to check, an exception failure is thrown.
In some embodiments of the invention, the resource to be verified comprises at least one of: name resource parameters, network resource parameters, status resource parameters, storage resource parameters.
In this embodiment, the verification of the resource is required to include: whether the name is legal, whether the name exists, whether the ip is legal, whether the network to which the ip belongs exists, and the like. The method comprises the steps of sequencing resources to be checked according to service requirements, taking the state of a cloud host to be checked as an example, firstly checking whether the cloud host exists, and then checking the state. Thus, the node for checking whether the cloud host exists is located before the node in the checking state. And sequencing according to the verification sequence, wherein the first node refers to the object of the second node, the second node refers to the object of the third node, and the chain is formed in sequence to generate the parameter verifier.
In some embodiments of the invention, responding to receiving a request from a user to perform a service via an interface comprises: responding to a received request of a user for creating a cloud host through an interface; or in response to receiving a request from a user to change the cloud host through the interface; or respond to receiving the request that the user adds the network card through the interface; or in response to receiving a request from a user to mount the cloud hard disk via the interface.
In this embodiment, the cloud platform refers to a system in which a server is virtualized into a virtual machine, and may create functions such as a virtual machine, a virtual network, and storage.
It should be noted that, in the foregoing embodiments of the method for verifying cloud platform resource parameters, each step may be intersected, replaced, added and deleted, so that the method for verifying cloud platform resource parameters by reasonable permutation and combination transformation should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
Based on the above objective, a second aspect of the embodiments of the present invention provides a verification device for cloud platform resource parameters. Fig. 2 is a schematic diagram of an embodiment of a verification device for cloud platform resource parameters provided by the invention. As shown in fig. 2, the embodiment of the invention includes the following modules: the first module S11 is configured to connect a plurality of resources to be checked in a chained structure based on a checking sequence, and package and generate a parameter checker; a second module S12, configured to invoke a parameter checker to check a resource parameter of the user in response to receiving a request from the user to execute a service through the interface; and a third module S13 configured to allow the user to execute the service through the interface if the verification of the resource parameter of the user by the parameter verifier is invoked.
In some embodiments of the present invention, a fourth module is further included and configured to add/delete/modify a corresponding location in the parameter checker in response to the resource to be checked requiring the addition/deletion/modification.
In some embodiments of the invention, the second module S12 is further configured to: judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service; if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user; if the user's resource parameter verification passes, judging whether the next resource to be verified in the parameter verifier needs verification at the node where the user executes the service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification.
In some embodiments of the invention, the second module S12 is further configured to: if the node of the parameter checker, which is to be checked, of the user-executed service does not need to be verified, judging whether the node of the next resource to be checked in the parameter checker, which is to be checked, of the user-executed service needs to be verified.
In some embodiments of the invention, the second module S12 is further configured to: if the verification of the resource parameters of the user is not passed, prompting that the resource parameters are abnormal and ending the verification.
In some embodiments of the invention, the resource to be verified comprises at least one of: name resource parameters, network resource parameters, status resource parameters, storage resource parameters.
In some embodiments of the invention, responding to receiving a request from a user to perform a service via an interface comprises: responding to a received request of a user for creating a cloud host through an interface; or in response to receiving a request from a user to change the cloud host through the interface; or respond to receiving the request that the user adds the network card through the interface; or in response to receiving a request from a user to mount the cloud hard disk via the interface.
Based on the above object, a third aspect of the embodiments of the present invention proposes a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor performing the steps of the method comprising: connecting a plurality of resources to be checked in a chain structure based on the checking sequence, and packaging to generate a parameter checker; in response to receiving a request of a user for executing a service through an interface, a parameter checker is called to check the resource parameters of the user; and if the verification of the resource parameters of the user by the calling parameter verifier passes, allowing the user to execute the service through the interface.
In some embodiments of the invention, further comprising: and in response to the need of adding/deleting/modifying the resource to be verified, adding/deleting/modifying the corresponding position in the parameter checker.
In some embodiments of the present invention, invoking the parameter verifier to verify the resource parameter of the user comprises: judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service; if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user; if the user's resource parameter verification passes, judging whether the next resource to be verified in the parameter verifier needs verification at the node where the user executes the service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification.
In some embodiments of the invention, further comprising: if the node of the parameter checker, which is to be checked, of the user-executed service does not need to be verified, judging whether the node of the next resource to be checked in the parameter checker, which is to be checked, of the user-executed service needs to be verified.
In some embodiments of the invention, further comprising: if the verification of the resource parameters of the user is not passed, prompting that the resource parameters are abnormal and ending the verification.
In some embodiments of the invention, the resource to be verified comprises at least one of: name resource parameters, network resource parameters, status resource parameters, storage resource parameters.
In some embodiments of the invention, responding to receiving a request from a user to perform a service via an interface comprises: responding to a received request of a user for creating a cloud host through an interface; or in response to receiving a request from a user to change the cloud host through the interface; or respond to receiving the request that the user adds the network card through the interface; or in response to receiving a request from a user to mount the cloud hard disk via the interface.
The invention also provides a computer readable storage medium. Fig. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium stores S31 a computer program S32 which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can understand that implementing all or part of the above-mentioned embodiments of the method may be implemented by a computer program to instruct related hardware, and the program of the verification method of the cloud platform resource parameter may be stored in a computer readable storage medium, where the program may include the flow of the embodiments of the above-mentioned methods when executed. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. The above-described functions defined in the methods disclosed in the embodiments of the present invention are performed when the computer program is executed by a processor.
Furthermore, the above-described method steps and system units may also be implemented using a controller and a computer-readable storage medium storing a computer program for causing the controller to implement the above-described steps or unit functions.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general purpose or special purpose computer or general purpose or special purpose processor. Further, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.
Claims (5)
1. The verification method of the cloud platform resource parameters is characterized by comprising the following steps of:
connecting a plurality of resources to be checked in a chain structure based on the checking sequence, and packaging to generate a parameter checker;
in response to receiving a request of a user for executing a service through an interface, invoking the parameter checker to check the resource parameter of the user; and
if the parameter checker is called to check the resource parameters of the user, allowing the user to execute the service through an interface;
further comprises:
responding to the resource to be verified needing to be added/deleted/modified, and adding/deleting/modifying the corresponding position in the parameter verifier;
the step of calling the parameter checker to check the resource parameters of the user comprises the following steps:
judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service;
if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user;
if the resource parameter verification of the user passes, judging whether the next resource to be verified in the parameter verifier needs verification at a node of the user execution service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification;
further comprises:
if the node of the resource to be verified in the parameter verifier for executing the service by the user does not need to be verified, judging whether the node of the next resource to be verified in the parameter verifier for executing the service by the user needs to be verified or not;
the resource to be verified comprises at least one of the following: name resource parameters, network resource parameters, status resource parameters, storage resource parameters;
the responding to the received request of the user to execute the service through the interface comprises the following steps:
responding to a received request of a user for creating a cloud host through an interface; or (b)
Responding to the received request of changing the cloud host through the interface by the user; or (b)
Responding to the received request of adding the network card through the interface by the user; or (b)
And responding to the received request of the user for mounting the cloud hard disk through the interface.
2. The method for verifying cloud platform resource parameters according to claim 1, further comprising:
if the verification of the resource parameters of the user is not passed, prompting that the resource parameters are abnormal and ending the verification.
3. The utility model provides a verification device of cloud platform resource parameter which characterized in that includes:
the first module is configured to connect a plurality of resources to be checked in a chained structure based on the checking sequence, and package the resources to be checked to generate a parameter checker;
the second module is configured to respond to the received request of the user for executing the service through the interface, and call the parameter checker to check the resource parameter of the user; and
a third module configured to allow the user to execute a service through an interface if the verification of the resource parameter of the user by the parameter verifier is invoked to pass;
also included are modules for:
responding to the resource to be verified needing to be added/deleted/modified, and adding/deleting/modifying the corresponding position in the parameter verifier;
the second module is used for:
judging whether the resources to be verified in the parameter verifier need to be verified at the node of the user execution service;
if the to-be-verified resource in the parameter verifier needs to be verified at the node of the user execution service, verifying the resource parameter of the user;
if the resource parameter verification of the user passes, judging whether the next resource to be verified in the parameter verifier needs verification at a node of the user execution service, and repeating the steps until the last resource to be verified in the parameter verifier passes the verification;
also included are modules for:
if the node of the resource to be verified in the parameter verifier for executing the service by the user does not need to be verified, judging whether the node of the next resource to be verified in the parameter verifier for executing the service by the user needs to be verified or not;
the first module is used for:
the resource to be verified comprises at least one of the following: name resource parameters, network resource parameters, status resource parameters, storage resource parameters;
the second module is used for:
responding to a received request of a user for creating a cloud host through an interface; or (b)
Responding to the received request of changing the cloud host through the interface by the user; or (b)
Responding to the received request of adding the network card through the interface by the user; or (b)
And responding to the received request of the user for mounting the cloud hard disk through the interface.
4. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-2.
5. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110807375.9A CN113626314B (en) | 2021-07-16 | 2021-07-16 | Verification method, device and equipment for cloud platform resource parameters and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110807375.9A CN113626314B (en) | 2021-07-16 | 2021-07-16 | Verification method, device and equipment for cloud platform resource parameters and readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113626314A CN113626314A (en) | 2021-11-09 |
CN113626314B true CN113626314B (en) | 2023-12-22 |
Family
ID=78380021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110807375.9A Active CN113626314B (en) | 2021-07-16 | 2021-07-16 | Verification method, device and equipment for cloud platform resource parameters and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113626314B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114281427A (en) * | 2021-12-22 | 2022-04-05 | 上海云轴信息科技有限公司 | Method and equipment for batch parameter configuration and verification |
CN115273527A (en) * | 2022-06-23 | 2022-11-01 | 广东艾科智泊科技股份有限公司 | Cloud parking lot debugging scheme based on mobile device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9432298B1 (en) * | 2011-12-09 | 2016-08-30 | P4tents1, LLC | System, method, and computer program product for improving memory systems |
CN106612204A (en) * | 2015-10-27 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Service verification method and apparatus |
WO2018006789A1 (en) * | 2016-07-04 | 2018-01-11 | 中兴通讯股份有限公司 | Parameter checking method and apparatus, and network management server and computer storage medium |
CN110602056A (en) * | 2019-08-21 | 2019-12-20 | 厦门网宿有限公司 | Service parameter transmission method and device |
CN111444224A (en) * | 2020-03-24 | 2020-07-24 | 政采云有限公司 | Service data verification method and device |
CN111563075A (en) * | 2020-05-06 | 2020-08-21 | 政采云有限公司 | Service checking system, method and equipment and storage medium |
WO2021082340A1 (en) * | 2019-10-30 | 2021-05-06 | 北京海益同展信息科技有限公司 | Data processing method, apparatus, system, and storage medium |
-
2021
- 2021-07-16 CN CN202110807375.9A patent/CN113626314B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9432298B1 (en) * | 2011-12-09 | 2016-08-30 | P4tents1, LLC | System, method, and computer program product for improving memory systems |
CN106612204A (en) * | 2015-10-27 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Service verification method and apparatus |
WO2018006789A1 (en) * | 2016-07-04 | 2018-01-11 | 中兴通讯股份有限公司 | Parameter checking method and apparatus, and network management server and computer storage medium |
CN110602056A (en) * | 2019-08-21 | 2019-12-20 | 厦门网宿有限公司 | Service parameter transmission method and device |
WO2021082340A1 (en) * | 2019-10-30 | 2021-05-06 | 北京海益同展信息科技有限公司 | Data processing method, apparatus, system, and storage medium |
CN111444224A (en) * | 2020-03-24 | 2020-07-24 | 政采云有限公司 | Service data verification method and device |
CN111563075A (en) * | 2020-05-06 | 2020-08-21 | 政采云有限公司 | Service checking system, method and equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113626314A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113626314B (en) | Verification method, device and equipment for cloud platform resource parameters and readable medium | |
WO2021139788A1 (en) | Cloud gateway configuration method, system, apparatus, and computer readable storage medium | |
CN111290865A (en) | Service calling method and device, electronic equipment and storage medium | |
CN111382164B (en) | Service processing method based on block chain network | |
CN111290742A (en) | Parameter verification method and device, electronic equipment and readable storage medium | |
CN110417857B (en) | Block chain protocol processing device, processing method and block chain | |
CN110210845B (en) | Method, apparatus, medium, and computing device for blockchain data migration | |
CN109885612B (en) | Synchronous validation method and device for intelligent contracts of block chains | |
CN110908730A (en) | Cloud platform configuration file management method and management system | |
CN112860222A (en) | Domain driver software design method based on micro-service | |
CN112988409B (en) | Interface calling method and device, computer equipment and storage medium | |
CN106406980A (en) | Deployment method and device for virtual machines | |
CN107436814A (en) | A kind of generation method and device of resource layout template | |
CN112395339A (en) | Method and device for checking data access between systems, computer equipment and storage medium | |
CN111813836A (en) | Method for improving Ethereum block chain system expansibility | |
WO2023168913A1 (en) | Method and apparatus for compatibility of sdk with access application, device and medium | |
CN114422358A (en) | API gateway configuration updating method and equipment | |
US11200146B2 (en) | Method and system for counter example guided loop abstraction refinement | |
CN111488199B (en) | Method, device, equipment and medium for creating virtual machine | |
WO2018018459A1 (en) | Policy processing method and device | |
CN115145590A (en) | Intelligent contract calling request processing device and method and storage medium | |
CN111857744A (en) | Installation method, system, equipment and medium of super-fusion system | |
CN109766340A (en) | The automatic Verification method of incoming parameter | |
CN114443296B (en) | Method, device, equipment and readable medium for returning high-availability event | |
CN117319399B (en) | Cloud platform creation method, device, system, equipment and medium in cloud management platform |
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 |