All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
ActivateApplication | POST /api/v1/apps/{appId}/lifecycle/activate | Activate an Application |
CreateApplication | POST /api/v1/apps | Create an Application |
DeactivateApplication | POST /api/v1/apps/{appId}/lifecycle/deactivate | Deactivate an Application |
DeleteApplication | DELETE /api/v1/apps/{appId} | Delete an Application |
GetApplication | GET /api/v1/apps/{appId} | Retrieve an Application |
ListApplications | GET /api/v1/apps | List all Applications |
ReplaceApplication | PUT /api/v1/apps/{appId} | Replace an Application |
void ActivateApplication (string appId)
Activate an Application
Activates an inactive application
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ActivateApplicationExample
{
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 ApplicationApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
try
{
// Activate an Application
apiInstance.ActivateApplication(appId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.ActivateApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID |
void (empty response body)
- 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]
Application CreateApplication (Application application, bool? activate = null, string oktaAccessGatewayAgent = null)
Create an Application
Creates a new application to your Okta organization
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class CreateApplicationExample
{
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 ApplicationApi(config);
var application = new Application(); // Application |
var activate = true; // bool? | Executes activation lifecycle operation when creating the app (optional) (default to true)
var oktaAccessGatewayAgent = "oktaAccessGatewayAgent_example"; // string | (optional)
try
{
// Create an Application
Application result = apiInstance.CreateApplication(application, activate, oktaAccessGatewayAgent);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.CreateApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
application | Application | ||
activate | bool? | Executes activation lifecycle operation when creating the app | [optional] [default to true] |
oktaAccessGatewayAgent | string | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeactivateApplication (string appId)
Deactivate an Application
Deactivates an active application
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeactivateApplicationExample
{
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 ApplicationApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
try
{
// Deactivate an Application
apiInstance.DeactivateApplication(appId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.DeactivateApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID |
void (empty response body)
- 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]
void DeleteApplication (string appId)
Delete an Application
Deletes an inactive application
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteApplicationExample
{
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 ApplicationApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
try
{
// Delete an Application
apiInstance.DeleteApplication(appId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.DeleteApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Application GetApplication (string appId, string expand = null)
Retrieve an Application
Retrieves an application from your Okta organization by id
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetApplicationExample
{
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 ApplicationApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
var expand = "expand_example"; // string | (optional)
try
{
// Retrieve an Application
Application result = apiInstance.GetApplication(appId, expand);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.GetApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID | |
expand | 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]
List<Application> ListApplications (string q = null, string after = null, int? limit = null, string filter = null, string expand = null, bool? includeNonDeleted = null)
List all Applications
Lists all applications with pagination. A subset of apps can be returned that match a supported filter expression or query.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListApplicationsExample
{
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 ApplicationApi(config);
var q = "q_example"; // string | (optional)
var after = "after_example"; // string | Specifies the pagination cursor for the next page of apps (optional)
var limit = -1; // int? | Specifies the number of results for a page (optional) (default to -1)
var filter = "filter_example"; // string | Filters apps by status, user.id, group.id or credentials.signing.kid expression (optional)
var expand = user/{userId}; // string | An optional parameter used for link expansion to embed more resources in the response. Only supports `expand=user/{userId}` and must be used with the `user.id eq \"{userId}\"` filter query for the same user. Returns the assigned [Application User](/openapi/okta-management/management/tag/ApplicationUsers/) in the `_embedded` property. (optional)
var includeNonDeleted = false; // bool? | (optional) (default to false)
try
{
// List all Applications
List<Application> result = apiInstance.ListApplications(q, after, limit, filter, expand, includeNonDeleted).ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.ListApplications: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
q | string | [optional] | |
after | string | Specifies the pagination cursor for the next page of apps | [optional] |
limit | int? | Specifies the number of results for a page | [optional] [default to -1] |
filter | string | Filters apps by status, user.id, group.id or credentials.signing.kid expression | [optional] |
expand | string | An optional parameter used for link expansion to embed more resources in the response. Only supports `expand=user/{userId}` and must be used with the `user.id eq "{userId}"` filter query for the same user. Returns the assigned Application User in the `_embedded` property. | [optional] |
includeNonDeleted | bool? | [optional] [default to false] |
- 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]
Application ReplaceApplication (string appId, Application application)
Replace an Application
Replaces an application
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceApplicationExample
{
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 ApplicationApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
var application = new Application(); // Application |
try
{
// Replace an Application
Application result = apiInstance.ReplaceApplication(appId, application);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.ReplaceApplication: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID | |
application | Application |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]