All URIs are relative to https://api.logsentinel.com
Method | HTTP request | Description |
---|---|---|
CancelOrganization | DELETE /api/partner/organizations/cancel | Cancels organization by Id and deletes all users |
FetchAllOrganizations | GET /api/partner/organizations | Fetch all organizations |
GetApiCredentials | GET /api/partner/organizations/apiCredentials | API credentials per organization from organizations owned by partner |
GetOrganizationByUserEmail | GET /api/partner/organizationByUserEmail | Get the organization for the supplied email |
GetUserIdByEmail | GET /api/partner/userIdByEmail | Get user id by user email |
RegisterUser | POST /api/partner/user/register | Register a user |
void CancelOrganization (Guid? organizationId)
Cancels organization by Id and deletes all users
using System;
using System.Diagnostics;
using LogSentinel.Client.Api;
using LogSentinel.Client.Client;
using LogSentinel.Client.Model;
namespace Example
{
public class CancelOrganizationExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PartnersApi();
var organizationId = new Guid?(); // Guid? | organizationId
try
{
// Cancels organization by Id and deletes all users
apiInstance.CancelOrganization(organizationId);
}
catch (Exception e)
{
Debug.Print("Exception when calling PartnersApi.CancelOrganization: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
organizationId | Guid? | organizationId |
void (empty response body)
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Guid?> FetchAllOrganizations ()
Fetch all organizations
using System;
using System.Diagnostics;
using LogSentinel.Client.Api;
using LogSentinel.Client.Client;
using LogSentinel.Client.Model;
namespace Example
{
public class FetchAllOrganizationsExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PartnersApi();
try
{
// Fetch all organizations
List<Guid?> result = apiInstance.FetchAllOrganizations();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PartnersApi.FetchAllOrganizations: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
List<Guid?>
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dictionary<string, List> GetApiCredentials ()
API credentials per organization from organizations owned by partner
using System;
using System.Diagnostics;
using LogSentinel.Client.Api;
using LogSentinel.Client.Client;
using LogSentinel.Client.Model;
namespace Example
{
public class GetApiCredentialsExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PartnersApi();
try
{
// API credentials per organization from organizations owned by partner
Dictionary<string, List<APICredentialsOrganization>> result = apiInstance.GetApiCredentials();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PartnersApi.GetApiCredentials: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
Dictionary<string, List>
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationDto GetOrganizationByUserEmail (string email)
Get the organization for the supplied email
using System;
using System.Diagnostics;
using LogSentinel.Client.Api;
using LogSentinel.Client.Client;
using LogSentinel.Client.Model;
namespace Example
{
public class GetOrganizationByUserEmailExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PartnersApi();
var email = email_example; // string | email
try
{
// Get the organization for the supplied email
OrganizationDto result = apiInstance.GetOrganizationByUserEmail(email);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PartnersApi.GetOrganizationByUserEmail: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
string |
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Guid? GetUserIdByEmail (string email)
Get user id by user email
using System;
using System.Diagnostics;
using LogSentinel.Client.Api;
using LogSentinel.Client.Client;
using LogSentinel.Client.Model;
namespace Example
{
public class GetUserIdByEmailExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PartnersApi();
var email = email_example; // string | email
try
{
// Get user id by user email
Guid? result = apiInstance.GetUserIdByEmail(email);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PartnersApi.GetUserIdByEmail: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
string |
Guid?
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegistrationResponse RegisterUser (UserRegistrationRequest request)
Register a user
using System;
using System.Diagnostics;
using LogSentinel.Client.Api;
using LogSentinel.Client.Client;
using LogSentinel.Client.Model;
namespace Example
{
public class RegisterUserExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new PartnersApi();
var request = new UserRegistrationRequest(); // UserRegistrationRequest | request
try
{
// Register a user
RegistrationResponse result = apiInstance.RegisterUser(request);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PartnersApi.RegisterUser: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
request | UserRegistrationRequest | request |
- Content-Type: application/json, /
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]