WO2021068763A1 - Cloud resource creation method, apparatus, client and server - Google Patents

Cloud resource creation method, apparatus, client and server Download PDF

Info

Publication number
WO2021068763A1
WO2021068763A1 PCT/CN2020/117772 CN2020117772W WO2021068763A1 WO 2021068763 A1 WO2021068763 A1 WO 2021068763A1 CN 2020117772 W CN2020117772 W CN 2020117772W WO 2021068763 A1 WO2021068763 A1 WO 2021068763A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud resource
activated
automatic
resource
unsubscription
Prior art date
Application number
PCT/CN2020/117772
Other languages
French (fr)
Chinese (zh)
Inventor
朱建庭
陈雨
金鹏
Original Assignee
北京金山云网络技术有限公司
北京金山云科技有限公司
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 北京金山云网络技术有限公司, 北京金山云科技有限公司 filed Critical 北京金山云网络技术有限公司
Publication of WO2021068763A1 publication Critical patent/WO2021068763A1/en

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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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/0894Policy-based network configuration management
    • 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

Definitions

  • This application relates to the field of cloud storage technology, and in particular to a method, device, client and server for creating cloud resources.
  • the first payment model is a pre-paid model, which requires customers to pay for cloud resource activation in advance
  • the second payment model is a post-paid model.
  • the customer needs to manually unsubscribe the activated cloud resources, which results in high labor costs.
  • the purpose of the embodiments of the present application is to provide a cloud resource creation method, device, client and server to automatically unsubscribe the cloud resource opened by the customer and save labor costs.
  • the specific technical solutions are as follows:
  • the embodiment of the application provides a cloud resource creation method, applied to a client, including: receiving a cloud resource configuration operation, the cloud resource configuration operation being configured to create configuration information of the cloud resource to be activated; displaying the cloud resource to be activated An automatic unsubscribe interface, where an automatic unsubscribe control for the cloud resource to be activated is displayed; when an operation for the automatic unsubscribe control is received, an automatic unsubscribe control for the cloud resource to be activated is generated Unsubscription strategy; wherein, the automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time; sending a cloud resource activation request to the server, and the cloud resource activation request includes the configuration Information and the automatic unsubscription policy, wherein the configuration information is configured for the server to create an instance of the cloud resource to be activated.
  • the embodiment of the present application provides a cloud resource creation method, which is applied to a server, and includes: receiving a cloud resource activation request sent by a client, wherein the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information
  • the automatic unsubscription policy is the operation of the client according to the received automatic unsubscription control for the cloud resource to be activated Determined
  • the automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time
  • an instance of the cloud resource to be activated is created according to the configuration information.
  • An embodiment of the present application also provides a cloud resource creation device applied to a client.
  • the device includes a configuration operation receiving module configured to receive a cloud resource configuration operation, and the cloud resource configuration operation is configured to create a cloud resource to be activated.
  • Configuration information ; unsubscribe interface display module, configured to display the automatic unsubscribe interface of the cloud resource to be opened, and the automatic unsubscribe control for the cloud resource to be opened is displayed in the automatic unsubscribe interface;
  • the unsubscribe policy is generated Module, configured to generate an automatic unsubscription strategy for the cloud resource to be activated when an operation for the automatic unsubscription control is received; wherein, the automatic unsubscription strategy is whether the cloud resource to be activated is at a predetermined time A policy that needs to be automatically unsubscribed;
  • a request sending module configured to send a cloud resource activation request to the server, the cloud resource activation request including the configuration information and the automatic unsubscription policy, wherein the configuration information is configured as The server creates an instance of the cloud resource to be activated.
  • the embodiment of the present application also provides a cloud resource creation device, applied to a server, the device includes: a request receiving module configured to receive a cloud resource activation request sent by a client, wherein the cloud resource activation request includes configuration information And an automatic unsubscription policy, where the configuration information is the configuration information of the cloud resource to be activated created by the client receiving a cloud resource configuration operation, and the automatic unsubscription policy is the client according to the received configuration information for the pending cloud resource.
  • the configuration information is the configuration information of the cloud resource to be activated created by the client receiving a cloud resource configuration operation
  • the automatic unsubscription policy is the client according to the received configuration information for the pending cloud resource.
  • Determined by the operation of the automatic unsubscription control for opening cloud resources the automatic unsubscription strategy is a strategy for whether the cloud resource to be opened needs to be automatically unsubscribed at a predetermined time
  • the instance provisioning module is configured to follow the configuration information Create an instance of the cloud resource to be activated.
  • An embodiment of the present application also provides a client, including a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is The machine-executable instructions prompt: implement any of the steps of the cloud resource creation method applied to the client.
  • An embodiment of the present application also provides a server, including a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is executed by the machine
  • the executable instruction prompts: to implement any of the steps of the cloud resource creation method applied to the server.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the foregoing cloud resource creation methods applied to the client. step.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the foregoing cloud resource creation methods applied to a server step.
  • the embodiment of the present application also provides a computer program product containing instructions, which when running on a computer, causes the computer to execute any of the foregoing cloud resource creation methods applied to the client.
  • the embodiment of the present application also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the foregoing cloud resource creation methods applied to a server.
  • a cloud resource creation method, device, client, and server provided by the embodiments of the present application.
  • a cloud resource configuration operation is received, and the cloud resource configuration operation configuration is to create configuration information of the cloud resource to be activated, and display the cloud resource to be activated
  • the automatic unsubscribe interface of, the automatic unsubscribe interface displays the automatic unsubscribe control for the cloud resource to be activated, and when the operation for the automatic unsubscribe control is received, the automatic unsubscribe policy for the cloud resource to be activated is generated; among them,
  • the automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time, and a cloud resource activation request is sent to the server.
  • the cloud resource activation request includes configuration information and an automatic unsubscription strategy, where the configuration information is configured as
  • the server creates an instance of the cloud resource to be activated.
  • Unsubscribing to unsubscribed cloud resources enables automatic unsubscription of cloud resources subscribed by customers, thereby saving labor costs.
  • FIG. 1 is a flowchart of a cloud resource creation method applied to a client according to an embodiment of the application
  • FIG. 2 is a flowchart of a method for generating an automatic unsubscription policy according to an embodiment of the application
  • FIG. 3 is a flowchart of a method for creating cloud resources applied to a server according to an embodiment of the application
  • FIG. 4 is a flowchart of a cloud resource deregistration method provided by an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of a cloud resource creation apparatus applied to a client according to an embodiment of the application
  • FIG. 6 is a schematic structural diagram of a cloud resource creation apparatus applied to a server according to an embodiment of the application
  • FIG. 7 is a schematic structural diagram of a client provided by an embodiment of the application.
  • Fig. 8 is a schematic structural diagram of a server provided by an embodiment of the application.
  • the embodiments of this application provide a cloud resource creation method, device, client, and server.
  • the embodiments of this application are described below with reference to the accompanying drawings in the description. Description. And if there is no conflict, the embodiments in the application and the features in the embodiments can be combined with each other.
  • a cloud resource creation method applied to a client is provided. As shown in FIG. 1, the method includes the following steps:
  • S101 Receive a cloud resource configuration operation, and the cloud resource configuration operation configuration is to create configuration information of the cloud resource to be activated.
  • the cloud resource configuration operation can be the operation of selecting the configuration information of the cloud resource to be activated by the customer according to their own needs.
  • the configuration information can include the number of CPU cores, memory size, disk size, and virtual network to which the cloud resource is to be activated.
  • One or more of the information such as security group and security group may also include other information besides these information. In a possible embodiment, it may also include a payment model for cloud resources to be activated.
  • a customer needs to rent a cloud computing resource with a CPU core number of 4 cores, a memory size of 8G, and a disk size of 500G, and choose the payment model as In the post-paid model, you can create configuration information that includes the number of CPU cores 4 cores, the memory size is 8G, the disk size is 500G, and the post-paid model through cloud resource configuration operations.
  • the cloud resource configuration interface of the cloud resource to be activated may be displayed.
  • the cloud resource configuration interface may be an interface of a website, and the customer can enter by visiting the website Cloud resource configuration interface, where entering the cloud resource configuration interface may mean displaying the cloud resource configuration interface on the client.
  • the cloud resource configuration interface may display options for various configuration information of the cloud resource, for example, it may include cloud resource type options, cloud resource CPU core options, cloud resource memory size options, and the like.
  • a cloud resource configuration operation for a cloud resource configuration interface may be received.
  • the cloud resource configuration interface displays options for each configuration information of the cloud resource
  • the cloud resource configuration operation can be a selection operation for each configuration information option.
  • the cloud resource configuration interface displays the option of the number of CPU cores for the cloud resource
  • the cloud resource memory size option customers can select the number of CPU cores of the cloud resource that needs to be activated through the CPU core number option of the cloud resource, and can select the memory size of the cloud resource that needs to be activated through the memory size option of the cloud resource.
  • S102 Display an automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe interface displays an automatic unsubscribe control for the cloud resource to be activated.
  • an automatic unsubscribe interface for the cloud resource to be activated can be displayed, wherein the automatic unsubscribe interface displays an automatic unsubscribe control for the cloud resource to be activated.
  • multiple automatic unsubscribe interfaces for cloud resources to be activated may also be displayed, wherein different automatic unsubscribe interfaces display different automatic unsubscribe controls for the resources to be activated.
  • the automatic unsubscription control is configured to configure the automatic unsubscription policy of the cloud resource to be created, which can include automatic unsubscription options and time setting controls.
  • the automatic unsubscription option is configured to determine whether the cloud resources to be activated need to be automatically unsubscribed.
  • the setting control is configured to automatically unsubscribe the cloud resources to be activated at a predetermined time after determining that the cloud resources to be activated need to be automatically unsubscribed.
  • the time setting control can provide customers with options for setting time units such as year, month, day, and hour, and can also be a text input box, where the text input box can receive text information input by the customer.
  • the text information here refers to the time information entered by the customer.
  • the automatic unsubscription prompt message can be popped up before the automatic unsubscription interface is displayed, and the configuration is configured to remind the customer how to set the cloud to be activated according to their own needs Resources.
  • the automatic unsubscribe prompt message may also be popped up at the same time as the automatic unsubscribe interface, or a prompt control is set in the automatic unsubscribe interface, and the customer can operate the prompt control to pop up the automatic
  • the unsubscribe prompt message for example, may be a prompt button set in the automatic unsubscribe interface, and the customer can click the prompt button to pop up the automatic unsubscribe prompt message.
  • the aforementioned automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time.
  • the automatic unsubscription policy may include: whether the cloud resource to be activated needs to be automatically unsubscribed; in the case that the cloud resource to be activated needs to be automatically unsubscribed, the automatic unsubscribe policy may include: the cloud resource to be activated The time when it was automatically unsubscribed.
  • the automatic unsubscription policy can be composed of two types of information. The first type of information is configured to indicate whether the cloud resource to be activated needs to be automatically unsubscribed, and the second type of information is configured to indicate when to perform the automatic unsubscription. Unsubscribe.
  • S104 Send a cloud resource activation request to the server, where the cloud resource activation request includes configuration information and an automatic unsubscription policy.
  • the configuration information is configured for the server to create an instance of the cloud resource to be activated, that is, the server creates an instance based on the configuration information during the process of creating the instance of the cloud resource to be activated.
  • the server can create an instance of the cloud resource to be activated according to the configuration information, and can further set whether the cloud resource to be activated needs to be unsubscribed at the scheduled time according to the automatic unsubscription policy.
  • the server creates cloud resources to be activated based on the configuration information, and how the server sets whether the cloud resources to be activated need to be unsubscribed at the time of booking according to the automatic unsubscription policy, please refer to the relevant description on the server side for details, and I will not repeat them here. .
  • the cloud resource configuration operation is received, and the cloud resource configuration operation configuration is to create configuration information of the cloud resource to be activated, and display the automatic unsubscribe interface of the cloud resource to be activated,
  • the automatic unsubscription interface displays the automatic unsubscription control for the cloud resource to be activated, and sends a cloud resource activation request to the server.
  • the cloud resource activation request includes configuration information and automatic unsubscription strategy.
  • step S103 can be implemented by the automatic unsubscription policy generation method as shown in FIG. 2, which includes:
  • the automatic unsubscription indicator is configured to indicate that the cloud resource to be activated needs to be automatically unsubscribed, and it can be a string of pre-encoded strings.
  • the time setting control may display an option to unsubscribe time, including options for setting time units such as year, month, day, and hour.
  • the time setting control displays an option box for the year. There are multiple year numbers displayed in the option box, such as 2019, 2020, 2021, etc.
  • the further display time setting control prompts the user to set the preset time to ensure The activated cloud resources are automatically unsubscribed at the preset time, thus avoiding the need for users to manually unsubscribe at the preset time.
  • the time selection operation of the unsubscribe time option displayed by the time setting control may be the selection operation of the unsubscribe time option through an input device such as a mouse.
  • the time selection operations may be performed separately for Choose the time numbers corresponding to year, month, day, hour, and minute. For example, the selected year is 2019, the selected month is June, the selected day is 3, the selected hour is 12 o'clock, and the selected time is divided into 45 minutes, it can be determined that the time selected for the time selection operation is 12:45 on June 3, 2019.
  • the time setting control may be a text input box
  • the time selection operation for the unsubscribe time option displayed by the time setting control may be an input operation for the text input box.
  • the customer may Enter "201912132130" in the text input box to confirm that the time selected for the time selection operation is 21:30 on December 13, 2019.
  • S203 Generate an automatic unsubscription strategy for the cloud resource to be activated according to the automatic unsubscription information and the unsubscription time information.
  • the automatic unsubscription information and the unsubscription time information can be combined into policy information, or they can exist independently.
  • the automatic unsubscription policy may be a combination of automatic unsubscription information and unsubscription time information, which may be stored in a configuration text in the .json format.
  • the above-mentioned automatic unsubscription policy generation method generates an automatic unsubscription identifier, displays the time setting control, and receives the time-specific setting when the selection operation for the automatic unsubscription option displayed by the automatic unsubscription control is received During the time selection operation of the unsubscription time option displayed by the control, the time selected by the time selection operation is recorded as the unsubscription time information, and the automatic unsubscription strategy for the cloud resources to be activated is generated based on the automatic unsubscription information and the unsubscription time information , Thanks to the automatic unsubscription option and time setting control of the automatic unsubscription control, it can provide users with the configuration of whether the cloud resources to be activated need to be automatically unsubscribed, and when they will be automatically unsubscribed, thereby avoiding manual cloud activation. The unsubscription of resources realizes the automatic unsubscription of cloud resources opened by customers, thereby saving labor costs.
  • the embodiment of the application also provides a cloud resource creation method, which is applied to the server, as shown in FIG. 3, the method may include The following steps:
  • S301 Receive a cloud resource activation request sent by the client.
  • the aforementioned cloud resource activation request may include configuration information and an automatic unsubscription policy, where the configuration information is the configuration information of the cloud resource to be activated created by the client receiving the cloud resource configuration operation, and the automatic unsubscription policy is the customer
  • the terminal determines according to the received operation of the automatic unsubscription control for the cloud resource to be activated, and the automatic unsubscription policy is a policy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time.
  • the automatic unsubscription strategy includes: whether the cloud resource to be activated needs to be automatically unsubscribed; when the cloud resource to be activated needs to be automatically unsubscribed, the time when the cloud resource to be activated is automatically unsubscribed.
  • the server and the client complete necessary connections in advance and, as recorded in step S104, the cloud resource activation request includes configuration information and an automatic unsubscription policy.
  • the server in this embodiment may be a server cluster composed of multiple servers, where at least one server in the server cluster is responsible for receiving the cloud resource activation request sent by the client.
  • the server cluster may further include an order server configured to process cloud resource activation requests and a cloud resource server that creates cloud resources according to the cloud resource activation request.
  • S302 Create an instance of the cloud resource to be activated according to the configuration information.
  • an instance of the cloud resource to be activated can be created according to the received configuration information.
  • the instance is the computing resource created by the server in the cloud resource pool to provide users with related cloud services, and according to the configuration information Instances of cloud resources to be activated
  • the instance of the cloud resource to be activated in the cloud resource pool may be according to the configuration information, and the instance of the cloud resource to be activated may be a cloud resource created according to the configuration information.
  • the configuration information includes: the number of CPU cores is 4 cores, the memory size is 8G, and the disk size is 500G. At this time, according to the configuration information, a CPU core number of 4 cores can be created in the cloud resource pool. Cloud resources with a size of 8G and a disk size of 500G.
  • a cloud resource activation request sent by a client can be received, wherein the cloud resource activation request includes configuration information and an automatic unsubscription policy, and a pending request is created according to the configuration information.
  • the cloud resource activation request since the cloud resource activation request includes an automatic unsubscription policy, the created instances of cloud resources to be activated can be automatically unsubscribed according to the automatic unsubscription policy, thereby avoiding manual unsubscription of cloud resources to be activated , Which realizes automatic unsubscription of cloud resources opened by customers, thereby saving labor costs.
  • an embodiment of the present application also provides a cloud resource deregistration method, which includes the following steps:
  • S401 Store the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription policy of the cloud resource to be activated as a resource instance record of the cloud resource to be activated.
  • the instance identification string of the cloud resource to be activated may be the resource identification of the cloud resource to be activated.
  • the instance identification string of the cloud resource to be activated is generated according to a preset algorithm, and is the same as the cloud resource to be activated. The only correspondence.
  • the instance identification string of the cloud resource to be activated may be generated based on the order number or configuration information of the cloud resource to be activated, or it may be randomly allocated.
  • the cloud resource to be activated may be set to automatically log out when the automatic unsubscription time is reached.
  • the automatic logout may be the logout of the cloud resource to be activated itself, or the server's logout of the cloud resource to be activated, which is not limited in this embodiment.
  • S402 Store the resource instance record in the cloud resource information database, and mark the resource instance record as an unsubscribed state.
  • the cloud resource information database can be configured to store the resource instance records of each resource to be activated.
  • the cloud resource information database can also mark each resource instance record stored to remove
  • the resource instance record corresponding to the cloud resource to be activated at the time of automatic unsubscription is marked as unsubscribed, or activated, or unregistered.
  • the resource instance record that has reached the time of automatic unsubscription may be marked as unsubscribed, activated, or unregistered.
  • the resource instance record corresponding to the cloud resource to be activated is marked as unsubscribed or cancelled.
  • step S401 and step S402 it is possible to enable the cloud resource information database to record the resource instance record of the cloud resource to be activated every time the server is created and completes the creation/activation of a cloud resource to be activated. , At this time, the cloud resource to be activated is changed to the activated cloud resource.
  • S403 Query each activated cloud resource currently in an activated state, and determine the automatic unsubscription time of each activated cloud resource.
  • each activated cloud resource currently in the activated state can be queried in the cloud resource information database, and the automatic unsubscription time of each activated cloud resource can be determined.
  • the automatic unsubscription time of each activated cloud resource can be determined by reading the resource instance record corresponding to each activated cloud resource stored in the cloud resource information database, including: reading according to a preset logout period
  • the cloud resource information database stores the resource instance records corresponding to each activated cloud resource, and according to the read resource instance records, determines the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record.
  • the log-off period can be determined according to actual needs, or experience, or calculated according to preset rules. Through the log-off period, frequent queries can be avoided in the cloud resource information database to query the currently activated state All cloud resources have been activated, saving computing costs.
  • S404 Determine whether there are currently activated cloud resources that have arrived at the time of automatic unsubscription.
  • the automatic unsubscription time of each activated cloud resource can be compared with the current time to determine whether there is currently an activated cloud resource whose automatic unsubscription time has arrived.
  • step S407 If yes, go to step S405, if not, go to step S407
  • S405 Determine the activated cloud resource that has arrived at the automatic unsubscription time among the activated cloud resources as the cloud resource to be logged out.
  • the activated cloud resource whose automatic unsubscription time is less than or equal to the current time is determined as the cloud resource to be unregistered.
  • the instance identification string of each cloud resource to be unregistered can be determined according to the resource instance record of each cloud resource to be unregistered as the resource identifier to be unregistered, and in the cloud resource pool, according to the resource identifier to be unregistered, each resource to be unregistered is determined. Log out of cloud resources and log out.
  • the cloud resource logout method can store the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription policy of the cloud resource to be activated as the resource instance record of the cloud resource to be activated , And store the resource instance record in the cloud resource information database, mark the resource instance record as unsubscribed, and query each activated cloud resource currently in the activated state, and determine the automatic unsubscription of each activated cloud resource
  • the time, as well as the activated cloud resources that have arrived at the automatic unsubscription time in each activated cloud resource are used as cloud resources to be logged out, and each cloud resource to be logged out is logged out, because the cloud resource to be activated is created in the cloud resource information database
  • the resource instance record of each activated cloud resource is generated in the resource instance record, so that the automatic unsubscription policy in the resource instance record can be used to determine the periodic deregistration of the activated cloud resource that has reached the automatic unsubscription time, which realizes the automatic unsubscription of
  • the embodiment of the present application also provides another cloud resource deregistration method, so as to wait for deregistration when it is determined that there is no activated cloud resource that has reached the automatic unsubscription time. , Including the following steps:
  • S407 Determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources as the first activated cloud resource.
  • the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources can be determined to determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources, and Take it as the first activated cloud resource, for example, if there are 3 activated cloud resources that have not yet arrived at the automatic unsubscription time, T1, T2, and T3, among them, the automatic unsubscription time of T1, T2, and T3 They are 8:00 on July 12, 2019, 8:00 on August 12, 2019, and 8:00 on September 12, 2019.
  • the activated cloud resource with the smallest automatic unsubscription time is T1.
  • T1 is the first cloud resource that has been activated.
  • S408 Determine whether the difference between the automatic unsubscription moment of the first activated cloud resource and the current moment is less than the duration of the logout period.
  • step S409 determines whether the difference between the automatic unsubscription time of the first activated cloud resource and the current time is less than the duration of the logout period, step S409 is executed, otherwise, step S410 is executed.
  • Step S409 is executed at this time, if the automatic unsubscribe time of the first activated cloud resource is at 8:30 on July 12, 2019, the difference between the automatic unsubscribe time of the first activated cloud resource and the current time is 18 Minutes, which is greater than 10 minutes for the logout period, and step S410 is executed at this time.
  • S409 Generate a timer according to the automatic unsubscription time of the first activated cloud resource.
  • step S403 when the timer reaches the automatic unsubscription time of the first activated cloud resource, step S403 is executed.
  • a timer may be generated according to the automatic unsubscription time of the first activated cloud resource and the preset automatic resource unsubscription processing function.
  • the automatic unsubscription time may be used as the timing
  • the system interrupt can be triggered and the preset automatic resource logout processing function is called. After the automatic resource release processing function is triggered, step S301 is executed.
  • step S403 the sleep function can be called, so that when the current time reaches the automatic unsubscription time of the first activated cloud resource, step S403 is executed
  • the sleep interface function may be called, so that when the current time reaches the automatic unsubscription time of the first activated cloud resource, step S403 is executed.
  • the current processing thread can also sleep for a logout period, and after the sleep ends, step S403 is executed again.
  • an embodiment of this application also provides a cloud resource creation device applied to a client. As shown in FIG. 5, the device includes :
  • the configuration operation receiving module 501 is configured to receive cloud resource configuration operations, and the cloud resource configuration operation configuration is to create configuration information of cloud resources to be activated;
  • the unsubscribe interface display module 502 is set to display the automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe control for the cloud resource to be activated is displayed in the automatic unsubscribe interface;
  • the unsubscription policy generation module 503 is configured to generate an automatic unsubscription policy for cloud resources to be activated when an operation for the automatic unsubscription control is received; wherein, the automatic unsubscription policy is whether the cloud resources to be activated need to be automatically unsubscribed at a predetermined time Unsubscribe strategy;
  • the request sending module 504 is configured to send a cloud resource activation request to the server.
  • the cloud resource activation request includes configuration information and an automatic unsubscription policy.
  • the configuration information is configured to create an instance of the cloud resource to be activated by the server.
  • the automatic unsubscription strategy includes: whether the cloud resource to be activated needs to be automatically unsubscribed; when the cloud resource to be activated needs to be automatically unsubscribed, the time when the cloud resource to be activated is automatically unsubscribed.
  • the unsubscription policy generation module 503 is configured to generate an automatic unsubscription identifier and display the time setting control when a selection operation for the automatic unsubscription option displayed by the automatic unsubscription control is received.
  • the unsubscribe flag is configured to indicate that the cloud resource to be activated needs to be automatically unsubscribed, and when receiving the time selection operation for the unsubscription time option displayed by the time setting control, the time selected by the time selection operation is recorded as the unsubscription time information, and According to the automatic unsubscription information and unsubscription time information, an automatic unsubscription strategy for cloud resources to be activated is generated.
  • an embodiment of this application also provides a cloud resource creation device applied to a server. As shown in FIG. 6, the device includes :
  • the request receiving module 601 is configured to receive a cloud resource activation request sent by the client, where the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information is the cloud resource to be activated created by the client receiving the cloud resource configuration operation
  • the automatic unsubscription policy is determined by the client according to the received operation of the automatic unsubscription control for the cloud resource to be activated; the automatic unsubscription policy is whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time Strategy
  • the instance activation module 602 is configured to create an instance of the cloud resource to be activated according to the configuration information.
  • the automatic unsubscription strategy includes: whether the cloud resource to be activated needs to be automatically unsubscribed; when the cloud resource to be activated needs to be automatically unsubscribed, the time when the cloud resource to be activated is automatically unsubscribed.
  • the apparatus may further include:
  • the record generation module 603 is set to automatically unsubscribe the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription of the cloud resource to be activated after the instance activation module executes the creation of the instance of the cloud resource to be activated according to the configuration information.
  • the policy is stored as a resource instance record of the cloud resource to be activated, and the resource instance record is stored in the cloud resource information database, and the resource instance record is marked as an unsubscribed state.
  • the apparatus may further include:
  • the first query module 604 is configured to query each activated cloud resource that is currently in an unsubscribed state, and determine the automatic unsubscribe time of each activated cloud resource;
  • the resource determination module 605 to be deregistered is configured to determine the activated cloud resource that has arrived at the time of automatic unsubscription among the activated cloud resources as the cloud resource to be deregistered;
  • the cloud resource logout module 606 is configured to log out each cloud resource to be logged out.
  • the first query module 604 is configured to read the resource instance records corresponding to each activated cloud resource stored in the cloud resource information database according to a preset logout period, and according to the read resources Instance record, which determines the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record;
  • the cloud resource unregistration module 606 is configured to determine the instance identification string of each cloud resource to be unregistered according to the resource instance record of each cloud resource to be unregistered, as the resource identifier to be unregistered, and in the cloud resource pool, according to the resource identifier to be unregistered, Determine each cloud resource to be logged off and log off.
  • the cloud resource unregistration module 606 is further configured to determine each cloud resource to be unregistered in the cloud resource pool according to each resource identifier to be unregistered, and after unregistering, set the resource corresponding to the resource identifier to be unregistered The instance record is marked as unsubscribed.
  • the cloud resource deregistration module 606 is further configured to determine the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record after the first query module executes according to the read resource instance records , If there is no activated cloud resource whose automatic unsubscription time has arrived in each activated cloud resource, determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources as the first activated cloud resource, and Determine whether the difference between the automatic unsubscription time of the first activated cloud resource and the current moment is less than the length of the logout period, and if it is less, a timer is generated according to the automatic unsubscription time of the first activated cloud resource, and when the timer is When the automatic unsubscription time of the first activated cloud resource is reached, return to execute the first query module 604, and if it is not less than, call the sleep function, so that when the current moment reaches the automatic unsubscribe time of the first activated cloud resource , Return to execute the first query module 604.
  • An embodiment of the present application also provides a client, as shown in FIG. 7, including a processor 701 and a machine-readable storage medium 702, where the processor 701 and the machine-readable storage medium 702 complete mutual communication,
  • the machine-readable storage medium 702 is configured to store computer programs
  • the processor 701 is configured to execute the program stored on the machine-readable storage medium 702 to implement the following steps:
  • an automatic unsubscription policy for the cloud resource to be activated is generated; wherein, the automatic unsubscription policy is whether the cloud resource to be activated needs to be automatically deregistered at a predetermined time Set strategy;
  • the cloud resource activation request including the configuration information and the automatic unsubscription policy, wherein the configuration information is configured for the server to create an instance of the cloud resource to be activated.
  • An embodiment of the present application also provides a server, as shown in FIG. 8, including a processor 801 and a machine-readable storage medium 802, where the processor 801 and the machine-readable storage medium 802 complete mutual communication,
  • the machine-readable storage medium 802 is configured to store a computer program
  • processor 801 When the processor 801 is configured to execute the program stored on the machine-readable storage medium 802, the following steps are implemented:
  • the cloud resource activation request includes configuration information and an automatic unsubscription policy
  • the configuration information is the status of the cloud resource to be activated created by the client receiving the cloud resource configuration operation Configuration information
  • the automatic unsubscription policy is determined by the client according to the received operation of the automatic unsubscription control for the cloud resource to be activated
  • the automatic unsubscription policy is that the cloud resource to be activated is Whether the scheduled time needs to be automatically unsubscribed strategy
  • a computer-readable storage medium stores a computer program.
  • any one of the above is applied to a client. Steps of the method for creating cloud resources at the end.
  • a computer-readable storage medium stores a computer program.
  • any one of the above is applied to a server. The steps of the cloud resource creation method.
  • a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute any of the above-mentioned embodiments of the cloud resource creation method applied to the client.
  • a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute any of the above-mentioned embodiments of the cloud resource creation method applied to the server.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the cloud resource creation method, device, client and server provided by the embodiments of this application, it is possible to set in advance whether the cloud resource to be activated needs to be automatically unsubscribed at the scheduled time by operating the displayed automatic unsubscription control, thereby avoiding manual Unsubscribing to cloud resources to be activated enables automatic unsubscription of cloud resources activated by customers, thereby saving labor costs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in embodiments of the present application are a cloud resource creation method, an apparatus, a client and a server, comprising: receiving a cloud resource configuration operation, the cloud resource configuration operation configuring configuration information for creation of a cloud resource to be activated; displaying an automatic unsubscribe interface of the cloud resource to be activated, an automatic unsubscribe control for the cloud resource to be activated being displayed in the automatic unsubscribe interface; sending a cloud resource activation request to the server, the cloud resource activation request comprising the configuration information and an automatic unsubscribe strategy. When configuring a cloud resource to be activated, it is possible to configure in advance whether the cloud resource to be activated requires automatic unsubscribing at a preset time by means of an operation of a displayed automatic unsubscribe control, thereby avoiding manual unsubscribing from the cloud resource to be activated, realizing automatic unsubscribing of a cloud resource activated by a client, saving labor costs.

