All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
getAllData | GET /v2/internal/opal_data/{org_id}/{proj_id}/{env_id} | Get All Data |
getDataForRole | GET /v2/internal/opal_data/{org_id}/{proj_id}/{env_id}/roles/{role_id} | Get Data For Role |
getDataForSetRule | GET /v2/internal/opal_data/{org_id}/{proj_id}/{env_id}/condition_set_rules/{user_set_id}/{resource_set_id} | Get Data For Set Rule |
getDataForUser | GET /v2/internal/opal_data/{org_id}/{proj_id}/{env_id}/users/{user_id} | Get Data For User |
FullData getAllData(orgId, projId, envId, internalUpdateCache)
Get All Data
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = OPALDataApi()
val orgId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the \"slug\").
val projId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val internalUpdateCache : kotlin.Boolean = true // kotlin.Boolean |
try {
val result : FullData = apiInstance.getAllData(orgId, projId, envId, internalUpdateCache)
println(result)
} catch (e: ClientException) {
println("4xx response calling OPALDataApi#getAllData")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling OPALDataApi#getAllData")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
orgId | java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug"). | |
projId | java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
internalUpdateCache | kotlin.Boolean | [optional] [default to false] |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
RoleData getDataForRole(orgId, projId, envId, roleId)
Get Data For Role
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = OPALDataApi()
val orgId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the \"slug\").
val projId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val roleId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : RoleData = apiInstance.getDataForRole(orgId, projId, envId, roleId)
println(result)
} catch (e: ClientException) {
println("4xx response calling OPALDataApi#getDataForRole")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling OPALDataApi#getDataForRole")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
orgId | java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug"). | |
projId | java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
roleId | java.util.UUID |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.String>> getDataForSetRule(orgId, projId, envId, userSetId, resourceSetId)
Get Data For Set Rule
return permission assignment data between user sets and resource sets (i.e: condition set rules data)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = OPALDataApi()
val orgId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the \"slug\").
val projId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val userSetId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val resourceSetId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.String>> = apiInstance.getDataForSetRule(orgId, projId, envId, userSetId, resourceSetId)
println(result)
} catch (e: ClientException) {
println("4xx response calling OPALDataApi#getDataForSetRule")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling OPALDataApi#getDataForSetRule")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
orgId | java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug"). | |
projId | java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
userSetId | java.util.UUID | ||
resourceSetId | java.util.UUID |
kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.String>>
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
UserData getDataForUser(orgId, projId, envId, userId)
Get Data For User
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = OPALDataApi()
val orgId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the \"slug\").
val projId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val userId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : UserData = apiInstance.getDataForUser(orgId, projId, envId, userId)
println(result)
} catch (e: ClientException) {
println("4xx response calling OPALDataApi#getDataForUser")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling OPALDataApi#getDataForUser")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
orgId | java.util.UUID | Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug"). | |
projId | java.util.UUID | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | java.util.UUID | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
userId | java.util.UUID |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json