Admin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 | Usage: platform-cli [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbose Enable verbose mode
-p, --platform TEXT Source++ platform host
-c, --certificate PATH Source++ platform certificate
-k, --key PATH Source++ platform key
-h, --help Show this message and exit
Commands:
add-developer
get-developers
remove-developer
refresh-authorization-code
add-role
remove-role
add-developer-role
remove-developer-role
get-developer-roles
get-roles
add-role-permission
remove-role-permission
get-developer-permissions
get-role-permissions
add-access-permission
remove-access-permission
add-role-access-permission
remove-role-access-permission
get-developer-access-permissions
get-role-access-permissions
get-access-permissions
|
User Management
add-developer
Description
Add a new developer.
Synopsis
Arguments
Argument |
Description |
id |
A unique identifier for this developer |
Examples
Basic
Input:
Output:
| Ai1xohipmS3yRLqSIQJLN1LOOuFz6c2CwNgGKuMvhxTM6IgX6F
|
get-developers
Description
Get list of developers.
Synopsis
Examples
Basic
Input:
Output:
remove-developer
Description
Remove an existing developer.
Synopsis
Arguments
Argument |
Description |
id |
Existing developer id |
Examples
Basic
Input:
refresh-authorization-code
Description
Refresh a developer's authorization code.
Synopsis
| refresh-authorization-code <id>
|
Arguments
Argument |
Description |
id |
Existing developer id |
Examples
Basic
Input:
Output:
| Ai1xohipmS3yRLqSIQJLN1LOOuFz6c2CwNgGKuMvhxTM6IgX6F
|
Roles
add-role
Description
Add a new role.
Synopsis
Arguments
Argument |
Description |
role |
The role name |
Examples
Basic
Input:
remove-role
Description
Remove an existing role.
Synopsis
Arguments
Argument |
Description |
role |
The role name |
Examples
Basic
Input:
add-developer-role
Description
Add a new role to an existing developer.
Synopsis
| add-developer-role <id> <role>
|
Arguments
Argument |
Description |
id |
Developer ID |
role |
The role name |
Examples
Basic
Input:
remove-developer-role
Description
Remove an existing role from an existing developer.
Synopsis
| remove-developer-role <id> <role>
|
Arguments
Argument |
Description |
id |
Developer ID |
role |
The role name |
Examples
Basic
Input:
get-developer-roles
Description
Get all roles for a given developer.
Synopsis
Arguments
Argument |
Description |
id |
Developer ID |
Examples
Basic
Input:
Output:
get-roles
Description
Get list of roles.
Synopsis
Examples
Basic
Input:
Output:
| [super_user, role_manager, role_user]
|
Role Permissions
add-role-permission
Description
Add a new role permission to an existing role.
Synopsis
| add-role-permission <role> <permission>
|
Arguments
Examples
Basic
Input:
| add-role-permission super_user ADD_LIVE_LOG
|
remove-role-permission
Description
Remove an existing role permission from an existing role.
Synopsis
| remove-role-permission <role> <permission>
|
Arguments
Examples
Basic
Input:
| remove-role-permission super_user ADD_LIVE_LOG
|
get-developer-permissions
Description
Get all role permissions for a given developer.
Synopsis
| get-developer-permissions <id>
|
Arguments
Argument |
Description |
id |
Developer ID |
Examples
Basic
Input:
Output:
| [ADD_LIVE_LOG, REMOVE_LIVE_INSTRUMENT, GET_LIVE_INSTRUMENTS, GET_LIVE_LOGS, ADD_LIVE_BREAKPOINT, GET_LIVE_BREAKPOINTS]
|
get-role-permissions
Description
Get all role permissions for a given role.
Synopsis
| get-developer-permissions <id>
|
Arguments
Argument |
Description |
role |
The role name |
Examples
Basic
Input:
| get-role-permissions super_user
|
Output:
| [ADD_DEVELOPER, REMOVE_DEVELOPER, ADD_ROLE, REMOVE_ROLE, ADD_ROLE_PERMISSION, REMOVE_ROLE_PERMISSION]
|
Access Permissions
add-access-permission
Description
Add a new instrument access permission.
Synopsis
| add-access-permission [OPTIONS] <type>
|
Arguments
Options
Option |
Description |
-locationPattern, -l |
The instrument location pattern (wildcard = *) |
Examples
Basic
Input:
| add-access-permission -l com.example.* WHITE_LIST
|
Output:
| {
"id": "1216f3d2-56b6-4ce8-be25-c905ffebb84b",
"locationPatterns": [
"com.example.*"
],
"type": "WHITE_LIST"
}
|
remove-access-permission
Description
Remove an existing instrument access permission.
Synopsis
| remove-access-permission <id>
|
Arguments
Argument |
Description |
id |
The instrument access permission id |
Examples
Basic
Input:
| remove-access-permission 1216f3d2-56b6-4ce8-be25-c905ffebb84b
|
add-role-access-permission
Description
Add an existing instrument access permission to an existing role.
Synopsis
| add-role-access-permission <role> <type>
|
Arguments
Argument |
Description |
role |
The role name |
id |
The instrument access permission id |
Examples
Basic
Input:
| add-role-access-permission super_user fffd7416-a50e-4bf7-8297-808b34b140b4
|
remove-role-access-permission
Description
Remove an existing instrument access permission from an existing role.
Synopsis
| remove-role-access-permission <role> <id>
|
Arguments
Argument |
Description |
role |
The role name |
id |
The instrument access permission id |
Examples
Basic
Input:
| remove-role-access-permission super_user 1216f3d2-56b6-4ce8-be25-c905ffebb84b
|
get-developer-access-permissions
Description
Get all instrument access permissions for a given developer.
Synopsis
| get-developer-access-permissions <id>
|
Arguments
Argument |
Description |
id |
Developer ID |
Examples
Basic
Input:
Output:
| {
"id": "1216f3d2-56b6-4ce8-be25-c905ffebb84b",
"locationPatterns": [
"com.example.*"
],
"type": "WHITE_LIST"
}
|
get-role-access-permissions
Description
Get all instrument access permissions for a given role.
Synopsis
| get-role-access-permissions <id>
|
Arguments
Argument |
Description |
role |
The role name |
Examples
Basic
Input:
| get-role-access-permissions super_user
|
Output:
| {
"id": "90e15b43-37c1-478b-a698-3523f1222971",
"locationPatterns": [
"*"
],
"type": "WHITE_LIST"
}
|
get-access-permissions
Description
Get all instrument access permissions.
Synopsis
Examples
Basic
Input:
Output:
1
2
3
4
5
6
7
8
9
10
11
12
13 | [{
"id": "90e15b43-37c1-478b-a698-3523f1222971",
"locationPatterns": [
"*"
],
"type": "WHITE_LIST"
},{
"id": "1216f3d2-56b6-4ce8-be25-c905ffebb84b",
"locationPatterns": [
"com.example.*"
],
"type": "WHITE_LIST"
}]
|
Last update:
March 27, 2023