Description

一种云资源创建方法、装置、客户端及服务器Method, device, client and server for creating cloud resources
本申请要求于2019年10月09日提交中国专利局、申请号为201910955223.6发明名称为“一种云资源创建方法、装置、客户端及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 9, 2019, with an application number of 201910955223.6 invention titled "a method, device, client and server for creating cloud resources", the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请涉及云存储技术领域,特别是涉及一种云资源创建方法、装置、客户端及服务器。This application relates to the field of cloud storage technology, and in particular to a method, device, client and server for creating cloud resources.
背景技术Background technique
云服务厂商在为客户提供云服务时,客户通常会采用两种付费模式,其中,第一种付费模式为预付费模式,需要客户提前支付云资源开通费用,第二种付费模式为后付费模式,在一个付费周期结束后,根据客户在该付费周期内实际开通的云资源情况,支付相关费用。When cloud service vendors provide cloud services to their customers, customers usually use two payment models. The first payment model is a pre-paid model, which requires customers to pay for cloud resource activation in advance, and the second payment model is a post-paid model. , After the end of a payment period, the relevant fees are paid according to the cloud resources actually opened by the customer during the payment period.
出于资金周转和云资源弹性使用等因素的考虑,客户通常更倾向于选择后付费模式,客户在选择后付费模式后,可以在业务处于高峰期时主动开通更多的云资源,当业务处于低峰期时,主动的退订部分云资源,从而节省云资源开通的成本。Due to considerations such as capital turnover and flexible use of cloud resources, customers usually prefer to choose the post-paid model. After choosing the post-paid model, customers can proactively activate more cloud resources when the business is at its peak. During low peak periods, take the initiative to unsubscribe some cloud resources, thereby saving the cost of cloud resource activation.
相关技术中,在业务处于低峰期时,客户需要手动的去退订部分开通的云资源,而手动退订需要占用昂贵的人力资源,一般适合业务量稳定,不需要频繁进行退订的客户。而对于业务量不稳定,需要频繁进行开通和退订云资源的客户,所需的人工成本过高。In related technologies, when the business is in a low peak period, customers need to manually unsubscribe some cloud resources that have been opened, and manual unsubscription requires expensive human resources, which is generally suitable for customers who have stable business volume and do not need to unsubscribe frequently . For customers whose business volume is unstable and need to frequently activate and unsubscribe cloud resources, the labor costs required are too high.
申请人在实现本申请的过程中发现,相关技术至少存在如下问题:In the process of realizing this application, the applicant discovered that the related technology has at least the following problems:
客户需要手动的退订开通的云资源,人工成本高。The customer needs to manually unsubscribe the activated cloud resources, which results in high labor costs.
发明内容Summary of the invention
本申请实施例的目的在于提供一种云资源创建方法、装置、客户端及服务器,以自动退订客户开通的云资源,节约人工成本。具体技术方案如下:The purpose of the embodiments of the present application is to provide a cloud resource creation method, device, client and server to automatically unsubscribe the cloud resource opened by the customer and save labor costs. The specific technical solutions are as follows:
本申请实施例提供一种云资源创建方法,应用于客户端,包括:接收云资源配置操作,所述云资源配置操作配置为创建待开通云资源的配置信息;展示所述待开通云资源的自动退订界面,所述自动退订界面中展示有针对所述待开通云资源的自动退订控件;当接收到针对所述自动退订控件的操作时,生成所述待开通云资源的自动退订策略;其中,所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;向服务器发送云资源开通请求,所述云资源开通请求中包括所述配置信息和所述自动退订策略,其中,所述配置信息配置为所述服务器创建所述待开通云资源的实例。The embodiment of the application provides a cloud resource creation method, applied to a client, including: receiving a cloud resource configuration operation, the cloud resource configuration operation being configured to create configuration information of the cloud resource to be activated; displaying the cloud resource to be activated An automatic unsubscribe interface, where an automatic unsubscribe control for the cloud resource to be activated is displayed; when an operation for the automatic unsubscribe control is received, an automatic unsubscribe control for the cloud resource to be activated is generated Unsubscription strategy; wherein, the automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time; sending a cloud resource activation request to the server, and the cloud resource activation request includes the configuration Information and the automatic unsubscription policy, wherein the configuration information is configured for the server to create an instance of the cloud resource to be activated.
本申请实施例提供一种云资源创建方法,应用于服务器,包括:接收客户端发送的云资源开通请求,其中,所述云资源开通请求中包括配置信息和自动退订策略,所述配置信息为所述客户端接收云资源配置操作所创建的待开通云资源的配置信息,所述自动退订策略为所述客户端根据接收到的针对所述待开通云资源的自动退订控件的操作所确定的;所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;按照所述配置信息创建所述待开通云资源的实例。The embodiment of the present application provides a cloud resource creation method, which is applied to a server, and includes: receiving a cloud resource activation request sent by a client, wherein the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information For the client to receive the configuration information of the cloud resource to be activated created by the cloud resource configuration operation, the automatic unsubscription policy is the operation of the client according to the received automatic unsubscription control for the cloud resource to be activated Determined; the automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time; an instance of the cloud resource to be activated is created according to the configuration information.
本申请实施例还提供一种云资源创建装置,应用于客户端,所述装置包括:配置操作接收模块,配置为接收云资源配置操作,所述云资源配置操作配置为创建待开通云资源的配置信息;退订界面展示模块,配置为展示所述待开通云资源的自动退订界面,所述自动退订界面中展示有针对所述待开通云资源的自动退订控件;退订策略生成模块,配置为当接收到针对所述自动退订控件的操作时,生成所述待开通云资源的自动退订策略;其中,所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;请求发送模块,配置为向服务器发送云资源开通请求,所述云资源开通请求中包括所述配置信息和所述自动退订策略,其中,所述配置信息配置为所述服务器创建所述待开通云资源的实例。An embodiment of the present application also provides a cloud resource creation device applied to a client. The device includes a configuration operation receiving module configured to receive a cloud resource configuration operation, and the cloud resource configuration operation is configured to create a cloud resource to be activated. Configuration information; unsubscribe interface display module, configured to display the automatic unsubscribe interface of the cloud resource to be opened, and the automatic unsubscribe control for the cloud resource to be opened is displayed in the automatic unsubscribe interface; the unsubscribe policy is generated Module, configured to generate an automatic unsubscription strategy for the cloud resource to be activated when an operation for the automatic unsubscription control is received; wherein, the automatic unsubscription strategy is whether the cloud resource to be activated is at a predetermined time A policy that needs to be automatically unsubscribed; a request sending module configured to send a cloud resource activation request to the server, the cloud resource activation request including the configuration information and the automatic unsubscription policy, wherein the configuration information is configured as The server creates an instance of the cloud resource to be activated.
本申请实施例还提供一种云资源创建装置,应用于服务器,所述装置包括:请求接收模块,配置为接收客户端发送的云资源开通请求,其中,所述云资源开通请求中包括配置信息和自动退订策略,所述配置信息为所述客户端接收云资源配置操作所创建的待开通云资源的配置信息,所述自动退订策略为所述客户端根据接收到的针对所述待开通云资源的自动退订控件的操作所确定的;所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;实例开通模块,配置为按照所述配置信息创建所述待开通云资源的实例。The embodiment of the present application also provides a cloud resource creation device, applied to a server, the device includes: a request receiving module configured to receive a cloud resource activation request sent by a client, wherein the cloud resource activation request includes configuration information And an automatic unsubscription policy, where the configuration information is the configuration information of the cloud resource to be activated created by the client receiving a cloud resource configuration operation, and the automatic unsubscription policy is the client according to the received configuration information for the pending cloud resource. Determined by the operation of the automatic unsubscription control for opening cloud resources; the automatic unsubscription strategy is a strategy for whether the cloud resource to be opened needs to be automatically unsubscribed at a predetermined time; the instance provisioning module is configured to follow the configuration information Create an instance of the cloud resource to be activated.
本申请实施例还提供一种客户端,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器被所述机器可执行指令促使:实现上述任一应用于客户端的云资源创建方法的步骤。An embodiment of the present application also provides a client, including a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is The machine-executable instructions prompt: implement any of the steps of the cloud resource creation method applied to the client.
本申请实施例还提供一种服务器,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器被所述机器可执行指令促使:实现上述任一应用于服务器的云资源创建方法的步骤。An embodiment of the present application also provides a server, including a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is executed by the machine The executable instruction prompts: to implement any of the steps of the cloud resource creation method applied to the server.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一应用于客户端的云资源创建方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the foregoing cloud resource creation methods applied to the client. step.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储 介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一应用于服务器的云资源创建方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the foregoing cloud resource creation methods applied to a server step.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一应用于客户端的云资源创建方法。The embodiment of the present application also provides a computer program product containing instructions, which when running on a computer, causes the computer to execute any of the foregoing cloud resource creation methods applied to the client.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一应用于服务器的云资源创建方法。The embodiment of the present application also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the foregoing cloud resource creation methods applied to a server.
本申请实施例提供的一种云资源创建方法、装置、客户端及服务器,方案中,接收云资源配置操作,云资源配置操作配置为创建待开通云资源的配置信息,并且展示待开通云资源的自动退订界面,自动退订界面中展示有针对待开通云资源的自动退订控件,以及当接收到针对自动退订控件的操作时,生成待开通云资源的自动退订策略;其中,自动退订策略为待开通云资源在预定时间是否需要被自动退订的策略,以及向服务器发送云资源开通请求,云资源开通请求中包括配置信息和自动退订策略,其中,配置信息配置为服务器创建待开通云资源的实例,由于在配置待开通云资源时,可以通过对展示的自动退订控件的操作,提前设置待开通云资源是否需要在预订时间自动退订,从而避免了人工进行待开通云资源的退订,实现了自动退订客户开通的云资源,进而节约人工成本。A cloud resource creation method, device, client, and server provided by the embodiments of the present application. In the solution, a cloud resource configuration operation is received, and the cloud resource configuration operation configuration is to create configuration information of the cloud resource to be activated, and display the cloud resource to be activated The automatic unsubscribe interface of, the automatic unsubscribe interface displays the automatic unsubscribe control for the cloud resource to be activated, and when the operation for the automatic unsubscribe control is received, the automatic unsubscribe policy for the cloud resource to be activated is generated; among them, The automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time, and a cloud resource activation request is sent to the server. The cloud resource activation request includes configuration information and an automatic unsubscription strategy, where the configuration information is configured as The server creates an instance of the cloud resource to be activated. When configuring the cloud resource to be activated, you can set in advance whether the cloud resource to be activated needs to be automatically unsubscribed at the scheduled time by operating the displayed automatic unsubscription control, thereby avoiding manual processing Unsubscribing to unsubscribed cloud resources enables automatic unsubscription of cloud resources subscribed by customers, thereby saving labor costs.
当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time.
附图说明Description of the drawings
为了更清楚地说明本申请实施例和相关技术的技术方案,下面对实施例和相关技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions of the embodiments of the present application and related technologies, the following briefly introduces the drawings that need to be used in the embodiments and related technologies. Obviously, the drawings in the following description are only of the present application. For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1为本申请一个实施例提供的应用于客户端的云资源创建方法的流程图;FIG. 1 is a flowchart of a cloud resource creation method applied to a client according to an embodiment of the application;
图2为本申请一个实施例提供的自动退订策略生成方法的流程图;FIG. 2 is a flowchart of a method for generating an automatic unsubscription policy according to an embodiment of the application;
图3为本申请一个实施例提供的应用于服务器的云资源创建方法的流程图;FIG. 3 is a flowchart of a method for creating cloud resources applied to a server according to an embodiment of the application;
图4为本申请一个实施例提供的云资源注销方法的流程图;FIG. 4 is a flowchart of a cloud resource deregistration method provided by an embodiment of the application;
图5为本申请一个实施例提供的应用于客户端的云资源创建装置的结构示意图;FIG. 5 is a schematic structural diagram of a cloud resource creation apparatus applied to a client according to an embodiment of the application;
图6为本申请一个实施例提供的应用于服务器的云资源创建装置的结构示意图;FIG. 6 is a schematic structural diagram of a cloud resource creation apparatus applied to a server according to an embodiment of the application;
图7为本申请实施例提供的客户端的结构示意图;FIG. 7 is a schematic structural diagram of a client provided by an embodiment of the application;
图8为本申请实施例提供的服务器的结构示意图。Fig. 8 is a schematic structural diagram of a server provided by an embodiment of the application.
具体实施方式Detailed ways
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
为了给出自动退订客户开通的云资源,节约人工成本的实现方案,本申请实施例提供了一种云资源创建方法、装置、客户端及服务器,以下结合说明书附图对本申请的实施例进行说明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。In order to provide an implementation scheme for automatically unsubscribing cloud resources opened by customers and saving labor costs, the embodiments of this application provide a cloud resource creation method, device, client, and server. The embodiments of this application are described below with reference to the accompanying drawings in the description. Description. And if there is no conflict, the embodiments in the application and the features in the embodiments can be combined with each other.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
在本申请的一个实施例中,提供一种应用于客户端的云资源创建方法,如图1所示,该方法包括以下步骤:In an embodiment of the present application, a cloud resource creation method applied to a client is provided. As shown in FIG. 1, the method includes the following steps:
S101:接收云资源配置操作,云资源配置操作配置为创建待开通云资源的配置信息。S101: Receive a cloud resource configuration operation, and the cloud resource configuration operation configuration is to create configuration information of the cloud resource to be activated.
本步骤中,云资源配置操作可以是客户根据自身需要进行的待开通云资源配置信息的选择操作,其中,配置信息可以包括待开通云资源的CPU核数、内存大小、磁盘大小、所属虚拟网络及安全组等信息中的一种或多种信息,也可以包括这些信息以外的其他信息。在一个可能的实施例中,还可以包括待开通云资源的付费模式,例如,客户需要租用CPU核数为4核、内存大小为8G、磁盘大小为500G的云计算资源,并选择付费模式为后付费模式,则可以通过云资源配置操作创建包含CPU核数为4核、内存大小为8G、磁盘大小为500G,以及后付费模式的配置信息。In this step, the cloud resource configuration operation can be the operation of selecting the configuration information of the cloud resource to be activated by the customer according to their own needs. The configuration information can include the number of CPU cores, memory size, disk size, and virtual network to which the cloud resource is to be activated. One or more of the information such as security group and security group may also include other information besides these information. In a possible embodiment, it may also include a payment model for cloud resources to be activated. For example, a customer needs to rent a cloud computing resource with a CPU core number of 4 cores, a memory size of 8G, and a disk size of 500G, and choose the payment model as In the post-paid model, you can create configuration information that includes the number of CPU cores 4 cores, the memory size is 8G, the disk size is 500G, and the post-paid model through cloud resource configuration operations.
在一个实施例中,可以在接收云资源配置操作之前,展示待开通云资源的云资源配置界面,在一个实施例中,云资源配置界面可以是一个网站的界面,客户可以通过访问该网站进入云资源配置界面,其中,进入云资源配置界面可以是指在客户端展示云资源配置界面。在一个实施例中,云资源配置界面可以展示有云资源各个配置信息的选项,例如:可以包括有云资源类型选项、云资源的CPU核数选项、云资源内存大小选项等。In one embodiment, before receiving the cloud resource configuration operation, the cloud resource configuration interface of the cloud resource to be activated may be displayed. In one embodiment, the cloud resource configuration interface may be an interface of a website, and the customer can enter by visiting the website Cloud resource configuration interface, where entering the cloud resource configuration interface may mean displaying the cloud resource configuration interface on the client. In one embodiment, the cloud resource configuration interface may display options for various configuration information of the cloud resource, for example, it may include cloud resource type options, cloud resource CPU core options, cloud resource memory size options, and the like.
在一个实施例中,可以接收针对云资源配置界面的云资源配置操作。当云资源配置界面中展示有云资源各个配置信息的选项时,云资源配置操作可以是针对各个配置信息的选项的选择操作,示例性的,云资源配置界面展示有云资源的CPU核数选项和云资源内存大小选项,客户可以通过云资源的CPU核数选项选择需要开通的云资源的CPU核数,可以通过云资源的内存大小选 项选择需要开通的云资源的内存大小。In an embodiment, a cloud resource configuration operation for a cloud resource configuration interface may be received. When the cloud resource configuration interface displays options for each configuration information of the cloud resource, the cloud resource configuration operation can be a selection operation for each configuration information option. For example, the cloud resource configuration interface displays the option of the number of CPU cores for the cloud resource With the cloud resource memory size option, customers can select the number of CPU cores of the cloud resource that needs to be activated through the CPU core number option of the cloud resource, and can select the memory size of the cloud resource that needs to be activated through the memory size option of the cloud resource.
S102:展示待开通云资源的自动退订界面,自动退订界面中展示有针对待开通云资源的自动退订控件。S102: Display an automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe interface displays an automatic unsubscribe control for the cloud resource to be activated.
本步骤中,在创建完成待开通云资源的配置信息后,可以展示一待开通云资源的自动退订界面,其中,自动退订界面中展示有针对待开通云资源的自动退订控件。在其他可能的实施例中,也可以展示多个待开通云资源的自动退订界面,其中,不同的自动退订界面中展示有针对待开通资源的不同的自动退订控件。In this step, after the configuration information of the cloud resource to be activated is created, an automatic unsubscribe interface for the cloud resource to be activated can be displayed, wherein the automatic unsubscribe interface displays an automatic unsubscribe control for the cloud resource to be activated. In other possible embodiments, multiple automatic unsubscribe interfaces for cloud resources to be activated may also be displayed, wherein different automatic unsubscribe interfaces display different automatic unsubscribe controls for the resources to be activated.
自动退订控件配置为对待创建云资源的自动退订策略进行配置,其可以包括自动退订选项和时间设置控件,自动退订选项配置为确定设置待开通云资源是否需要进行自动退订,时间设置控件配置为在确定需要自动退订待开通云资源后,设置待开通云资源在预定时间执行自动退订。The automatic unsubscription control is configured to configure the automatic unsubscription policy of the cloud resource to be created, which can include automatic unsubscription options and time setting controls. The automatic unsubscription option is configured to determine whether the cloud resources to be activated need to be automatically unsubscribed. The setting control is configured to automatically unsubscribe the cloud resources to be activated at a predetermined time after determining that the cloud resources to be activated need to be automatically unsubscribed.
在一个实施例中,时间设置控件可以为客户提供针对年、月、日、时等时间单位进行设置的选项,也可以是文本输入框,其中,该文本输入框可以接收客户输入文本信息,本领域的技术人员可以理解的是,此处文本信息指客户输入的时间信息。In one embodiment, the time setting control can provide customers with options for setting time units such as year, month, day, and hour, and can also be a text input box, where the text input box can receive text information input by the customer. Those skilled in the art can understand that the text information here refers to the time information entered by the customer.
在一个实施例中,避免客户出现操作失误,导致设置的自动退订时间出错,可以在展示自动退订界面之前,先弹出自动退订提示信息,配置为提示客户如何根据自身需求设置待开通云资源。在其他可能的实施例中,自动退订提示信息也可以是与自动退订界面同时弹出的,还可以是在自动退订界面中设置有提示控件,客户可以通过对提示控件进行操作以弹出自动退订提示信息,例如可以是在自动退订界面中设置有提示按钮,客户可以通过点击该提示按钮以弹出自动退订提示信息。In one embodiment, to prevent the customer from operating errors and cause the set automatic unsubscription time to be wrong, the automatic unsubscription prompt message can be popped up before the automatic unsubscription interface is displayed, and the configuration is configured to remind the customer how to set the cloud to be activated according to their own needs Resources. In other possible embodiments, the automatic unsubscribe prompt message may also be popped up at the same time as the automatic unsubscribe interface, or a prompt control is set in the automatic unsubscribe interface, and the customer can operate the prompt control to pop up the automatic The unsubscribe prompt message, for example, may be a prompt button set in the automatic unsubscribe interface, and the customer can click the prompt button to pop up the automatic unsubscribe prompt message.
S103:当接收到针对自动退订控件的操作时,生成待开通云资源的自动退订策略。S103: When an operation for the automatic unsubscription control is received, an automatic unsubscription policy for the cloud resource to be activated is generated.
本步骤中,上述自动退订策略为待开通云资源在预定时间是否需要被自动退订的策略。In this step, the aforementioned automatic unsubscription strategy is a strategy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time.
在一种可能的实施例中,自动退订策略可以包括:待开通云资源是否需要自动退订;在待开通云资源需要自动退订的情况下,自动退订策略可以包括:待开通云资源被自动退订的时间。在另一种可能的实施例中,自动退订策略可以由两类信息组成,第一类信息配置为表示待开通云资源是否需要执行自动退订,第二类信息配置为表示何时执行自动退订。In a possible embodiment, the automatic unsubscription policy may include: whether the cloud resource to be activated needs to be automatically unsubscribed; in the case that the cloud resource to be activated needs to be automatically unsubscribed, the automatic unsubscribe policy may include: the cloud resource to be activated The time when it was automatically unsubscribed. In another possible embodiment, the automatic unsubscription policy can be composed of two types of information. The first type of information is configured to indicate whether the cloud resource to be activated needs to be automatically unsubscribed, and the second type of information is configured to indicate when to perform the automatic unsubscription. Unsubscribe.
S104:向服务器发送云资源开通请求,云资源开通请求中包括配置信息和自动退订策略。S104: Send a cloud resource activation request to the server, where the cloud resource activation request includes configuration information and an automatic unsubscription policy.
本步骤中,配置信息配置为服务器创建待开通云资源的实例,即服务器 在创建待开通云资源的实例的过程中是依据配置信息创建实例的。In this step, the configuration information is configured for the server to create an instance of the cloud resource to be activated, that is, the server creates an instance based on the configuration information during the process of creating the instance of the cloud resource to be activated.
通过向服务器发送云资源开通请求,可以使得服务器依据配置信息创建待开通云资源的实例,并且可以进一步的根据自动退订策略设置待开通云资源是否需要在预订时间执行退订操作。By sending a cloud resource activation request to the server, the server can create an instance of the cloud resource to be activated according to the configuration information, and can further set whether the cloud resource to be activated needs to be unsubscribed at the scheduled time according to the automatic unsubscription policy.
关于服务器如何依据配置信息创建待开通云资源的示例,以及服务器如何根据自动退订策略设置待开通云资源是否需要在在预订时间执行退订操作,详见服务器侧相关描述,在此不再赘述。For an example of how the server creates cloud resources to be activated based on the configuration information, and how the server sets whether the cloud resources to be activated need to be unsubscribed at the time of booking according to the automatic unsubscription policy, please refer to the relevant description on the server side for details, and I will not repeat them here. .
本申请实施例提供的上述应用于客户端的云资源创建方法中,接收云资源配置操作,云资源配置操作配置为创建待开通云资源的配置信息,并且展示待开通云资源的自动退订界面,自动退订界面中展示有针对待开通云资源的自动退订控件,以及向服务器发送云资源开通请求,云资源开通请求中包括配置信息和自动退订策略,由于在配置待开通云资源时,可以通过对展示的自动退订控件的操作,提前设置待开通云资源是否需要在预订时间自动退订,从而避免了人工进行待开通云资源的退订,实现了自动退订客户开通的云资源,进而节约人工成本。In the cloud resource creation method applied to the client provided by the embodiment of the present application, the cloud resource configuration operation is received, and the cloud resource configuration operation configuration is to create configuration information of the cloud resource to be activated, and display the automatic unsubscribe interface of the cloud resource to be activated, The automatic unsubscription interface displays the automatic unsubscription control for the cloud resource to be activated, and sends a cloud resource activation request to the server. The cloud resource activation request includes configuration information and automatic unsubscription strategy. Because when configuring the cloud resource to be activated, By operating the displayed automatic unsubscription control, you can set in advance whether the cloud resources to be activated need to be automatically unsubscribed at the reservation time, thereby avoiding manual unsubscription of the cloud resources to be activated, and realizing automatic unsubscription of cloud resources opened by customers , Thereby saving labor costs.
在一个实施例中,步骤S103可以通过如图2所示的自动退订策略生成方法实现,包括:In an embodiment, step S103 can be implemented by the automatic unsubscription policy generation method as shown in FIG. 2, which includes:
S201:当接收到针对自动退订控件展示的自动退订选项的选择操作时,生成自动退订标识,并展示时间设置控件。S201: When a selection operation for the automatic unsubscribe option displayed by the automatic unsubscribe control is received, an automatic unsubscribe flag is generated, and the time setting control is displayed.
本步骤中,自动退订标识配置为表示待开通云资源需要自动退订,其可以为一串预编码的字符串。In this step, the automatic unsubscription indicator is configured to indicate that the cloud resource to be activated needs to be automatically unsubscribed, and it can be a string of pre-encoded strings.
在一种可能的实施例中,时间设置控件可以展示有退订时间选项,包括针对年、月、日、时等时间单位进行设置的选项,示例性的,时间设置控件展示年份的选项框,选项框中展示有多个年份数字,例如可以包括2019、2020、2021等。In a possible embodiment, the time setting control may display an option to unsubscribe time, including options for setting time units such as year, month, day, and hour. For example, the time setting control displays an option box for the year. There are multiple year numbers displayed in the option box, such as 2019, 2020, 2021, etc.
当接收到针对自动退订控件展示的自动退订选项的选择操作,说明用户确定待开通的云资源需要自动退订,此时,进一步的展示时间设置控件,提示用户设置预设时间,确保待开通的云资源在预设时间自动退订,从而避免用户需要在预设时间手动退订。When receiving the selection operation for the automatic unsubscription option displayed by the automatic unsubscription control, it indicates that the user has determined that the cloud resource to be activated needs to be automatically unsubscribed. At this time, the further display time setting control prompts the user to set the preset time to ensure The activated cloud resources are automatically unsubscribed at the preset time, thus avoiding the need for users to manually unsubscribe at the preset time.
S202:接收针对时间设置控件展示的退订时间选项的时间选择操作时,记录时间选择操作所选择的时间,作为退订时间信息。S202: When receiving the time selection operation for the unsubscription time option displayed by the time setting control, the time selected by the time selection operation is recorded as the unsubscription time information.
本步骤中,针对时间设置控件展示的退订时间选项的时间选择操作可以是通过鼠标等输入设备对退订时间选项的选择操作,示例性的,在一种可能的实施例中,可以分别针对年、月、日、时、分对应的时间数字进行选择,例如,选择的年为2019年,选择的月为6月、选择的日为3日、选择的时为12 时、选择的分为45分,则可以确定时间选择操作所选择的时间为2019年6月3日12时45分。In this step, the time selection operation of the unsubscribe time option displayed by the time setting control may be the selection operation of the unsubscribe time option through an input device such as a mouse. Illustratively, in a possible embodiment, the time selection operations may be performed separately for Choose the time numbers corresponding to year, month, day, hour, and minute. For example, the selected year is 2019, the selected month is June, the selected day is 3, the selected hour is 12 o'clock, and the selected time is divided into 45 minutes, it can be determined that the time selected for the time selection operation is 12:45 on June 3, 2019.
在一种可能的实施例中,时间设置控件可以是文本输入框,则针对时间设置控件展示的退订时间选项的时间选择操作可以是针对该文本输入框的输入操作,示例性的,客户可以在文本输入框中输入“201912132130”,则可以确定时间选择操作所选择的时间为2019年12月13日21时30分。In a possible embodiment, the time setting control may be a text input box, and the time selection operation for the unsubscribe time option displayed by the time setting control may be an input operation for the text input box. For example, the customer may Enter "201912132130" in the text input box to confirm that the time selected for the time selection operation is 21:30 on December 13, 2019.
S203:根据自动退订信息和退订时间信息生成所待开通云资源的自动退订策略。S203: Generate an automatic unsubscription strategy for the cloud resource to be activated according to the automatic unsubscription information and the unsubscription time information.
本步骤中,自动退订信息和退订时间信息可以合并成策略信息,也可以是独立存在。In this step, the automatic unsubscription information and the unsubscription time information can be combined into policy information, or they can exist independently.
在一种可能的实施例中,自动退订策略可以由自动退订信息和退订时间信息组合而成,其可以以.json格式的配置文本进行存储。In a possible embodiment, the automatic unsubscription policy may be a combination of automatic unsubscription information and unsubscription time information, which may be stored in a configuration text in the .json format.
本申请实施例提供的上述自动退订策略生成方法,当接收到针对自动退订控件展示的自动退订选项的选择操作时,生成自动退订标识,并展示时间设置控件,并且接收针对时间设置控件展示的退订时间选项的时间选择操作时,记录时间选择操作所选择的时间,作为退订时间信息,以及根据自动退订信息和退订时间信息生成所待开通云资源的自动退订策略,由于通过自动退订控件的自动退订选项和时间设置控件,可以为用户提供配置待开通的云资源是否需要被自动退订,以及何时被自动退订,从而避免了人工进行待开通云资源的退订,实现了自动退订客户开通的云资源,进而节约人工成本。The above-mentioned automatic unsubscription policy generation method provided by the embodiment of the present application generates an automatic unsubscription identifier, displays the time setting control, and receives the time-specific setting when the selection operation for the automatic unsubscription option displayed by the automatic unsubscription control is received During the time selection operation of the unsubscription time option displayed by the control, the time selected by the time selection operation is recorded as the unsubscription time information, and the automatic unsubscription strategy for the cloud resources to be activated is generated based on the automatic unsubscription information and the unsubscription time information , Thanks to the automatic unsubscription option and time setting control of the automatic unsubscription control, it can provide users with the configuration of whether the cloud resources to be activated need to be automatically unsubscribed, and when they will be automatically unsubscribed, thereby avoiding manual cloud activation. The unsubscription of resources realizes the automatic unsubscription of cloud resources opened by customers, thereby saving labor costs.
对应本申请实施例提供的应用于客户端的云资源创建方法,本申请实施例还提供一种云资源创建方法,该云资源创建方法是应用于服务器的,如图3所示,该方法可以包括以下步骤:Corresponding to the cloud resource creation method applied to the client provided by the embodiment of the application, the embodiment of the application also provides a cloud resource creation method, which is applied to the server, as shown in FIG. 3, the method may include The following steps:
S301:接收客户端发送的云资源开通请求。S301: Receive a cloud resource activation request sent by the client.
本步骤中,上述云资源开通请求中可以包括包括配置信息和自动退订策略,其中,配置信息为客户端接收云资源配置操作所创建的待开通云资源的配置信息,自动退订策略为客户端根据接收到的针对待开通云资源的自动退订控件的操作所确定的,自动退订策略为待开通云资源在预定时间是否需要被自动退订的策略。In this step, the aforementioned cloud resource activation request may include configuration information and an automatic unsubscription policy, where the configuration information is the configuration information of the cloud resource to be activated created by the client receiving the cloud resource configuration operation, and the automatic unsubscription policy is the customer The terminal determines according to the received operation of the automatic unsubscription control for the cloud resource to be activated, and the automatic unsubscription policy is a policy for whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time.
在一种可能的实施例中,自动退订策略包括:待开通云资源是否需要自动退订;在待开通云资源需要自动退订的情况下,待开通云资源被自动退订的时间。In a possible embodiment, the automatic unsubscription strategy includes: whether the cloud resource to be activated needs to be automatically unsubscribed; when the cloud resource to be activated needs to be automatically unsubscribed, the time when the cloud resource to be activated is automatically unsubscribed.
在一种可能的实施例中,服务器与客户端预先以及完成必要的连接,如步骤S104所记载的,该云资源开通请求中包括配置信息和自动退订策略。In a possible embodiment, the server and the client complete necessary connections in advance and, as recorded in step S104, the cloud resource activation request includes configuration information and an automatic unsubscription policy.
在一个实施例中,本实施例中的服务器可以为多台服务器组成的服务器 集群,其中,服务器集群中至少一台服务器负责接收客户端发送的云资源开通请求。In an embodiment, the server in this embodiment may be a server cluster composed of multiple servers, where at least one server in the server cluster is responsible for receiving the cloud resource activation request sent by the client.
在一种可能的实施例中,服务器集群中还可以包括配置为处理云资源开通请求的订单服务器和根据云资源开通请求创建云资源的云资源服务器。In a possible embodiment, the server cluster may further include an order server configured to process cloud resource activation requests and a cloud resource server that creates cloud resources according to the cloud resource activation request.
S302:按照配置信息创建待开通云资源的实例。S302: Create an instance of the cloud resource to be activated according to the configuration information.
本步骤中,可以按照接收到的配置信息创建待开通云资源的实例,本领域技术人员所知的,实例为服务器在云资源池创建的为用户提供相关云服务的计算资源,并按照配置信息待开通云资源的实例In this step, an instance of the cloud resource to be activated can be created according to the received configuration information. As known to those skilled in the art, the instance is the computing resource created by the server in the cloud resource pool to provide users with related cloud services, and according to the configuration information Instances of cloud resources to be activated
在一个实施例中,可以按照配置信息,在云资源池中待开通云资源的实例,待开通云资源的实例可以是根据配置信息创建的云资源。In one embodiment, the instance of the cloud resource to be activated in the cloud resource pool may be according to the configuration information, and the instance of the cloud resource to be activated may be a cloud resource created according to the configuration information.
示例性的,配置信息包括:CPU核数为4核、内存大小为8G、磁盘大小为500G,则此时可以根据该配置信息,在云资源池中,创建一个CPU核数为4核,内存大小为8G,以及磁盘大小为500G的云资源。Exemplarily, the configuration information includes: the number of CPU cores is 4 cores, the memory size is 8G, and the disk size is 500G. At this time, according to the configuration information, a CPU core number of 4 cores can be created in the cloud resource pool. Cloud resources with a size of 8G and a disk size of 500G.
本申请实施例提供的上述应用于服务器的云资源创建方法中,可以接收客户端发送的云资源开通请求,其中,云资源开通请求中包括配置信息和自动退订策略,并且按照配置信息创建待开通云资源的实例,由于云资源开通请求中包括自动退订策略,使得创建的待开通云资源的实例可以依据自动退订策略执行自动退订,从而避免了人工进行待开通云资源的退订,实现了自动退订客户开通的云资源,进而节约人工成本。In the above-mentioned cloud resource creation method applied to a server provided by the embodiment of the application, a cloud resource activation request sent by a client can be received, wherein the cloud resource activation request includes configuration information and an automatic unsubscription policy, and a pending request is created according to the configuration information. For instances of cloud resource activation, since the cloud resource activation request includes an automatic unsubscription policy, the created instances of cloud resources to be activated can be automatically unsubscribed according to the automatic unsubscription policy, thereby avoiding manual unsubscription of cloud resources to be activated , Which realizes automatic unsubscription of cloud resources opened by customers, thereby saving labor costs.
结合上述实施例,如图4所示,本申请实施例还提供一种云资源注销方法,包括以下步骤:With reference to the foregoing embodiment, as shown in FIG. 4, an embodiment of the present application also provides a cloud resource deregistration method, which includes the following steps:
S401:将待开通云资源的实例标识串、待开通云资源的配置信息和待开通云资源的自动退订策略存储为待开通云资源的资源实例记录。S401: Store the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription policy of the cloud resource to be activated as a resource instance record of the cloud resource to be activated.
本步骤中,待开通云资源的实例标识串可以为待开通云资源的资源标识,在一个实施例中,待开通云资源的实例标识串是根据预设算法生成的,其与待开通云资源唯一对应。In this step, the instance identification string of the cloud resource to be activated may be the resource identification of the cloud resource to be activated. In one embodiment, the instance identification string of the cloud resource to be activated is generated according to a preset algorithm, and is the same as the cloud resource to be activated. The only correspondence.
在一个实施例中,待开通云资源的实例标识串可以基于待开通云资源的订单号,或者配置信息生成的,也可以是随机分配的。In one embodiment, the instance identification string of the cloud resource to be activated may be generated based on the order number or configuration information of the cloud resource to be activated, or it may be randomly allocated.
在一种可能的实施例中,可以根据自动退订策略,设置待开通云资源在到达自动退订时刻时自动注销。自动注销可以是待开通云资源自身进行注销,也可以是服务器对待开通云资源进行的注销,本实施例对此不做限制。In a possible embodiment, according to the automatic unsubscription policy, the cloud resource to be activated may be set to automatically log out when the automatic unsubscription time is reached. The automatic logout may be the logout of the cloud resource to be activated itself, or the server's logout of the cloud resource to be activated, which is not limited in this embodiment.
S402:将资源实例记录存储至云资源信息数据库,并将资源实例记录标记为未退订状态。S402: Store the resource instance record in the cloud resource information database, and mark the resource instance record as an unsubscribed state.
本步骤中,云资源信息数据库可以配置为存储各待开通资源的资源实例 记录的,在一种可能的实施例中,云资源信息数据库还可以对存储的每条资源实例记录进行标记,将未达到自动退订时刻的待开通云资源对应的资源实例记录标注为未退订状态,或已开通状态,或未注销状态,在一种可能的实施例中,可以将已达到自动退订时刻的待开通云资源对应的资源实例记录标注为已退订状态,或已注销状态。In this step, the cloud resource information database can be configured to store the resource instance records of each resource to be activated. In a possible embodiment, the cloud resource information database can also mark each resource instance record stored to remove The resource instance record corresponding to the cloud resource to be activated at the time of automatic unsubscription is marked as unsubscribed, or activated, or unregistered. In a possible embodiment, the resource instance record that has reached the time of automatic unsubscription may be marked as unsubscribed, activated, or unregistered. The resource instance record corresponding to the cloud resource to be activated is marked as unsubscribed or cancelled.
本领域的技术人员可以理解的,通过步骤S401和步骤S402是可以使得,在服务器每创建完成一个待开通云资源的创建/开通时,云资源信息数据库都记录有该待开通云资源资源实例记录,此时,待开通云资源变更为已开通云资源。Those skilled in the art can understand that through step S401 and step S402, it is possible to enable the cloud resource information database to record the resource instance record of the cloud resource to be activated every time the server is created and completes the creation/activation of a cloud resource to be activated. , At this time, the cloud resource to be activated is changed to the activated cloud resource.
S403:查询当前处于已开通状态的各已开通云资源,并确定各已开通云资源的自动退订时刻。S403: Query each activated cloud resource currently in an activated state, and determine the automatic unsubscription time of each activated cloud resource.
本步骤中,可以在云资源信息数据库中查询当前处于已开通状态的各已开通云资源,并确定各已开通云资源的自动退订时刻。In this step, each activated cloud resource currently in the activated state can be queried in the cloud resource information database, and the automatic unsubscription time of each activated cloud resource can be determined.
在一个实施例中,可以通过读取云资源信息数据库存储的各已开通云资源对应的资源实例记录来确定各已开通云资源的自动退订时刻,包括:按照预设的注销周期,读取云资源信息数据库存储的各已开通云资源对应的资源实例记录,并且根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻。In one embodiment, the automatic unsubscription time of each activated cloud resource can be determined by reading the resource instance record corresponding to each activated cloud resource stored in the cloud resource information database, including: reading according to a preset logout period The cloud resource information database stores the resource instance records corresponding to each activated cloud resource, and according to the read resource instance records, determines the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record.
其中,注销周期可以是根据实际使用的需求,或者经验确定的,还可以是按照预设规则计算得到的,通过注销周期,可以避免频繁的查询在云资源信息数据库中查询当前处于已开通状态的各已开通云资源,节约计算成本。Among them, the log-off period can be determined according to actual needs, or experience, or calculated according to preset rules. Through the log-off period, frequent queries can be avoided in the cloud resource information database to query the currently activated state All cloud resources have been activated, saving computing costs.
S404:判断当前是否存在自动退订时刻已到达的已开通云资源。S404: Determine whether there are currently activated cloud resources that have arrived at the time of automatic unsubscription.
本步骤中,可以将各已开通云资源的自动退订时刻与当前时刻进行对比,判断当前是否存在自动退订时刻已到达的已开通云资源。In this step, the automatic unsubscription time of each activated cloud resource can be compared with the current time to determine whether there is currently an activated cloud resource whose automatic unsubscription time has arrived.
若存在,则执行步骤S405,若不存在,则执行步骤S407If yes, go to step S405, if not, go to step S407
S405:确定各已开通云资源中自动退订时刻已到达的已开通云资源,作为待注销云资源。S405: Determine the activated cloud resource that has arrived at the automatic unsubscription time among the activated cloud resources as the cloud resource to be logged out.
本步骤中,确定自动退订时刻小于等于当前时刻的已开通云资源,作为待注销云资源。In this step, the activated cloud resource whose automatic unsubscription time is less than or equal to the current time is determined as the cloud resource to be unregistered.
S406:注销各待注销云资源。S406: Log off each cloud resource to be logged off.
本步骤中,可以根据各待注销云资源的资源实例记录,确定各待注销云资源的实例标识串,作为待注销资源标识,并在云资源池中,根据各待注销资源标识,确定各待注销云资源,并注销。In this step, the instance identification string of each cloud resource to be unregistered can be determined according to the resource instance record of each cloud resource to be unregistered as the resource identifier to be unregistered, and in the cloud resource pool, according to the resource identifier to be unregistered, each resource to be unregistered is determined. Log out of cloud resources and log out.
本申请实施例提供的上述云资源注销方法,可以将待开通云资源的实例 标识串、待开通云资源的配置信息和待开通云资源的自动退订策略存储为待开通云资源的资源实例记录,并且将资源实例记录存储至云资源信息数据库,并将资源实例记录标记为未退订状态,以及查询当前处于已开通状态的各已开通云资源,并确定各已开通云资源的自动退订时刻,以及确定各已开通云资源中自动退订时刻已到达的已开通云资源,作为待注销云资源,以及注销各待注销云资源,由于在创建待开通云资源后,在云资源信息数据库中生成了各已开通云资源的资源实例记录,从而可以通过资源实例记录中的自动退订策略确定周期性的注销已到达自动退订时刻的已开通云资源,实现了自动退订客户开通的云资源,进而节约人工成本。The cloud resource logout method provided by the embodiment of the application can store the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription policy of the cloud resource to be activated as the resource instance record of the cloud resource to be activated , And store the resource instance record in the cloud resource information database, mark the resource instance record as unsubscribed, and query each activated cloud resource currently in the activated state, and determine the automatic unsubscription of each activated cloud resource The time, as well as the activated cloud resources that have arrived at the automatic unsubscription time in each activated cloud resource, are used as cloud resources to be logged out, and each cloud resource to be logged out is logged out, because the cloud resource to be activated is created in the cloud resource information database The resource instance record of each activated cloud resource is generated in the resource instance record, so that the automatic unsubscription policy in the resource instance record can be used to determine the periodic deregistration of the activated cloud resource that has reached the automatic unsubscription time, which realizes the automatic unsubscription of customer activation Cloud resources, thereby saving labor costs.
在上述步骤的基础上,如图4所示,本申请实施例还提供了另一种云资源注销方法,以实现在确定当前不存在已达到自动退订时刻的已开通云资源时,等待注销的,包括以下步骤:Based on the above steps, as shown in Figure 4, the embodiment of the present application also provides another cloud resource deregistration method, so as to wait for deregistration when it is determined that there is no activated cloud resource that has reached the automatic unsubscription time. , Including the following steps:
S407:确定各已开通云资源中自动退订时刻最小的已开通云资源,作为第一已开通云资源。S407: Determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources as the first activated cloud resource.
本步骤中,当判断出当前各已开通云资源中不存在自动退订时刻已到达的已开通云资源时,可以确定确定各已开通云资源中自动退订时刻最小的已开通云资源,并将其作为第一已开通云资源,示例性的,若存在3个自动退订时刻任未到达的已开通云资源,T1、T2和T3,其中,,T1、T2和T3的自动退订时刻分别为2019年7月12日8时00分、2019年8月12日8时00分和2019年9月12日8时00分,则自动退订时刻最小的已开通云资源为T1,将T1作为第一已开通云资源。In this step, when it is determined that there is no activated cloud resource whose automatic unsubscription time has arrived in the current activated cloud resources, it can be determined to determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources, and Take it as the first activated cloud resource, for example, if there are 3 activated cloud resources that have not yet arrived at the automatic unsubscription time, T1, T2, and T3, among them, the automatic unsubscription time of T1, T2, and T3 They are 8:00 on July 12, 2019, 8:00 on August 12, 2019, and 8:00 on September 12, 2019. The activated cloud resource with the smallest automatic unsubscription time is T1. T1 is the first cloud resource that has been activated.
S408:判断第一已开通云资源的自动退订时刻与当前时刻的差值是否小于注销周期的时长。S408: Determine whether the difference between the automatic unsubscription moment of the first activated cloud resource and the current moment is less than the duration of the logout period.
本步骤中,第一已开通云资源的自动退订时刻与当前时刻的差值是否小于注销周期的时长,则执行步骤S409,否则执行步骤S410。In this step, whether the difference between the automatic unsubscription time of the first activated cloud resource and the current time is less than the duration of the logout period, step S409 is executed, otherwise, step S410 is executed.
可以确定第一已开通云资源的自动退订时刻与当前时刻的差值是否小于注销周期的时长,示例性的,注销周期为10分钟,当前时刻为2019年7月12日8时12分,若第一已开通云资源的自动退订时刻2019年7月12日8时20分,则第一已开通云资源的自动退订时刻和当前时刻的差值为8分钟,小于注销周期10分钟,此时执行步骤S409,若第一已开通云资源的自动退订时刻2019年7月12日8时30分,则第一已开通云资源的自动退订时刻和当前时刻的差值为18分钟,大于注销周期10分钟,此时执行步骤S410。It can be determined whether the difference between the automatic unsubscription time of the first activated cloud resource and the current time is less than the length of the logout period. For example, the logout period is 10 minutes, and the current time is 8:12 on July 12, 2019. If the automatic unsubscription time of the first activated cloud resource is at 8:20 on July 12, 2019, the difference between the automatic unsubscription time of the first activated cloud resource and the current time is 8 minutes, which is less than the logout period of 10 minutes , Step S409 is executed at this time, if the automatic unsubscribe time of the first activated cloud resource is at 8:30 on July 12, 2019, the difference between the automatic unsubscribe time of the first activated cloud resource and the current time is 18 Minutes, which is greater than 10 minutes for the logout period, and step S410 is executed at this time.
S409:根据第一已开通云资源的自动退订时刻生成定时器。S409: Generate a timer according to the automatic unsubscription time of the first activated cloud resource.
本步骤中,当定时器达到第一已开通云资源的自动退订时刻时,执行步骤S403。In this step, when the timer reaches the automatic unsubscription time of the first activated cloud resource, step S403 is executed.
在一个实施例中,可以根据第一已开通云资源的自动退订时刻和预设的 资源自动注销处理函数生成一个定时器,在一个实施例中,可以是将该自动退订时刻作为该定时器的到期时间,并且当定时器到期后,可以触发系统中断,并调用预设的资源自动注销处理函数,资源自动释放处理函数被触发后,执行步骤S301。In one embodiment, a timer may be generated according to the automatic unsubscription time of the first activated cloud resource and the preset automatic resource unsubscription processing function. In one embodiment, the automatic unsubscription time may be used as the timing When the timer expires, the system interrupt can be triggered and the preset automatic resource logout processing function is called. After the automatic resource release processing function is triggered, step S301 is executed.
S410:调用睡眠函数。S410: Call the sleep function.
本步骤中,可以调用睡眠函数,以使得在当前时刻达到第一已开通云资源的自动退订时刻时,执行步骤S403In this step, the sleep function can be called, so that when the current time reaches the automatic unsubscription time of the first activated cloud resource, step S403 is executed
在一个实施例中,可以通过调用sleep(睡眠)接口函数,以使得在当前时刻达到第一已开通云资源的自动退订时刻时,执行步骤S403。In one embodiment, the sleep interface function may be called, so that when the current time reaches the automatic unsubscription time of the first activated cloud resource, step S403 is executed.
在一个实施例中,还可以让当前处理线程睡眠一个注销周期,睡眠结束后,重新执行步骤S403。In an embodiment, the current processing thread can also sleep for a logout period, and after the sleep ends, step S403 is executed again.
基于同一申请构思,根据本申请实施例提供的应用于客户端的一种云资源创建方法,本申请实施例还提供了应用于客户端的一种云资源创建装置,如图5所示,该装置包括:Based on the same application concept, according to a cloud resource creation method applied to a client provided in an embodiment of this application, an embodiment of this application also provides a cloud resource creation device applied to a client. As shown in FIG. 5, the device includes :
配置操作接收模块501,设置为接收云资源配置操作,云资源配置操作配置为创建待开通云资源的配置信息;The configuration operation receiving module 501 is configured to receive cloud resource configuration operations, and the cloud resource configuration operation configuration is to create configuration information of cloud resources to be activated;
退订界面展示模块502,设置为展示待开通云资源的自动退订界面,自动退订界面中展示有针对待开通云资源的自动退订控件;The unsubscribe interface display module 502 is set to display the automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe control for the cloud resource to be activated is displayed in the automatic unsubscribe interface;
退订策略生成模块503,设置为当接收到针对自动退订控件的操作时,生成待开通云资源的自动退订策略;其中,自动退订策略为待开通云资源在预定时间是否需要被自动退订的策略;The unsubscription policy generation module 503 is configured to generate an automatic unsubscription policy for cloud resources to be activated when an operation for the automatic unsubscription control is received; wherein, the automatic unsubscription policy is whether the cloud resources to be activated need to be automatically unsubscribed at a predetermined time Unsubscribe strategy;
请求发送模块504,设置为向服务器发送云资源开通请求,云资源开通请求中包括配置信息和自动退订策略,其中,配置信息配置为服务器创建待开通云资源的实例。The request sending module 504 is configured to send a cloud resource activation request to the server. The cloud resource activation request includes configuration information and an automatic unsubscription policy. The configuration information is configured to create an instance of the cloud resource to be activated by the server.
在一种可能的实施例中,自动退订策略包括:待开通云资源是否需要自动退订;在待开通云资源需要自动退订的情况下,待开通云资源被自动退订的时间。In a possible embodiment, the automatic unsubscription strategy includes: whether the cloud resource to be activated needs to be automatically unsubscribed; when the cloud resource to be activated needs to be automatically unsubscribed, the time when the cloud resource to be activated is automatically unsubscribed.
在一种可能的实施例中,退订策略生成模块503,设置为当接收到针对自动退订控件展示的自动退订选项的选择操作时,生成自动退订标识,并展示时间设置控件,自动退订标识配置为表示待开通云资源是需要自动退订,并且接收针对时间设置控件展示的退订时间选项的时间选择操作时,记录时间选择操作所选择的时间,作为退订时间信息,以及根据自动退订信息和退订时间信息生成待开通云资源的自动退订策略。In a possible embodiment, the unsubscription policy generation module 503 is configured to generate an automatic unsubscription identifier and display the time setting control when a selection operation for the automatic unsubscription option displayed by the automatic unsubscription control is received. The unsubscribe flag is configured to indicate that the cloud resource to be activated needs to be automatically unsubscribed, and when receiving the time selection operation for the unsubscription time option displayed by the time setting control, the time selected by the time selection operation is recorded as the unsubscription time information, and According to the automatic unsubscription information and unsubscription time information, an automatic unsubscription strategy for cloud resources to be activated is generated.
基于同一申请构思,根据本申请实施例提供的应用于服务器的一种云资 源创建方法,本申请实施例还提供了应用于服务器的一种云资源创建装置,如图6所示,该装置包括:Based on the same application concept, according to a cloud resource creation method applied to a server provided in an embodiment of this application, an embodiment of this application also provides a cloud resource creation device applied to a server. As shown in FIG. 6, the device includes :
请求接收模块601,设置为接收客户端发送的云资源开通请求,其中,云资源开通请求中包括配置信息和自动退订策略,配置信息为客户端接收云资源配置操作所创建的待开通云资源的配置信息,自动退订策略为客户端根据接收到的针对待开通云资源的自动退订控件的操作所确定的;自动退订策略为待开通云资源在预定时间是否需要被自动退订的策略;The request receiving module 601 is configured to receive a cloud resource activation request sent by the client, where the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information is the cloud resource to be activated created by the client receiving the cloud resource configuration operation The automatic unsubscription policy is determined by the client according to the received operation of the automatic unsubscription control for the cloud resource to be activated; the automatic unsubscription policy is whether the cloud resource to be activated needs to be automatically unsubscribed at a predetermined time Strategy
实例开通模块602,设置为按照配置信息创建待开通云资源的实例。The instance activation module 602 is configured to create an instance of the cloud resource to be activated according to the configuration information.
在一种可能的实施例中,自动退订策略包括:待开通云资源是否需要自动退订;在待开通云资源需要自动退订的情况下,待开通云资源被自动退订的时间。In a possible embodiment, the automatic unsubscription strategy includes: whether the cloud resource to be activated needs to be automatically unsubscribed; when the cloud resource to be activated needs to be automatically unsubscribed, the time when the cloud resource to be activated is automatically unsubscribed.
在一种可能的实施例中,装置还可以包括:In a possible embodiment, the apparatus may further include:
记录生成模块603,设置为在实例开通模块执行按照配置信息创建待开通云资源的实例之后,将待开通云资源的实例标识串、待开通云资源的配置信息和待开通云资源的自动退订策略存储为待开通云资源的资源实例记录,并且将资源实例记录存储至云资源信息数据库,并将资源实例记录标记为未退订状态。The record generation module 603 is set to automatically unsubscribe the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription of the cloud resource to be activated after the instance activation module executes the creation of the instance of the cloud resource to be activated according to the configuration information. The policy is stored as a resource instance record of the cloud resource to be activated, and the resource instance record is stored in the cloud resource information database, and the resource instance record is marked as an unsubscribed state.
在一种可能的实施例中,装置还可以包括:In a possible embodiment, the apparatus may further include:
第一查询模块604,设置为查询当前处于未退订状态的各已开通云资源,并确定各已开通云资源的自动退订时刻;The first query module 604 is configured to query each activated cloud resource that is currently in an unsubscribed state, and determine the automatic unsubscribe time of each activated cloud resource;
待注销资源确定模块605,设置为确定各已开通云资源中自动退订时刻已到达的已开通云资源,作为待注销云资源;The resource determination module 605 to be deregistered is configured to determine the activated cloud resource that has arrived at the time of automatic unsubscription among the activated cloud resources as the cloud resource to be deregistered;
云资源注销模块606,设置为注销各待注销云资源。The cloud resource logout module 606 is configured to log out each cloud resource to be logged out.
在一种可能的实施例中,第一查询模块604,设置为按照预设的注销周期,读取云资源信息数据库存储的各已开通云资源对应的资源实例记录,并且根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻;In a possible embodiment, the first query module 604 is configured to read the resource instance records corresponding to each activated cloud resource stored in the cloud resource information database according to a preset logout period, and according to the read resources Instance record, which determines the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record;
云资源注销模块606,设置为根据各待注销云资源的资源实例记录,确定各待注销云资源的实例标识串,作为待注销资源标识,并且在云资源池中,根据各待注销资源标识,确定各待注销云资源,并注销。The cloud resource unregistration module 606 is configured to determine the instance identification string of each cloud resource to be unregistered according to the resource instance record of each cloud resource to be unregistered, as the resource identifier to be unregistered, and in the cloud resource pool, according to the resource identifier to be unregistered, Determine each cloud resource to be logged off and log off.
在一种可能的实施例中,云资源注销模块606,还设置为在云资源池中,根据各待注销资源标识,确定各待注销云资源,并注销之后,将待注销资源标识对应的资源实例记录标记为已退订状态。In a possible embodiment, the cloud resource unregistration module 606 is further configured to determine each cloud resource to be unregistered in the cloud resource pool according to each resource identifier to be unregistered, and after unregistering, set the resource corresponding to the resource identifier to be unregistered The instance record is marked as unsubscribed.
在一种可能的实施例中,云资源注销模块606,还设置为在第一查询模块 执行根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻之后,若各已开通云资源中不存在自动退订时刻已到达的已开通云资源,则确定各已开通云资源中自动退订时刻最小的已开通云资源,作为第一已开通云资源,并且确定第一已开通云资源的自动退订时刻与当前时刻的差值是否小于注销周期的时长,以及若小于,则根据第一已开通云资源的自动退订时刻生成定时器,并且当定时器达到第一已开通云资源的自动退订时刻时,返回执行第一查询模块604,以及若不小于,则调用睡眠函数,以使得在当前时刻达到第一已开通云资源的自动退订时刻时,返回执行第一查询模块604。In a possible embodiment, the cloud resource deregistration module 606 is further configured to determine the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record after the first query module executes according to the read resource instance records , If there is no activated cloud resource whose automatic unsubscription time has arrived in each activated cloud resource, determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources as the first activated cloud resource, and Determine whether the difference between the automatic unsubscription time of the first activated cloud resource and the current moment is less than the length of the logout period, and if it is less, a timer is generated according to the automatic unsubscription time of the first activated cloud resource, and when the timer is When the automatic unsubscription time of the first activated cloud resource is reached, return to execute the first query module 604, and if it is not less than, call the sleep function, so that when the current moment reaches the automatic unsubscribe time of the first activated cloud resource , Return to execute the first query module 604.
本申请实施例还提供了一种客户端,如图7所示,包括处理器701和机器可读存储介质702,其中,处理器701和机器可读存储介质702完成相互间的通信,An embodiment of the present application also provides a client, as shown in FIG. 7, including a processor 701 and a machine-readable storage medium 702, where the processor 701 and the machine-readable storage medium 702 complete mutual communication,
机器可读存储介质702,设置为存放计算机程序;The machine-readable storage medium 702 is configured to store computer programs;
处理器701,设置为执行机器可读存储介质702上所存放的程序时,实现如下步骤:The processor 701 is configured to execute the program stored on the machine-readable storage medium 702 to implement the following steps:
接收云资源配置操作,所述云资源配置操作配置为创建待开通云资源的配置信息;Receiving a cloud resource configuration operation, where the cloud resource configuration operation is configured to create configuration information of the cloud resource to be activated;
展示所述待开通云资源的自动退订界面,所述自动退订界面中展示有针对所述待开通云资源的自动退订控件;Displaying the automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe control for the cloud resource to be activated is displayed in the automatic unsubscribe interface;
当接收到针对所述自动退订控件的操作时,生成所述待开通云资源的自动退订策略;其中,所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;When an operation for the automatic unsubscription control is received, an automatic unsubscription policy for the cloud resource to be activated is generated; wherein, the automatic unsubscription policy is whether the cloud resource to be activated needs to be automatically deregistered at a predetermined time Set strategy;
向服务器发送云资源开通请求,所述云资源开通请求中包括所述配置信息和所述自动退订策略,其中,所述配置信息配置为所述服务器创建所述待开通云资源的实例。Sending a cloud resource activation request to the server, the cloud resource activation request including the configuration information and the automatic unsubscription policy, wherein the configuration information is configured for the server to create an instance of the cloud resource to be activated.
本申请实施例还提供了一种服务器,如图8所示,包括处理器801和机器可读存储介质802,其中,处理器801和机器可读存储介质802完成相互间的通信,An embodiment of the present application also provides a server, as shown in FIG. 8, including a processor 801 and a machine-readable storage medium 802, where the processor 801 and the machine-readable storage medium 802 complete mutual communication,
机器可读存储介质802,配置为存放计算机程序;The machine-readable storage medium 802 is configured to store a computer program;
处理器801,配置为执行机器可读存储介质802上所存放的程序时,实现如下步骤:When the processor 801 is configured to execute the program stored on the machine-readable storage medium 802, the following steps are implemented:
接收客户端发送的云资源开通请求,其中,所述云资源开通请求中包括配置信息和自动退订策略,所述配置信息为所述客户端接收云资源配置操作所创建的待开通云资源的配置信息,所述自动退订策略为所述客户端根据接收到的针对所述待开通云资源的自动退订控件的操作所确定的;所述自动退 订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;Receive a cloud resource activation request sent by a client, where the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information is the status of the cloud resource to be activated created by the client receiving the cloud resource configuration operation Configuration information, the automatic unsubscription policy is determined by the client according to the received operation of the automatic unsubscription control for the cloud resource to be activated; the automatic unsubscription policy is that the cloud resource to be activated is Whether the scheduled time needs to be automatically unsubscribed strategy;
按照所述配置信息创建所述待开通云资源的实例。Create the instance of the cloud resource to be activated according to the configuration information.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一应用于客户端的云资源创建方法的步骤。In yet another embodiment provided in this application, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, any one of the above is applied to a client. Steps of the method for creating cloud resources at the end.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一应用于服务器的云资源创建方法的步骤。In another embodiment provided in this application, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, any one of the above is applied to a server. The steps of the cloud resource creation method.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一应用于客户端的云资源创建方法。In another embodiment provided by the present application, a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute any of the above-mentioned embodiments of the cloud resource creation method applied to the client.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一应用于服务器的云资源创建方法。In another embodiment provided in this application, a computer program product containing instructions is also provided, which when running on a computer, causes the computer to execute any of the above-mentioned embodiments of the cloud resource creation method applied to the server.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、客户端、服务器、计算机可读存储介质、计算机程序产品而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for devices, clients, servers, computer-readable storage media, and computer program products, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the description of the method embodiments.
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The foregoing descriptions are only preferred embodiments of the present application, and are not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application are all included in the scope of protection of this application. The above are only preferred embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of this application shall be included in the scope of protection of this application.
工业实用性:Industrial applicability:
基于本申请实施例提供的云资源创建方法、装置、客户端及服务器,可以通过对展示的自动退订控件的操作,提前设置待开通云资源是否需要在预订时间自动退订,从而避免了人工进行待开通云资源的退订,实现了自动退订客户开通的云资源,进而节约人工成本。Based on the cloud resource creation method, device, client and server provided by the embodiments of this application, it is possible to set in advance whether the cloud resource to be activated needs to be automatically unsubscribed at the scheduled time by operating the displayed automatic unsubscription control, thereby avoiding manual Unsubscribing to cloud resources to be activated enables automatic unsubscription of cloud resources activated by customers, thereby saving labor costs.

