Creates a local team
POSThttps://apis.<domain>/iam/teams
Creates a local team that is used to group local users as members of IAM policies.
Authorization Action:
iam:teams:create
Request
- application/json
Body
required
id stringrequired
name stringrequired
tenants string[]
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
team object
{
"team": {
"id": "test-id",
"name": "My Test Team",
"tenants": [
"tenant1",
"tenant2"
]
}
}
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 POST 'https://apis.<domain>/iam/teams' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "my-team-id",
"name": "My Test Team",
"tenants": [
"tenant1",
"tenant2"
]
}'