Skip to content

Commit 7ec949f

Browse files
committed
delete target sandbox sample
1 parent cf51c89 commit 7ec949f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from cloudshell.api.cloudshell_api import CloudShellAPISession
2+
3+
4+
def delete_target_sandbox(api: CloudShellAPISession, sandbox_id: str):
5+
print(f"deleting sandbox: {sandbox_id}")
6+
api.DeleteReservation(reservationId=sandbox_id)
7+
print("done")
8+
9+
10+
if __name__ == "__main__":
11+
TARGET_SANDBOX_ID = "c2310b47-5949-4a41-96d1-9b653338b00d"
12+
api = CloudShellAPISession(host="localhost", username="admin", password="admin", domain="Global")
13+
delete_target_sandbox(api, TARGET_SANDBOX_ID)
14+

0 commit comments

Comments
 (0)