List all trust relationships configured for a specific IAM role on Vultr. View which users, groups, organizations, or OIDC issuers can assume the role.
Listing role trusts for a specific role allows you to see all trust relationships configured for that role, including which users, groups, or OIDC issuers can assume it and under what conditions.
This guide explains how to list role trusts for a specific role using the Vultr API.
Send a GET request to the List Roles endpoint to retrieve all roles in your organization.
$ curl "https://api.vultr.com/v2/roles" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the id of the role for which you want to list trusts.
Send a GET request to the List Role Trusts by Role endpoint to retrieve all trusts for the role. Replace {role-id} with the id of the role.
$ curl "https://api.vultr.com/v2/role-trusts/by-role/{role-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
The response contains the requested resources.