Create role
documentedCreate a new role.
POST /api/v2/rolesRolesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.datadoghq.com/api/v2/roles" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: {{DATADOGHQ_API_KEY}}" \
-H "DD-APPLICATION-KEY: {{DATADOGHQ_APP_KEY}}" \
-d '{"data": {"type": "roles", "attributes": {"name": "{{$name}}"}, "relationships": {"permissions": {"data": [{"id": "{{$permission_id}}", "type": "permissions"}]}}}}'