Claims (23)

  1. 一种云资源创建方法,应用于客户端,包括:A method for creating cloud resources, applied to the client, includes:
    接收云资源配置操作,所述云资源配置操作设置为创建待开通云资源的配置信息;Receiving a cloud resource configuration operation, where the cloud resource configuration operation is set to create configuration information of the cloud resource to be activated;
    展示所述待开通云资源的自动退订界面,所述自动退订界面中展示有针对所述待开通云资源的自动退订控件;Displaying the automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe control for the cloud resource to be activated is displayed in the automatic unsubscribe interface;
    当接收到针对所述自动退订控件的操作时,生成所述待开通云资源的自动退订策略;其中,所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;When an operation for the automatic unsubscription control is received, an automatic unsubscription policy for the cloud resource to be activated is generated; wherein, the automatic unsubscription policy is whether the cloud resource to be activated needs to be automatically deregistered at a predetermined time Set strategy;
    向服务器发送云资源开通请求,所述云资源开通请求中包括所述配置信息和所述自动退订策略,其中,所述配置信息配置为所述服务器创建所述待开通云资源的实例。Sending a cloud resource activation request to the server, the cloud resource activation request including the configuration information and the automatic unsubscription policy, wherein the configuration information is configured for the server to create an instance of the cloud resource to be activated.
  2. 根据权利要求1所述的方法,其中,所述自动退订策略包括:所述待开通云资源是否需要自动退订;在所述待开通云资源需要自动退订的情况下,所述待开通云资源被自动退订的时间。The method according to claim 1, wherein the automatic unsubscription policy comprises: whether the cloud resource to be activated needs to be automatically unsubscribed; in the case that the cloud resource to be activated needs to be automatically unsubscribed, the unsubscribed cloud resource The time when cloud resources are automatically unsubscribed.
  3. 根据权利要求1-2任一所述的方法,其中,所述当接收到针对所述自动退订控件的操作时,生成所述待开通云资源的自动退订策略包括:The method according to any one of claims 1-2, wherein, when an operation for the automatic unsubscription control is received, generating an automatic unsubscription policy for the cloud resource to be activated comprises:
    当接收到针对所述自动退订控件展示的自动退订选项的选择操作时,生成自动退订标识,并展示时间设置控件,所述自动退订标识配置为表示所述待开通云资源是需要自动退订;When a selection operation for the automatic unsubscribe option displayed by the automatic unsubscribe control is received, an automatic unsubscribe flag is generated, and the time setting control is displayed, and the automatic unsubscribe flag is configured to indicate that the cloud resource to be activated is required Automatically unsubscribe;
    接收针对所述时间设置控件展示的退订时间选项的时间选择操作时,记录所述时间选择操作所选择的时间,作为退订时间信息;When receiving the time selection operation for the unsubscribe time option displayed by the time setting control, record the time selected by the time selection operation as the unsubscribe time information;
    根据所述自动退订信息和所述退订时间信息生成所述待开通云资源的自动退订策略。The automatic unsubscription policy of the cloud resource to be activated is generated according to the automatic unsubscription information and the unsubscription time information.
  4. 一种云资源创建方法,应用于服务器,包括:A method for creating cloud resources, applied to a server, includes:
    接收客户端发送的云资源开通请求,其中,所述云资源开通请求中包括配置信息和自动退订策略,所述配置信息为所述客户端接收云资源配置操作所创建的待开通云资源的配置信息,所述自动退订策略为所述客户端根据接收到的针对所述待开通云资源的自动退订控件的操作所确定的;所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;Receive a cloud resource activation request sent by a client, where the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information is the status of the cloud resource to be activated created by the client receiving the cloud resource configuration operation Configuration information, the automatic unsubscription policy is determined by the client according to the received operation of the automatic unsubscription control for the cloud resource to be activated; the automatic unsubscription policy is that the cloud resource to be activated is Whether the scheduled time needs to be automatically unsubscribed strategy;
    按照所述配置信息创建所述待开通云资源的实例。Create the instance of the cloud resource to be activated according to the configuration information.
  5. 根据权利要求4所述的方法,其中,所述自动退订策略包括:所述待 开通云资源是否需要自动退订;在所述待开通云资源需要自动退订的情况下,所述待开通云资源被自动退订的时间。The method according to claim 4, wherein the automatic unsubscription policy comprises: whether the cloud resource to be activated needs to be automatically unsubscribed; in the case that the cloud resource to be activated needs to be automatically unsubscribed, the unsubscribed cloud resource needs to be automatically unsubscribed. The time when cloud resources are automatically unsubscribed.
  6. 根据权利要求4-5任一所述的方法,其中,在所述按照所述配置信息创建所述待开通云资源的实例之后,所述方法还包括:The method according to any one of claims 4-5, wherein, after the creation of the instance of the cloud resource to be activated according to the configuration information, the method further comprises:
    将所述待开通云资源的实例标识串、所述待开通云资源的配置信息和所述待开通云资源的自动退订策略存储为所述待开通云资源的资源实例记录;Storing the instance identification string of the cloud resource to be activated, the configuration information of the cloud resource to be activated, and the automatic unsubscription policy of the cloud resource to be activated as the resource instance record of the cloud resource to be activated;
    将所述资源实例记录存储至云资源信息数据库,并将所述资源实例记录标记为未退订状态。Store the resource instance record in the cloud resource information database, and mark the resource instance record as an unsubscribed state.
  7. 根据权利要求4-6任一所述的方法,其中,所述方法还包括:The method according to any one of claims 4-6, wherein the method further comprises:
    查询当前处于未退订状态的各已开通云资源,并确定各已开通云资源的自动退订时刻;Query each activated cloud resource that is currently in an unsubscribed state, and determine the automatic unsubscription time of each activated cloud resource;
    确定各已开通云资源中自动退订时刻已到达的已开通云资源,作为待注销云资源;Determine the activated cloud resources that have arrived at the time of automatic unsubscription among the activated cloud resources as cloud resources to be logged off;
    注销各待注销云资源。Log off each cloud resource to be logged off.
  8. 根据权利要求7所述的方法,其中,所述查询当前处于未退订状态的各已开通云资源,并确定各已开通云资源的自动退订时刻,包括:The method according to claim 7, wherein the querying each activated cloud resource currently in an unsubscribed state and determining the automatic unsubscription time of each activated cloud resource comprises:
    按照预设的注销周期,读取云资源信息数据库存储的各已开通云资源对应的资源实例记录;According to the preset logout period, read the resource instance records corresponding to each activated cloud resource stored in the cloud resource information database;
    根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻;According to the read resource instance records, determine the automatic unsubscription time of the activated cloud resources corresponding to each resource instance record;
    所述注销各待注销云资源,包括:The deregistration of each cloud resource to be deregistered includes:
    根据各待注销云资源的资源实例记录,确定各待注销云资源的实例标识串,作为待注销资源标识;According to the resource instance record of each cloud resource to be deregistered, determine the instance identification string of each cloud resource to be deregistered as the resource identifier to be deregistered;
    在云资源池中,根据各待注销资源标识,确定各待注销云资源,并注销。In the cloud resource pool, according to the identification of each resource to be deregistered, each cloud resource to be deregistered is determined and deregistered.
  9. 根据权利要求8所述的方法,其中,在所述在云资源池中,根据各待注销资源标识,确定各待注销云资源,并注销之后,所述方法还包括:The method according to claim 8, wherein, in the cloud resource pool, determining each cloud resource to be deregistered according to the identifier of each resource to be deregistered, and after deregistering, the method further comprises:
    将所述待注销资源标识对应的资源实例记录标记为已退订状态。Mark the resource instance record corresponding to the resource identifier to be cancelled as an unsubscribed state.
  10. 根据权利要求8-9任一所述的方法,其中,在所述根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻之后,还包括:The method according to any one of claims 8-9, wherein, after the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record is determined according to the read resource instance records, the method further comprises:
    若所述各已开通云资源中不存在自动退订时刻已到达的已开通云资源,则确定各已开通云资源中自动退订时刻最小的已开通云资源,作为第一已开通云资源;If there is no activated cloud resource whose automatic unsubscription time has arrived among the activated cloud resources, determine the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources as the first activated cloud resource;
    确定所述第一已开通云资源的自动退订时刻与当前时刻的差值是否小于所述注销周期的时长;Determining whether the difference between the automatic unsubscription moment of the first activated cloud resource and the current moment is less than the duration of the logout period;
    若小于,则根据所述第一已开通云资源的自动退订时刻生成定时器,并且当所述定时器达到所述第一已开通云资源的自动退订时刻时,执行所述按照预设的注销周期,读取云资源信息数据库存储的各已开通云资源对应的资源实例记录的步骤;If it is less than, a timer is generated according to the automatic unsubscribe time of the first activated cloud resource, and when the timer reaches the automatic unsubscribe time of the first activated cloud resource, execute the preset The log-off cycle of the cloud resource information database, the steps to read the resource instance records corresponding to each activated cloud resource;
    若不小于,则调用睡眠函数,以使得在当前时刻达到所述第一已开通云资源的自动退订时刻时,执行所述按照预设的注销周期,读取云资源信息数据库存储的各已开通云资源对应的资源实例记录的步骤。If it is not less than, call the sleep function so that when the current time reaches the automatic unsubscription time of the first activated cloud resource, execute the preset log-out period to read each cloud resource information database. Steps to enable resource instance records corresponding to cloud resources.
  11. 一种云资源创建装置,应用于客户端,包括:A cloud resource creation device, applied to a client, includes:
    配置操作接收模块,设置为接收云资源配置操作,所述云资源配置操作配置为创建待开通云资源的配置信息;A configuration operation receiving module, configured to receive a cloud resource configuration operation, the cloud resource configuration operation being configured to create configuration information of the cloud resource to be activated;
    退订界面展示模块,设置为展示所述待开通云资源的自动退订界面,所述自动退订界面中展示有针对所述待开通云资源的自动退订控件;The unsubscribe interface display module is configured to display the automatic unsubscribe interface of the cloud resource to be activated, and the automatic unsubscribe control for the cloud resource to be activated is displayed in the automatic unsubscribe interface;
    退订策略生成模块,设置为当接收到针对所述自动退订控件的操作时,生成所述待开通云资源的自动退订策略;其中,所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;The unsubscription policy generation module is configured to generate an automatic unsubscription policy for the cloud resource to be opened when an operation for the automatic unsubscription control is received; wherein, the automatic unsubscription policy is the cloud resource to be opened Whether it needs to be automatically unsubscribed at the scheduled time;
    请求发送模块,设置为向服务器发送云资源开通请求,所述云资源开通请求中包括所述配置信息和所述自动退订策略,其中,所述配置信息配置为所述服务器创建所述待开通云资源的实例。The request sending module is configured to send a cloud resource activation request to the server, the cloud resource activation request includes the configuration information and the automatic unsubscription policy, wherein the configuration information is configured for the server to create the pending activation Examples of cloud resources.
  12. 根据权利要求11所述的装置,其中,所述自动退订策略包括:所述待开通云资源是否需要自动退订;在所述待开通云资源需要自动退订的情况下,所述待开通云资源被自动退订的时间。The device according to claim 11, wherein the automatic unsubscription policy comprises: whether the cloud resource to be activated needs to be automatically unsubscribed; in the case that the cloud resource to be activated needs to be automatically unsubscribed, the unsubscribed cloud resource needs to be automatically unsubscribed. The time when cloud resources are automatically unsubscribed.
  13. 根据权利要求11-12任一所述的装置,其中,所述退订策略生成模块,设置为当接收到针对所述自动退订控件展示的自动退订选项的选择操作时,生成自动退订标识,并展示时间设置控件,所述自动退订标识配置为表示所述待开通云资源是需要自动退订,并且接收针对所述时间设置控件展示的退订时间选项的时间选择操作时,记录所述时间选择操作所选择的时间,作为退订时间信息,以及根据所述自动退订信息和所述退订时间信息生成所述待开通云资源的自动退订策略。The device according to any one of claims 11-12, wherein the unsubscription policy generation module is configured to generate an automatic unsubscription when a selection operation for the automatic unsubscription option displayed by the automatic unsubscription control is received Mark and display the time setting control, the automatic unsubscription mark is configured to indicate that the cloud resource to be activated needs to be automatically unsubscribed, and when receiving a time selection operation for the unsubscription time option displayed by the time setting control, it records The time selected by the time selection operation is used as unsubscription time information, and the automatic unsubscription policy of the cloud resource to be activated is generated according to the automatic unsubscription information and the unsubscription time information.
  14. 一种云资源创建装置,应用于服务器,包括:A cloud resource creation device applied to a server, including:
    请求接收模块,设置为接收客户端发送的云资源开通请求,其中,所述云资源开通请求中包括配置信息和自动退订策略,所述配置信息为所述客户端接收云资源配置操作所创建的待开通云资源的配置信息,所述自动退订策略为所述客户端根据接收到的针对所述待开通云资源的自动退订控件的操作所确定的;所述自动退订策略为所述待开通云资源在预定时间是否需要被自动退订的策略;The request receiving module is configured to receive a cloud resource activation request sent by a client, where the cloud resource activation request includes configuration information and an automatic unsubscription policy, and the configuration information is created by the client receiving a cloud resource configuration operation The configuration information of the cloud resource to be activated, the automatic unsubscription policy is determined by the client according to the received operation of the automatic unsubscribe control for the cloud resource to be activated; the automatic unsubscription policy is determined by the client State the strategy of whether the cloud resources to be activated need to be automatically unsubscribed at the scheduled time;
    实例开通模块,设置为按照所述配置信息创建所述待开通云资源的实例。The instance activation module is configured to create the instance of the cloud resource to be activated according to the configuration information.
  15. 根据权利要求14所述的装置,其中,所述自动退订策略包括:所述待开通云资源是否需要自动退订;在所述待开通云资源需要自动退订的情况下,所述待开通云资源被自动退订的时间。The device according to claim 14, wherein the automatic unsubscription policy comprises: whether the cloud resource to be activated needs to be automatically unsubscribed; in the case that the cloud resource to be activated needs to be automatically unsubscribed, the unsubscribed cloud resource needs to be automatically unsubscribed. The time when cloud resources are automatically unsubscribed.
  16. 根据权利要求14-15任一所述的装置,其中,所述装置还包括:The device according to any one of claims 14-15, wherein the device further comprises:
    记录生成模块,设置为在所述实例开通模块执行按照所述配置信息创建所述待开通云资源的实例之后,将所述待开通云资源的实例标识串、所述待开通云资源的配置信息和所述待开通云资源的自动退订策略存储为所述待开通云资源的资源实例记录,并且将所述资源实例记录存储至云资源信息数据库,并将所述资源实例记录标记为未退订状态。The record generation module is configured to, after the instance activation module executes the creation of the instance of the cloud resource to be activated according to the configuration information, the instance identification string of the cloud resource to be activated and the configuration information of the cloud resource to be activated And the automatic unsubscription policy of the cloud resource to be activated are stored as the resource instance record of the cloud resource to be activated, and the resource instance record is stored in the cloud resource information database, and the resource instance record is marked as not retired Order status.
  17. 根据权利要求14-16任一所述的装置,其中,所述装置还包括:The device according to any one of claims 14-16, wherein the device further comprises:
    第一查询模块,设置为查询当前处于未退订状态的各已开通云资源,并确定各已开通云资源的自动退订时刻;The first query module is set to query each activated cloud resource that is currently in an unsubscribed state, and determine the automatic unsubscribe time of each activated cloud resource;
    待注销资源确定模块,设置为确定各已开通云资源中自动退订时刻已到达的已开通云资源,作为待注销云资源;The resource determination module to be deregistered is set to determine the activated cloud resource that has arrived at the time of automatic unsubscription among the activated cloud resources as the cloud resource to be deregistered;
    云资源注销模块,设置为注销各待注销云资源。The cloud resource logout module is set to log off each cloud resource to be logged off.
  18. 根据权利要求17所述的装置,其中,所述第一查询模块,设置为按照预设的注销周期,读取云资源信息数据库存储的各已开通云资源对应的资源实例记录,并且根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻;The device according to claim 17, wherein the first query module is configured to read the resource instance record corresponding to each activated cloud resource stored in the cloud resource information database according to a preset logout period, and read according to the For each resource instance record of, determine the automatic unsubscription time of the activated cloud resource corresponding to each resource instance record;
    所述云资源注销模块,设置为根据各待注销云资源的资源实例记录,确定各待注销云资源的实例标识串,作为待注销资源标识,并且在云资源池中,根据各待注销资源标识,确定各待注销云资源,并注销。The cloud resource unregistration module is configured to determine the instance identification string of each cloud resource to be unregistered according to the resource instance record of each cloud resource to be unregistered, as the resource identifier to be unregistered, and in the cloud resource pool, according to the resource identifier to be unregistered , Determine each cloud resource to be logged off, and log off.
  19. 根据权利要求18所述的装置,其中,所述云资源注销模块,还设置为在所述云资源池中,根据各待注销资源标识,确定各待注销云资源,并注 销之后,将所述待注销资源标识对应的资源实例记录标记为已退订状态。The device according to claim 18, wherein the cloud resource deregistration module is further configured to determine, in the cloud resource pool, each cloud resource to be deregistered according to the identifier of each resource to be deregistered, and after deregistration, the The resource instance record corresponding to the resource identifier to be deregistered is marked as an unsubscribed state.
  20. 根据权利要求18-19任一所述的装置,其中,所述云资源注销模块,还设置为在所述第一查询模块执行根据读取的各资源实例记录,确定各资源实例记录对应的已开通云资源的自动退订时刻之后,若所述各已开通云资源中不存在自动退订时刻已到达的已开通云资源,则确定各已开通云资源中自动退订时刻最小的已开通云资源,作为第一已开通云资源,并且确定所述第一已开通云资源的自动退订时刻与当前时刻的差值是否小于所述注销周期的时长,以及若小于,则根据所述第一已开通云资源的自动退订时刻生成定时器,并且当所述定时器达到所述第一已开通云资源的自动退订时刻时,返回执行所述第一查询模块,以及若不小于,则调用睡眠函数,以使得在当前时刻达到所述第一已开通云资源的自动退订时刻时,返回执行所述第一查询模块。The device according to any one of claims 18-19, wherein the cloud resource deregistration module is further configured to execute in the first query module to determine the resource instance record corresponding to each resource instance record according to the read resource instance records. After the automatic unsubscription time of the cloud resource is activated, if there is no activated cloud resource whose automatic unsubscription time has arrived in each of the activated cloud resources, the activated cloud resource with the smallest automatic unsubscription time among the activated cloud resources is determined Resource, as the first activated cloud resource, and it is determined whether the difference between the automatic unsubscription time of the first activated cloud resource and the current time is less than the duration of the logout period, and if less than, according to the first The automatic unsubscription time of the activated cloud resource generates a timer, and when the timer reaches the automatic unsubscription time of the first activated cloud resource, the first query module is executed back, and if it is not less than, then The sleep function is called, so that when the current time reaches the automatic unsubscription time of the first activated cloud resource, the first query module is returned to be executed.
  21. 一种客户端,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器被所述机器可执行指令促使:实现权利要求1-3任一所述的方法步骤。A client includes a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions: Achieve the method steps of any one of claims 1-3.
  22. 一种服务器,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器被所述机器可执行指令促使:实现权利要求4-10任一所述的方法步骤。A server includes a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions: The method step of any one of claims 4-10.
  23. 一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-3或4-10任一所述的方法步骤。A computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method steps of any one of claims 1-3 or 4-10 are realized.
