CN113259181B - Interface service deployment method, device, storage medium and equipment - Google Patents

Interface service deployment method, device, storage medium and equipment Download PDF

Info

Publication number
CN113259181B
CN113259181B CN202110722788.7A CN202110722788A CN113259181B CN 113259181 B CN113259181 B CN 113259181B CN 202110722788 A CN202110722788 A CN 202110722788A CN 113259181 B CN113259181 B CN 113259181B
Authority
CN
China
Prior art keywords
interface
service
application
environment
creating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110722788.7A
Other languages
Chinese (zh)
Other versions
CN113259181A (en
Inventor
左磊
陈逸凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianju Dihe Suzhou Technology Co ltd
Original Assignee
Tianju Dihe Suzhou Data Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianju Dihe Suzhou Data Co ltd filed Critical Tianju Dihe Suzhou Data Co ltd
Priority to CN202110722788.7A priority Critical patent/CN113259181B/en
Publication of CN113259181A publication Critical patent/CN113259181A/en
Application granted granted Critical
Publication of CN113259181B publication Critical patent/CN113259181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a deployment method, a deployment device, a storage medium and equipment of interface service, and belongs to the technical field of data access. The method comprises the following steps: displaying an environment creating interface, and creating a deployment environment according to the operation of a user in the environment creating interface; displaying a service creation interface, and creating an interface service in the deployment environment according to the operation of the user in the service creation interface; and deploying the interface service into a gateway, wherein the gateway is used for calling the interface service according to the received calling request. In the application, the user can freely create, deploy and call the interface service without applying for the authority to the management system, and the call threshold of the interface service can be reduced.

Description

Interface service deployment method, device, storage medium and equipment
Technical Field
The embodiment of the application relates to the technical field of data access, in particular to a method, a device, a storage medium and equipment for deploying interface services.
Background
The operation and maintenance personnel can create interface service in the management system and then deploy the interface service to the gateway, so that the gateway can receive a call request sent by the client and call the interface service according to the call request.
In the prior art, operation and maintenance personnel need to create and deploy interface services in a unified manner, and a user needs to apply for permission from a management system to call the interface services, so that the threshold for the user to use the interface services is high, and the utilization rate of the interface services is low.
Disclosure of Invention
The embodiment of the application provides a deployment method, a deployment device, a storage medium and equipment of an interface service, which are used for solving the problem that a user needs to apply permission to a management system to call the interface service, so that the utilization rate of the interface service is low. The technical scheme is as follows:
in one aspect, a method for deploying an interface service is provided, where the method includes:
displaying an environment creating interface, and creating a deployment environment according to the operation of a user in the environment creating interface;
displaying a service creation interface, and creating an interface service in the deployment environment according to the operation of the user in the service creation interface;
and deploying the interface service into a gateway, wherein the gateway is used for calling the interface service according to the received calling request.
In one possible implementation, the deploying the interface service into a gateway includes:
receiving a configuration request sent by the gateway, wherein the configuration request is used for requesting a configuration file of the gateway;
generating the configuration file according to the information of the interface service in the deployment environment;
and sending the configuration file to the gateway, wherein the gateway is used for deploying the interface service according to the configuration file.
In one possible implementation, the deploying the interface service into a gateway includes:
displaying a first setting interface of the deployment environment, wherein the first setting interface comprises a export option;
when receiving the operation acting on the export option, exporting a configuration file according to the information of the interface service in the deployment environment, generating a link according to the storage address of the configuration file, wherein the gateway is used for acquiring the link, acquiring the configuration file according to the link, and deploying the interface service according to the configuration file.
In one possible implementation manner, the creating a deployment environment according to the operation of the user in the environment creation interface includes:
when the environment creating interface comprises a public option and a private option, acquiring the selection operation of the user;
when the selection operation acts on the public option, creating a public deployment environment, wherein the public deployment environment is used for deploying interface services created by a plurality of users;
and when the selection operation acts on the private option, creating a private deployment environment, wherein the private deployment environment is used for deploying the interface service created by the user.
In one possible implementation, after the creating a deployment environment according to the operation of the user in the environment creation interface, the method further includes:
and displaying a service interface of the deployment environment, wherein the service interface comprises information of each interface service deployed in the deployment environment.
In one possible implementation manner, the creating an interface service in the deployment environment according to the operation of the user in the service creation interface includes:
when the service creation interface comprises an environment input box, acquiring a gateway access address and a service path input by the user in the environment input box;
determining a deployment environment indicated by the gateway access address;
deploying the interface service in the service path in the deployment environment.
In one possible implementation, after the interface service is created in the deployment environment according to the operation of the user in the service creation interface, the method further includes:
displaying a deployment interface of the interface service, wherein the deployment interface comprises environment deployment options;
when receiving the operation acting on the environment deployment option, acquiring a gateway access address and a service path input by the user;
determining a deployment environment indicated by the gateway access address;
deploying the interface service in the service path in the deployment environment.
In one possible implementation, the method further includes:
displaying an application creation interface, and creating an application according to the operation of the user in the application creation interface;
generating a key for the application;
and sending the secret key to the gateway, wherein the gateway is used for carrying out identity authentication on the client corresponding to the application according to the secret key.
In one possible implementation, the method further includes:
generating an application list according to the application calling the interface service;
and sending the application list to the gateway, wherein the gateway is used for determining a client side with authority to call the interface service according to the application list.
In a possible implementation manner, the generating an application list according to the application calling the interface service includes:
displaying a calling application interface of the interface service, wherein the calling application interface comprises an application input box;
acquiring application information input by the user in the application input box;
and generating the application list according to the application information.
In one possible implementation, the method further includes: when the calling application interface further comprises a service level input box, acquiring a service level protocol input by the user in the service level input box, wherein the service level protocol is used for indicating a filtering rule of a calling request sent to a client corresponding to the application;
the generating the application list according to the application information includes: and adding the service level agreement and the corresponding application into the application list.
In one possible implementation, the method further includes:
and displaying an application interface of the interface service, wherein the application interface comprises information of each application applying for calling the interface service.
In one possible implementation, after the interface service is created in the deployment environment according to the operation of the user in the service creation interface, the method further includes:
displaying a second setting interface of the interface service, wherein the second setting interface comprises an attribute setting item of the interface service, and the attribute setting item comprises at least one of basic information, a service level agreement and a service strategy;
acquiring attribute information input by the user in the attribute setting item;
and adding the attribute information into the information of the interface service.
In one aspect, an apparatus for deploying an interface service is provided, the apparatus including:
the first creating module is used for displaying an environment creating interface and creating a deployment environment according to the operation of a user in the environment creating interface;
the second creating module is used for displaying a service creating interface and creating interface service in the deployment environment according to the operation of the user in the service creating interface;
and the deployment module is used for deploying the interface service into a gateway, and the gateway is used for calling the interface service according to the received calling request.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the deployment method of the interface service as described above.
In one aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the deployment method of the interface service as described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
the user can independently create a deployment environment, create the interface service in the deployment environment and deploy the interface service to the gateway, so that the user can freely create, deploy and call the interface service without applying permission to the management system, and the call threshold of the interface service can be reduced.
The gateway can send the configuration request to the management system and receive the configuration file sent by the management system, so that the gateway can deploy the interface service directly according to the configuration file, and the deployment process of the interface service is simplified.
The management system can export the configuration file, generate a link according to the storage address of the configuration file, and the gateway can acquire the configuration file according to the link and deploy the interface service according to the configuration file. Therefore, the gateway can deploy the interface service on the premise of not connecting the management system, thereby realizing the decoupling with the management system and simplifying the deployment process of the interface service.
The management system can create a public deployment environment, so that all users can create interface services in the deployment environment, and the utilization rate of the deployment environment is improved; or the management system can create a private deployment environment, so that only the user can create the interface service in the deployment environment, and the privacy of the deployment environment is improved.
The management system can generate a key when the application is created, so that the gateway can perform identity authentication on the client corresponding to the application according to the key, and the communication safety is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for deploying an interface service according to an embodiment of the present application;
fig. 2 is a block diagram illustrating a configuration of a deployment apparatus for interfacing a service according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for deploying an interface service according to an embodiment of the present application is shown, where the method for deploying the interface service can be applied to a management system in a computer device. The deployment method of the interface service can comprise the following steps:
step 101, displaying an environment creating interface, and creating a deployment environment according to the operation of a user in the environment creating interface.
In this embodiment, the management system may display the login interface first, and determine that the login is successful after receiving the correct user account and password input by the user. Thereafter, the management system may display an environment creation option, and upon receiving a user action on the environment creation option, display an environment creation interface. The environment creating interface is provided with at least one input box, a user can input environment information in the input box, and the management system creates a deployment environment according to the environment information.
In an alternative embodiment, the context information may include, but is not limited to, a namespace, a context name, a gateway access address, a context description, and whether or not to publish information. The namespace is used for indicating whether the deployment environment is created by individuals or created by teams, and if the deployment environment is created by individuals, only a user can manage the deployment environment; if a team is created, multiple users in the team may collectively manage the deployment environment. The environment name is used to identify the deployment environment. The gateway access address is used to indicate the access address of the gateway. The environment description is used for describing an operation and maintenance environment corresponding to the gateway and a network environment operated by the gateway. Whether the public information comprises public information and private information, the public information represents that the deployment environment can deploy the interface services of a plurality of users, and the private information represents that the deployment environment can deploy only the interface services of the users.
And 102, displaying a service creation interface, and creating an interface service in the deployment environment according to the operation of the user in the service creation interface.
The management system can display a service creation option and display a service creation interface after receiving an operation of a user on the service creation option. The service creation interface is provided with at least one input box, a user can input service information in the input box, and the management system creates interface service according to the service information.
In an alternative embodiment, the service information may include, but is not limited to, a namespace, a service name, a service description, whether to publish information, an interface definition, an authentication method, a deployment environment, a service path, and an upstream service address. The namespace is used for indicating whether the interface service is created by individuals or a team, and if the interface service is created by individuals, only a user can manage the interface service; if a team is created, multiple users in the team may collectively manage the interface services. The service name is used to identify the interface service. The service description is used to describe the interface. Whether the public information includes public information indicating that the interface service can be called by a plurality of users and private information indicating that the interface service can be called only by the user himself. The interface definition is used to indicate a contract between the provider of the interface service and the consumer, specifying how the consumer should request the interface service and how the provider should return the result. The authentication means is used to indicate an authentication means that can be used by a client that invokes an interface service. The deployment environment is used to indicate a deployment environment for deploying the interface service. The service path is used to indicate a path of the interface service in the deployment environment. The upstream service address is a back-end implementation address of the interface service, that is, when the client calls the interface service, a call request needs to be sent to the gateway, and the gateway sends the call request to the upstream service address corresponding to the interface service for processing.
And 103, deploying the interface service into a gateway, wherein the gateway is used for calling the interface service according to the received calling request.
The management system may deploy the interface service to the gateway, and the specific deployment process is described in detail below and is not described herein again.
After the interface service is deployed, the gateway can receive a call request sent by the client, and when it is determined that a certain interface service needs to be called according to the call request, the call request can be forwarded to an upstream service address corresponding to the interface service for processing.
In summary, according to the interface service deployment method provided in the embodiment of the present application, a user can autonomously create a deployment environment, create an interface service in the deployment environment, and deploy the interface service to a gateway, so that the user can freely create, deploy, and invoke the interface service without applying for permission to a management system, and the invocation threshold of the interface service can be reduced.
The flow of creation of the deployment environment is described below.
In an optional embodiment, when the environment information includes information about whether to disclose, step 101 may be specifically implemented as: when the environment creation interface comprises a public option and a private option, acquiring a selection operation of a user; when the selection operation acts on the disclosure option, creating a disclosure deployment environment, wherein the disclosure deployment environment is used for deploying interface services created by a plurality of users; when the selection operation acts on the private option, a private deployment environment is created, and the private deployment environment is used for deploying the interface service created by the user.
The deployment environment which can be created by the management system, so that all users can create interface services in the deployment environment, and the utilization rate of the deployment environment is improved; or the management system can create a private deployment environment, so that only the user can create the interface service in the deployment environment, and the privacy of the deployment environment is improved.
Upon successful creation of the deployment environment, the user may view the interface services created in the deployment environment. Specifically, the management system may receive a viewing operation triggered by a user, and display a service interface of the deployment environment, where the service interface includes information of each interface service deployed in the deployment environment. The information of the interface service may be the service information mentioned above.
The following describes the creation flow of the interface service.
In an alternative embodiment, the interface service may be created in two implementations, which are described separately below.
In a first implementation, a user may select a deployment environment when creating an interface service. Specifically, when the service creation interface comprises an environment input box, acquiring a gateway access address and a service path input by a user in the environment input box; determining a deployment environment indicated by the gateway access address; the interface service is deployed in a service path in a deployment environment.
In a second implementation, the user may select a deployment environment for the interface service after the interface service is created. Specifically, the management system displays a deployment interface of the interface service, wherein the deployment interface comprises an environment deployment option; when receiving an operation acting on an environment deployment option, acquiring a gateway access address and a service path input by a user; determining a deployment environment indicated by the gateway access address; the interface service is deployed in a service path in a deployment environment.
It should be noted that one interface service may be deployed in multiple deployment environments, and then, after the interface service is created, a user may select multiple deployment environments for the interface service. Wherein, the selection process of each deployment environment can refer to the second implementation manner.
The management system may also supplement and modify the service information of the interface service after the interface service is created. Specifically, the management system may display a second setting interface of the interface service, where the second setting interface includes an attribute setting item of the interface service, and the attribute setting item includes at least one of basic information, a service level agreement, and a service policy; acquiring attribute information input by a user in the attribute setting item; the attribute information is added to the information of the interface service.
The basic information may include, but is not limited to, a service name, a service description, whether to disclose information, interface information, an authentication method, timeout setting information. If the basic information is not filled in when the interface service is established, the user can fill in the basic information in the second setting interface; if the basic information has already been filled in when the interface service is created, the user can modify the basic information in the second setting interface.
The Service Level Agreement (SLA) is used to indicate filtering rules for invocation requests sent by the clients corresponding to the application. In this embodiment, an audit authority of the service level agreement may also be set, that is, whether the service level agreement set by the user needs to be audited by the operation and maintenance staff.
The service policy includes at least one of an access frequency limit (RateLimit) policy, a request/response Header (Header) modification policy, and a path Access Control (ACL) policy, which are described below.
1) Access frequency limiting policy
The access frequency limiting strategy is used for controlling the access frequency of each application, so that the influence of sudden high load on the stability of the management system can be avoided, the user can roughly estimate the call amount of the interface service, and the computing resources can be distributed according to the plan.
The access frequency control policy includes at least time window information, frequency limit information, and burst frequency limit information. Wherein the time window information indicates a time window of the number of accesses. The frequency limit information indicates the number of accesses permitted per unit time. When the number of accesses does not reach the frequency limit, the remaining number of accesses can be accumulated to cope with occasional high-frequency requests, and the burst frequency limit information indicates an upper limit of the accumulable amount. For example, the frequency limit is 100 times/second, the burst frequency limit is 200 times/second, and a normal access frequency of a client is about 50 times/second, then the request frequency of the client can reach 200 times/second at most in a certain time window, thereby consuming the previously accumulated amount.
2) Request/response header modification policy
The request/response header modification policy is used to modify information in the header of a request or response, may pass some information to an upstream service address by modifying the header of the request, or may delete some sensitive information in the header of the response, etc.
The request/response header modification policy includes modified object information, added field information, and deleted field information. Wherein the modification object information is used to indicate whether the modification is a request or a response. The added field information is used to indicate a field added to the header. The deleted field information is used to indicate a field deleted from the header.
3) Path access control policy
The path access control policy is used to control whether the interface service can be accessed. In an application scenario where part of the interface services in a system are allowed to be accessed and part of the interface services are prohibited from being accessed, a white list and a black list may be created using path access control policies, the white list including the interface services that are allowed to be accessed and the black list including the interface services that are prohibited from being accessed.
The path access control policy includes access control type information and interface path information. Wherein the access control type information is used to indicate whether it is a white list or a black list. The interface path information includes a request mode and a service path.
The following describes the deployment flow of interface services.
In this embodiment, a precompiled binary file may be downloaded in one computer device, a compiling environment is prepared, and the gateway may be installed by compiling the binary file. After the gateway is started, the interface service may be deployed in the gateway through two implementation manners, which are described below.
In a first implementation manner, a management system receives a configuration request sent by a gateway, wherein the configuration request is used for requesting a configuration file of the gateway; generating a configuration file according to the information of the interface service in the deployment environment; and sending the configuration file to a gateway, wherein the gateway is used for deploying the interface service according to the configuration file.
In this implementation, a gateway registration address may be specified to the gateway in advance through a command line, where the gateway registration address is used to indicate a deployment environment in the management system, the gateway may send a configuration request to the gateway registration address, the management system generates a configuration file of the deployment environment after receiving the configuration request, and sends the configuration file to the gateway, and the gateway may deploy an interface service according to the configuration file.
The gateway can send the configuration request to the management system and receive the configuration file sent by the management system, so that the gateway can deploy the interface service directly according to the configuration file, and the deployment process of the interface service is simplified.
In a second implementation manner, the management system displays a first setting interface of the deployment environment, wherein the first setting interface comprises a export option; when receiving the operation acting on the export option, exporting the configuration file according to the information of the interface service in the deployment environment, generating a link according to the storage address of the configuration file, wherein the gateway is used for acquiring the link, acquiring the configuration file according to the link and deploying the interface service according to the configuration file.
In this implementation, the user may export a configuration file from the deployment environment in the management system in advance, generate a link according to a storage address of the configuration file, designate the link to the gateway through a command line, and the gateway may acquire the configuration file from the link and deploy the interface service according to the configuration file.
The management system can export the configuration file, generate a link according to the storage address of the configuration file, and the gateway can acquire the configuration file according to the link and deploy the interface service according to the configuration file. Therefore, the gateway can deploy the interface service on the premise of not connecting the management system, thereby realizing the decoupling with the management system and simplifying the deployment process of the interface service.
In this embodiment, the user needs to create an application and a corresponding client, and finally invokes an interface service through the client, which introduces the creation flow of the application.
In an optional embodiment, an application creation interface is displayed, and an application is created according to the operation of a user in the application creation interface; generating a key of the application; and sending the key to the gateway, wherein the gateway is used for performing identity authentication on the client corresponding to the application according to the key.
The management system may display an application creation option and, upon receiving a user action on the application creation option, display an application creation interface. The application creation interface is provided with at least one input box, a user can input application information in the input box, and the management system creates an application according to the application information.
In an alternative embodiment, the application information may include, but is not limited to, a namespace, an application name, and an application description. The namespace is used for indicating whether the application is created by individuals or teams, and if the application is created by individuals, only a user can manage the application; if a team is created, multiple users in the team may collectively manage the application. The application name is used to indicate an application. The application description is used to describe the application.
After the application is created, the management system also randomly generates a key for the application. On one hand, the management system sends the key to the gateway; on the other hand, the user writes the key into the code of the client, so that the client knows the key and carries the key in the call request sent to the gateway, and the gateway performs identity authentication on the client according to the received key and the key in the call request.
The management system can generate a key when the application is created, so that the gateway can perform identity authentication on the client corresponding to the application according to the key, and the communication safety is improved.
After the application is generated, the interface service called by the application is required to be applied, and then the management system can generate an application list according to the application for calling the interface service; and sending the application list to a gateway, wherein the gateway is used for determining a client side with the authority to call the interface service according to the application list.
Specifically, generating the application list according to the application for calling the interface service may include: the management system displays a calling application interface of the interface service, wherein the calling application interface comprises an application input box; acquiring application information input by a user in an application input box; and generating an application list according to the application information.
When the calling application interface further comprises a service level input box, acquiring a service level protocol input by a user in the service level input box, wherein the service level protocol is used for indicating a filtering rule of a calling request sent to a client corresponding to an application; at this time, an application list is generated according to the application information, and the application list includes: and adding the service level agreement and the corresponding application into the application list. That is, the application list at this time includes the application and the service level agreement corresponding to the application.
After successfully applying for the interface service, the user can view the application applying for invoking the interface service. Specifically, the management system may receive a viewing operation triggered by a user, and display an application interface of the interface service, where the application interface includes information of each application that applies for invoking the interface service. The information of the application may be the application information mentioned above.
Referring to fig. 2, a block diagram of a deployment apparatus of an interface service according to an embodiment of the present application is shown, where the deployment apparatus of the interface service may be applied to a management system in a computer device. The interface service deployment device may include:
a first creating module 210, configured to display an environment creating interface, and create a deployment environment according to an operation of a user in the environment creating interface;
a second creating module 220, configured to display a service creation interface, and create an interface service in the deployment environment according to an operation of the user in the service creation interface;
the deployment module 230 is configured to deploy the interface service into the gateway, and the gateway is configured to call the interface service according to the received call request.
In an alternative embodiment, the deployment module 230 is further configured to:
receiving a configuration request sent by a gateway, wherein the configuration request is used for requesting a configuration file of the gateway;
generating a configuration file according to the information of the interface service in the deployment environment;
and sending the configuration file to a gateway, wherein the gateway is used for deploying the interface service according to the configuration file.
In an alternative embodiment, the deployment module 230 is further configured to:
displaying a first setting interface of the deployment environment, wherein the first setting interface comprises export options;
when receiving the operation acting on the export option, exporting the configuration file according to the information of the interface service in the deployment environment, generating a link according to the storage address of the configuration file, wherein the gateway is used for acquiring the link, acquiring the configuration file according to the link and deploying the interface service according to the configuration file.
In an optional embodiment, the first creating module 210 is further configured to:
when the environment creation interface comprises a public option and a private option, acquiring a selection operation of a user;
when the selection operation acts on the disclosure option, creating a disclosure deployment environment, wherein the disclosure deployment environment is used for deploying interface services created by a plurality of users;
when the selection operation acts on the private option, a private deployment environment is created, and the private deployment environment is used for deploying the interface service created by the user.
In an optional embodiment, the apparatus further comprises:
and the display module is further configured to display a service interface of the deployment environment after the first creation module 210 creates the deployment environment according to the operation of the user in the environment creation interface, where the service interface includes information of each interface service deployed in the deployment environment.
In an alternative embodiment, the second creating module 220 is further configured to:
when the service creation interface comprises an environment input box, acquiring a gateway access address and a service path input by a user in the environment input box;
determining a deployment environment indicated by the gateway access address;
the interface service is deployed in a service path in a deployment environment.
In an optional embodiment, the display module is further configured to display a deployment interface of the interface service after the second creation module 220 creates the interface service in the deployment environment according to an operation of the user in the service creation interface, where the deployment interface includes an environment deployment option;
the device also includes: the acquisition module is used for acquiring a gateway access address and a service path input by a user when receiving an operation acting on an environment deployment option;
the determining module is used for determining the deployment environment indicated by the gateway access address;
the deployment module 230 is further configured to deploy the interface service in a service path in the deployment environment.
In an optional embodiment, the display module is further configured to display an application creation interface, and create an application according to an operation of a user in the application creation interface;
the generation module is used for generating a key of the application;
and the sending module is used for sending the secret key to the gateway, and the gateway is used for performing identity authentication on the client corresponding to the application according to the secret key.
In an optional embodiment, the generating module is further configured to generate an application list according to an application applying for invoking the interface service;
and the sending module is also used for sending the application list to the gateway, and the gateway is used for determining the client side with the authority to call the interface service according to the application list.
In an optional embodiment, the generating module is further configured to:
displaying a calling application interface of the interface service, wherein the calling application interface comprises an application input box;
acquiring application information input by a user in an application input box;
and generating an application list according to the application information.
In an optional embodiment, the obtaining module is further configured to obtain, when the call application interface further includes a service level input box, a service level protocol input in the service level input box by a user, where the service level protocol is used to indicate a filtering rule of a call request sent to a client corresponding to an application;
and the generation module is also used for adding the service level agreement and the corresponding application into the application list.
In an optional embodiment, the display module is further configured to display an application interface of the interface service, where the application interface includes information of each application that applies for invoking the interface service.
In an optional embodiment, the display module is further configured to display a second setting interface of the interface service after the second creating module 220 creates the interface service in the deployment environment according to an operation of the user in the service creation interface, where the second setting interface includes an attribute setting item of the interface service, and the attribute setting item includes at least one of basic information, a service level agreement, and a service policy;
the acquisition module is also used for acquiring the attribute information input by the user in the attribute setting item;
the apparatus also includes an adding module for adding the attribute information to the information of the interface service.
In summary, according to the deployment device of the interface service provided in the embodiment of the present application, a user can autonomously create a deployment environment, create the interface service in the deployment environment, and deploy the interface service to a gateway, so that the user can freely create, deploy, and call the interface service without applying an authority to a management system, and a call threshold of the interface service can be reduced.
The gateway can send the configuration request to the management system and receive the configuration file sent by the management system, so that the gateway can deploy the interface service directly according to the configuration file, and the deployment process of the interface service is simplified.
The management system can export the configuration file, generate a link according to the storage address of the configuration file, and the gateway can acquire the configuration file according to the link and deploy the interface service according to the configuration file. Therefore, the gateway can deploy the interface service on the premise of not connecting the management system, thereby realizing the decoupling with the management system and simplifying the deployment process of the interface service.
The deployment environment which can be created by the management system, so that all users can create interface services in the deployment environment, and the utilization rate of the deployment environment is improved; or the management system can create a private deployment environment, so that only the user can create the interface service in the deployment environment, and the privacy of the deployment environment is improved.
The management system can generate a key when the application is created, so that the gateway can perform identity authentication on the client corresponding to the application according to the key, and the communication safety is improved.
One embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the deployment method of the interface service as described above.
One embodiment of the present application provides a computer device, which includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the deployment method of the interface service as described above.
It should be noted that: in the deployment device of the interface service provided in the foregoing embodiment, when the interface service is deployed, only the division of each functional module is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the deployment device of the interface service is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the deployment apparatus of the interface service and the deployment method of the interface service provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description should not be taken as limiting the embodiments of the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (15)

