All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
bulk_create_relationship_tuples | POST /v2/facts/{proj_id}/{env_id}/relationship_tuples/bulk | Bulk create relationship tuples(EAP) |
bulk_delete_relationship_tuples | DELETE /v2/facts/{proj_id}/{env_id}/relationship_tuples/bulk | Bulk Delete Relationship Tuples |
create_relationship_tuple | POST /v2/facts/{proj_id}/{env_id}/relationship_tuples | Create Relationship Tuple |
delete_relationship_tuple | DELETE /v2/facts/{proj_id}/{env_id}/relationship_tuples | Delete Relationship Tuple |
list_relationship_tuples | GET /v2/facts/{proj_id}/{env_id}/relationship_tuples | List Relationship Tuples |
serde_json::Value bulk_create_relationship_tuples(proj_id, env_id, relationship_tuple_create_bulk_operation) Bulk create relationship tuples(EAP)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
relationship_tuple_create_bulk_operation | RelationshipTupleCreateBulkOperation | [required] |
serde_json::Value
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serde_json::Value bulk_delete_relationship_tuples(proj_id, env_id, relationship_tuple_delete_bulk_operation) Bulk Delete Relationship Tuples
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
relationship_tuple_delete_bulk_operation | RelationshipTupleDeleteBulkOperation | [required] |
serde_json::Value
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::RelationshipTupleRead create_relationship_tuple(proj_id, env_id, relationship_tuple_create) Create Relationship Tuple
Create a relationship between two resource instances using a relation.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
relationship_tuple_create | RelationshipTupleCreate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_relationship_tuple(proj_id, env_id, relationship_tuple_delete) Delete Relationship Tuple
Delete a relationship between two resource instances.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
relationship_tuple_delete | RelationshipTupleDelete | [required] |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vecmodels::RelationshipTupleRead list_relationship_tuples(proj_id, env_id, detailed, page, per_page, tenant, subject, relation, object, object_type, subject_type) List Relationship Tuples
Lists the relationship tuples defined within an environment.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
detailed | Option<bool> | If true, will return the full subject and object resource instances. | [default to false] | |
page | Option<i32> | Page number of the results to fetch, starting at 1. | [default to 1] | |
per_page | Option<i32> | The number of results per page (max 100). | [default to 30] | |
tenant | Option<String> | The tenant key or id to filter by | ||
subject | Option<String> | The subject to filter by, accepts either the resource instance id or resource_type:resource_instance | ||
relation | Option<String> | The relation id or key to filter by | ||
object | Option<String> | The object to filter by, accepts either the resource instance id or resource_type:resource_instance | ||
object_type | Option<String> | The object type to filter by, accepts resource type id or key | ||
subject_type | Option<String> | The subject type to filter by, accepts resource type id or key |
Vecmodels::RelationshipTupleRead
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]