CN108459910A - A kind of method and apparatus for deleting resource - Google Patents

A kind of method and apparatus for deleting resource Download PDF

Info

Publication number
CN108459910A
CN108459910A CN201810175065.8A CN201810175065A CN108459910A CN 108459910 A CN108459910 A CN 108459910A CN 201810175065 A CN201810175065 A CN 201810175065A CN 108459910 A CN108459910 A CN 108459910A
Authority
CN
China
Prior art keywords
resource object
resource
locally
target
public cloud
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810175065.8A
Other languages
Chinese (zh)
Inventor
邓明鉴
张鑫
苏楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Axis Mdt Infotech Ltd
Original Assignee
Shanghai Axis Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Axis Mdt Infotech Ltd filed Critical Shanghai Axis Mdt Infotech Ltd
Priority to CN201810175065.8A priority Critical patent/CN108459910A/en
Publication of CN108459910A publication Critical patent/CN108459910A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/509Offload

Abstract

This application provides a kind of method and apparatus for deleting resource, the program can obtain the instruction of the deletion resource of user's transmission, then determine that the corresponding resource of described instruction deletes mode, if it is local delete that resource, which deletes mode, then locally deleting the target resource object and its corresponding related resource object, and it is remotely to delete to delete mode when resource, then the target resource object and its corresponding related resource object are deleted in public cloud.Since the mode locally deleted may be used, actual delete operation can not be carried out to the resource object in public cloud, thus when target resource object is used by multiple users, the delete operation of one user does not interfere with other users, simultaneously in the specific objective resource object on deleting public cloud, its corresponding related resource object can be deleted simultaneously, so as to realize that the cascade of resource object is deleted in public cloud, avoided and reported an error because deleting failure.

Description