1. A method for deploying an interface service, the method comprising:
displaying an environment creating interface, and creating a deployment environment according to the operation of a user in the environment creating interface;
displaying a service creation interface, and creating an interface service in the deployment environment according to the operation of the user in the service creation interface;
deploying the interface service into a gateway, wherein the gateway is used for calling the interface service according to a received calling request;
the creating of the deployment environment according to the operation of the user in the environment creating interface comprises the following steps: when the environment creating interface comprises a public option and a private option, acquiring the selection operation of the user; when the selection operation acts on the public option, creating a public deployment environment, wherein the public deployment environment is used for deploying interface services created by a plurality of users; and when the selection operation acts on the private option, creating a private deployment environment, wherein the private deployment environment is used for deploying the interface service created by the user.
2. The method of claim 1, wherein deploying the interface service into a gateway comprises:
receiving a configuration request sent by the gateway, wherein the configuration request is used for requesting a configuration file of the gateway;
generating the configuration file according to the information of the interface service in the deployment environment;
and sending the configuration file to the gateway, wherein the gateway is used for deploying the interface service according to the configuration file.
3. The method of claim 1, wherein deploying the interface service into a gateway comprises:
displaying a first setting interface of the deployment environment, wherein the first setting interface comprises a export option;
when receiving the operation acting on the export option, exporting a configuration file according to the information of the interface service in the deployment environment, generating a link according to the storage address of the configuration file, wherein the gateway is used for acquiring the link, acquiring the configuration file according to the link, and deploying the interface service according to the configuration file.
4. The method of claim 1, wherein after creating a deployment environment according to user operations in the environment creation interface, the method further comprises:
and displaying a service interface of the deployment environment, wherein the service interface comprises information of each interface service deployed in the deployment environment.
5. The method of claim 1, wherein creating an interface service in the deployment environment according to the user's operation in the service creation interface comprises:
when the service creation interface comprises an environment input box, acquiring a gateway access address and a service path input by the user in the environment input box;
determining a deployment environment indicated by the gateway access address;
deploying the interface service in the service path in the deployment environment.
6. The method of claim 1, after creating an interface service in the deployment environment according to the user's operations in the service creation interface, the method further comprising:
displaying a deployment interface of the interface service, wherein the deployment interface comprises environment deployment options;
when receiving the operation acting on the environment deployment option, acquiring a gateway access address and a service path input by the user;
determining a deployment environment indicated by the gateway access address;
deploying the interface service in the service path in the deployment environment.
7. The method of claim 1, further comprising:
displaying an application creation interface, and creating an application according to the operation of the user in the application creation interface;
generating a key for the application;
and sending the secret key to the gateway, wherein the gateway is used for carrying out identity authentication on the client corresponding to the application according to the secret key.
8. The method of claim 7, further comprising:
generating an application list according to the application calling the interface service;
and sending the application list to the gateway, wherein the gateway is used for determining a client side with authority to call the interface service according to the application list.
9. The method of claim 8, wherein the generating an application list according to the application invoking the interface service comprises:
displaying a calling application interface of the interface service, wherein the calling application interface comprises an application input box;
acquiring application information input by the user in the application input box;
and generating the application list according to the application information.
10. The method of claim 9,
the method further comprises the following steps: when the calling application interface further comprises a service level input box, acquiring a service level protocol input by the user in the service level input box, wherein the service level protocol is used for indicating a filtering rule of a calling request sent to a client corresponding to the application;
the generating the application list according to the application information includes: and adding the service level agreement and the corresponding application into the application list.
11. The method of claim 8, further comprising:
and displaying an application interface of the interface service, wherein the application interface comprises information of each application applying for calling the interface service.
12. The method of claim 1, after creating an interface service in the deployment environment according to the user's operations in the service creation interface, the method further comprising:
displaying a second setting interface of the interface service, wherein the second setting interface comprises an attribute setting item of the interface service, and the attribute setting item comprises at least one of basic information, a service level agreement and a service strategy;
acquiring attribute information input by the user in the attribute setting item;
and adding the attribute information into the information of the interface service.
13. An apparatus for deploying an interface service, the apparatus comprising:
the first creating module is used for displaying an environment creating interface and creating a deployment environment according to the operation of a user in the environment creating interface;
the second creating module is used for displaying a service creating interface and creating interface service in the deployment environment according to the operation of the user in the service creating interface;
the deployment module is used for deploying the interface service into a gateway, and the gateway is used for calling the interface service according to the received calling request;
the first creating module is further configured to: when the environment creating interface comprises a public option and a private option, acquiring the selection operation of the user; when the selection operation acts on the public option, creating a public deployment environment, wherein the public deployment environment is used for deploying interface services created by a plurality of users; and when the selection operation acts on the private option, creating a private deployment environment, wherein the private deployment environment is used for deploying the interface service created by the user.
14. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement the method for deploying an interface service according to any one of claims 1 to 12.
15. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to implement the method of deploying an interface service according to any one of claims 1 to 12.
CN202110722788.7A 2021-06-29 2021-06-29 Interface service deployment method, device, storage medium and equipment Active CN113259181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110722788.7A CN113259181B (en) 2021-06-29 2021-06-29 Interface service deployment method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110722788.7A CN113259181B (en) 2021-06-29 2021-06-29 Interface service deployment method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN113259181A CN113259181A (en) 2021-08-13
CN113259181B true CN113259181B (en) 2021-12-07

