CN109145034A - Resource rendering method, device and terminal - Google Patents
Resource rendering method, device and terminal Download PDFInfo
- Publication number
- CN109145034A CN109145034A CN201710453426.6A CN201710453426A CN109145034A CN 109145034 A CN109145034 A CN 109145034A CN 201710453426 A CN201710453426 A CN 201710453426A CN 109145034 A CN109145034 A CN 109145034A
- Authority
- CN
- China
- Prior art keywords
- resource
- inquiry request
- infrastructure
- resource information
- terraform
- 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.)
- Granted
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
This application discloses a kind of resource rendering method, device and terminals.Wherein, this method comprises: obtaining inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;Resource information corresponding with inquiry request is obtained, query result is obtained;Resource information is shown in the form of a file.Check that existing resource leads to ineffective technical problem since the tool can not provide during present application addresses existing Terraform tools build and maintenance cloud platform.
Description
Technical field
This application involves computers and internet area, in particular to a kind of resource rendering method, device and calculating
Machine terminal.
Background technique
With the development of computer and Internet technology, more and more enterprises gradually start with " infrastructure i.e. code
(Infrastructure As Code) " constructs and safeguards the infrastructure of oneself.Currently, have already appeared in the market it is many from
Dynamicization the build tool come assist user carry out cloud resource deployment and management, for example, Terraform, Ansible, Chef etc..Its
In, Terraform is the tool for being used to construct, change and merge architecture of a open source, and user is by Terraform work
Tool, definition and the rapid build to infrastructure can be realized based on code.
Terraform tool provides the order of multiple management infrastructures, including is provided according to template preview infrastructure
The order " terraform plan " in source and the order " Terraform apply " for constructing infrastructure.Further, in order to help
It helps user accurately to obtain existing available resources (such as available area, mirror image ID, example types etc.), and provides ginseng for building resource
Number, Terraform tool have provided a user the function DataSource that can be used for inquiring existing resource, still,
DataSource can not be ordered by " terraform plan " and is shown, and cause user that can not understand before establishing resource
Existing resource, and accurate selection is made to according to existing resource, even whether can not determine inquired resource sometimes
In the presence of, often appear in operation " Terraform apply " order after, due to the resource of creation be not user it is desired or
Person's resource there is no etc. reasons influence work so that user has to modify to resource distribution or re-create resource
Efficiency.
It is looked into during for above-mentioned existing Terraform tools build and maintenance cloud platform since the tool can not provide
See that existing resource leads to ineffective problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of resource rendering method, device and terminals, existing at least to solve
Check that existing resource causes work to be imitated since the tool can not provide during Terraform tools build and maintenance cloud platform
The low technical problem of rate.
According to an aspect of an embodiment of the present invention, a kind of resource rendering method is provided, comprising: inquiry request is obtained,
Wherein, inquiry request is used for the resource of inquiring structuring infrastructure;Resource information corresponding with inquiry request is obtained, is inquired
As a result;Resource information is shown in the form of a file.
According to another aspect of an embodiment of the present invention, a kind of resource presentation device is additionally provided, comprising: first obtains list
Member, for obtaining inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;Second acquisition unit is used for
Resource information corresponding with inquiry request is obtained, query result is obtained;Output unit is used for resource information in the form of a file
It is shown.
According to an aspect of an embodiment of the present invention, a kind of resource rendering method is provided, comprising: inquiry request is obtained,
Wherein, inquiry request is used for the resource of inquiring structuring infrastructure;Call the data in infrastructure management tool terraform
Source DataSource function obtains resource information corresponding with inquiry request, obtains query result;Call infrastructure management work
Plan instruction in tool, resource information is shown in the form of a file.
According to another aspect of an embodiment of the present invention, a kind of resource presentation device is additionally provided, comprising: obtain module, use
In acquisition inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;First calling module, for calling
Data source DataSource function in infrastructure management tool terraform obtains resource letter corresponding with inquiry request
Breath, obtains query result;Second calling module, for calling the plan in infrastructure management tool to instruct, by resource information
It is shown in the form of a file.
According to another aspect of an embodiment of the present invention, a kind of terminal is additionally provided, comprising: at least one first control
Part, for showing the querying condition for user's selection, wherein querying condition is for generating the money inquired for constructing infrastructure
The inquiry request in source;Second control, for showing resource information corresponding with inquiry request;Third control, for being arranged with file
The form showing resource information of table.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which is characterized in that storage medium packet
Include the program of storage, wherein equipment where control storage medium executes above-mentioned resource rendering method in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is characterized in that processor is for transporting
Line program, wherein program executes above-mentioned resource rendering method when running.
According to another aspect of an embodiment of the present invention, a kind of system is additionally provided, comprising: processor;And memory, with
Processor connection, for providing the instruction for handling following processing step for processor: obtaining inquiry request, wherein inquiry request
Resource for inquiring structuring infrastructure;Resource information corresponding with inquiry request is obtained, query result is obtained;Resource is believed
Breath is shown in the form of a file.
In embodiments of the present invention, by obtaining inquiry request, wherein inquiry request is for inquiring structuring infrastructure
Resource;Resource information corresponding with inquiry request is obtained, query result is obtained;Resource information is opened up in the form of a file
Show, has reached and shown the resource detail information for constructing one or more resources of infrastructure for use in quick selection
The purpose of the resource needed out to realize the technical effect for improving user job efficiency, and then solves existing
Check that existing resource causes work to be imitated since the tool can not provide during Terraform tools build and maintenance cloud platform
The low technical problem of rate.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of optional cloud service application architecture schematic diagram according to an embodiment of the present invention;
Fig. 2 is the system schematic that a kind of resource according to an embodiment of the present invention is presented;
Fig. 3 is the method flow diagram that a kind of resource according to an embodiment of the present invention is presented;
Fig. 4 is the method flow diagram that a kind of optional resource according to an embodiment of the present invention is presented;
Fig. 5 is the method flow diagram that a kind of optional resource according to an embodiment of the present invention is presented;
Fig. 6 is the method flow diagram that a kind of optional resource according to an embodiment of the present invention is presented;
Fig. 7 is the method flow diagram that a kind of optional resource according to an embodiment of the present invention is presented;
Fig. 8 is the method flow diagram that a kind of optional resource according to an embodiment of the present invention is presented;
Fig. 9 is a kind of resource presentation device schematic diagram according to the embodiment of the present application;
Figure 10 is the method flow diagram presented according to a kind of resource of the embodiment of the present application;
Figure 11 is a kind of resource presentation device schematic diagram according to the embodiment of the present application;
Figure 12 is the interface schematic diagram according to a kind of optional terminal of the embodiment of the present application;And
Figure 13 is the hardware block diagram according to a kind of terminal of the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present application is described are suitable for following solution
It releases:
Terraform is the tool for being used to construct, change and merge cloud infrastructure of a open source.User by
Definition and rapid build to cloud infrastructure can be realized based on code, to realize in Terraform tool
“Infrastructure As Code”。
Terraform plan refers in Terraform tool according to the order of template preview infrastructure resources, the life
Order will not change system, and instruction shows the resource that will be changed, and after validation, be ordered by execution " Terraform apply "
To implement to change.
Terraform apply refers to the order that infrastructure is constructed in Terraform tool.
DataSource refers to database or database server used in database application, in Terraform
In tool, in order to help user accurately to obtain existing available resources (such as available area, mirror image ID, example types etc.), and it is
It constructs infrastructure resources and parameter is provided, Terraform tool has provided a user the function of can be used for inquiring existing resource
DataSource。
Embodiment 1
According to the embodiment of the present application, a kind of resource presentation system embodiment is provided, it should be noted that the present embodiment can
During the maintenance and management of building and infrastructure for various cloud platforms, for example, the AWS based on laaS service,
DigitalOsean, GCE, OpenStack, based on Heroku, CloudFoundry of PaaS service, Atlas based on SaaS,
DNSipmple, CloudFlare etc..A kind of optional embodiment can be used for constructing auxiliary used in these cloud platforms
In the build tool, for example, Terraform tool.Terraform tool defines infrastructure by template, by instruct come
Realize the lifecycle management of asset creation, update and destruction.
As a kind of optional embodiment, Fig. 1 is a kind of optional cloud service application architecture according to the embodiment of the present application
Schematic diagram, as shown in Figure 1, comprising: Cloud Server 101 and application server (shown in figure N number of, respectively 103-1,103-
2,103-N), system, which is presented, in resource provided by the present application can be used in Cloud Server 101 shown in FIG. 1, which mentions
The application architecture of the cloud service of confession can be divided into three layers, be respectively from top to bottom: application layer, service layer, infrastructure layer;Its
In, application layer includes code and the configuration of application program;Service layer includes operating system and system configuration;Infrastructure layer packet
Include: operating system mirror image, VPC, Gateway, Security group, Subnets, automation mouth account for configuration (Scaling),
Bastion (jumphost), VPN etc..Wherein, the automatic management technology of server layer and application layer is commonplace, example
Such as, it can be managed by the automatic configuration software of the comparative maturities such as Puppet, Ansible, Chef, SaltStack.It is right
In the management of infrastructure layer, currently, more commonly used is Terraform tool.
Terraform tool can be used for creation, management infrastructure resource, have the advantages that 1. infrastructure is i.e.
Code;2. the deployment IT infrastructure of highly effective and safe;3. lasting change or iteration infrastructure;4. configuration template file management,
Convenient for Version Control;5. grammer is simple, readable strong;6. supporting the virtual environment or cloud service of mainstream;7. different is virtual
Environment or cloud service use identical workflow;8. AWS CloudFormation can be substituted well;9. facilitating mould
Quasi-, creation, change and destruction part or whole IT infrastructure.Herein it should be noted that, although AWS
CloudFormation may be implemented AWS infrastructure code, but CloudFormation template file is complicated, when change
It is easy error, with the increase of Service Source, CloudFormation file can become very long, be increasingly difficult to read.
Herein it should be noted that the maximum advantage of Terraform tool is exactly infrastructure code, it can
All resources that infrastructure layer is related to all write in a configuration template file, including but not limited to VPC, Gateway,
Security group, Subnets, automation mouth account for configuration (Scaling), Bastion (jumphost), VPN, ec2,
Elastic load balancer, route53, rds, ses, sns etc..
Herein it should also be noted that, using Terraform work since Terraform tool supports a variety of basic platforms
Have the framework that can satisfy continually changing companies needs and external environment and cloud service when managing different platforms and
The variation of service.
Most common two orders are the orders according to template preview infrastructure resources in Terraform tool
" terraform plan " and the order " Terraform apply " for constructing infrastructure.In order to help user accurately to obtain
Existing available resources (such as available area, mirror image ID, example types etc.), and parameter, Terraform tool are provided for building resource
The function DataSource that can be used for inquiring existing resource is provided a user, still, DataSource can not pass through
" terraform plan " order is shown, and causes user that can not understand existing resource before establishing resource, and to according to
Some resources make accurate selection, even can not determine that inquired resource whether there is sometimes, often appear in fortune
After row " Terraform apply " order, the resource of creation be not that user is desired or resource there is no etc. due to,
So that user has to modify to resource distribution or re-create resource, working efficiency is influenced.
Currently, the cloud service provider (including AWS, Azure etc.) that existing Terraform tool is supported, realizes face
It to the DataSource function of respective resource, but is not improved, and is exported in DataSource function
DataSource record only one, this mode will increase due to resource DataSource is empty and establishing resource failure
Possibility.In addition, although also achieving the DataSource towards its cloud platform part resource there are also some cloud service providers
Function, but still cannot achieve the effect for carrying out preview to the resource got before creating infrastructure, and user is past
Toward not knowing in list on earth either with or without resource information, how many group resource information.
From the foregoing, it will be observed that there is following deficiency in existing Terraform tool: 1. cannot be inquiry after execution plan order
To list of available resources show user, cause user not know in fact when quoting some available resources by serial number
The details of this available resources can only just can be appreciated that resource to be referred to after executing apply order and establishing resource
Details;2. executing the Resources list for being returned of plan order is not have sequential, the forward resource of serial number is not necessarily user and passes through
The resource being often used causes user to need that list of available resources is from first to last successively judged and selected, wastes time, can not do
It sorts to the recommendation for user;3. user needs to define each with the mode of key-value pair available when defining resource template
The parameter of resource, it is often troublesome if there are many parameter of available resources, lack the mode of fuzzy query.
Under above-mentioned business scenario, applicant before executing Terraform apply instruction, passes through through studying
Terraform plan instruction exports the list of available resources in the form of a file, checks, can make for user
The function DataSource for inquiring existing resource that Terraform tool provides really realizes help user's selection resource,
The function of checking resource, a possibility that reducing the failure of establishing resource, to improve the working efficiency of user.
It is main to wrap as a result, as an alternative embodiment, proposing the system that a kind of resource shown in Fig. 2 is presented
Include following two parts: (1) parameter query that is provided according to user simultaneously obtains the DataSource of corresponding resource, and by its with
User has resource and carries out the matching analysis, realizes the sequence to resource DataSource, the resource recommendation that user is commonly used
To front, user is facilitated to check and quote, wherein, can be according to fuzzy query parameter in the case where user is new user
Priority or the resource parameters priority of system default carry out the matching analysis, and then realize the sequence to resource DataSource,
User is facilitated to check and quote;(2) providing one for each DataSource can support to carry out fuzzy query to multiple fields
Parameter, user defines the parameter of DataSource without using cumbersome key-value pair, it is only necessary to multiple parameter values spy
Different symbol is separated as fuzzy query parameter, and after executing plan order, simulation query argument can be resolvable to reasonable key
It is worth the inquiry to DataSource is participated in, the priority of field will be arranged as final DataSource list in fuzzy query parameter
The impact factor of sequence result greatly simplifies the process that user defines DataSource.
As shown in Fig. 2, user defines the template for needing to obtain resource first, terraform plan order is then run,
Terraform parses template parameter according to the DataSource of corresponding function, including fuzzy query parameter, and by with cloud platform
The resource results for meeting customer parameter are obtained after interacting, and are possessed situation then according to resource of the user on platform and its are matched
The priority for setting and inputting parameter is filtered the resource results got, and filtered result is ranked up, finally
Effective resource DataSource is generated as a result, result is shown to user in the form of a file later, and choose from result
Its result parameter is written in variable files variables.tf one group of resource for being best suitable for user demand, and end user utilizes and pushes away
The parameter recommended or the parameter voluntarily selected, operation Terraform apply realize the building to infrastructure.
Through the above scheme, following technical effect may be implemented: (1) exporting the function of DataSource details, that is, holding
After row plan order executes, the query result of DataSource function is saved in the form of a file, user can be ordered by cat
The details for checking these DataSource and corresponding serial number are enabled, user is increased to the visibility of existing resource, reduces
The complexity of user's selection resource;(2) according to the filter condition of user, the DataSource of corresponding resource is obtained, is therefrom selected
One group is best suitable for the resource of user's use habit, and their property parameters are written in the variable files of Terraform, exempts from
User is gone to select the trouble of resource.
Herein it should be noted that due to Terraform be write using Go language, thus implement the application when can also
Reach implementation result to use Go language, but result output can support a variety of file formats.
Embodiment 2
According to the embodiment of the present application, a kind of resource rendering method embodiment is provided, resource provided in this embodiment is presented
Method can be applied in the cloud service system framework of the offer of the embodiment of the present application 1, and including but not limited to the embodiment of the present application 1 is retouched
The application scenarios stated.It should be noted that step shown in the flowchart of the accompanying drawings can be executable in such as one group of computer
It is executed in the computer system of instruction, although also, logical order is shown in flow charts, and it in some cases, can
With the steps shown or described are performed in an order that is different from the one herein.
Currently, it is existing for constructing and safeguarding the build tool of infrastructure, existing resource is inquired although providing
Query function, but resource can not be showed before establishing resource, there is which resource since user can not understand, it is even more impossible to
It is selected according to existing resource, leading to the resource of creation may not be expected resource, thereby increases and it is possible to since resource is not present
In the case where, thus, user just can only modify to resource distribution or re-create resource after mistake occurs, and lead to work
Efficiency substantially reduces.
Under above-mentioned application environment, this application provides a kind of resource rendering methods shown in Fig. 3, before establishing resource,
The list of available resources is exported in the form of a file, is checked for user, can be selected according to the available resources of output come
Realize the purpose of establishing resource, specifically, Fig. 3 is a kind of resource rendering method flow chart according to the embodiment of the present application, such as Fig. 3
It is shown, include the following steps:
Step S302 obtains inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure.
Specifically, in above-mentioned steps, the resource of above-mentioned building infrastructure can be the infrastructure of various cloud platforms
Resource (for example, region, available area, mirror image, example etc.), above-mentioned inquiry request can be to be related to by any in various cloud platforms
To the request that cloud infrastructure resource is browsed or inquired, it is also possible to various infrastructure structure for cloud platform
Inquire the request of cloud infrastructure resource in the software tool built or managed, it, can be to each in a kind of optional optional embodiment
Cloud infrastructure resource is looked into the Open-Source Tools Terraform that the cloud infrastructure of kind cloud platform is constructed and safeguarded
The request of inquiry.
Optionally, above-mentioned cloud platform includes but is not limited to Baidu's cloud, Tencent's cloud etc..
It, cannot be available what is inquired after execution plan order herein it should be noted that in Terraform tool
The Resources list shows user, and user is caused not know that this is available when quoting some available resources by serial number in fact
The details of resource can only just can be appreciated that resource to be referred to details after executing apply order and establishing resource.Cause
And existing Terraform tool cannot achieve the effect for carrying out preview to the resource got before creating infrastructure,
And user does not often know that how many group resource information causes running on earth either with or without resource information in list
After " Terraform apply " order, the resource of creation be not that user is desired or resource there is no etc. due to, make
It obtains user to have to modify to resource distribution or re-create resource, influences working efficiency.
Step S304 obtains resource information corresponding with inquiry request, obtains query result.
Specifically, in above-mentioned steps, above-mentioned resource information can be current root it is investigated that asking the resource that request arrives
The information such as details, the including but not limited to title of resource, resource whether there is, whether resource can be used;Getting inquiry
After the inquiry request of resource, the resource information of one or more resources corresponding with the inquiry request is obtained.It should be noted that
If there is no resource corresponding with current queries request, then user's resource can be prompted to be not present, it further, can be with
The resource information of other related resources of the resource is replaced in prompt.
Resource information is shown by step S306 in the form of a file.
Specifically, in above-mentioned steps, whether name information, the resource that above-mentioned resource information can include at least resource are deposited
, resource whether can with etc. information;According to inquiry request, the resource detail information of one or more resources is got, will be provided
Source information is shown in the form of a file, wherein the form of file includes but is not limited to the formats such as word, excel, txt.
It, can be by the basis of various cloud platforms herein it should be noted that scheme disclosed in above-mentioned steps S302 to S306
Facility resource carries out visualization and shows, and the form showed includes but is not limited to the form of above-mentioned file, can also be other shapes
Formula, as long as being related to after the infrastructure resources of inquiry cloud platform visualize by the infrastructure resources inquired shows
Scheme the application protect in the range of.
It, can be by the resource information of the one or more resources inquired with tabular form exhibition in a kind of optional embodiment
Show, it is alternatively possible to be shown after being ranked up the resource information of one or more resources according to pre-set priority.
As a kind of optional embodiment, resource information is shown in the form of a file, may include:
Resource information is converted to default file by step S3061;
Step S3063 shows the default file.
Specifically, in above-mentioned steps, above-mentioned default file can include but is not limited to word, excel, txt format,
It, will after inquiring one or more cloud infrastructure resources according to the inquiry request of the infrastructure resources for inquiring cloud platform
The resource detail information of these cloud infrastructure resources is converted to default file, then shows these default files.
From the foregoing, it will be observed that in the above embodiments of the present application, during being disposed in cloud platform and manage cloud resource, when obtaining
After the inquiry request for getting the resource of inquiring structuring infrastructure, one or more resources corresponding with the inquiry request are obtained
Resource information, and after inquiring the resource information of one or more resources for constructing infrastructure, inquiry is obtained
Resource information is shown in the form of a file, so that user can obtain the money for constructing infrastructure by checking this document
The detail information in source.It is easy it is noted that the inquiry request of the above-mentioned resource for inquiring structuring infrastructure can be directly
Inquiry request is also possible to indirect inquiry request (for example, " terraform plan " life executed in Terraform tool
Enable request).
The scheme provided by the above embodiments of the present application 2, one or more resources of infrastructure will be constructed by having reached
Resource detail information shown for use in the purpose for the resource for quickly selecting needs, thus realize improve user's work
Make the technical effect of efficiency, so solve existing Terraform tools build and maintenance cloud platform during due to the work
Tool, which can not provide, checks that existing resource leads to ineffective technical problem.
In an alternative embodiment, as shown in figure 4, before resource information is shown in the form of a file,
The above method can also include the following steps:
Step S402 is filtered query result according to the first preset rules, obtains filtered resource information;
Step S404 is ranked up filtered resource information according to the second preset rules.
Specifically, in above-mentioned steps, above-mentioned first preset rules can be pre-set default rule, be also possible to
The filtering rule of the customized input of user;Above-mentioned second preset rules can be also possible to user with pre-set default rule
The ordering rule of customized input.
Optionally, above-mentioned first preset rules include but is not limited to: filtering according to resource type, according to resource name mistake
Filter.
Optionally, above-mentioned second preset rules include but is not limited to: being ranked up according to frequency of use, according to using the time
It is ranked up.
Herein it should be noted that by taking Terraform tool as an example, in the case that user has resource, to acquisition
To multiple resources resource information be ranked up during, as a kind of optional embodiment, if user is to use always
Family, and possessed cloud infrastructure resource, the parameter query that can be provided according to user simultaneously obtains corresponding resource
DataSource, and it is had into resource with user and carries out the matching analysis, the sequence to resource DataSource is realized, by user
The resource recommendation being commonly used facilitates user to check and quote to front;As another optional embodiment, if user
It is new user, temporarily there are no the infrastructure resources of user, then can be silent according to the priority or system of fuzzy query parameter
The resource parameters priority recognized carries out the matching analysis, and then realizes the sequence to resource DataSource, facilitate user check and
Reference.
Through the foregoing embodiment, the filtering and screening to cloud resource may be implemented, and the resource after filtering and screening is believed
The purpose that breath is shown after being ranked up, avoids the problem of user successively searches in order, further improves user and browses money
The user experience of source information.
In a kind of optional embodiment, during with document form showing resource details, the mistake of user can be passed through
Filter condition is ranked up filtered resource, will more meet user habit resource come forward position, remove from user by
The work that row is searched.
It in an alternative embodiment, can as shown in figure 5, being filtered according to the first preset rules to query result
To include the following steps:
Step S502 obtains the history usage record of resource;
Step S504 determines the behavioural characteristic of user according to history usage record;
Step S506 obtains the query result for meeting behavioural characteristic.
Specifically, in above-mentioned steps, above-mentioned history usage record includes at least one got according to inquiry request
The service condition of resource determines the behavioural characteristic of user according to the service condition of each resource, and exports and meet behavior feature
At least one resource resource information.
Through the foregoing embodiment, the use habit previous according to user is realized, user will be best suitable for and select be accustomed to one
Purpose of the group resource recommendation to user.
In order to avoid the troublesome operation of user input query condition, user can be determined by clicking selection querying condition
For constructing the inquiry request of at least one resource of infrastructure, in a kind of optional embodiment, looked into as shown in fig. 6, obtaining
Request is ask, may include steps of:
Step S602 is received in the operation interface of infrastructure management tool and is referred to the selection of at least one querying condition
It enables;
Step S604 generates inquiry request according to the selected querying condition of selection instruction.
Specifically, in above-mentioned steps, above-mentioned infrastructure management tool can be the cloud for managing each cloud platform
The application program of resource or service based on Web.Aforesaid operations interface can be to be used in application program or service based on Web
Manage the interface of cloud resource.It, can not be fast using some simple conditions since the mutual dependence of cloud resource is complex
Effective resource is accurately obtained by filtration in speed, constructs infrastructure for user and brings certain difficulty, thus through the above steps
S602 and S604, the one or more querying conditions that can be selected according to user generate the inquiry request of query resource.
Through the foregoing embodiment, user experience is further improved.
In an alternative embodiment, above-mentioned infrastructure management tool may include: terraform tool;It will money
Source information is shown in the form of a file, comprising: and step S3065 executes the plan order that terraform tool provides, with
Showing resource information.
Specifically, in above-mentioned steps, above-mentioned terraform tool be it is a support various cloud platforms be used to construct,
Change and the Open-Source Tools for merging architecture;Above-mentioned plan order is that terraform tool is used for according to template preview basis
The order of facility resource;After receiving plan order in terraform tool, by infrastructure resources in the form of a file into
Row is shown, can make user that can not understand existing resource before establishing resource, and make accurately to according to existing resource
Selection.
Through the foregoing embodiment, using terraform basic function (datasource function) and plan order, cloud is realized
Mapping of the resource from code definition to infrastructure resources, for user's rapid build cloud platform infrastructure provide one it is convenient
Channel.
In an alternative embodiment, resource information corresponding with inquiry request is obtained, as shown in fig. 7, comprises:
Step S702 obtains corresponding with inquiry request query argument, wherein query argument be support multiple parameter values into
The parameter of row fuzzy query;
Step S704 searches resource information corresponding with query argument according to query argument.
It specifically, is each by taking the datasource function of terraform tool as an example in above-mentioned steps
DataSource provides the parameter that can support to carry out multiple fields fuzzy query, and user is without using cumbersome key-value pair
To define the parameter of DataSource, it is only necessary to use additional character to separate as fuzzy query parameter, plan multiple parameter values
The inquiry that reasonable key-value pair participates in DataSource can be resolvable to after order, field is preferential in fuzzy query parameter
Impact factor as final datasource list ordering result is greatly simplified user and defines DataSource's by grade
Process.
In an alternative embodiment, it as shown in figure 8, obtaining resource information corresponding with inquiry request, is inquired
As a result after, the above method can also include the following steps:
Resource information is written in the variable files of calling step S802.
Specifically, in above-mentioned steps, in the resource detail information for getting one or more resources according to inquiry request
Afterwards, in the variable files that the resource information write-in of each resource inquiry obtained is called, user can be removed from and select resource
Trouble.
Through the foregoing embodiment, the resource information of each resource inquiry obtained is (for example, each of DataSource looks into
Ask parameter) it is written in variable files, so that user can be directly realized by without searching to infrastructure after getting resource
Building.
It, can be perfect herein it should be noted that the above-mentioned each embodiment of the application is applied in terraform tool
Datasource function in terraform tool, in a manner of file before constructing infrastructure to user comprehensively, accurately
It shows list of available resources, and selects one group to be best suitable for user from the resource got according to the behavior of user and use habit
Used resource recommendation removes the trouble that user selects resource to user.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method that the resource of example is presented can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hard
Part, but the former is more preferably embodiment in many cases.Based on this understanding, the technical solution of the application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in
In one storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be hand
Machine, computer, server or network equipment etc.) execute method described in each embodiment of the application.
Embodiment 3
According to the embodiment of the present application, a kind of device for realizing resource rendering method in above-described embodiment 2 is additionally provided
Embodiment, Fig. 9 are a kind of resource presentation device schematic diagrames according to the embodiment of the present application, as shown in figure 9, the device includes:
One acquiring unit 901, second acquisition unit 903 and output unit 905.
Wherein, first acquisition unit 901, for obtaining inquiry request, wherein inquiry request is set for inquiring structuring basis
The resource applied;
Second acquisition unit 903 obtains query result for obtaining resource information corresponding with inquiry request;
Output unit 905, for resource information to be shown in the form of a file.
Herein it should be noted that above-mentioned first acquisition unit 901, second acquisition unit 903 and output unit 905 are corresponding
Step S302 to S306 in embodiment 2, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but
It is not limited to the above embodiments 2 disclosure of that.It should be noted that above-mentioned module can be such as a part of of device
It is executed in the computer system of a group of computer-executable instructions.
From the foregoing, it will be observed that during being disposed in cloud platform and manage cloud resource, passing through in the above embodiments of the present application
First acquisition unit 901 gets the inquiry request of the resource of inquiring structuring infrastructure, is obtained by second acquisition unit 903
It is corresponding with the inquiry request one or more resource resource information, and inquire one for constructing infrastructure or
After the resource information of multiple resources, the resource information that inquiry obtains is shown in the form of a file by output unit 905, so as to
User can obtain the detail information of the resource for constructing infrastructure by checking this document.Be easy it is noted that on
It states and can be direct inquiry request for the inquiry request of the resource of inquiring structuring infrastructure, be also possible to indirect inquiry request
(for example, " terraform plan " command request executed in Terraform tool).
The scheme provided by the above embodiments of the present application 3, one or more resources of infrastructure will be constructed by having reached
Resource detail information shown for use in the purpose for the resource for quickly selecting needs, thus realize improve user's work
Make the technical effect of efficiency, so solve existing Terraform tools build and maintenance cloud platform during due to the work
Tool, which can not provide, checks that existing resource leads to ineffective technical problem.
In an alternative embodiment, above-mentioned apparatus further include: filter element, for according to the first preset rules to looking into
It askes result to be filtered, obtains filtered resource information;Sequencing unit, for pre- according to second to filtered resource information
If rule is ranked up.
Herein it should be noted that above-mentioned filter element and sequencing unit correspond to the step S402 in embodiment 2 extremely
S404, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but is not limited to the above embodiments disclosed in 2
Content.It should be noted that above-mentioned module can be in such as a group of computer-executable instructions as a part of of device
It is executed in computer system.
In an alternative embodiment, above-mentioned filter element includes: third acquiring unit, for obtaining the history of resource
Usage record;Determination unit, for determining the behavioural characteristic of user according to history usage record;4th acquiring unit, for obtaining
Take the query result for meeting behavioural characteristic.
Herein it should be noted that above-mentioned third acquiring unit, determination unit and the 4th acquiring unit correspond to embodiment 2
In step S502 to S506, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but is not limited to
State 2 disclosure of that of embodiment.It should be noted that above-mentioned module can be in such as one group of calculating as a part of of device
It is executed in the computer system of machine executable instruction.
In an alternative embodiment, above-mentioned first acquisition unit includes: receiving unit, in infrastructure management
The selection instruction at least one querying condition is received in the operation interface of tool;Generation unit, for according to selection instruction institute
Selected querying condition generates inquiry request.
Herein it should be noted that above-mentioned receiving unit and generation unit correspond to the step S602 in embodiment 2 extremely
S604, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but is not limited to the above embodiments disclosed in 2
Content.It should be noted that above-mentioned module can be in such as a group of computer-executable instructions as a part of of device
It is executed in computer system.
In an alternative embodiment, infrastructure management tool includes: terraform tool;Above-mentioned output unit
It include: execution unit, for executing the plan order of terraform tool offer, with showing resource information.
Herein it should be noted that above-mentioned execution unit correspond to embodiment 2 in step S3061, above-mentioned module with it is right
The example that the step of answering is realized is identical with application scenarios, but is not limited to the above embodiments 2 disclosure of that.It needs to illustrate
It is that above-mentioned module can execute in a computer system such as a set of computer executable instructions as a part of of device.
In an alternative embodiment, above-mentioned second acquisition unit includes: the 5th acquiring unit, for obtaining and inquiring
Request corresponding query argument, wherein query argument is that multiple parameter values is supported to carry out the parameter of fuzzy query;Searching unit,
For searching resource information corresponding with query argument according to query argument.
Herein it should be noted that above-mentioned 5th acquiring unit and searching unit correspond to the step S702 in embodiment 2
To S704, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but it is public to be not limited to the above embodiments 2 institutes
The content opened.It should be noted that above-mentioned module can be in such as a group of computer-executable instructions as a part of of device
Computer system in execute.
In an alternative embodiment, above-mentioned apparatus further include: writing unit, for being written resource information for calling
Variable files in.
Herein it should be noted that above-mentioned writing unit correspond to embodiment 2 in step S802, above-mentioned module with it is corresponding
The step of the example realized it is identical with application scenarios, but be not limited to the above embodiments 2 disclosure of that.It needs to illustrate
It is that above-mentioned module can execute in a computer system such as a set of computer executable instructions as a part of of device.
Embodiment 4
According to the embodiment of the present application, a kind of resource rendering method embodiment is provided, resource provided in this embodiment is presented
Method can be applied in the cloud service system framework of the offer of the embodiment of the present application 1, and including but not limited to the embodiment of the present application 1 is retouched
The application scenarios stated.It should be noted that step shown in the flowchart of the accompanying drawings can be executable in such as one group of computer
It is executed in the computer system of instruction, although also, logical order is shown in flow charts, and it in some cases, can
With the steps shown or described are performed in an order that is different from the one herein.
This application provides a kind of resource rendering methods shown in Fig. 10, are applied to terraform tool, Figure 10 is basis
A kind of method flow diagram of acquisition identifying code of the embodiment of the present application includes the following steps: as shown in Figure 10
Step S102 obtains inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;
Step S104, call infrastructure management tool terraform in data source DataSource function, obtain with
The corresponding resource information of inquiry request, obtains query result;
Step S106 calls the plan instruction in infrastructure management tool, resource information is carried out in the form of a file
It shows.
Specifically, in above-mentioned steps, above-mentioned infrastructure management tool terraform is the cloud base to various cloud platforms
The Open-Source Tools that Infrastructure is constructed and safeguarded, above-mentioned inquiry request can be for cloud platform infrastructure building or
The request that cloud infrastructure resource is inquired in the infrastructure management tool terraform of management is receiving inquiry cloud basis
After the request of facility resource, the data source DataSource function in infrastructure management tool terraform is called, and obtain
The resource detail information for taking one or more resources corresponding with the inquiry request, when user executes infrastructure management tool
In terraform plan instruction after, by the resource detail information of the one or more resources inquired in the form of a file into
Row is shown, wherein DataSource function is to provide in Terraform tool for inquiring the function of existing resource, so as to
User can accurately obtain existing available resources (such as available area, mirror image ID, example types etc.), and be building infrastructure
Resource provides parameter.
From the foregoing, it will be observed that in the above embodiments of the present application, by cloud resource of the terraform to cloud platform carry out deployment and
Management, after getting the inquiry request of resource of inquiring structuring infrastructure, obtain it is corresponding with the inquiry request one or
The resource information of multiple resources, by calling the DataSource functional inquiry of terraform tool for constructing infrastructure
One or more resources resource information, the obtained resource information of inquiry is opened up in the form of a file finally by plan instruction
Show, so that user can obtain the detail information of the resource for constructing infrastructure by checking this document.
The scheme provided by the above embodiments of the present application 4, one or more resources of infrastructure will be constructed by having reached
Resource detail information shown for use in the purpose for the resource for quickly selecting needs, thus realize improve user's work
Make the technical effect of efficiency, so solve existing Terraform tools build and maintenance cloud platform during due to the work
Tool, which can not provide, checks that existing resource leads to ineffective technical problem.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method that the resource of example is presented can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hard
Part, but the former is more preferably embodiment in many cases.Based on this understanding, the technical solution of the application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in
In one storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be hand
Machine, computer, server or network equipment etc.) execute method described in each embodiment of the application.
Embodiment 5
According to the embodiment of the present application, a kind of dress of method presented for realizing resource in above-described embodiment 4 is additionally provided
Embodiment is set, Figure 11 is a kind of resource presentation device schematic diagram according to the embodiment of the present application, as shown in figure 11, the device packet
It includes: obtaining module 111, the first calling module 113 and the second calling module 115.
Wherein, module 111 is obtained, for obtaining inquiry request, wherein inquiry request is for inquiring structuring infrastructure
Resource;
First calling module 113, for calling the data source DataSource in infrastructure management tool terraform
Function obtains resource information corresponding with inquiry request, obtains query result;
Second calling module 115, for calling the plan in infrastructure management tool to instruct, by resource information with file
Form be shown.
Herein it should be noted that above-mentioned acquisition module 111, the first calling module 113 and the second calling module 115 are corresponding
Step S102 to S106 in embodiment 4, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but
It is not limited to the above embodiments 1 disclosure of that.It should be noted that above-mentioned module can be such as a part of of device
It is executed in the computer system of a group of computer-executable instructions.
From the foregoing, it will be observed that in the above embodiments of the present application, by cloud resource of the terraform to cloud platform carry out deployment and
Management, the inquiry request for obtaining the resource of inquiring structuring infrastructure by obtaining module 111, passes through the first calling module 113
The DataSource functional inquiry of terraform tool is called to be used to construct the resource letter of one or more resources of infrastructure
Breath, the resource information that the second last calling module 115 calls the plan instruction in terraform tool to obtain inquiry is with file
Form show, so that user can obtain the detail information of the resource for constructing infrastructure by checking this document.
The scheme provided by the above embodiments of the present application 5, one or more resources of infrastructure will be constructed by having reached
Resource detail information shown for use in the purpose for the resource for quickly selecting needs, thus realize improve user's work
Make the technical effect of efficiency, so solve existing Terraform tools build and maintenance cloud platform during due to the work
Tool, which can not provide, checks that existing resource leads to ineffective technical problem.
Embodiment 6
According to the embodiment of the present application, a kind of terminal embodiment is additionally provided, Figure 12 is according to the embodiment of the present application
A kind of terminal interface schematic diagram, as shown in figure 12, the terminal provide human-computer interaction interface, wherein people
Machine interactive interface includes: at least one first control 121, the second control 123 and third control 125.
Wherein, at least one first control 121, for showing the querying condition for user's selection, wherein querying condition is used
The inquiry request for constructing the resource of infrastructure is inquired in generation;
Second control 123, for showing resource information corresponding with inquiry request;
Third control 125, for the showing resource information in the form of listed files.
Specifically, above-mentioned terminal can be used for constructing and managing the server of various cloud infrastructure resources, should
Auxiliary the build tool for constructing and managing various cloud infrastructure resources is installed (for example, Terraform work on server
Tool), above-mentioned human-computer interaction interface can be the operation interface in auxiliary the build tool, and multiple displaying inquiries are provided in the interface
The control (i.e. the first control 121) of condition, user can realize querying condition by selecting one or more first controls 121
Selection, inquire inquiry request for constructing the resource of infrastructure to generate;Above-mentioned second control 123 can be used for showing
The resource of the building infrastructure each inquired, above-mentioned third control 125, which can be used for showing in the form of listed files, to be obtained
All resources are got, optionally, these resources are (for example, file a, file b shown in Figure 12, file c, file d) are in third
Displaying sequence in control 125 can be ranked up according to certain priority after obtain.
It optionally, can also include multiple child controls under above-mentioned each first control 121, for selecting multiple subquery items
Part;Optionally, show that list includes but is not limited to the tabular form shown in Figure 12 in above-mentioned third control 125, it can be with it
The display mode that his mode arranges, for example, the resource name of each resource is shown with tabular form.
From the foregoing, it will be observed that during being disposed in cloud platform and manage cloud resource, passing through in the above embodiments of the present application
It selects one or more first controls 121 that the inquiry request of the resource for inquiring structuring infrastructure can be generated, is obtaining
To after the inquiry request of the resource of inquiring structuring infrastructure, the money of one or more resources corresponding with the inquiry request is obtained
Source information, and after inquiring the resource information of one or more resources for constructing infrastructure, inquiry is obtained every
The resource information of a resource shown in the second control 123 respectively, or the resource information for all resources that inquiry is obtained with
The form of listed files is shown in third control 125, so that user can be obtained by checking this document for constructing basis
The detail information of the resource of facility.It is easy it is noted that the inquiry request of the above-mentioned resource for inquiring structuring infrastructure can
To be direct inquiry request, it is also possible to indirect inquiry request (for example, " terraform executed in Terraform tool
Plan " command request).
The scheme provided by the above embodiments of the present application 6, one or more resources of infrastructure will be constructed by having reached
Resource detail information shown for use in the purpose for the resource for quickly selecting needs, thus realize improve user's work
Make the technical effect of efficiency, so solve existing Terraform tools build and maintenance cloud platform during due to the work
Tool, which can not provide, checks that existing resource leads to ineffective technical problem.
Embodiment 7
Embodiments herein can provide a kind of terminal, which can be in terminal group
Any one computer terminal.Optionally, in the present embodiment, above-mentioned terminal also could alternatively be mobile whole
The terminal devices such as end.
Optionally, in the present embodiment, above-mentioned terminal can be located in multiple network equipments of computer network
At least one access equipment.
Figure 13 shows a kind of hardware block diagram of terminal.As shown in figure 13, terminal 13 can wrap
Include one or more (using 132a, 132b ... ... in figure, 132n to show) processors 132 (processor 132 may include but
Be not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), memory 134 for storing data, with
And the transmitting device 136 for communication function.It in addition to this, can also include: display, (I/O connects input/output interface
Mouthful), the port universal serial bus (USB) (a port that can be used as in the port of I/O interface is included), network interface,
Power supply and/or camera.It will appreciated by the skilled person that structure shown in Figure 13 is only to illustrate, not to above-mentioned
The structure of electronic device causes to limit.For example, terminal 13 may also include than shown in Figure 13 more or less groups
Part, or with the configuration different from shown in Figure 13.
It is to be noted that said one or multiple processors 132 and/or other data processing circuits lead to herein
Can often " data processing circuit " be referred to as.The data processing circuit all or part of can be presented as software, hardware, firmware
Or any other combination.In addition, data processing circuit for single independent processing module or all or part of can be integrated to meter
In any one in other elements in calculation machine terminal 13.As involved in the embodiment of the present application, data processing electricity
Road controls (such as the selection for the variable resistance end path connecting with interface) as a kind of processor.
Processor 132 can call the information and application program of memory storage by transmitting device, to execute following steps
It is rapid: obtain at least two types verify data, wherein the type of verify data include it is at least one of following: text, picture,
Animation and character;Obtain the identifying code combined by the verify data of at least two types;Identifying code is transmitted to front end to set
It is standby to be shown, wherein the display area of different types of verify data is overlapped.
Memory 134 can be used for storing the software program and module of application software, such as the resource in the embodiment of the present application
Corresponding program instruction/the data storage device of the method for presentation, processor 132 are stored in soft in memory 134 by operation
Part program and module realize that the resource of above-mentioned application program is in thereby executing various function application and data processing
Existing method.Memory 134 may include high speed random access memory, may also include nonvolatile memory, such as one or more
Magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 134 can be wrapped further
The memory remotely located relative to processor 132 is included, these remote memories can pass through network connection to terminal
13.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 136 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of terminal 13 provide.In an example, transmitting device 136 includes that a network is suitable
Orchestration (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to
Internet is communicated.In an example, transmitting device 136 can be radio frequency (Radio Frequency, RF) module,
For wirelessly being communicated with internet.
Display can such as touch-screen type liquid crystal display (LCD), the liquid crystal display aloow user with
The user interface of terminal 13 interacts.
Herein it should be noted that in some optional embodiments, terminal 13 shown in above-mentioned Figure 13 can wrap
Include hardware element (including circuit), software element (including the computer code that may be stored on the computer-readable medium) or hardware
The combination of both element and software element.It should be pointed out that Figure 13 is only an example of particular embodiment, and it is intended to
The type for the component that may be present in above-mentioned terminal 13 is shown.
In the present embodiment, above-mentioned terminal 13 can be with step following in the method for the resource of executing application presentation
Rapid program code: inquiry request is obtained, wherein inquiry request is used for the resource of inquiring structuring infrastructure;It obtains and inquires
Corresponding resource information is requested, query result is obtained;Resource information is shown in the form of a file.
Processor can call the information and application program of memory storage by transmitting device, to execute following step:
Obtain inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;Obtain resource corresponding with inquiry request
Information obtains query result;Resource information is shown in the form of a file.
Optionally, the program code of following steps can also be performed in above-mentioned processor: according to the first preset rules to inquiry
As a result it is filtered, obtains filtered resource information;Filtered resource information is ranked up according to the second preset rules.
Optionally, the program code of following steps can also be performed in above-mentioned processor: obtaining the history usage record of resource;
The behavioural characteristic of user is determined according to history usage record;Obtain the query result for meeting behavioural characteristic.
Optionally, the program code of following steps can also be performed in above-mentioned processor: in the behaviour of infrastructure management tool
Make to receive the selection instruction at least one querying condition on interface;Inquiry is generated according to the selected querying condition of selection instruction
Request.
Optionally, above-mentioned processor can also be performed the program code of following steps: infrastructure management tool includes:
Terraform tool;Resource information is shown in the form of a file, comprising: execute the plan that terraform tool provides
Order, with showing resource information.
Optionally, the program code of following steps can also be performed in above-mentioned processor: obtaining look into corresponding with inquiry request
Ask parameter, wherein query argument is that multiple parameter values is supported to carry out the parameter of fuzzy query;It searches and inquires according to query argument
The corresponding resource information of parameter.
Optionally, the program code of following steps can also be performed in above-mentioned processor: resource information is written for calling
In variable files.
It will appreciated by the skilled person that structure shown in Figure 13 is only to illustrate, terminal is also possible to
Smart phone (such as Android phone, iOS mobile phone), tablet computer, applause computer and mobile internet device (Mobile
Internet Devices, MID), the terminal devices such as PAD.Figure 13 it does not cause to limit to the structure of above-mentioned electronic device.Example
Such as, terminal 13 may also include the more or less component (such as network interface, display device) than shown in Figure 13,
Or with the configuration different from shown in Figure 13.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
Embodiment 8
According to the embodiment of the present application, a kind of storage medium is additionally provided.Optionally, in the present embodiment, above-mentioned storage is situated between
Matter can be used to save program code performed by the method for the presentation of resource provided by above-described embodiment 2.
Optionally, in the present embodiment, above-mentioned storage medium can be located in computer network in computer terminal group
In any one terminal, or in any one mobile terminal in mobile terminal group.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: obtaining
Take inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;Obtain resource letter corresponding with inquiry request
Breath, obtains query result;Resource information is shown in the form of a file.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: obtaining
Take inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;Obtain resource letter corresponding with inquiry request
Breath, obtains query result;Resource information is shown in the form of a file.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: pressing
Query result is filtered according to the first preset rules, obtains filtered resource information;To filtered resource information according to
Second preset rules are ranked up.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: obtaining
Take the history usage record of resource;The behavioural characteristic of user is determined according to history usage record;Acquisition meets looking into for behavioural characteristic
Ask result.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
The selection instruction at least one querying condition is received in the operation interface of infrastructure management tool;According to selected by selection instruction
Fixed querying condition generates inquiry request.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: base
Infrastructure management tool includes: terraform tool;Resource information is shown in the form of a file, comprising: execute
The plan order that terraform tool provides, with showing resource information.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: obtaining
Take query argument corresponding with inquiry request, wherein query argument is that multiple parameter values is supported to carry out the parameter of fuzzy query;According to
Resource information corresponding with query argument is searched according to query argument.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: will
Resource information is written in the variable files of calling.
Embodiment 9
According to the embodiment of the present application, a kind of system is additionally provided, comprising: processor;And memory, connect with processor
It connects, for providing the instruction for handling following processing step for processor:
Obtain inquiry request, wherein inquiry request is used for the resource of inquiring structuring infrastructure;It obtains and inquiry request pair
The resource information answered, obtains query result;Resource information is shown in the form of a file.
From the foregoing, it will be observed that in the above embodiments of the present application, during being disposed in cloud platform and manage cloud resource, when obtaining
After the inquiry request for getting the resource of inquiring structuring infrastructure, one or more resources corresponding with the inquiry request are obtained
Resource information, and after inquiring the resource information of one or more resources for constructing infrastructure, inquiry is obtained
Resource information is shown in the form of a file, so that user can obtain the money for constructing infrastructure by checking this document
The detail information in source.It is easy it is noted that the inquiry request of the above-mentioned resource for inquiring structuring infrastructure can be directly
Inquiry request is also possible to indirect inquiry request (for example, " terraform plan " life executed in Terraform tool
Enable request).
The scheme provided by the above embodiments of the present application 9, one or more resources of infrastructure will be constructed by having reached
Resource detail information shown for use in the purpose for the resource for quickly selecting needs, thus realize improve user's work
Make the technical effect of efficiency, so solve existing Terraform tools build and maintenance cloud platform during due to the work
Tool, which can not provide, checks that existing resource leads to ineffective technical problem.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
In above-described embodiment of the application, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the application whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art
For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered
It is considered as the protection scope of the application.
Claims (14)
1. a kind of resource rendering method characterized by comprising
Obtain inquiry request, wherein the inquiry request is used for the resource of inquiring structuring infrastructure;
Resource information corresponding with the inquiry request is obtained, query result is obtained;
The resource information is shown in the form of a file.
2. the method according to claim 1, wherein the resource information is shown it in the form of a file
Before, the method also includes:
The query result is filtered according to the first preset rules, obtains filtered resource information;
The filtered resource information is ranked up according to the second preset rules.
3. the method according to claim 1, wherein being carried out according to the first preset rules to the query result
Filter, comprising:
Obtain the history usage record of the resource;
The behavioural characteristic of user is determined according to the history usage record;
Obtain the query result for meeting the behavioural characteristic.
4. the method according to claim 1, wherein obtaining inquiry request, comprising:
The selection instruction at least one querying condition is received in the operation interface of infrastructure management tool;
The inquiry request is generated according to the selected querying condition of the selection instruction.
5. according to the method described in claim 4, it is characterized in that,
The infrastructure management tool includes: terraform tool;
The resource information is shown in the form of a file, comprising: execute the plan life that the terraform tool provides
It enables, to show the resource information.
6. according to the method described in claim 5, it is characterized in that, acquisition resource information corresponding with the inquiry request, packet
It includes:
Obtain query argument corresponding with the inquiry request, wherein the query argument is that multiple parameter values is supported to carry out mould
Paste the parameter of inquiry;
Resource information corresponding with the query argument is searched according to the query argument.
7. being obtained the method according to claim 1, wherein obtaining resource information corresponding with the inquiry request
To after query result, the method also includes:
The resource information is written in the variable files of calling.
8. a kind of resource presentation device characterized by comprising
First acquisition unit, for obtaining inquiry request, wherein the inquiry request is used for the money of inquiring structuring infrastructure
Source;
Second acquisition unit obtains query result for obtaining resource information corresponding with the inquiry request;
Output unit, for the resource information to be shown in the form of a file.
9. a kind of resource rendering method characterized by comprising
Obtain inquiry request, wherein the inquiry request is used for the resource of inquiring structuring infrastructure;
The data source DataSource function in infrastructure management tool terraform is called, is obtained and the inquiry request
Corresponding resource information, obtains query result;
The plan instruction in infrastructure management tool is called, the resource information is shown in the form of a file.
10. a kind of resource presentation device characterized by comprising
Module is obtained, for obtaining inquiry request, wherein the inquiry request is used for the resource of inquiring structuring infrastructure;
First calling module is obtained for calling the data source DataSource function in infrastructure management tool terraform
Resource information corresponding with the inquiry request is taken, query result is obtained;
Second calling module, for calling the plan in infrastructure management tool to instruct, by the resource information with file
Form is shown.
11. a kind of terminal, for providing human-computer interaction interface, which is characterized in that the human-computer interaction interface includes:
At least one first control, for showing the querying condition for user's selection, wherein the querying condition is looked into for generating
Ask the inquiry request for constructing the resource of infrastructure;
Second control, for showing resource information corresponding with the inquiry request;
Third control, for showing the resource information in the form of listed files.
12. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require any one of 1 to 7 described in resource rendering method.
13. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 7 described in resource rendering method.
14. a kind of system characterized by comprising
Processor;And
Memory is connected to the processor, for providing the instruction for handling following processing step for the processor: acquisition is looked into
Ask request, wherein the inquiry request is used for the resource of inquiring structuring infrastructure;Obtain money corresponding with the inquiry request
Source information obtains query result;The resource information is shown in the form of a file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710453426.6A CN109145034B (en) | 2017-06-15 | 2017-06-15 | Resource presentation method and device and computer terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710453426.6A CN109145034B (en) | 2017-06-15 | 2017-06-15 | Resource presentation method and device and computer terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109145034A true CN109145034A (en) | 2019-01-04 |
CN109145034B CN109145034B (en) | 2022-05-06 |
Family
ID=64830153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710453426.6A Active CN109145034B (en) | 2017-06-15 | 2017-06-15 | Resource presentation method and device and computer terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109145034B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110096258A (en) * | 2019-04-30 | 2019-08-06 | 山东浪潮云信息技术有限公司 | A method of the OpenStack infrastructure architecture management based on Terraform |
CN110750333A (en) * | 2019-10-25 | 2020-02-04 | 浪潮云信息技术有限公司 | Full life cycle management method for cloud service factory platform |
CN110764864A (en) * | 2019-10-25 | 2020-02-07 | 北京浪潮数据技术有限公司 | Terraform-based visual resource arrangement method |
CN112115165A (en) * | 2019-06-21 | 2020-12-22 | 北京京东振世信息技术有限公司 | Data processing method and device |
CN112860780A (en) * | 2021-03-30 | 2021-05-28 | 中国工商银行股份有限公司 | Data export method and device and terminal equipment |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090216752A1 (en) * | 2008-02-27 | 2009-08-27 | International Business Machines Corporation | Search engine, search system, search method, and search program product |
US20130080640A1 (en) * | 2011-09-16 | 2013-03-28 | Sunil Rai | Information technology infrastructure design apparatuses, methods and systems |
US20130111027A1 (en) * | 2011-10-31 | 2013-05-02 | Dejan S. Milojicic | Accessing physical resources in a cloud computing environment |
CN103688251A (en) * | 2011-05-09 | 2014-03-26 | 梅塔克劳德公司 | Composite public cloud, method and system |
CN103733194A (en) * | 2011-01-27 | 2014-04-16 | 康姆普特奈科斯特有限公司 | Dynamically organizing cloud computing resources to facilitate discovery |
US20140344266A1 (en) * | 2013-05-17 | 2014-11-20 | Broadcom Corporation | Device information used to tailor search results |
CN104429121A (en) * | 2013-05-29 | 2015-03-18 | 华为技术有限公司 | Method and platform for carrying out service in cloud system of base station |
CN105208050A (en) * | 2014-06-10 | 2015-12-30 | 江苏真云计算科技有限公司 | Data access method based on cloud computing environment |
CN106202409A (en) * | 2016-07-11 | 2016-12-07 | 深圳市创凯智能股份有限公司 | Resource search method, Apparatus and system |
CN106462461A (en) * | 2014-05-06 | 2017-02-22 | 瑞典爱立信有限公司 | System, device and methods for billing user for their consumption of mobile broadband services and virtualized cloud resources |
CN106465387A (en) * | 2014-06-02 | 2017-02-22 | 高通股份有限公司 | Discovery of multi-hop capabilities and routing on a per link basis |
CN106612318A (en) * | 2016-04-29 | 2017-05-03 | 四川用联信息技术有限公司 | Cloud resource searching method in cloud computing |
-
2017
- 2017-06-15 CN CN201710453426.6A patent/CN109145034B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090216752A1 (en) * | 2008-02-27 | 2009-08-27 | International Business Machines Corporation | Search engine, search system, search method, and search program product |
CN103733194A (en) * | 2011-01-27 | 2014-04-16 | 康姆普特奈科斯特有限公司 | Dynamically organizing cloud computing resources to facilitate discovery |
CN103688251A (en) * | 2011-05-09 | 2014-03-26 | 梅塔克劳德公司 | Composite public cloud, method and system |
US20130080640A1 (en) * | 2011-09-16 | 2013-03-28 | Sunil Rai | Information technology infrastructure design apparatuses, methods and systems |
US20130111027A1 (en) * | 2011-10-31 | 2013-05-02 | Dejan S. Milojicic | Accessing physical resources in a cloud computing environment |
US20140344266A1 (en) * | 2013-05-17 | 2014-11-20 | Broadcom Corporation | Device information used to tailor search results |
CN104429121A (en) * | 2013-05-29 | 2015-03-18 | 华为技术有限公司 | Method and platform for carrying out service in cloud system of base station |
CN106462461A (en) * | 2014-05-06 | 2017-02-22 | 瑞典爱立信有限公司 | System, device and methods for billing user for their consumption of mobile broadband services and virtualized cloud resources |
CN106465387A (en) * | 2014-06-02 | 2017-02-22 | 高通股份有限公司 | Discovery of multi-hop capabilities and routing on a per link basis |
CN105208050A (en) * | 2014-06-10 | 2015-12-30 | 江苏真云计算科技有限公司 | Data access method based on cloud computing environment |
CN106612318A (en) * | 2016-04-29 | 2017-05-03 | 四川用联信息技术有限公司 | Cloud resource searching method in cloud computing |
CN106202409A (en) * | 2016-07-11 | 2016-12-07 | 深圳市创凯智能股份有限公司 | Resource search method, Apparatus and system |
Non-Patent Citations (1)
Title |
---|
李钊伟等: "支持多维查找的资源共享设计", 《计算机应用研究》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110096258A (en) * | 2019-04-30 | 2019-08-06 | 山东浪潮云信息技术有限公司 | A method of the OpenStack infrastructure architecture management based on Terraform |
CN112115165A (en) * | 2019-06-21 | 2020-12-22 | 北京京东振世信息技术有限公司 | Data processing method and device |
CN110750333A (en) * | 2019-10-25 | 2020-02-04 | 浪潮云信息技术有限公司 | Full life cycle management method for cloud service factory platform |
CN110764864A (en) * | 2019-10-25 | 2020-02-07 | 北京浪潮数据技术有限公司 | Terraform-based visual resource arrangement method |
CN112860780A (en) * | 2021-03-30 | 2021-05-28 | 中国工商银行股份有限公司 | Data export method and device and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109145034B (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109145034A (en) | Resource rendering method, device and terminal | |
US10412167B2 (en) | Hybrid cloud communication system | |
TW526429B (en) | Graphical editor for defining and creating a computer system | |
CN103238151B (en) | The technology of network copy | |
CN112087379B (en) | Service chain arranging method and device, storage medium and electronic device | |
US20200143387A1 (en) | Method and apparatus for autonomous services composition | |
CN109710340A (en) | Software tool call method and device, software tool packaging method and device | |
CN112036577B (en) | Method and device for applying machine learning based on data form and electronic equipment | |
US9128724B2 (en) | Configuring assembly of a system using supplied architectural artifacts | |
CN109636301A (en) | Workflow configuration method, system, terminal and the readable storage medium storing program for executing of financial business | |
US20160173342A1 (en) | Methods, systems, and computer readable media for configuring service networks | |
CN110535679A (en) | Management method, framework, network slice sales platform and the management system of slice | |
CN108255936A (en) | A kind of edit methods of webpage, system and editing machine | |
CN110162464A (en) | Mcok test method and system, electronic equipment and readable storage medium storing program for executing | |
CN108055320A (en) | Processing method, terminal device and the computer readable storage medium of resource downloading | |
CN110633959A (en) | Method, device, equipment and medium for creating approval task based on graph structure | |
US20190140894A1 (en) | System and method for enabling hybrid integration platform through runtime auto-scalable deployment model for varying integration | |
US20150213381A1 (en) | System, apparatus and method for performing enterprise analysis of information technology provisions and costs | |
CN105302556A (en) | Calculation realization method and system and server apparatus | |
CN113254014A (en) | Sketch plug-in-based interface development method, device and system | |
CN116611783A (en) | Method and device for automatically realizing business process links and circulation thereof | |
CN106527979A (en) | Data migration method and device | |
CN112685613B (en) | Resource package query method and device and information processing system | |
CN106649447B (en) | A kind of file acquisition method and server | |
CN108551418A (en) | A kind of message desk management method, device, equipment and storage medium |
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 |