PCT/CN2020/117772 2019-10-09 2020-09-25 Cloud resource creation method, apparatus, client and server WO2021068763A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910955223.6A CN112653563B (en) 2019-10-09 2019-10-09 Cloud resource creating method and device, client and server
CN201910955223.6 2019-10-09

Publications (1)

Publication Number Publication Date
WO2021068763A1 true WO2021068763A1 (en) 2021-04-15

Family

ID=75342571

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117772 WO2021068763A1 (en) 2019-10-09 2020-09-25 Cloud resource creation method, apparatus, client and server

Country Status (2)

Country Link
CN (1) CN112653563B (en)
WO (1) WO2021068763A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110937A (en) * 2021-04-26 2021-07-13 银清科技有限公司 Resource application method and device based on cloud resource operation portal

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961360A (en) * 2021-11-10 2022-01-21 中国科学院计算机网络信息中心 Cloud resource settlement method and system
CN114064284A (en) * 2021-11-23 2022-02-18 北京百度网讯科技有限公司 Cloud server resource configuration method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012070993A1 (en) * 2010-11-25 2012-05-31 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for enabling service delivery in a telecommunications network
US20120271949A1 (en) * 2011-04-20 2012-10-25 International Business Machines Corporation Real-time data analysis for resource provisioning among systems in a networked computing environment
CN106462891A (en) * 2014-06-11 2017-02-22 甲骨文国际公司 Providing a subscription for a service using an existing subscription
CN106921958A (en) * 2017-03-30 2017-07-04 北京小米移动软件有限公司 The method and apparatus for quitting the subscription of business
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
CN109219004A (en) * 2018-11-19 2019-01-15 努比亚技术有限公司 Short message unsubscription method, device, mobile terminal and readable storage medium storing program for executing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016164057A1 (en) * 2015-04-08 2016-10-13 Hewlett Packard Enterprise Development Lp Managing cost related to usage of cloud resources
CN106600291A (en) * 2016-12-07 2017-04-26 国云科技股份有限公司 Multi-level agent-based public cloud order delivery method
CN107943555B (en) * 2017-10-17 2021-11-23 华南理工大学 Big data storage and processing platform and big data processing method in cloud computing environment
US10832190B2 (en) * 2017-11-16 2020-11-10 International Business Machines Corporation Executable action modification
CN109255208B (en) * 2018-09-04 2020-09-01 浪潮云信息技术股份公司 Software service product authorization method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012070993A1 (en) * 2010-11-25 2012-05-31 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for enabling service delivery in a telecommunications network
US20120271949A1 (en) * 2011-04-20 2012-10-25 International Business Machines Corporation Real-time data analysis for resource provisioning among systems in a networked computing environment
CN106462891A (en) * 2014-06-11 2017-02-22 甲骨文国际公司 Providing a subscription for a service using an existing subscription
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
CN106921958A (en) * 2017-03-30 2017-07-04 北京小米移动软件有限公司 The method and apparatus for quitting the subscription of business
CN109219004A (en) * 2018-11-19 2019-01-15 努比亚技术有限公司 Short message unsubscription method, device, mobile terminal and readable storage medium storing program for executing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110937A (en) * 2021-04-26 2021-07-13 银清科技有限公司 Resource application method and device based on cloud resource operation portal

