ListIntegrationRoles
/api/v1/integrations/{integration}/rolesExample request
Section titled “Example request”curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://us.oblique.security/api/v1/integrations/{integration}/roles"Set OBLIQUE_API_KEY to your API key.
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/integrations/{integration}/roles"Set OBLIQUE_API_KEY to your API key.
Path parameters
Section titled “Path parameters”parentstringrequiredThe parent integration of the format
integrations/{integration}.
Query parameters
Section titled “Query parameters”pageSizeinteger (int32)pageTokenstringshowDeletedbooleanIf true, the response will include deleted roles.
Response
Section titled “Response”200ListIntegrationRolesResponseintegrationRolesIntegrationRole[]namestringAssigned by Oblique.
displayNamestringread-onlyHuman-readable name of the role, as the integration reports it.
descriptionstringread-onlyHuman-readable description of the role, as the integration reports it. Not set if the integration doesn’t describe its roles.
createTimestring (date-time)read-onlyCreate and update timestamps.
updateTimestring (date-time)read-onlydeleteTimestring (date-time)read-onlyThe time when the role was deleted.
idstringread-onlyThe identifier the integration uses for this role. Unique within the integration for a set of resource kinds, but may overlap between integrations or even kinds of resources within the same integration. For example, a “GitHub Team ‘admin’” may have the same ID as a “GitHub Repo ‘admin’”.
resourceKindsstring[]read-onlyThe kinds of resources this role applies to. For example, “cloudflare_user_group” or “cloudflare_resource_group”.
This corresponds to the resource metadata oneof, as well as the top level “kind” string, which can be matched against these values.
accountCountinteger (int32)read-onlyThe number of accounts that hold this role across the integration’s resources. An account granted the role on several resources is counted once, and an account matching no directory user is counted too.
nextPageTokenstring
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 | Malformed request |
401 | Missing or invalid API key |
403 | Not allowed for this API key |
404 | Not found |
429 | Too many requests |
500 | Internal server error |