Nothing Special   »   [go: up one dir, main page]

CN106101258B - Interface calling method, device and system of hybrid cloud - Google Patents

Interface calling method, device and system of hybrid cloud Download PDF

Info

Publication number
CN106101258B
CN106101258B CN201610539500.1A CN201610539500A CN106101258B CN 106101258 B CN106101258 B CN 106101258B CN 201610539500 A CN201610539500 A CN 201610539500A CN 106101258 B CN106101258 B CN 106101258B
Authority
CN
China
Prior art keywords
interface
cloud
request
hybrid cloud
target
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
CN201610539500.1A
Other languages
Chinese (zh)
Other versions
CN106101258A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610539500.1A priority Critical patent/CN106101258B/en
Publication of CN106101258A publication Critical patent/CN106101258A/en
Priority to PCT/CN2017/092259 priority patent/WO2018006872A1/en
Priority to EP17823684.0A priority patent/EP3484125B1/en
Priority to US16/191,323 priority patent/US10965772B2/en
Application granted granted Critical
Publication of CN106101258B publication Critical patent/CN106101258B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method, a device and a system for calling an interface of a hybrid cloud, wherein the method comprises the following steps: receiving an interface calling request of a hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform; determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud; and sending the interface calling request of the hybrid cloud to an interface of the target cloud platform. By the interface calling method, the device and the system of the hybrid cloud, the interface calling of the hybrid cloud can be unified, and the system of the hybrid cloud is more convenient to apply and maintain.

Description