Also Published As

Publication number Publication date
CN112653563B (en) 2022-07-05
CN112653563A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
WO2021068763A1 (en) Cloud resource creation method, apparatus, client and server
CN109313572A (en) General auto zoom
US9374660B1 (en) Intentional monitoring
US10897500B2 (en) Synchronizing a device using push notifications
US20090037425A1 (en) System and method for dynamically configuring a multiplatform computing environment
US20130185431A1 (en) Uniform Definition, Provision, and Access of Software Services on the Cloud
US9021064B2 (en) Web service architecture for product configuration
US11836468B2 (en) Digital compliance platform
US11551266B2 (en) Real-time consumer interaction via media broadcast
US10168878B1 (en) Dashboard generation based on user interaction
EP3063725A1 (en) Aggregating, presenting, and fulfilling a number of catalogs
JP6228968B2 (en) Request and display business service context for virtual database
US8161100B1 (en) Self-service provisioning for multi-channel applications
CN109684547A (en) Method and apparatus for handling information
WO2016156249A1 (en) Content playback management
US10715473B2 (en) Optimized message exchange
CN107330535A (en) A kind of device, method and system for realizing Catering Management
US9992139B1 (en) Virtualized computing resource scheduler
US20150347611A1 (en) Portal context switching for hierarchical resale of telecommunication products
CN113760569B (en) Multi-account management method and system
US11854061B2 (en) Service provisioning
US20150180797A1 (en) Network appliance mapping
CN114595057A (en) Virtual prize inventory management method and system for lottery platform
US20190188649A1 (en) Fill-in notifications
US9691039B2 (en) Smart ordering system for proactive mitigation of system scarcity in a cloud or data center environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20874128

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20874128

Country of ref document: EP

Kind code of ref document: A1