This command lists all IAM roles.
Usage
iamrole listExample
This example lists all IAM roles:
vcli: admin> iamrole list
+----+------------------+-------------+--------------------------------+-------------+---------------------------------------------------------------------------------+
| ID | Name | Description | Max Session Duration (seconds) | Tenant name | Trust-policy |
+----+------------------+-------------+--------------------------------+-------------+---------------------------------------------------------------------------------+
| 1 | role1 | insecure | 1 day, 12 hours | default | { |
| | | | | | "Version": "2012-10-17", |
| | | | | | "Statement": [ |
| | | | | | { |
| | | | | | "Effect": "Allow", |
| | | | | | "Principal": "*", |
| | | | | | "Action": "sts:*" |
| | | | | | } |
| | | | | | ] |
| | | | | | } |
| 2 | role2 | insecure | 1 day, 12 hours | default | { |
| | | | | | "Version": "2012-10-17", |
| | | | | | "Statement": [ |
| | | | | | { |
| | | | | | "Effect": "Allow", |
| | | | | | "Principal": "*", |
| | | | | | "Action": "sts:*" |
| | | | | | } |
| | | | | | ] |
| | | | | | } |
| 3 | role3 | secure | 1 day, 12 hours | test | { |
| | | | | | "Version": "2012-10-17", |
| | | | | | "Statement": [ |
| | | | | | { |
| | | | | | "Effect": "Allow", |
| | | | | | "Principal": { |
| | | | | | "Federated": "oidc-provider/integrator-1234567.okta.com/oauth2/default" |
| | | | | | }, |
| | | | | | "Action": "sts:AssumeRoleWithWebIdentity", |
| | | | | | "Condition": { |
| | | | | | "StringEquals": { |
| | | | | | "user-OIDC:email": "user.user@vastdata.com" |
| | | | | | } |
| | | | | | } |
| | | | | | } |
| | | | | | ] |
| | | | | | } |
+----+------------------+-------------+--------------------------------+-------------+---------------------------------------------------------------------------------+