All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
GetFeature | GET /api/v1/features/{featureId} | Retrieve a Feature |
ListFeatureDependencies | GET /api/v1/features/{featureId}/dependencies | List all Dependencies |
ListFeatureDependents | GET /api/v1/features/{featureId}/dependents | List all Dependents |
ListFeatures | GET /api/v1/features | List all Features |
UpdateFeatureLifecycle | POST /api/v1/features/{featureId}/{lifecycle} | Update a Feature Lifecycle |
Feature GetFeature (string featureId)
Retrieve a Feature
Retrieves a feature
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetFeatureExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FeatureApi(config);
var featureId = R5HjqNn1pEqWGy48E9jg; // string | `id` of the Feature
try
{
// Retrieve a Feature
Feature result = apiInstance.GetFeature(featureId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FeatureApi.GetFeature: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
featureId | string | `id` of the Feature |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Feature> ListFeatureDependencies (string featureId)
List all Dependencies
Lists all dependencies
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListFeatureDependenciesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FeatureApi(config);
var featureId = R5HjqNn1pEqWGy48E9jg; // string | `id` of the Feature
try
{
// List all Dependencies
List<Feature> result = apiInstance.ListFeatureDependencies(featureId).ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FeatureApi.ListFeatureDependencies: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
featureId | string | `id` of the Feature |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Feature> ListFeatureDependents (string featureId)
List all Dependents
Lists all dependents
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListFeatureDependentsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FeatureApi(config);
var featureId = R5HjqNn1pEqWGy48E9jg; // string | `id` of the Feature
try
{
// List all Dependents
List<Feature> result = apiInstance.ListFeatureDependents(featureId).ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FeatureApi.ListFeatureDependents: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
featureId | string | `id` of the Feature |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Feature> ListFeatures ()
List all Features
Lists all features
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListFeaturesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FeatureApi(config);
try
{
// List all Features
List<Feature> result = apiInstance.ListFeatures().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FeatureApi.ListFeatures: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Feature UpdateFeatureLifecycle (string featureId, FeatureLifecycle lifecycle, string mode = null)
Update a Feature Lifecycle
Updates a feature lifecycle
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateFeatureLifecycleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FeatureApi(config);
var featureId = R5HjqNn1pEqWGy48E9jg; // string | `id` of the Feature
var lifecycle = (FeatureLifecycle) "disable"; // FeatureLifecycle | Whether to `enable` or `disable` the feature
var mode = "mode_example"; // string | (optional)
try
{
// Update a Feature Lifecycle
Feature result = apiInstance.UpdateFeatureLifecycle(featureId, lifecycle, mode);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FeatureApi.UpdateFeatureLifecycle: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
featureId | string | `id` of the Feature | |
lifecycle | FeatureLifecycle | Whether to `enable` or `disable` the feature | |
mode | string | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]