Interface calling method, device and system of hybrid cloud
Technical Field
The invention relates to the technical field of cloud computing, in particular to a method, a device and a system for calling an interface of a hybrid cloud.
Background
Cloud computing is an increasing, usage and delivery model for internet-based related services, typically involving the provision of dynamically scalable and often virtualized resources over the internet. With the development of cloud computing technology, many different types of cloud platforms appear, and the cloud platforms can be divided into an Openstack cloud platform, a Qcloud cloud platform, an AWS cloud platform, and the like according to a cloud computing mode.
The cloud computing technology combining the public cloud platform and the private cloud platform is called as a hybrid cloud, at present, more and more enterprises have two services of external service and internal service, the enterprises hope to apply the public cloud platform for cost saving during external service, and the enterprises hope to apply the private cloud platform for safety during internal service, so the hybrid cloud is more and more popular.
Because different types of cloud platforms fused by the hybrid cloud are independently deployed and the interface calling standards among the different types of cloud platforms are different, a plurality of different interface calling methods exist in one hybrid cloud, which cannot be unified, and great inconvenience is brought to the system application and maintenance of the hybrid cloud.
Disclosure of Invention
In view of this, the invention provides a method, a device and a system for interface calling of a hybrid cloud, so as to overcome the problem that interface calling of the hybrid cloud in the prior art cannot be unified.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of interface invocation for a hybrid cloud, the method comprising:
receiving an interface calling request of a hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform;
determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud;
and sending the interface calling request of the hybrid cloud to an interface of the target cloud platform.
An embodiment of the present invention further provides an interface invoking device for a hybrid cloud, where the device includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an interface calling request of the hybrid cloud sent by a calling party, and the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform;
the determining module is used for determining the interface of the target cloud platform according to the interface calling request of the hybrid cloud;
and the sending module is used for sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
An embodiment of the present invention further provides an interface calling system for a hybrid cloud, where the system includes:
the background server of the application layer platform is used for receiving an interface calling request of the hybrid cloud sent by a user and sending the interface calling request of the hybrid cloud to the background server of the standard API, and the interface calling request of the hybrid cloud is used for indicating the caller to request to call the interface of the target cloud platform;
the background server of the standard API is used for receiving the interface calling request of the hybrid cloud sent by the background server of the application layer platform, determining the interface of the target cloud platform according to the interface calling request of the hybrid cloud, and sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
As can be seen from the foregoing technical solutions, compared with the prior art, the present invention provides a method, an apparatus, and a system for invoking an interface of a hybrid cloud, including: receiving an interface calling request of a hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform; determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud; and sending the interface calling request of the hybrid cloud to an interface of the target cloud platform. By the interface calling method, the device and the system of the hybrid cloud, the interface calling of the hybrid cloud can be unified, and the system of the hybrid cloud is more convenient to apply and maintain.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a system framework diagram of an existing hybrid cloud provided by an embodiment of the present invention;
FIG. 2 is a system framework diagram of a hybrid cloud of the present invention according to an embodiment of the present invention;
fig. 3 is a flowchart of an interface calling method of a hybrid cloud according to an embodiment of the present invention;
fig. 4 is a flowchart of another interface calling method for a hybrid cloud according to an embodiment of the present invention;
fig. 5 is an application illustration diagram of an interface calling method of a hybrid cloud according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating an interface calling apparatus of a hybrid cloud according to an embodiment of the present invention;
fig. 7 is another block diagram of an interface calling apparatus of a hybrid cloud according to an embodiment of the present invention;
FIG. 8 is a block diagram of a determination module provided by an embodiment of the present invention;
fig. 9 is a structural diagram of an authentication module according to an embodiment of the present invention;
fig. 10 is a block diagram of a hardware structure of an interface calling apparatus of a hybrid cloud according to an embodiment of the present invention;
fig. 11 is a structural diagram of an interface calling system of a hybrid cloud according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention is mainly applied to the hybrid cloud, and the system framework of the existing hybrid cloud and the system framework of the hybrid cloud of the invention are respectively introduced in detail as follows:
referring to fig. 1, fig. 1 is a schematic system framework diagram of a conventional hybrid cloud, and as shown in the figure, the hybrid cloud includes a cloud system a and a cloud system B, and the two systems are deployed independently. The application programming interface API-A corresponding to the cloud system A and the application programming interface API-B corresponding to the cloud system B are relatively independent, and therefore no association relationship exists between the cloud system A and the cloud system B. Based on this, when a user needs to schedule the interfaces of the cloud platform a and the cloud platform B through the application layer platform to realize the processing of user services, the API-a and the API-B can only be called respectively, and unified calling cannot be realized.
In order to solve the above problems, the present invention provides a novel hybrid cloud, please refer to fig. 2, fig. 2 is a system framework diagram of the hybrid cloud of the present invention, and as shown in the figure, the hybrid cloud includes a standard application programming interface API, a cloud system a and a cloud system B. The cloud system A and the cloud system B are in a certain association relationship, and the standard application programming interface API is connected with the application programming interface API-A corresponding to the cloud system A and the application programming interface API-B corresponding to the cloud system B at the same time. Based on this, when the user needs to call the interfaces of the cloud platform a and the cloud platform B through the application layer platform to realize the processing of the user service, the interfaces of the cloud platform a and the cloud platform B can be uniformly scheduled by calling the standard application programming interface API.
Based on the hybrid cloud system shown in fig. 2, the invention provides an interface calling method of a hybrid cloud, which can unify interface calling of the hybrid cloud, thereby facilitating system application and maintenance of the hybrid cloud. The execution main body of the interface calling method of the hybrid cloud provided by the invention can be a background server. The backend server may be a backend server of a standard application programming interface, API.
Referring to fig. 3, fig. 3 is a flowchart of an interface calling method of a hybrid cloud according to an embodiment of the present invention, and referring to fig. 3, the method may include:
step S300, receiving an interface calling request of the hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform.
It should be noted that the caller may be a background server of the application layer platform. The interface of the target cloud platform may be an application programming interface API corresponding to different functions (e.g., resource scheduling, resource monitoring, resource management, etc.) of the cloud platform, which is not limited in this embodiment.
Step S310, determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud.
The interface call request of the hybrid cloud may carry some parameters related to the interface of the target cloud platform, and the interface of the target cloud platform may be determined according to the parameters, which will be specifically described in detail by the following embodiments.
Step S320, sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
The interface calling method of the hybrid cloud provided by the embodiment of the invention comprises the following steps: receiving an interface calling request of a hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform; determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud; and sending the interface calling request of the hybrid cloud to an interface of the target cloud platform. By the interface calling method, the interface calling of the hybrid cloud can be unified, and further the system application and maintenance of the hybrid cloud are more convenient.
Preferably, fig. 4 shows a flowchart of another interface calling method for a hybrid cloud according to an embodiment of the present invention, and referring to fig. 4, the method may include:
step S400, receiving an interface calling request of the hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform.
Specifically, in this embodiment, an interface call request including a URL address sent by a caller may be received.
And S410, authenticating the interface calling request of the hybrid cloud, if the authentication is passed, executing the steps S420 to S430, and if the authentication is not passed, ending the whole process.
In order to ensure the calling security of the standard API, the invention also discloses an interface calling request authentication method, which is specifically described by the following contents:
in the invention, a calling party needs to apply for an account to a background server of a standard application programming interface API in advance, the account at least comprises two parameters of an access key and a secretekey, wherein the access key is used for identifying the identity of a calling party, and the secretekey is a key used for encrypting a signature character string and verifying the signature character string at the background server of the standard API.
In the invention, a caller may send an interface call request generated based on an HTTP (Hyper Text Transfer Protocol) Protocol to a standard API to implement scheduling of resources of the hybrid cloud, where the interface call request includes a request type (HTTP Method, such as GET/POST/PATCH/PUT/DELETE, etc.) and a URL (Uniform Resource Locator) address. Since the hybrid cloud includes a plurality of different types of cloud platforms, the type of the target cloud platform called by the HTTP request may be represented by adding a cloud type parameter to the URL address, for example, tocloud represents that the type of the target cloud platform called by the HTTP request is an Openstack cloud platform, tacloud represents that the type of the target cloud platform called by the HTTP request is AWS, and tqcloud represents that the type of the target cloud platform called by the HTTP request is Qcloud. In addition, since the same type of target cloud platform may include interfaces of multiple different areas (i.e., rooms), the area of the interface of the target cloud platform called by the HTTP request may be represented by adding a region parameter to the URL address, for example, region-002 represents the interface of the second area. For example, the HTTP request GTE HTTP:// api. closed. com/v 1.0/closed/serversregion-002 indicates that the caller wants to call the interface of the second area with the cloud platform type AWS.
When the caller sends an interface call request to the standard API, it is necessary to simultaneously send an HTTP Header storing common parameters as shown in table 1 to the standard API. The Signature is a Signature string which is based on an HMAC-SHA1 algorithm, signs a character string consisting of a request type HTTP Method, a Timestamp parameter Timestamp, a URL address, a platform verification code AppKey and a user verification code Access Key by using a key parameter SecretKey corresponding to the user verification code Access Key and then codes the character string by using Base 64.
TABLE 1
Figure BDA0001044920060000061
For example, the parameter values of AccessKey and secretekey included in the account that the calling party applies to the background server of the standard API in advance are as follows:
AccessKey:AKIAIOSFODNN7EXAMPLE;
SecretKey:wJalrXUtnFEMIK7MDENGbPxRfiCYEXAMPLEKEY;
the interface call request sent to the standard API by the call direction is as follows:
GET http://api.cloud.com/v1.0/openstack-0001/serversname=my_server;
the parameter values of Timestamp and AppKey are as follows:
Timestamp:1462333570;
AppKey:APP-001;
then using HMAC-SHA1 algorithm and wJalrXUtfEMIK 7 MDENGbPxRfCYEXAMPLEKEY Signature to the character string ' GET ' + ' 1462333570 ' + http:// api. group.com/v 1.0/openstack-0001/serversame ═ my _ server ' + ' APP-001 ' + ' AKIAIOSFODNN7EXAMPLE ', obtaining hex ═ e360a54f95c81dc5fc28d667a19fe0d11f1b0d33, and encoding hex using Base64 to obtain Signature 42ClT5XIHcX8 KNOZ/g 0R8 bDTM.
Therefore, the interface call request sent by the caller to the standard API is as follows:
GET http://api.cloud.com/v1.0/openstack-0001/serversname=my_server
the HTTP Header that the caller sends to the standard API is as follows:
Timestamp 1462333570
AppKey APP-001
AccessKey AKIAIOSFODNN7EXAMPLE
Signature 42ClT5XIHcX8KNZnoZ/g0R8bDTM
the Method comprises the steps that a received interface call request and an HTTP Header of a standard API are transmitted to a background server of the standard API, the background server inquires a database to obtain a parameter SecretKey pre-allocated to a calling party, and authenticates the Signature through the parameter, if each item value in a character string consisting of the HTTP Method, the Timestamp, the URL, the AppKey and the Access Key obtained after authentication is completely consistent with the value in an interface call request to be received and the HTTP Header of the standard API, the standard API is passed, namely the calling party can call the standard API, and if each item value in a character string consisting of the HTTP Method, the Timestamp, the URL, the AppKey and the Access obtained after authentication is not completely consistent with the value in the interface call request to be received and the HTTP Header of the standard API, the standard API is failed in authentication, namely the calling party cannot call the standard API.
Step S420, determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud.
In this step, the interface of the target cloud platform may be determined as follows: determining the target type of a target cloud platform according to the cloud platform type parameter in the URL address; determining a target area of an interface of a target cloud platform according to the region parameter in the URL address; and determining that the interface in the target area is the interface of the target cloud platform.
And step S430, sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
In this embodiment, the authentication mode is added, so that a legal user can be guaranteed to successfully schedule the standard API, while an illegal user cannot successfully schedule the standard API, and the scheduling security of the hybrid cloud resource is further guaranteed.
The application example of the interface calling method of the hybrid cloud provided by the embodiment of the invention can be as follows:
taking the example that the hybrid cloud to be scheduled by the user A through the application layer comprises a cloud platform A, a cloud platform B and a cloud platform C, the cloud platform A, the cloud platform B and the cloud platform C correspond to the API-A, API-B, API-C respectively. The cloud platform A is an Openstack cloud platform, the machine room area is a North China area and comprises cloud servers a1, a2 and a3, the corresponding resource scheduling API is API-A, the cloud platform B is an AWS, the machine room area is a south China area and comprises cloud servers B1, B2 and B3, the corresponding resource scheduling API is API-B, the cloud platform C is a Qcloud, the machine room area is a Central China area and comprises cloud servers C1, C2 and C3, and the corresponding resource scheduling API is API-C.
Referring to fig. 5, the application layer platform provides an interface call application interface, and the user a triggers an application interface call button on the interface call application interface, so as to generate an interface call request of the hybrid cloud, where the interface call request is specifically GTE http:// api. After the application layer platform obtains the interface calling request of the hybrid cloud, the interface calling request of the hybrid cloud is sent to a background server corresponding to a standard API, the background server corresponding to the standard API determines that an interface of a target cloud platform corresponding to the interface calling request is API-A, then the background server corresponding to the standard API sends the interface calling request of the hybrid cloud to the cloud platform A through the API-A, the cloud platform A schedules resources of the cloud platform A, corresponding resource scheduling results are obtained, the resource scheduling results are fed back to the background server of the application layer platform through the API-A and the standard API in sequence, and the background server of the application layer platform calls an application interface through the interface and displays the application interface to a user A.
In the following, the interface calling device of the hybrid cloud provided by the embodiment of the present invention is introduced, and the interface calling device of the hybrid cloud described below may be referred to by the interface calling method of the hybrid cloud described above.
Fig. 6 is a block diagram of a structure of an interface calling device of a hybrid cloud according to an embodiment of the present invention, where the interface calling device of the hybrid cloud may specifically be a background server, and referring to fig. 6, the interface calling device of the hybrid cloud may include:
a receiving module 60, configured to receive an interface call request of a hybrid cloud sent by a caller, where the interface call request of the hybrid cloud is used to indicate that the caller requests to call an interface of a target cloud platform;
a determining module 61, configured to determine an interface of the target cloud platform according to the interface call request of the hybrid cloud;
a sending module 62, configured to send the interface call request of the hybrid cloud to the interface of the target cloud platform.
Fig. 7 is another structural block diagram of an interface calling device of a hybrid cloud according to an embodiment of the present invention, where the interface calling device of the hybrid cloud may specifically be a background server, and referring to fig. 7, the interface calling device of the hybrid cloud may include:
a receiving module 70, configured to receive an interface call request of a hybrid cloud sent by a caller, where the interface call request of the hybrid cloud is used to indicate that the caller requests to call an interface of a target cloud platform;
the authentication module 71 is configured to authenticate the interface call request of the hybrid cloud before determining the interface of the target cloud platform according to the interface call request of the hybrid cloud; if the authentication is passed, the trigger determining module 72 determines the interface of the target cloud platform according to the interface call request of the hybrid cloud.
A determining module 72, configured to determine an interface of the target cloud platform according to the interface call request of the hybrid cloud;
a sending module 73, configured to send the interface call request of the hybrid cloud to the interface of the target cloud platform.
Optionally, the receiving module is specifically configured to:
and receiving an interface calling request which is sent by a calling party and comprises a Uniform Resource Locator (URL) address.
Optionally, fig. 8 shows a structure diagram of the determining module, and referring to fig. 8, the determining module specifically includes:
a type determining unit 80, configured to determine a target type of the target cloud platform according to the cloud platform type parameter in the URL address;
the region determining unit 81 is configured to determine a target region of an interface of a target cloud platform according to the region parameter in the URL address;
and an interface determining unit 82 of the target cloud platform, configured to determine that the interface in the target area is the interface of the target cloud platform.
Optionally, fig. 9 shows a structure diagram of an authentication module, and referring to fig. 9, the authentication module specifically includes:
the receiving unit 90 is configured to receive an HTTP Header sent by a caller, where the HTTP Header includes a Timestamp parameter Timestamp, a platform verification code AppKey, a user verification code AccessKey, and a Signature string Signature;
the query unit 91 is configured to query and obtain a key parameter secretekey pre-allocated to the caller;
the processing unit 92 is configured to authenticate the Signature string Signature by using the key parameter secretekey, and obtain a character string composed of an HTTP Method, a Timestamp, a URL address, an AppKey, and an AccessKey; and when the HTTP Method in the character string is consistent with the request type in the interface calling request of the hybrid cloud, the URL address in the character string is consistent with the URL address in the interface calling request of the hybrid cloud, the Timestamp in the character string is consistent with the Timestamp in the HTTP Header, the AppKey in the character string is consistent with the AppKey in the HTTP Header, and the Access Key in the character string is consistent with the Access Key in the HTTP Header, the authentication is passed.
Alternatively, the interface calling apparatus of the hybrid cloud may be a hardware device, and the above-described modules and units may be function modules disposed in the interface calling apparatus of the hybrid cloud. Fig. 10 is a block diagram illustrating a hardware configuration of an interface calling apparatus of a hybrid cloud, and referring to fig. 10, the interface calling apparatus of the hybrid cloud may include: a processor 1, a communication interface 2, a memory 3 and a communication bus 4; wherein, the processor 1, the communication interface 2 and the memory 3 complete the communication with each other through the communication bus 4; optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
a processor 1 for executing a program; a memory 3 for storing a program; the program may include program code comprising computer operating instructions;
the processor 1 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention; the memory 3 may comprise a high-speed RAM memory and may also comprise a non-volatile memory, such as at least one disk memory.
Among them, the procedure can be specifically used for:
receiving an interface calling request of a hybrid cloud sent by a calling party, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform;
determining an interface of the target cloud platform according to the interface calling request of the hybrid cloud;
and sending the interface calling request of the hybrid cloud to an interface of the target cloud platform.
The following describes an interface calling system of a hybrid cloud according to the present invention, where a structure of the interface calling system of the hybrid cloud is shown in fig. 11, and the interface calling system includes a background server 10 of an application layer platform and a background server 20 of a standard API.
The background server of the application layer platform is used for receiving an interface calling request of a hybrid cloud sent by a user and sending the interface calling request of the hybrid cloud to the background server of a standard API, and the interface calling request of the hybrid cloud is used for indicating a caller to request to call an interface of a target cloud platform;
the background server of the standard API is used for receiving the interface calling request of the hybrid cloud sent by the background server of the application layer platform, determining the interface of the target cloud platform according to the interface calling request of the hybrid cloud, and sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
Optionally, the background server of the standard API is further configured to authenticate the interface call request of the hybrid cloud before determining the interface of the target cloud platform according to the interface call request of the hybrid cloud; and if the authentication is passed, determining the interface of the target cloud platform according to the interface calling request of the hybrid cloud.
Optionally, the background server of the standard API is specifically configured to receive an interface call request including a uniform resource locator URL address, which is sent by the background server of the application layer platform.
Optionally, the background server of the standard API is specifically configured to:
determining the target type of a target cloud platform according to the cloud platform type parameter in the URL address;
determining a target area of an interface of a target cloud platform according to the region parameter in the URL address;
and determining that the interface in the target area is the interface of the target cloud platform.
The background server of the standard API is specifically configured to:
receiving an HTTP Header sent by a calling party, wherein the HTTP Header comprises a Timestamp parameter Timestamp, a platform verification code AppKey, a user verification code Access Key and a Signature string Signature;
inquiring to obtain a key parameter SecretKey pre-distributed to the calling party;
authenticating the Signature string Signature by using the key parameter SecretKey to obtain a character string consisting of a request type HTTP Method, a Timestamp parameter Timestamp, a URL address, a platform verification code AppKey and a user verification code Access Key;
and when the request type HTTP Method in the character string is consistent with the request type in the interface calling request of the hybrid cloud, the URL address in the character string is consistent with the URL address in the interface calling request of the hybrid cloud, the Timestamp parameter Timestamp in the character string is consistent with the Timestamp parameter Timestamp in the HTTP Header, the platform verification code AppKey in the character string is consistent with the platform verification code AppKey in the HTTP Header, and the user verification code Access Key in the character string is consistent with the user verification code Access Key in the HTTP Header, the authentication is passed.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. The interface calling method of the hybrid cloud is characterized in that the hybrid cloud comprises a standard application programming interface and at least two cloud platforms, wherein the standard application programming interface is simultaneously connected with an interface corresponding to each of the at least two cloud platforms and is used for realizing unified calling of the interfaces corresponding to the at least two cloud platforms; the method comprises the following steps:
the background server of the standard application programming interface receives an interface calling request of the hybrid cloud which is sent by a calling party and comprises a Uniform Resource Locator (URL) address, wherein the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of a target cloud platform; the target cloud platform is one of the at least two cloud platforms;
determining the target type of a target cloud platform according to the cloud platform type parameter in the URL address;
determining a target area of an interface of a target cloud platform according to the region parameter in the URL address;
determining an interface in the target area as an interface of the target cloud platform;
and sending the interface calling request of the hybrid cloud to an interface of the target cloud platform.
2. The method of claim 1, wherein prior to the determining the interface of the target cloud platform from the interface call request of the hybrid cloud, the method further comprises:
authenticating the interface calling request of the hybrid cloud;
and if the authentication is passed, determining the interface of the target cloud platform according to the interface calling request of the hybrid cloud.
3. The method of claim 2, wherein authenticating the interface call request of the hybrid cloud comprises:
receiving an HTTP Header sent by a calling party, wherein the HTTP Header comprises a Timestamp parameter Timestamp, a platform verification code AppKey, a user verification code Access Key and a Signature string Signature;
inquiring to obtain a key parameter SecretKey pre-distributed to the calling party;
authenticating the Signature string Signature by using the key parameter SecretKey to obtain a character string consisting of a request type HTTP Method, a Timestamp parameter Timestamp, a URL address, a platform verification code AppKey and a user verification code Access Key;
and when the request type HTTP Method in the character string is consistent with the request type in the interface calling request of the hybrid cloud, the URL address in the character string is consistent with the URL address in the interface calling request of the hybrid cloud, the Timestamp parameter Timestamp in the character string is consistent with the Timestamp parameter Timestamp in the HTTP Header, the platform verification code AppKey in the character string is consistent with the platform verification code AppKey in the HTTP Header, and the user verification code Access Key in the character string is consistent with the user verification code Access Key in the HTTP Header, the authentication is passed.
4. The interface calling device of the hybrid cloud is characterized in that the hybrid cloud comprises a standard application programming interface and at least two cloud platforms, wherein the standard application programming interface is simultaneously connected with an interface corresponding to each of the at least two cloud platforms and is used for realizing unified calling of the interfaces corresponding to the at least two cloud platforms; the device is a background server of the standard application programming interface, and the device comprises:
the system comprises a receiving module, a calling party and a target cloud platform, wherein the receiving module is used for receiving an interface calling request of the hybrid cloud which is sent by the calling party and comprises a Uniform Resource Locator (URL) address, and the interface calling request of the hybrid cloud is used for indicating the calling party to request to call an interface of the target cloud platform; the target cloud platform is one of the at least two cloud platforms;
the type determining unit is used for determining the target type of the target cloud platform according to the cloud platform type parameters in the URL address;
the region determining unit is used for determining a target region of an interface of a target cloud platform according to the region parameter in the URL address;
an interface determining unit of the target cloud platform, configured to determine that an interface in the target area is an interface of the target cloud platform;
and the sending module is used for sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
5. The apparatus of claim 4, further comprising:
the authentication module is used for authenticating the interface calling request of the hybrid cloud before the interface of the target cloud platform is determined according to the interface calling request of the hybrid cloud; and if the authentication is passed, a trigger determining module determines the interface of the target cloud platform according to the interface calling request of the hybrid cloud.
6. The apparatus of claim 5, wherein the authentication module comprises:
the system comprises a receiving unit, a Signature string Signature unit and a processing unit, wherein the receiving unit is used for receiving an HTTP Header sent by a calling party, and the HTTP Header comprises a Timestamp parameter Timestamp, a platform verification code AppKey, a user verification code Access Key and a Signature string Signature;
the query unit is used for querying and obtaining a key parameter SecretKey pre-distributed to the calling party;
the processing unit is used for authenticating the Signature string Signature by using the key parameter SecretKey to obtain a character string consisting of a request type HTTP Method, a Timestamp parameter Timestamp, a URL address, a platform verification code AppKey and a user verification code Access Key; and when the request type HTTP Method in the character string is consistent with the request type in the interface calling request of the hybrid cloud, the URL address in the character string is consistent with the URL address in the interface calling request of the hybrid cloud, the Timestamp parameter Timestamp in the character string is consistent with the Timestamp parameter Timestamp in the HTTP Header, the platform verification code AppKey in the character string is consistent with the platform verification code AppKey in the HTTP Header, and the user verification code Access Key in the character string is consistent with the user verification code Access Key in the HTTP Header, the authentication is passed.
7. The interface calling system of the hybrid cloud is characterized in that the hybrid cloud comprises a standard application programming interface and at least two cloud platforms, wherein the standard application programming interface is simultaneously connected with an interface corresponding to each of the at least two cloud platforms and is used for realizing unified calling of the interfaces corresponding to the at least two cloud platforms; the system comprises:
the background server of the application layer platform is used for receiving an interface calling request of the hybrid cloud sent by a calling party and sending the interface calling request of the hybrid cloud to the background server of the standard API, and the interface calling request of the hybrid cloud is used for indicating the calling party to request to call the interface of the target cloud platform; the target cloud platform is one of the at least two cloud platforms;
the background server of the standard API is used for receiving an interface calling request of the hybrid cloud which is sent by the background server of the application layer platform and comprises a Uniform Resource Locator (URL) address, determining a target type of a target cloud platform according to cloud platform type parameters in the URL address, determining a target area of an interface of the target cloud platform according to region parameters in the URL address, determining that the interface in the target area is the interface of the target cloud platform, and sending the interface calling request of the hybrid cloud to the interface of the target cloud platform.
8. The system of claim 7, wherein the background server of the standard API is further configured to authenticate the interface call request of the hybrid cloud before determining the interface of the target cloud platform according to the interface call request of the hybrid cloud; and if the authentication is passed, determining the interface of the target cloud platform according to the interface calling request of the hybrid cloud.
9. The system of claim 8, wherein the background server of the standard API is specifically configured to:
receiving an HTTP Header sent by a calling party, wherein the HTTP Header comprises a Timestamp parameter Timestamp, a platform verification code AppKey, a user verification code Access Key and a Signature string Signature;
inquiring to obtain a key parameter SecretKey pre-distributed to the calling party;
authenticating the Signature string Signature by using the key parameter SecretKey to obtain a character string consisting of a request type HTTP Method, a Timestamp parameter Timestamp, a URL address, a platform verification code AppKey and a user verification code Access Key;
and when the request type HTTP Method in the character string is consistent with the request type in the interface calling request of the hybrid cloud, the URL address in the character string is consistent with the URL address in the interface calling request of the hybrid cloud, the Timestamp parameter Timestamp in the character string is consistent with the Timestamp parameter Timestamp in the HTTP Header, the platform verification code AppKey in the character string is consistent with the platform verification code AppKey in the HTTP Header, and the user verification code Access Key in the character string is consistent with the user verification code Access Key in the HTTP Header, the authentication is passed.
10. An interface invocation device for a hybrid cloud, comprising: a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory;
the computer program is for executing the interface call method of the hybrid cloud according to any one of claims 1-3.
11. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, is configured to implement the interface call method of the hybrid cloud according to any one of claims 1 to 3.
CN201610539500.1A 2016-07-08 2016-07-08 Interface calling method, device and system of hybrid cloud Active CN106101258B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201610539500.1A CN106101258B (en) 2016-07-08 2016-07-08 Interface calling method, device and system of hybrid cloud
PCT/CN2017/092259 WO2018006872A1 (en) 2016-07-08 2017-07-07 Method and device for scheduling interface of hybrid cloud
EP17823684.0A EP3484125B1 (en) 2016-07-08 2017-07-07 Method and device for scheduling interface of hybrid cloud
US16/191,323 US10965772B2 (en) 2016-07-08 2018-11-14 Interface invocation method and apparatus for hybrid cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610539500.1A CN106101258B (en) 2016-07-08 2016-07-08 Interface calling method, device and system of hybrid cloud

