Skip to content

piotrgrohs/ServiceAccountManage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service Account Manager with parameters

  1. Use list of service account account and count it.

Commands

# list all service accounts
$ python3 arguments.py -l 

# add service Account from application 'Test' to project 'project1'
$ python3 arguments.py -t 'test' -p 'project1' -a

# delete service account with id 0, project 'project1'
$ python3 arguments.py -p 'project1' -i '0' -d # 

Example

Case #1

$ python3 arguments.py -t 'test' -p 'project1' -a
$ python3 arguments.py -t 'mercedes' -p 'project1' -a
$ python3 arguments.py -t 'apple' -p 'project1' -a
$ python3 arguments.py -l

service account id: 0, application: test, project project1
service account id: 1, application: mercedes, project project1
service account id: 2, application: apple, project project1

Delete object

$ python3 arguments.py -i 1 -p 'project1' -d
$ python3 arguments.py -l      

service account id: 0, application: test, project project1
service account id: 2, application: apple, project project1

Add

$ python3 arguments.py -t 'apple' -p 'project1' -a
$ python3 arguments.py -l 

service account id: 0, application: test, project project1
service account id: 2, application: apple, project project1
service account id: 1, application: apple, project project1

About

Generator for Service Account Manage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published