All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteActivation | DELETE /licenses/pools/{pool_id}/activations/{activation_id} | Delete the activation |
GetAvailablePools | GET /licenses/pools | Get license pools available to authenticated user |
GetLicenseActivations | GET /licenses/pools/{pool_id}/activations | Get the activations for the license |
GetPoolLicense | GET /licenses/pools/{pool_id}/license | Get the license associated with a pool |
GrantAccessToPool | PATCH /licenses/pools/{pool_id}/permissions | Grant access to the license pool |
RegenerateLicensePool | POST /licenses/pools/{pool_id}/regenerate | Regenerate the license associated with the pool |
RevokeAccessToPool | DELETE /licenses/pools/{pool_id}/permissions | Revoke access to the license pool |
UpdateLicensePool | PUT /licenses/pools/{pool_id} | Update the license pool |
void DeleteActivation (string poolId, string activationId)
Delete the activation
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class DeleteActivationExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = poolId_example; // string |
var activationId = activationId_example; // string |
try
{
// Delete the activation
apiInstance.DeleteActivation(poolId, activationId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.DeleteActivation: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | string | ||
activationId | string |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LicensePoolList GetAvailablePools (List owner = null)
Get license pools available to authenticated user
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class GetAvailablePoolsExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var owner = new List<string>(); // List<string> | Owner of the project (optional)
try
{
// Get license pools available to authenticated user
LicensePoolList result = apiInstance.GetAvailablePools(owner);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.GetAvailablePools: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
owner | List<string> | Owner of the project | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ActivationList GetLicenseActivations (string poolId)
Get the activations for the license
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class GetLicenseActivationsExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = poolId_example; // string |
try
{
// Get the activations for the license
ActivationList result = apiInstance.GetLicenseActivations(poolId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.GetLicenseActivations: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | string |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LicensePublic GetPoolLicense (Guid poolId)
Get the license associated with a pool
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class GetPoolLicenseExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = new Guid(); // Guid |
try
{
// Get the license associated with a pool
LicensePublic result = apiInstance.GetPoolLicense(poolId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.GetPoolLicense: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | Guid |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LicensePoolPublic GrantAccessToPool (Guid poolId, LicensePoolAccessPolicyList licensePoolAccessPolicyList)
Grant access to the license pool
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class GrantAccessToPoolExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = new Guid(); // Guid |
var licensePoolAccessPolicyList = new LicensePoolAccessPolicyList(); // LicensePoolAccessPolicyList |
try
{
// Grant access to the license pool
LicensePoolPublic result = apiInstance.GrantAccessToPool(poolId, licensePoolAccessPolicyList);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.GrantAccessToPool: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | Guid | ||
licensePoolAccessPolicyList | LicensePoolAccessPolicyList |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnyType RegenerateLicensePool (Guid poolId)
Regenerate the license associated with the pool
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class RegenerateLicensePoolExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = new Guid(); // Guid |
try
{
// Regenerate the license associated with the pool
AnyType result = apiInstance.RegenerateLicensePool(poolId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.RegenerateLicensePool: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | Guid |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LicensePoolPublic RevokeAccessToPool (Guid poolId, LicensePoolPolicySubjectList licensePoolPolicySubjectList)
Revoke access to the license pool
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class RevokeAccessToPoolExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = new Guid(); // Guid |
var licensePoolPolicySubjectList = new LicensePoolPolicySubjectList(); // LicensePoolPolicySubjectList |
try
{
// Revoke access to the license pool
LicensePoolPublic result = apiInstance.RevokeAccessToPool(poolId, licensePoolPolicySubjectList);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.RevokeAccessToPool: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | Guid | ||
licensePoolPolicySubjectList | LicensePoolPolicySubjectList |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnyType UpdateLicensePool (Guid poolId, LicensePoolUpdate licensePoolUpdate)
Update the license pool
using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;
namespace Example
{
public class UpdateLicensePoolExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost";
// Configure API key authorization: APIKeyAuth
Configuration.Default.AddApiKey("x-pollination-token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("x-pollination-token", "Bearer");
// Configure HTTP bearer authorization: JWTAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new LicensesApi(Configuration.Default);
var poolId = new Guid(); // Guid |
var licensePoolUpdate = new LicensePoolUpdate(); // LicensePoolUpdate |
try
{
// Update the license pool
AnyType result = apiInstance.UpdateLicensePool(poolId, licensePoolUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LicensesApi.UpdateLicensePool: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
poolId | Guid | ||
licensePoolUpdate | LicensePoolUpdate |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]