Lists all policies
GEThttps://apis.<domain>/iam/policies
Lists all policies.
Authorization Action:
iam:policies:list
Request
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
policies object[]
{
"policies": [
{
"name": "My Viewer Policy 1",
"id": "custom-viewer-policy-1",
"members": [
"team:local:*"
],
"statements": [
{
"role": "viewer",
"tenants": [
"tenant1",
"tenant2"
],
"effect": "ALLOW"
},
{
"role": "myRole",
"tenants": [
"exampleTenant"
],
"effect": "ALLOW"
}
],
"tenants": []
},
{
"name": "My Custom Policy 2",
"id": "custom-policy-2",
"members": [
"team:local:test"
],
"statements": [
{
"role": "auditor",
"tenants": [
"tenant1"
],
"effect": "ALLOW"
}
],
"tenants": []
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://apis.<domain>/iam/policies' \
-H 'Accept: application/json'