A kind of method and apparatus for deleting resource
Technical field
This application involves information technology field more particularly to a kind of method and apparatus for deleting resource.
Background technology
Public cloud (public cloud) is a service mode based on standard cloud computing (cloud computing), Resource is provided by service supplier, such as application, storage, computing resource, the public can pass through these resources of Web vector graphic.When with When family needs to delete certain resources in public cloud, can only delete operation directly be carried out to these resources in public cloud, if this When a little resources are used by multiple users simultaneously, then the delete operation of a user can influence other users.Meanwhile in public cloud There can be the resources such as meeting carry Disk (cloud disk) under certain incidence relation, such as ECS (elastic calculation host) between resource. In the case, if directly attempting to delete the ECS, and Disk is also mounted under the ECS, at this time since public cloud can not cascade It deletes, it will cause to delete failure, can only report an error, need user oneself to go to delete one by one, thus can influence user experience.
Apply for content
The purpose of the application is to provide a kind of method and apparatus for deleting resource.
To achieve the above object, this application provides a kind of method for deleting resource, this method includes:
Obtain the instruction for the deletion resource that user sends, wherein described instruction includes target resource object to be deleted;
Determine that the corresponding resource of described instruction deletes mode, wherein it includes local deletion or remote that the resource, which deletes mode, Journey is deleted;
If local deletion, then the target resource object and its corresponding related resource object are locally being deleted;
It is deleted if long-range, then deletes the target resource object and its corresponding related resource object in public cloud.
Further, the target resource object and its corresponding related resource object are locally being deleted, including:
It determines the corresponding authority information of described instruction, and first object resource pair is locally being determined according to the authority information As;
According to the incidence relation between resource object, in the related resource pair for locally determining the first object resource object As;
Locally deleting the first object resource object and the related resource object.
Further, the authority information is the sub- account information corresponding to public cloud account;
It determines the corresponding authority information of described instruction, and first object resource pair is locally being determined according to the authority information As, including:
Determine the corresponding sub- account information of described instruction, and according to the sub- account information in the case where locally determining sub- account First object resource object.
Further, the target resource object and its corresponding related resource object are deleted in public cloud, including:
According to the incidence relation between resource object, in the related resource object for locally determining the target resource object;
The API for calling public cloud, deletes the target resource object and its corresponding related resource in the public cloud Object.
Further, the incidence relation of the corresponding related resource object of the target resource object and resource object The content of identification information is related;
According to the incidence relation between resource object, the related resource object of the target resource object is determined in local, Including:
According to the identification information of the target resource object, is inquired locally, determine the target resource object Related resource object.
Further, the related resource object is the child resource object of the target resource object.
Another aspect based on the application, additionally provides a kind of equipment for deleting resource, which includes:
Acquisition device is instructed, the instruction of the deletion resource for obtaining user's transmission, wherein described instruction includes to be deleted Target resource object;
Instruction processing unit, for determining that the corresponding resource of described instruction deletes mode, wherein the resource deletes mode Including local deletion or long-range deletion;
It is local to delete device, for when it is local delete that the resource, which deletes mode, locally deleting the target money Source object and its corresponding related resource object;
It is long-range to delete device, it is deleted to be long-range for deleting mode in the resource, then deletes the mesh in public cloud Mark resource object and its corresponding related resource object.
Further, the local deletion device, for determining the corresponding authority information of described instruction, and according to the power Limit information is locally determining first object resource object;According to the incidence relation between resource object, described the is locally being determined The related resource object of one target resource object;Locally deleting the first object resource object and the related resource pair As.
Further, the authority information is the sub- account information corresponding to public cloud account;
The local deletion device, believes for determining the corresponding sub- account information of described instruction, and according to the sub- account Cease the first object resource object in the case where locally determining sub- account.
Further, the long-range deletion device, for according to the incidence relation between resource object, locally determining institute State the related resource object of target resource object;The API for calling public cloud, deletes the target resource pair in the public cloud As and its corresponding related resource object.
Further, the incidence relation of the corresponding related resource object of the target resource object and resource object The content of identification information is related;
The long-range deletion device is inquired, really for the identification information according to the target resource object locally The related resource object of the fixed target resource object.
Further, the related resource object is the child resource object of the target resource object.
In addition, a kind of equipment for deleting resource of the embodiment of the present application, wherein the equipment includes:
Processor;And
One or more machine readable medias of machine readable instructions are stored with, when the processor execution machine can When reading instruction so that the equipment executes such as method according to any one of claims 1 to 6.
This application provides a kind of scheme for deleting resource, the program can obtain the finger of the deletion resource of user's transmission It enables, then determines that the corresponding resource of described instruction deletes mode, deleted to be local if resource deletes mode, locally deleting institute Target resource object and its corresponding related resource object are stated, and it is remotely to delete to delete mode when resource, then in public cloud The upper deletion target resource object and its corresponding related resource object.It, can be with since the mode locally deleted may be used Actual delete operation is not carried out to the resource object in public cloud, thus when target resource object is used by multiple users, The delete operation of one user does not interfere with other users, while in the specific objective resource object on deleting public cloud, Its corresponding related resource object can be deleted simultaneously, so as to realize that the cascade of resource object is deleted in public cloud, avoided It reports an error due to deleting failure.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
The application scenarios signal that Fig. 1 is the executive agent of scheme in the embodiment of the present application when being the terminal device of user local Figure;
The application scenarios schematic diagram that Fig. 2 is the executive agent of scheme in the embodiment of the present application when being private clound;
Fig. 3 is a kind of processing flow schematic diagram of method for deleting resource provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of each resource object in public cloud and private clound under mixed cloud scene;
Fig. 5 is the schematic diagram after locally deleting a certain resource object under mixed cloud scene;
Fig. 6 is a kind of structural schematic diagram of equipment for deleting resource provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of another equipment for deleting resource provided by the embodiments of the present application;
Same or analogous reference numeral represents same or analogous component in attached drawing.
Specific implementation mode
The application is described in further detail below in conjunction with the accompanying drawings.
In a typical configuration of this application, terminal, the equipment of service network include one or more processors (CPU), image processing unit (GPU), input/output interface, network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media, can be by any side Method or technology realize information storage.Information can be computer-readable instruction, data structure, program device or other number According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM (CD- ROM), digital versatile disc (DVD) or other optical storages, magnetic tape cassette, magnetic tape disk storage or other magnetic storages Equipment or any other non-transmission medium can be used for storage and can be accessed by a computing device information.
The embodiment of the present application provides a kind of method for deleting resource, and this method can be applied to delete in cloud computing scene It includes the private clound of user or each Terminal Type to delete resource wherein described local device of the local device either in public cloud Equipment.According to the difference of scene, the executive agent of this method can be the terminal device either private clound of user local, In, the terminal device in the embodiment of the present application can be each class of electronic devices such as computer, mobile phone, tablet computer, server.
If executive agent is the terminal device of user local, the application scenarios of the embodiment of the present application are as shown in Figure 1, i.e. The terminal device 100 of user is directly synchronous and using the resource in public cloud 300, and local resource object is user's end at this time Resource object in end equipment.If executive agent is private clound, correspond to the scene of mixed cloud, as shown in Figure 2.It is described mixed The characteristics of cloud has merged private clound and public cloud is closed, user accesses private clound 200 to use resource by terminal device 100, and Private clound 200 then obtains user from public cloud 300 needs resource to be used, and private clound can be according to actual scene in this scenario Demand from public cloud isochronous resources, with for users to use, local resource object is the money in user's private clound at this time Source object.
Fig. 3 shows a kind of method for deleting resource provided by the embodiments of the present application, and this method includes following processing step:
Step S301 obtains the instruction for the deletion resource that user sends, wherein described instruction includes that target to be deleted provides Source object.
Step S302 determines that the corresponding resource of described instruction deletes mode, wherein it includes local that the resource, which deletes mode, It deletes or remotely deletes;
Step S303 is then locally deleting the target resource object and its corresponding related resource if local deletion Object;
Step S304 deletes if long-range, then deletes the target resource object and its corresponding correlation in public cloud Resource object.
By taking the scene of mixed cloud as an example, the instruction of the deletion resource acquired in private clound can be private by accessing by user Have transmitted by the terminal device of cloud, such as user accesses private clound by personal computer, has sent one and require to delete some The instruction of ECS.
When determining that the corresponding resource of described instruction deletes mode, can be based on some relevant information of described instruction, Such as information about the mode of deletion is directly carried in the instruction, can by directly specify in a manner of this deletion be it is local delete or It is long-range to delete.In addition it is also possible to judged according to other relevant information, such as the body by sending the user of the instruction Part judges it is that the corresponding resource of instruction deletes mode.By taking mixed cloud scene as an example, each user can have the account of access private clound Family information can give each user to distribute different resources and delete mode, and user A can only carry out local deletion, and user B is only It can remotely be deleted, if the instruction for the deletion resource that thus user A is sent, then can determine that this deletion mode is It is local to delete.
Here, it is only to lift that those skilled in the art, which will be understood that the corresponding resource of above-mentioned determining described instruction deletes mode, Example, other other manners that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in present invention protection model Within enclosing, and it is incorporated herein by reference herein.
When carrying out local delete, then the target resource object and its corresponding related resource pair are only local deleted As without carrying out actual delete operation to the resource object in public cloud, thus being made by multiple users in target resource object The delete operation of used time, a user do not interfere with other users.
Further, need the target resource object deleted and its corresponding related resource object can be with transmission instruction User is related, such as can be the authority information of preset user, and user A can only delete a part of resource object, and User B then can only delete another part resource object etc..In some embodiments of the present application, authority information can be every The account information of a user's distribution.For example, under public cloud account Public1, exists and be used in conjunction with Public1 corresponding resources Three sub- accounts, respectively sub- account Private1, Private2 and Private3.Public cloud account Public1 includes such as Resource object shown in Fig. 4 is loaded with Disk1 and Disk2 and Eip1 under ECS 1, and is loaded with Disk3 under ECS 2. Private clound can synchronize the resource object under three parts of Public1 in initialization and build the association between these resource objects and close System, corresponds respectively to sub- account Private1, Private2 and Private3, and user can be set using sub- account by terminal Standby access private clound, to use these resource objects.When needing to delete Disk1 therein using the user of Private1, if Directly the Disk1 in public cloud is deleted, since the variation of resource object in public cloud can all be synchronized to private clound, thus It can influence the corresponding resource objects of Private2 and Private3 in private clound.In order to not influence Private2 and Private3, The resource object (Disk1 of Public1 accounts) that private clound can only local delete needs operates, at this time public cloud The Disk1 of Private2, Private3 account will not be deleted in upper and private clound, as shown in Figure 5.
In actual scene, due to that can have some incidence relations, such as ECS between each resource object in public cloud Disk1 and Disk2 and Eip1 are loaded under 1, thus Disk1, Disk2 and Eip1 are the child resource object of ECS1, In order to facilitate the use of the user, when by these source synchronous to private clound, this between all resource objects of structure can also be synchronized A little incidence relations.In order to avoid being also loaded with related resource object under the target resource object of deletion, and lead to delete target Resource object operation failure (if such as do not delete Disk1, Disk2 or Eip1, and when directly deleting ECS1, then can cause The delete operation of ECS1 fails), therefore its corresponding related resource must be deleted simultaneously when deleting a certain target resource object Object.
As a result, in some embodiments of the present application, the target resource object and its corresponding correlation are locally being deleted When resource object, the corresponding authority information of described instruction can be first determined, and first is locally being determined according to the authority information Target resource object.For example, by taking aforementioned scene as an example, when authority information is for the sub- account information corresponding to public cloud account When, if after user is using the sub- account access private clound of Private2, the instruction for deleting resource is had sent to private clound, this The target resource object of deletion is thus ECS 1 may be used since the permission of Private2 is only for the resource object under the sub- account number To determine that first object resource object is the ECS1 of Private2 accounts.
It is then possible to according to the incidence relation between resource object, the first object resource object is locally being determined Related resource object.In actual scene, the incidence relation between related resource object and target resource object can be according to field The actual demand of scape is set, such as related resource object can be the parent resource object and child resource object of target resource object, It can also be only child resource object.For the ECS1 under aforementioned Private2 accounts, related resource object can be Disk1, Disk2 or Eip1 under Private2 accounts.Here, the child resource object in the embodiment of the present application refer to it is all directly or The indirect child resource object of person, if such as also there are one resource objects, the resource object also to belong to for load under Disk1 above-mentioned In the child resource object of ECS1.
In actual scene, the incidence relation between the form record resource object of look-up table (map), resource may be used Object map can the generation when carrying out source synchronous from public cloud, and be stored in private clound, needing in use, can profit The corresponding related resource object of target resource object is inquired with resource object map.
After first object resource object and corresponding related resource object is determined, then described first is locally being deleted Target resource object and the related resource object.
When remotely being deleted, if only deleting the target resource object in public cloud, it also will appear the feelings for deleting failure Condition, therefore also need the corresponding related resource object of delete target resource object.It therefore, can first basis when carrying out long-range Incidence relation between resource object, in the related resource object for locally determining the target resource object.
In some embodiments of the present application, the pass for the related resource object that the target resource object can be corresponding Connection relationship is related to the content of the identification information of resource object, such as the identification information can be the uuid for meeting specific specifications (Universally Unique Identifier, Universally Unique Identifier), the resource object locally to have synchronized set phase The uuid answered can inquire the incidence relation between each resource object by these uuid.As a result, described in locally determining When the related resource object of target resource object, it can be looked into locally according to the identification information of the target resource object It askes, determines the related resource object of the target resource object.
After the related resource object for locally determining the target resource object, the API of public cloud can be called, in institute It states and deletes the target resource object and its corresponding related resource object in public cloud.
Based on same inventive concept, the equipment for deleting resource is additionally provided in the embodiment of the present application, the equipment is corresponding Method is the method in previous embodiment, and its principle solved the problems, such as is similar to this method.
Fig. 6 shows that a kind of equipment for deleting resource provided by the embodiments of the present application, the equipment include that instruction obtains dress Set 610, instruction processing unit 620, local deletion device 630 and long-range deletion device 640.Wherein, instruction acquisition device 610 is used In the instruction for obtaining the deletion resource that user sends, wherein described instruction includes target resource object to be deleted.Instruction is handled Device 620 is for determining that the corresponding resource of described instruction deletes mode, wherein the resource delete mode include it is local delete or It is long-range to delete.Local device 630 of deleting is used to delete to be local in resource deletion mode, in the locally deletion target resource pair As and its corresponding related resource object.Long-range device 640 of deleting is used for when it is long-range delete that resource, which deletes mode, public The target resource object and its corresponding related resource object are deleted on cloud.
By taking the scene of mixed cloud as an example, the instruction of the deletion resource acquired in private clound can be private by accessing by user Have transmitted by the terminal device of cloud, such as user accesses private clound by personal computer, has sent one and require to delete some The instruction of ECS.
Instruction processing unit 620 can be based on and described instruction when determining that the corresponding resource of described instruction deletes mode Some relevant information, such as the information about the mode of deletion is directly carried in the instruction, it can directly specify this deletion Mode is local deletion or long-range deletion.In addition it is also possible to be judged according to other relevant information, such as pass through transmission The identity judgement of the user of the instruction is that the corresponding resource of instruction deletes mode.By taking mixed cloud scene as an example, each user can be with There is access private cloud account information, each user can be given to distribute different resources and delete mode, user A can only carry out this Ground is deleted, and user B only can be deleted remotely, if the instruction for the deletion resource that thus user A is sent, then can determine This deletion mode is local deletes.
Here, it is only to lift that those skilled in the art, which will be understood that the corresponding resource of above-mentioned determining described instruction deletes mode, Example, other other manners that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in present invention protection model Within enclosing, and it is incorporated herein by reference herein.
When carrying out local delete, local device 630 of deleting only local deletes the target resource object and its correspondence Related resource object, without carrying out actual delete operation to the resource object in public cloud, thus in target resource object When being used by multiple users, the delete operation of a user does not interfere with other users.
Further, need the target resource object deleted and its corresponding related resource object can be with transmission instruction User is related, such as can be the authority information of preset user, and user A can only delete a part of resource object, and User B then can only delete another part resource object etc..In some embodiments of the present application, authority information can be every The account information of a user's distribution.For example, under public cloud account Public1, exists and be used in conjunction with Public1 corresponding resources Three sub- accounts, respectively sub- account Private1, Private2 and Private3.Public cloud account Public1 includes such as Resource object shown in Fig. 4 is loaded with Disk1 and Disk2 and Eip1 under ECS 1, and is loaded with Disk3 under ECS 2. Private clound can synchronize the resource object under three parts of Public1 in initialization and build the association between these resource objects and close System, corresponds respectively to sub- account Private1, Private2 and Private3, and user can be set using sub- account by terminal Standby access private clound, to use these resource objects.When needing to delete Disk1 therein using the user of Private1, if Directly the Disk1 in public cloud is deleted, since the variation of resource object in public cloud can all be synchronized to private clound, thus It can influence the corresponding resource objects of Private2 and Private3 in private clound.In order to not influence Private2 and Private3, The resource object (Disk1 of Public1 accounts) that private clound can only local delete needs operates, at this time public cloud The Disk1 of Private2, Private3 account will not be deleted in upper and private clound, as shown in Figure 5.
In actual scene, due to that can have some incidence relations, such as ECS between each resource object in public cloud Disk1 and Disk2 and Eip1 are loaded under 1, thus Disk1, Disk2 and Eip1 are the child resource object of ECS1, In order to facilitate the use of the user, when by these source synchronous to private clound, this between all resource objects of structure can also be synchronized A little incidence relations.In order to avoid being also loaded with related resource object under the target resource object of deletion, and lead to delete target Resource object operation failure (if such as do not delete Disk1, Disk2 or Eip1, and when directly deleting ECS1, then can cause The delete operation of ECS1 fails), therefore its corresponding related resource must be deleted simultaneously when deleting a certain target resource object Object.
As a result, in some embodiments of the present application, the target resource object and its corresponding correlation are locally being deleted When resource object, the corresponding authority information of described instruction can be first determined, and first is locally being determined according to the authority information Target resource object.For example, by taking aforementioned scene as an example, when authority information is for the sub- account information corresponding to public cloud account When, if after user is using the sub- account access private clound of Private2, the instruction for deleting resource is had sent to private clound, this The target resource object of deletion is thus ECS 1 may be used since the permission of Private2 is only for the resource object under the sub- account number To determine that first object resource object is the ECS1 of Private2 accounts.
It is then possible to according to the incidence relation between resource object, the first object resource object is locally being determined Related resource object.In actual scene, the incidence relation between related resource object and target resource object can be according to field The actual demand of scape is set, such as related resource object can be the parent resource object and child resource object of target resource object, It can also be only child resource object.For the ECS1 under aforementioned Private2 accounts, related resource object can be Disk1, Disk2 or Eip1 under Private2 accounts.Here, the child resource object in the embodiment of the present application refer to it is all directly or The indirect child resource object of person, if such as also there are one resource objects, the resource object also to belong to for load under Disk1 above-mentioned In the child resource object of ECS1.
In actual scene, the incidence relation between the form record resource object of look-up table (map), resource may be used Object map can the generation when carrying out source synchronous from public cloud, and be stored in private clound, needing in use, can profit The corresponding related resource object of target resource object is inquired with resource object map.
After first object resource object and corresponding related resource object is determined, then described first is locally being deleted Target resource object and the related resource object.
When remotely being deleted, if only deleting the target resource object in public cloud, it also will appear the feelings for deleting failure Condition, therefore also need the corresponding related resource object of delete target resource object.Therefore long-range to delete dress when carrying out long-range Setting 640 can be first according to the incidence relation between resource object, in the related resource pair for locally determining the target resource object As.
In some embodiments of the present application, the pass for the related resource object that the target resource object can be corresponding Connection relationship is related to the content of the identification information of resource object, such as the identification information can be the uuid for meeting specific specifications (Universally Unique Identifier, Universally Unique Identifier), the resource object locally to have synchronized set phase The uuid answered can inquire the incidence relation between each resource object by these uuid.As a result, described in locally determining When the related resource object of target resource object, it can be looked into locally according to the identification information of the target resource object It askes, determines the related resource object of the target resource object.
After the related resource object for locally determining the target resource object, long-range device 640 of deleting can call The API of public cloud deletes the target resource object and its corresponding related resource object in the public cloud.
In conclusion scheme provided by the present application can obtain the instruction of the deletion resource of user's transmission, institute is then determined It states the corresponding resource of instruction and deletes mode, if it is locally to delete that resource, which deletes mode, locally deleting the target resource pair As and its corresponding related resource object, and when resource delete mode be remotely to delete, then the mesh is deleted in public cloud Mark resource object and its corresponding related resource object.It, can not be in public cloud since the mode locally deleted may be used Resource object carry out actual delete operation, thus when target resource object is used by multiple users, user's deletes Division operation does not interfere with other users, while in the specific objective resource object on deleting public cloud, can delete it simultaneously Corresponding related resource object avoids and fails because deleting so as to realize that the cascade of resource object is deleted in public cloud And it reports an error.
In addition, the part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal loaded mediums and be transmitted, and/or be stored in the calculating run according to program instruction In the working storage of machine equipment.Here, including an equipment as shown in Figure 7 according to one embodiment of the application, this sets Standby includes the one or more machine readable medias 710 for being stored with machine readable instructions and the place for executing machine readable instructions Manage device 720, wherein when the machine readable instructions are executed by the processor so that the equipment is executed based on aforementioned according to this The method and/or technology scheme of multiple embodiments of application.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With application-specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, the software program of the application can be executed by processor to realize above step or function.Similarly, the software of the application Program (including relevant data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, magnetic or CD-ROM driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, for example, Coordinate to execute the circuit of each step or function as with processor.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case of without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Profit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second equal words are used for table Show title, and does not represent any particular order.

Claims (13)

1. a kind of method for deleting resource, wherein this method includes:
Obtain the instruction for the deletion resource that user sends, wherein described instruction includes target resource object to be deleted;
Determine that the corresponding resource of described instruction deletes mode, wherein the resource deletes mode and includes local deletion or remotely delete It removes;
If local deletion, then the target resource object and its corresponding related resource object are locally being deleted;
It is deleted if long-range, then deletes the target resource object and its corresponding related resource object in public cloud.
2. according to the method described in claim 1, wherein, locally deleting the target resource object and its corresponding related money Source object, including:
It determines the corresponding authority information of described instruction, and first object resource object is locally being determined according to the authority information;
According to the incidence relation between resource object, in the related resource object for locally determining the first object resource object;
Locally deleting the first object resource object and the related resource object.
3. according to the method described in claim 2, wherein, the authority information is the sub- account letter corresponding to public cloud account Breath;
It determines the corresponding authority information of described instruction, and first object resource object is locally being determined according to the authority information, Including:
Determine the corresponding sub- account information of described instruction, and according to the sub- account information in the case where locally determining sub- account first Target resource object.
4. according to the method described in claim 1, wherein, the target resource object and its corresponding phase are deleted in public cloud Resource object is closed, including:
According to the incidence relation between resource object, in the related resource object for locally determining the target resource object;
The API for calling public cloud, deletes the target resource object and its corresponding related resource object in the public cloud.
5. according to the method described in claim 4, wherein, the pass of the corresponding related resource object of the target resource object Connection relationship is related to the content of the identification information of resource object;
According to the incidence relation between resource object, in the related resource object for locally determining the target resource object, including:
According to the identification information of the target resource object, is inquired locally, determine the correlation of the target resource object Resource object.
6. the method according to any one of claims 1 to 5, wherein, the related resource object is the target resource The child resource object of object.
7. a kind of equipment for deleting resource, wherein the equipment includes:
Acquisition device is instructed, the instruction of the deletion resource for obtaining user's transmission, wherein described instruction includes mesh to be deleted Mark resource object;
Instruction processing unit, for determining that the corresponding resource of described instruction deletes mode, wherein the resource deletes mode and includes It is local to delete or remotely delete;
It is local to delete device, for when it is local delete that the resource, which deletes mode, locally deleting the target resource pair As and its corresponding related resource object;
It is long-range to delete device, it is deleted to be long-range for deleting mode in the resource, then deletes the target money in public cloud Source object and its corresponding related resource object.
8. equipment according to claim 7, wherein the local deletion device, for determining the corresponding power of described instruction Limit information, and first object resource object is locally being determined according to the authority information;It is closed according to the association between resource object System, in the related resource object for locally determining the first object resource object;Locally deleting the first object resource pair As with the related resource object.
9. equipment according to claim 8, wherein the authority information is the sub- account letter corresponding to public cloud account Breath;
The local deletion device, exists for determining the corresponding sub- account information of described instruction, and according to the sub- account information The local first object resource object determined under sub- account.
10. equipment according to claim 7, wherein the long-range deletion device, for according to the pass between resource object Connection relationship, in the related resource object for locally determining the target resource object;The API for calling public cloud, in the public cloud The upper deletion target resource object and its corresponding related resource object.
11. equipment according to claim 10, wherein the corresponding related resource object of the target resource object Incidence relation is related to the content of the identification information of resource object;
The long-range deletion device is inquired locally for the identification information according to the target resource object, determines institute State the related resource object of target resource object.
12. the equipment according to any one of claim 7 to 11, wherein the related resource object provides for the target The child resource object of source object.
13. a kind of equipment for deleting resource, wherein the equipment includes:
Processor;And
One or more machine readable medias of machine readable instructions are stored with, when the processor executes the machine readable finger When enabling so that the equipment executes such as method according to any one of claims 1 to 6.
CN201810175065.8A 2018-03-02 2018-03-02 A kind of method and apparatus for deleting resource Pending CN108459910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810175065.8A CN108459910A (en) 2018-03-02 2018-03-02 A kind of method and apparatus for deleting resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810175065.8A CN108459910A (en) 2018-03-02 2018-03-02 A kind of method and apparatus for deleting resource

Publications (1)

Publication Number Publication Date
CN108459910A true CN108459910A (en) 2018-08-28

Family

ID=63217695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810175065.8A Pending CN108459910A (en) 2018-03-02 2018-03-02 A kind of method and apparatus for deleting resource

Country Status (1)

Country Link
CN (1) CN108459910A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787862A (en) * 2019-01-17 2019-05-21 无锡华云数据技术服务有限公司 Detection method, device, electronic equipment and the storage medium of invalid resource
CN110377616A (en) * 2019-07-30 2019-10-25 北京金山云网络技术有限公司 A kind of data-erasure method, device, electronic equipment and storage medium
CN110399434A (en) * 2019-07-25 2019-11-01 北京明略软件系统有限公司 Field classification method and device, storage medium, electronic device
CN112181590A (en) * 2020-09-25 2021-01-05 烽火通信科技股份有限公司 Method, device and equipment for deleting resources in cloud platform and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085824A1 (en) * 2004-10-14 2006-04-20 Timo Bruck Method and appartus for management of video on demand client device
CN103207813A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method and device for managing resources
US20130232121A1 (en) * 2012-03-01 2013-09-05 Filetrek Inc. Method and system for remote storage of data
CN103595755A (en) * 2012-08-13 2014-02-19 三星电子株式会社 Method and apparatus for displaying content of portable terminal that uses cloud service
CN106027603A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Email attachment management method and device and intelligent terminal
CN106302603A (en) * 2015-06-05 2017-01-04 腾讯科技(深圳)有限公司 The method and apparatus remotely deleting information
CN107169060A (en) * 2017-04-28 2017-09-15 北京小米移动软件有限公司 Image processing method, device and terminal in terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085824A1 (en) * 2004-10-14 2006-04-20 Timo Bruck Method and appartus for management of video on demand client device
CN103207813A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method and device for managing resources
US20130232121A1 (en) * 2012-03-01 2013-09-05 Filetrek Inc. Method and system for remote storage of data
CN103595755A (en) * 2012-08-13 2014-02-19 三星电子株式会社 Method and apparatus for displaying content of portable terminal that uses cloud service
CN106302603A (en) * 2015-06-05 2017-01-04 腾讯科技(深圳)有限公司 The method and apparatus remotely deleting information
CN106027603A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Email attachment management method and device and intelligent terminal
CN107169060A (en) * 2017-04-28 2017-09-15 北京小米移动软件有限公司 Image processing method, device and terminal in terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787862A (en) * 2019-01-17 2019-05-21 无锡华云数据技术服务有限公司 Detection method, device, electronic equipment and the storage medium of invalid resource
CN109787862B (en) * 2019-01-17 2019-09-13 无锡华云数据技术服务有限公司 Detection method, device, electronic equipment and the storage medium of invalid resource
CN110399434A (en) * 2019-07-25 2019-11-01 北京明略软件系统有限公司 Field classification method and device, storage medium, electronic device
CN110377616A (en) * 2019-07-30 2019-10-25 北京金山云网络技术有限公司 A kind of data-erasure method, device, electronic equipment and storage medium
CN112181590A (en) * 2020-09-25 2021-01-05 烽火通信科技股份有限公司 Method, device and equipment for deleting resources in cloud platform and readable storage medium

Similar Documents

Publication Publication Date Title
CN108459910A (en) A kind of method and apparatus for deleting resource
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN111290828A (en) Dynamic routing using container orchestration services
US11379836B2 (en) Methods and systems for recording data based on plurality of blockchain networks
CN110245304B (en) Data sharing method, device and computer readable medium
CN108881228A (en) Cloud registration activation method, device, equipment and storage medium
EP2998862A1 (en) Method, device, and system for memory management
CN107580032B (en) Data processing method, device and equipment
EP3812917A1 (en) Data structure reading method and apparatus, data structure updating method and apparatus, and electronic device
CN111694639A (en) Method and device for updating address of process container and electronic equipment
CN114020444A (en) Calling system and method for resource service application in enterprise digital middleboxes
CN108491457A (en) A kind of method and apparatus for synchronizing public cloud resource
US11003652B1 (en) Multi-write database modification
US11283787B2 (en) Computer resource provisioning
CN110024359A (en) Application resource uses reduction
US20210240516A1 (en) Distributed transaction management
CN107526530A (en) Data processing method and equipment
CN108848136B (en) Shared storage method of cloud service cluster
CN105812434A (en) Business chain control method and device after virtualization of user hand-held equipment
US11748236B2 (en) Multi-user debugging with user data isolation
CN114676093B (en) File management method and device, electronic equipment and storage medium
CN110933120A (en) Computing method, device and system based on hybrid cloud
US11483381B1 (en) Distributing cloud migration
US20220156005A1 (en) Service management device, service management method, and non-transitory computer-readable recording medium
US20230176916A1 (en) Degradation planning and mitigation in hybrid cloud environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180828

RJ01 Rejection of invention patent application after publication