The PDP (Policy decision point) container wraps Open Policy Agent (OPA) with a higher-level API intended for fine grained application-level authorization. The PDP automatically handles pulling policy updates in real-time from a centrally managed cloud-service (api.permit.io).
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 0.2.0
- Package version: 0.2.0
- Generator version: 7.5.0-SNAPSHOT
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Put the package under your project folder in a directory named openapi
and add the following to Cargo.toml
under [dependencies]
:
openapi = { path = "./openapi" }
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AuthorizationApiApi | get_user_permissions_user_permissions_post | POST /user-permissions | Get User Permissions |
AuthorizationApiApi | get_user_tenants_user_tenants_post | POST /user-tenants | Get User Tenants |
AuthorizationApiApi | is_allowed_all_tenants_allowed_all_tenants_post | POST /allowed/all-tenants | Is Allowed All Tenants |
AuthorizationApiApi | is_allowed_allowed_post | POST /allowed | Is Allowed |
AuthorizationApiApi | is_allowed_bulk_allowed_bulk_post | POST /allowed/bulk | Is Allowed Bulk |
AuthorizationApiApi | is_allowed_kong_kong_post | POST /kong | Is Allowed Kong |
AuthorizationApiApi | is_allowed_url_allowed_url_post | POST /allowed_url | Is Allowed Url |
CallbacksApi | get_callback_by_key_callbacks_key_delete | DELETE /callbacks/{key} | Get Callback By Key |
CallbacksApi | get_callback_by_key_callbacks_key_get | GET /callbacks/{key} | Get Callback By Key |
CallbacksApi | list_callbacks_callbacks_get | GET /callbacks | List Callbacks |
CallbacksApi | register_callback_callbacks_post | POST /callbacks | Register Callback |
CloudApiProxyApi | health_opa_healthcheck_healthchecks_opa_healthy_get | GET /healthchecks/opa/healthy | Proxy healthy healthcheck - OPAL_OPA_HEALTH_CHECK_POLICY_ENABLED must be set to True |
CloudApiProxyApi | ready_opa_healthcheck_healthchecks_opa_ready_get | GET /healthchecks/opa/ready | Proxy ready healthcheck - OPAL_OPA_HEALTH_CHECK_POLICY_ENABLED must be set to True |
CloudApiProxyApi | system_opa_healthcheck_healthchecks_opa_system_get | GET /healthchecks/opa/system | Proxy system data - OPAL_OPA_HEALTH_CHECK_POLICY_ENABLED must be set to True |
DataUpdaterApi | trigger_policy_data_update_data_updater_trigger_post | POST /data-updater/trigger | Trigger Policy Data Update |
LocalQueriesApi | get_role_by_id_local_roles_role_id_get | GET /local/roles/{role_id} | Get Role By Id |
LocalQueriesApi | get_role_by_name_local_roles_by_name_role_name_get | GET /local/roles/by-name/{role_name} | Get Role By Name |
LocalQueriesApi | get_user_local_users_user_id_get | GET /local/users/{user_id} | Get User |
LocalQueriesApi | get_user_permissions_local_users_user_id_permissions_get | GET /local/users/{user_id}/permissions | Get User Permissions |
LocalQueriesApi | get_user_roles_local_users_user_id_roles_get | GET /local/users/{user_id}/roles | Get User Roles |
LocalQueriesApi | get_user_tenants_local_users_user_id_tenants_get | GET /local/users/{user_id}/tenants | Get User Tenants |
LocalQueriesApi | list_roles_local_roles_get | GET /local/roles | List Roles |
LocalQueriesApi | list_users_local_users_get | GET /local/users | List Users |
PolicyStoreApi | get_policy_store_details_policy_store_config_get | GET /policy-store/config | Get Policy Store Details |
PolicyUpdaterApi | trigger_policy_update_policy_updater_trigger_post | POST /policy-updater/trigger | Trigger Policy Update |
- AllTenantsAuthorizationResult
- AuthorizationQuery
- AuthorizationQueryV1
- AuthorizationResult
- BulkAuthorizationResult
- CallbackEntry
- HttpFetcherConfig
- HttpMethods
- HttpValidationError
- KongAuthorizationInput
- KongAuthorizationInputConsumer
- KongAuthorizationInputRequest
- KongAuthorizationInputRequestHttp
- KongAuthorizationInputRoute
- KongAuthorizationInputRouteService
- KongAuthorizationInputService
- KongAuthorizationQuery
- KongAuthorizationResult
- Message
- PolicyStoreDetails
- PolicyStoreTypes
- Query
- Resource
- ResourceDetails
- ResourceV1
- SyncedRole
- SyncedUser
- TenantDetails
- UrlAuthorizationQuery
- User
- UserPermissionsQuery
- UserPermissionsResult
- UserTenantsQuery
- ValidationError
- ValidationErrorLocInner
To get access to the crate's generated documentation, use:
cargo doc --open