You can run this script using below methods:
- Providing the params as command line args
- Providing the params as Input
-
Download the zip file to you local machine
-
Unzip the folder
-
You shall see a dir name CloudCoverScriptingProject where you exracted the zip file.
-
Navigate to the CloudCoverScriptingProject.
-
Run the Main.py file using below command and command line args:
python Main.py 30 cc-r ./new_image.json
where,
30 = Retention Days
cc-r = Prefix Name to be matched
./new_image.json = Full Path to the .json file
-
You shall see a list of all the objects which are due for deletion.
-
Similary you can run the Main.py providing various values for all the 3 command line args.
-
Download the zip file to you local machine
-
Unzip the folder
-
You shall see a dir name CloudCoverScriptingProject where you exracted the zip file.
-
Navigate to the CloudCoverScriptingProject.
-
Run the Main.py file using below command:
python Main.py
-
You shall then be promted to provide following Values:
Please mention the retention days:
Please mention the prefix string to be matched:
Please mention the full path to json file:
-
Provide all the values and you shall get a list of all the objects which are due for deletion.