Skip to content

Commit 630413d

Browse files
authored
Support UAP VM, DB, and Cloud Consoles, also support SIA Settings (#46)
* Support UAP VM, DB, and Cloud Consoles, also support SIA Settings * Support UAP VM, DB, and Cloud Consoles, also support SIA Settings * Support UAP VM, DB, and Cloud Consoles, also support SIA Settings
1 parent a6d7e2b commit 630413d

File tree

161 files changed

+4833
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+4833
-603
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ["3.9", "3.10", "3.11"]
11+
python-version: ["3.11", "3.12", "3.13"]
1212

1313
steps:
1414
- uses: actions/checkout@v4

README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ CyberArk's Official SDK and CLI for different services operations
5151
- [x] PCloud Platforms Service
5252
- [x] PCloud Applications Service
5353
- [x] Connector Manager Service
54+
- [x] Unified Access Policies Service
55+
- [x] SCA - Secure Cloud Access
56+
- [x] DB - Databases
57+
- [x] VM - Virtual Machines
5458
- [x] All services contains CRUD and Statistics per respective service
5559
- [x] Ready to use SDK in Python
5660
- [x] CLI and SDK Examples
@@ -241,6 +245,10 @@ The following services and commands are supported:
241245
- <b>platforms</b> - PCloud Platforms Management
242246
- <b>applications</b> - PCloud Applications Management
243247
- <b>cmgr</b> - Connector Manager Service
248+
- <b>uap</b> - Unified Access Policies Services
249+
- <b>sca</b> - secure cloud access policies management
250+
- <b>db</b> - databases access policies management
251+
- <b>vm</b> - virtual machines access policies management
244252
245253
Any command has its own subcommands, with respective arguments
246254
@@ -383,6 +391,66 @@ Get connector installation script
383391
ark exec sia access connector-setup-script -ct onprem -co windows -cpi 588741d5-e059-479d-b4c4-3d821a87f012
384392
```
385393
394+
List UAP policies
395+
```shell
396+
ark exec uap list-policies
397+
```
398+
399+
Get UAP policy
400+
```shell
401+
ark exec uap policy --policy-id my-policy-id
402+
```
403+
404+
Delete UAP Policy
405+
```shell
406+
ark exec uap delete-policy --policy-id my-policy-id
407+
```
408+
409+
List DB Policies from UAP
410+
```shell
411+
ark exec uap db list-policies
412+
```
413+
414+
Get DB Policy from UAP
415+
```shell
416+
ark exec uap db policy --policy-id my-policy-id
417+
```
418+
419+
Delete DB Policy from UAP
420+
```shell
421+
ark exec uap db delete-policy --policy-id my-policy-id
422+
```
423+
424+
List SCA Policies from UAP
425+
```shell
426+
ark exec uap sca list-policies
427+
```
428+
429+
Get SCA Policy from UAP
430+
```shell
431+
ark exec uap sca policy --policy-id my-policy-id
432+
```
433+
434+
Delete SCA Policy from UAP
435+
```shell
436+
ark exec uap sca delete-policy --policy-id my-policy-id
437+
```
438+
439+
List VM Policies from UAP
440+
```shell
441+
ark exec uap vm list-policies
442+
```
443+
444+
Get VM Policy from UAP
445+
```shell
446+
ark exec uap vm policy --policy-id my-policy-id
447+
```
448+
449+
Delete VM Policy from UAP
450+
```shell
451+
ark exec uap vm delete-policy --policy-id my-policy-id
452+
```
453+
386454
You can view all of the commands via the --help for each respective exec action
387455
388456
Notes:

ark_sdk_python/actions/ark_profiles_action.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ def run_action(self, args: argparse.Namespace) -> None:
172172
173173
Raises:
174174
ArkException: _description_
175-
ArkException: _description_
176175
"""
177176
if args.profile_cmd == 'list':
178177
self.__run_list_action(args)

ark_sdk_python/actions/ark_service_exec_action.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def run_exec_action(self, api: ArkCLIAPI, args: argparse.Namespace) -> None:
8787
"""
8888
action_def, action_dest = self.__deduce_action_command_def(args.command, args)
8989
action_value = args.__dict__[action_dest]
90-
api_name = action_dest.replace('_action', '').replace('-', '_')
90+
api_name = action_dest.replace('_action', '')
91+
# cli sub-commands use dashes, but function names use underscores
92+
api_name = api_name.replace('-', '_')
9193
while '_' in api_name and not hasattr(api, api_name):
9294
api_name = api_name.rsplit('_', 1)[0]
9395
service = getattr(api, api_name)

ark_sdk_python/ark.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
import urllib3
1515

1616
from ark_sdk_python.actions import ArkAction, ArkCacheAction, ArkConfigureAction, ArkLoginAction, ArkProfilesAction, ArkServiceExecAction
17+
from ark_sdk_python.common.ark_version import __version__
1718

1819
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
1920

20-
__version__ = '1.0.0'
21-
2221

2322
def main():
2423
parser: argparse.ArgumentParser = argparse.ArgumentParser()

0 commit comments

Comments
 (0)