All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
GetApplicationUserSchema | GET /api/v1/meta/schemas/apps/{appId}/default | Retrieve the default Application User Schema for an Application |
GetGroupSchema | GET /api/v1/meta/schemas/group/default | Retrieve the default Group Schema |
GetLogStreamSchema | GET /api/v1/meta/schemas/logStream/{logStreamType} | Retrieve the Log Stream Schema for the schema type |
GetUserSchema | GET /api/v1/meta/schemas/user/{schemaId} | Retrieve a User Schema |
ListLogStreamSchemas | GET /api/v1/meta/schemas/logStream | List the Log Stream Schemas |
UpdateApplicationUserProfile | POST /api/v1/meta/schemas/apps/{appId}/default | Update the default Application User Schema for an Application |
UpdateGroupSchema | POST /api/v1/meta/schemas/group/default | Update the default Group Schema |
UpdateUserProfile | POST /api/v1/meta/schemas/user/{schemaId} | Update a User Schema |
UserSchema GetApplicationUserSchema (string appId)
Retrieve the default Application User Schema for an Application
Retrieves the Schema for an App User
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetApplicationUserSchemaExample
{
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 SchemaApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
try
{
// Retrieve the default Application User Schema for an Application
UserSchema result = apiInstance.GetApplicationUserSchema(appId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.GetApplicationUserSchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupSchema GetGroupSchema ()
Retrieve the default Group Schema
Retrieves the group schema
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetGroupSchemaExample
{
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 SchemaApi(config);
try
{
// Retrieve the default Group Schema
GroupSchema result = apiInstance.GetGroupSchema();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.GetGroupSchema: " + 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 | successful operation | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LogStreamSchema GetLogStreamSchema (LogStreamType logStreamType)
Retrieve the Log Stream Schema for the schema type
Retrieves the schema for a Log Stream type. The logStreamType
element in the URL specifies the Log Stream type, which is either aws_eventbridge
or splunk_cloud_logstreaming
. Use the aws_eventbridge
literal to retrieve the AWS EventBridge type schema, and use the splunk_cloud_logstreaming
literal retrieve the Splunk Cloud type schema.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetLogStreamSchemaExample
{
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 SchemaApi(config);
var logStreamType = (LogStreamType) "aws_eventbridge"; // LogStreamType |
try
{
// Retrieve the Log Stream Schema for the schema type
LogStreamSchema result = apiInstance.GetLogStreamSchema(logStreamType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.GetLogStreamSchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
logStreamType | LogStreamType |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserSchema GetUserSchema (string schemaId)
Retrieve a User Schema
Retrieves the schema for a Schema Id
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetUserSchemaExample
{
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 SchemaApi(config);
var schemaId = "schemaId_example"; // string |
try
{
// Retrieve a User Schema
UserSchema result = apiInstance.GetUserSchema(schemaId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.GetUserSchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
schemaId | string |
- 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<LogStreamSchema> ListLogStreamSchemas ()
List the Log Stream Schemas
Lists the schema for all log stream types visible for this org
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListLogStreamSchemasExample
{
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 SchemaApi(config);
try
{
// List the Log Stream Schemas
List<LogStreamSchema> result = apiInstance.ListLogStreamSchemas().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.ListLogStreamSchemas: " + 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 | successful operation | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserSchema UpdateApplicationUserProfile (string appId, UserSchema body = null)
Update the default Application User Schema for an Application
Partially updates on the User Profile properties of the Application User Schema
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateApplicationUserProfileExample
{
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 SchemaApi(config);
var appId = 0oafxqCAJWWGELFTYASJ; // string | Application ID
var body = new UserSchema(); // UserSchema | (optional)
try
{
// Update the default Application User Schema for an Application
UserSchema result = apiInstance.UpdateApplicationUserProfile(appId, body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.UpdateApplicationUserProfile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | Application ID | |
body | UserSchema | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
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]
GroupSchema UpdateGroupSchema (GroupSchema groupSchema = null)
Update the default Group Schema
Updates the default group schema. This updates, adds, or removes one or more custom Group Profile properties in the schema.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateGroupSchemaExample
{
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 SchemaApi(config);
var groupSchema = new GroupSchema(); // GroupSchema | (optional)
try
{
// Update the default Group Schema
GroupSchema result = apiInstance.UpdateGroupSchema(groupSchema);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.UpdateGroupSchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
groupSchema | GroupSchema | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserSchema UpdateUserProfile (string schemaId, UserSchema userSchema)
Update a User Schema
Partially updates on the User Profile properties of the user schema
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateUserProfileExample
{
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 SchemaApi(config);
var schemaId = "schemaId_example"; // string |
var userSchema = new UserSchema(); // UserSchema |
try
{
// Update a User Schema
UserSchema result = apiInstance.UpdateUserProfile(schemaId, userSchema);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SchemaApi.UpdateUserProfile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
schemaId | string | ||
userSchema | UserSchema |
- 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]