Family

ID=77190054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110722788.7A Active CN113259181B (en) 2021-06-29 2021-06-29 Interface service deployment method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN113259181B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831542A (en) * 2019-04-23 2020-10-27 华为技术有限公司 API application debugging method and device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540538B (en) * 2018-03-20 2021-01-26 西安电子科技大学 Cloud and mist combination networking application construction system based on SDN

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831542A (en) * 2019-04-23 2020-10-27 华为技术有限公司 API application debugging method and device and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
创建API;金山云;《https://docs.ksyun.com/documents/33723》;20200717;参见操作说明-后续操作 *
创建应用并获取授权;金山云;《https://docs.ksyun.com/documents/33741》;20200424;参见操作场景、创建应用 *
接口测试神器:Apifox;简书;《https://www.jianshu.com/p/76a981be0506》;20200727;参见3. Apifor介绍- 5. Apifor更多特性 *
环境变量管理;金山云;《https://docs.ksyun.com/documents/33721》;20200424;参见操作说明-后续操作 *

Also Published As

Publication number Publication date
CN113259181A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US11722465B2 (en) Password encryption for hybrid cloud services
US11501057B2 (en) Enabling file attachments in calendar events
US20220014517A1 (en) Self-federation in authentication systems
US11734635B2 (en) Deploying and implementing enterprise policies that control augmented reality computing functions
CN110557384B (en) Internet of things management control method based on block chain
CN101785243B (en) Transferable restricted security tokens
CN103384237B (en) Method for sharing IaaS cloud account, shared platform and network device
CN102947797B (en) The online service using directory feature extending transversely accesses and controls
US10198560B2 (en) Enforcing licensing policies using an application wrapper
US8726349B2 (en) Optimizing interactions between co-located processes
CN101217368A (en) A network logging on system and the corresponding configuration method and methods for logging on the application system
CN110049048B (en) Data access method, equipment and readable medium for government affair public service
US11770372B2 (en) Unified identity and access management (IAM) control plane for services associated with a hybrid cloud
CN106031128B (en) The method and apparatus of mobile device management
US20190155580A1 (en) Virtualization Layer for Mobile Applications
CN108038390A (en) A kind of software, that is, service platform tenant data isolation and shared method and system
CN108616540A (en) A kind of platform authentication method and system filtering certification with statement formula based on cross-platform Encryption Algorithm
CN103778379B (en) Application in management equipment performs and data access
CN107645474A (en) Log in the method for open platform and log in the device of open platform
CN113259181B (en) Interface service deployment method, device, storage medium and equipment
CN105825134A (en) Intelligent card processing method, intelligent card management server and terminal
CN112417403A (en) Automatic system authentication and authorization processing method based on GitLab API
CN109542816A (en) A kind of service bus building method based on distributed system
US20230385430A1 (en) Techniques for providing security-related information
CN112118236A (en) Platform application open authorization management method

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Room 307, Zijin Oriental building, 288 Qiyue street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Patentee after: Tianju DIHE (Suzhou) Technology Co.,Ltd.

Address before: Room 307, Zijin Oriental building, 288 Qiyue street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Patentee before: TIANJU DIHE (SUZHOU) DATA CO.,LTD.