All URIs are relative to https://localhost/api/v5
| Method | HTTP request | Description |
|---|---|---|
| GetCollection | GET /permission/collection/{id} | Get collection |
| GetSubject | GET /permission/collection/{id}/subject/{subId} | Get subject |
| ListCollections | GET /permission/collection | List collections |
| ListSubjects | GET /permission/collection/{id}/subject | List subjects |
SubjectCollection GetCollection (string id, bool? details = null, string accept = null, bool? pretty = null)
Get collection
Gets a specific subject collection Required permissions: - permission.collection.one
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetCollectionExample
{
public void main()
{
// Configure API key authorization: ApiKeyHeader
Configuration.Default.AddApiKey("X-WebAPI-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-WebAPI-Key", "Bearer");
// Configure API key authorization: ApiKeyQuery
Configuration.Default.AddApiKey("key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("key", "Bearer");
var apiInstance = new PermissionApi();
var id = id_example; // string |
var details = true; // bool? | Add to include additional details, omit or false otherwise (optional)
var accept = accept_example; // string | Override the 'Accept' request header (useful for debugging your requests) (optional)
var pretty = true; // bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try
{
// Get collection
SubjectCollection result = apiInstance.GetCollection(id, details, accept, pretty);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PermissionApi.GetCollection: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| details | bool? | Add to include additional details, omit or false otherwise | [optional] |
| accept | string | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
| pretty | bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Subject GetSubject (string id, string subId, bool? details = null, string accept = null, bool? pretty = null)
Get subject
Gets one specific subject belonging to a certain collection Required permissions: - permission.collection.subject.one
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetSubjectExample
{
public void main()
{
// Configure API key authorization: ApiKeyHeader
Configuration.Default.AddApiKey("X-WebAPI-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-WebAPI-Key", "Bearer");
// Configure API key authorization: ApiKeyQuery
Configuration.Default.AddApiKey("key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("key", "Bearer");
var apiInstance = new PermissionApi();
var id = id_example; // string |
var subId = subId_example; // string |
var details = true; // bool? | Add to include additional details, omit or false otherwise (optional)
var accept = accept_example; // string | Override the 'Accept' request header (useful for debugging your requests) (optional)
var pretty = true; // bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try
{
// Get subject
Subject result = apiInstance.GetSubject(id, subId, details, accept, pretty);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PermissionApi.GetSubject: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| subId | string | ||
| details | bool? | Add to include additional details, omit or false otherwise | [optional] |
| accept | string | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
| pretty | bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListCollections (bool? details = null, string accept = null, bool? pretty = null)
List collections
Gets a list of all the subject collections, for example groups, users, etc. Required permissions: - permission.collection.list
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ListCollectionsExample
{
public void main()
{
// Configure API key authorization: ApiKeyHeader
Configuration.Default.AddApiKey("X-WebAPI-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-WebAPI-Key", "Bearer");
// Configure API key authorization: ApiKeyQuery
Configuration.Default.AddApiKey("key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("key", "Bearer");
var apiInstance = new PermissionApi();
var details = true; // bool? | Add to include additional details, omit or false otherwise (optional)
var accept = accept_example; // string | Override the 'Accept' request header (useful for debugging your requests) (optional)
var pretty = true; // bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try
{
// List collections
List<SubjectCollection> result = apiInstance.ListCollections(details, accept, pretty);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PermissionApi.ListCollections: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| details | bool? | Add to include additional details, omit or false otherwise | [optional] |
| accept | string | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
| pretty | bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List ListSubjects (string id, bool? details = null, string accept = null, bool? pretty = null)
List subjects
List all subjects belonging to a certain collection Required permissions: - permission.collection.subject.list
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ListSubjectsExample
{
public void main()
{
// Configure API key authorization: ApiKeyHeader
Configuration.Default.AddApiKey("X-WebAPI-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("X-WebAPI-Key", "Bearer");
// Configure API key authorization: ApiKeyQuery
Configuration.Default.AddApiKey("key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("key", "Bearer");
var apiInstance = new PermissionApi();
var id = id_example; // string |
var details = true; // bool? | Add to include additional details, omit or false otherwise (optional)
var accept = accept_example; // string | Override the 'Accept' request header (useful for debugging your requests) (optional)
var pretty = true; // bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try
{
// List subjects
List<Subject> result = apiInstance.ListSubjects(id, details, accept, pretty);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PermissionApi.ListSubjects: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| details | bool? | Add to include additional details, omit or false otherwise | [optional] |
| accept | string | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
| pretty | bool? | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]