Publications (2)

Publication Number Publication Date
CN106101258A CN106101258A (en) 2016-11-09
CN106101258B true CN106101258B (en) 2021-05-25

Family

ID=57212686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610539500.1A Active CN106101258B (en) 2016-07-08 2016-07-08 Interface calling method, device and system of hybrid cloud

Country Status (1)

Country Link
CN (1) CN106101258B (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3484125B1 (en) 2016-07-08 2022-09-07 Tencent Technology (Shenzhen) Company Limited Method and device for scheduling interface of hybrid cloud
CN106412009A (en) * 2016-08-29 2017-02-15 郑州悉知信息科技股份有限公司 Interface calling method and device
CN106534306A (en) * 2016-11-14 2017-03-22 北京大学(天津滨海)新代信息技术研究院 Extensible heterogeneous cloud platform adaptation method and system
CN106453646A (en) * 2016-11-29 2017-02-22 上海有云信息技术有限公司 Resource scheduling method and device for security service platform
CN106911684B (en) * 2017-02-17 2020-06-16 武汉斗鱼网络科技有限公司 Authentication method and system
CN107071004A (en) * 2017-03-24 2017-08-18 上海云首信息科技有限公司 A kind of mixed cloud control scheduling system and dispatching method
CN107196936A (en) * 2017-05-19 2017-09-22 广东万丈金数信息技术股份有限公司 Interface retransmission method, system, computer equipment and storage medium
CN107357660A (en) * 2017-07-06 2017-11-17 华为技术有限公司 The distribution method and device of a kind of virtual resource
CN109309646B (en) * 2017-07-27 2021-04-27 贵州白山云科技股份有限公司 Multimedia transcoding method and system
CN107465548A (en) * 2017-08-17 2017-12-12 北京云纵信息技术有限公司 The dispositions method and device of code
CN108365961B (en) * 2018-01-02 2019-07-19 深圳壹账通智能科技有限公司 The response method and server that interface call method and terminal device, interface call
CN108449418B (en) * 2018-03-29 2021-08-06 新华三云计算技术有限公司 Hybrid cloud platform management system and method
CN108989418A (en) * 2018-07-11 2018-12-11 国云科技股份有限公司 A kind of resource amount method of mixed cloud object storage common authentication
CN109492358A (en) * 2018-09-25 2019-03-19 国网浙江省电力有限公司信息通信分公司 A kind of open interface uniform authentication method
CN109639629B (en) * 2018-10-30 2023-04-18 平安科技(深圳)有限公司 Data access processing method and device, computer equipment and storage medium
CN109450888B (en) * 2018-11-01 2021-08-13 泰康保险集团股份有限公司 Service calling method and device, electronic equipment and storage medium
CN110049132B (en) * 2019-04-22 2022-07-12 北京搜狐互联网信息服务有限公司 Scheduling method and scheduler for cloud resources
CN110287037B (en) * 2019-05-20 2023-11-03 平安科技(深圳)有限公司 Distributed intelligent API asynchronous callback method and device
CN110324191B (en) * 2019-07-09 2022-08-23 西安点告网络科技有限公司 Hybrid cloud deployment method, device and system
CN110489207A (en) * 2019-07-11 2019-11-22 平安科技(深圳)有限公司 Verification method, apparatus and computer readable storage medium
CN110636041A (en) * 2019-08-09 2019-12-31 西藏宁算科技集团有限公司 Cloud authentication scheme implementation method and system based on OpenResty
CN110555036A (en) * 2019-08-21 2019-12-10 上海易点时空网络有限公司 data repetition eliminating method and device based on asynchronous processing
CN110569649A (en) * 2019-08-21 2019-12-13 上海易点时空网络有限公司 Data access service interface authentication method and device based on asynchronous processing
CN110795182B (en) * 2019-09-18 2024-09-13 平安科技(深圳)有限公司 Cloud host creation method and system
CN113055410B (en) * 2019-12-26 2024-07-23 阿里巴巴集团控股有限公司 Cloud resource management method, device, equipment, system and readable storage medium
CN110839087B (en) * 2020-01-13 2020-06-19 北京懿医云科技有限公司 Interface calling method and device, electronic equipment and computer readable storage medium
CN113452771B (en) * 2021-06-24 2023-01-31 北京沃东天骏信息技术有限公司 Interface calling method, device and system
CN113965575A (en) * 2021-10-15 2022-01-21 山东乾云启创信息科技股份有限公司 Cloud resource distribution system and method for cloud host service selection
CN114143030B (en) * 2021-10-29 2023-09-19 北京达佳互联信息技术有限公司 Verification processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255933A (en) * 2010-05-20 2011-11-23 中兴通讯股份有限公司 Cloud service medium, cloud computing method and cloud system
CN104113595A (en) * 2014-07-09 2014-10-22 武汉邮电科学研究院 Mixed cloud storage system and method based on safety grading
CN104657220A (en) * 2015-03-12 2015-05-27 广东石油化工学院 Model and method for scheduling for mixed cloud based on deadline and cost constraints
CN104935568A (en) * 2015-04-20 2015-09-23 成都康赛信息技术有限公司 Interface authentication signature method facing cloud platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101547498B1 (en) * 2013-08-08 2015-08-26 삼성전자주식회사 The method and apparatus for distributing data in a hybrid cloud environment
US9755858B2 (en) * 2014-04-15 2017-09-05 Cisco Technology, Inc. Programmable infrastructure gateway for enabling hybrid cloud services in a network environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255933A (en) * 2010-05-20 2011-11-23 中兴通讯股份有限公司 Cloud service medium, cloud computing method and cloud system
CN104113595A (en) * 2014-07-09 2014-10-22 武汉邮电科学研究院 Mixed cloud storage system and method based on safety grading
CN104657220A (en) * 2015-03-12 2015-05-27 广东石油化工学院 Model and method for scheduling for mixed cloud based on deadline and cost constraints
CN104935568A (en) * 2015-04-20 2015-09-23 成都康赛信息技术有限公司 Interface authentication signature method facing cloud platform

Also Published As

Publication number Publication date
CN106101258A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106101258B (en) Interface calling method, device and system of hybrid cloud
US10965772B2 (en) Interface invocation method and apparatus for hybrid cloud
CN111917773B (en) Service data processing method and device and server
US9053306B2 (en) Authentication system, authentication server, service providing server, authentication method, and computer-readable recording medium
US9923906B2 (en) System, method and computer program product for access authentication
US8646062B2 (en) Remote authentication based on challenge-response using digital certificates
TWI679550B (en) Account login method and device
CN111556006A (en) Third-party application system login method, device, terminal and SSO service platform
CN105991614B (en) It is a kind of it is open authorization, resource access method and device, server
US11658963B2 (en) Cooperative communication validation
CN103220259A (en) Using method, call method, device and system of Oauth application programming interface (API)
CN108259502A (en) For obtaining the identification method of interface access rights, server-side and storage medium
WO2015074443A1 (en) An operation processing method and device
CN109067785A (en) Cluster authentication method, device
CN107453872A (en) A kind of unified safety authentication method and system based on Mesos container cloud platforms
CN108809927B (en) Identity authentication method and device
CN109818915B (en) Information processing method and device, server and readable storage medium
CN111371811A (en) Resource calling method, resource calling device, client and service server
CN103559430A (en) Application account management method and device based on android system
TWI546698B (en) Login system based on servers, login authentication server, and authentication method thereof
CN118353628A (en) Block chain data processing method, device, computer equipment, medium and product
CN112134705B (en) Data authentication method and device, storage medium and electronic device
KR20210144664A (en) Prevent data manipulation of communications network metrics and protect user privacy
CN110647757A (en) Data processing method based on intelligent contract and related device
CN117040930B (en) Resource processing method, device, product, equipment and medium of block chain network

Legal Events

Date Code Title Description
C06 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