Package com.okta.sdk.resource.api
Class ApplicationApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class ApplicationApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateApplication
(String appId) Activate an Application Activates an inactive applicationvoid
activateApplication
(String appId, Map<String, String> additionalHeaders) Activate an Application Activates an inactive applicationcreateApplication
(Application application, Boolean activate, String oktaAccessGatewayAgent) Create an Application Creates an app instance in your Okta org.createApplication
(Application application, Boolean activate, String oktaAccessGatewayAgent, Map<String, String> additionalHeaders) Create an Application Creates an app instance in your Okta org.void
deactivateApplication
(String appId) Deactivate an Application Deactivates an active applicationvoid
deactivateApplication
(String appId, Map<String, String> additionalHeaders) Deactivate an Application Deactivates an active applicationvoid
deleteApplication
(String appId) Delete an Application Deletes an inactive applicationvoid
deleteApplication
(String appId, Map<String, String> additionalHeaders) Delete an Application Deletes an inactive applicationgetApplication
(String appId, String expand) Retrieve an Application Retrieves an application from your Okta organization by `id`Retrieve an Application Retrieves an application from your Okta organization by `id`protected static com.fasterxml.jackson.databind.ObjectMapper
listApplications
(String q, String after, Boolean useOptimization, Integer limit, String filter, String expand, Boolean includeNonDeleted) List all Applications Lists all apps in the org with pagination.listApplications
(String q, String after, Boolean useOptimization, Integer limit, String filter, String expand, Boolean includeNonDeleted, Map<String, String> additionalHeaders) List all Applications Lists all apps in the org with pagination.replaceApplication
(String appId, Application application) Replace an Application Replaces properties for an application > **Notes:** > * All required properties must be specified in the request body > * You can't modify system-assigned properties, such as `id`, `name`, `status`, `created`, and `lastUpdated`.replaceApplication
(String appId, Application application, Map<String, String> additionalHeaders) Replace an Application Replaces properties for an application > **Notes:** > * All required properties must be specified in the request body > * You can't modify system-assigned properties, such as `id`, `name`, `status`, `created`, and `lastUpdated`.void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationApi
public ApplicationApi() -
ApplicationApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateApplication
Activate an Application Activates an inactive application- Parameters:
appId
- Application ID (required)- Throws:
ApiException
- if fails to make API call
-
activateApplication
public void activateApplication(String appId, Map<String, String> additionalHeaders) throws ApiExceptionActivate an Application Activates an inactive application- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
createApplication
public Application createApplication(Application application, Boolean activate, String oktaAccessGatewayAgent) throws ApiException Create an Application Creates an app instance in your Okta org. You can either create an OIN app instance or a custom app instance: * OIN app instances have prescribed `name` (key app definition) and `signOnMode` options. See the [OIN schemas](/openapi/okta-management/management/tag/Application/#tag/Application/schema/GoogleApplication) for the request body. * For custom app instances, select the [signOnMode](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=0/signOnMode&t=request) that pertains to your app and specify the required parameters in the request body.- Parameters:
application
- (required)activate
- Executes activation lifecycle operation when creating the app (optional, default to true)oktaAccessGatewayAgent
- (optional)- Returns:
- Application
- Throws:
ApiException
- if fails to make API call
-
createApplication
public Application createApplication(Application application, Boolean activate, String oktaAccessGatewayAgent, Map<String, String> additionalHeaders) throws ApiExceptionCreate an Application Creates an app instance in your Okta org. You can either create an OIN app instance or a custom app instance: * OIN app instances have prescribed `name` (key app definition) and `signOnMode` options. See the [OIN schemas](/openapi/okta-management/management/tag/Application/#tag/Application/schema/GoogleApplication) for the request body. * For custom app instances, select the [signOnMode](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=0/signOnMode&t=request) that pertains to your app and specify the required parameters in the request body.- Parameters:
application
- (required)activate
- Executes activation lifecycle operation when creating the app (optional, default to true)oktaAccessGatewayAgent
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- Application
- Throws:
ApiException
- if fails to make API call
-
deactivateApplication
Deactivate an Application Deactivates an active application- Parameters:
appId
- Application ID (required)- Throws:
ApiException
- if fails to make API call
-
deactivateApplication
public void deactivateApplication(String appId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate an Application Deactivates an active application- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteApplication
Delete an Application Deletes an inactive application- Parameters:
appId
- Application ID (required)- Throws:
ApiException
- if fails to make API call
-
deleteApplication
public void deleteApplication(String appId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an Application Deletes an inactive application- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getApplication
Retrieve an Application Retrieves an application from your Okta organization by `id`- Parameters:
appId
- Application ID (required)expand
- An optional query parameter to return the specified [Application User](/openapi/okta-management/management/tag/ApplicationUsers/) in the `_embedded` property. Valid value: `expand=user/{userId}` (optional)- Returns:
- Application
- Throws:
ApiException
- if fails to make API call
-
getApplication
public Application getApplication(String appId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an Application Retrieves an application from your Okta organization by `id`- Parameters:
appId
- Application ID (required)expand
- An optional query parameter to return the specified [Application User](/openapi/okta-management/management/tag/ApplicationUsers/) in the `_embedded` property. Valid value: `expand=user/{userId}` (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- Application
- Throws:
ApiException
- if fails to make API call
-
listApplications
public List<Application> listApplications(String q, String after, Boolean useOptimization, Integer limit, String filter, String expand, Boolean includeNonDeleted) throws ApiException List all Applications Lists all apps in the org with pagination. A subset of apps can be returned that match a supported filter expression or query. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the header contains a `next` link. Treat the link as an opaque value (follow it, don't parse it).- Parameters:
q
- Searches for apps with `name` or `label` properties that starts with the `q` value using the `startsWith` operation (optional)after
- Specifies the [pagination](/#pagination) cursor for the next page of results. Treat this as an opaque value obtained through the `next` link relationship. (optional)useOptimization
- Specifies whether to use query optimization. If you specify `useOptimization=true` in the request query, the response contains a subset of app instance properties. (optional, default to false)limit
- Specifies the number of results per page (optional, default to -1)filter
- Filters apps by `status`, `user.id`, `group.id`, `credentials.signing.kid` or `name` expression that supports the `eq` operator (optional)expand
- 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)includeNonDeleted
- Specifies whether to include non-active, but not deleted apps in the results (optional, default to false)- Returns:
- List<Application>
- Throws:
ApiException
- if fails to make API call
-
listApplications
public List<Application> listApplications(String q, String after, Boolean useOptimization, Integer limit, String filter, String expand, Boolean includeNonDeleted, Map<String, String> additionalHeaders) throws ApiExceptionList all Applications Lists all apps in the org with pagination. A subset of apps can be returned that match a supported filter expression or query. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the header contains a `next` link. Treat the link as an opaque value (follow it, don't parse it).- Parameters:
q
- Searches for apps with `name` or `label` properties that starts with the `q` value using the `startsWith` operation (optional)after
- Specifies the [pagination](/#pagination) cursor for the next page of results. Treat this as an opaque value obtained through the `next` link relationship. (optional)useOptimization
- Specifies whether to use query optimization. If you specify `useOptimization=true` in the request query, the response contains a subset of app instance properties. (optional, default to false)limit
- Specifies the number of results per page (optional, default to -1)filter
- Filters apps by `status`, `user.id`, `group.id`, `credentials.signing.kid` or `name` expression that supports the `eq` operator (optional)expand
- 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)includeNonDeleted
- Specifies whether to include non-active, but not deleted apps in the results (optional, default to false)additionalHeaders
- additionalHeaders for this call- Returns:
- List<Application>
- Throws:
ApiException
- if fails to make API call
-
replaceApplication
Replace an Application Replaces properties for an application > **Notes:** > * All required properties must be specified in the request body > * You can't modify system-assigned properties, such as `id`, `name`, `status`, `created`, and `lastUpdated`. The values for these properties in the PUT request body are ignored.- Parameters:
appId
- Application ID (required)application
- (required)- Returns:
- Application
- Throws:
ApiException
- if fails to make API call
-
replaceApplication
public Application replaceApplication(String appId, Application application, Map<String, String> additionalHeaders) throws ApiExceptionReplace an Application Replaces properties for an application > **Notes:** > * All required properties must be specified in the request body > * You can't modify system-assigned properties, such as `id`, `name`, `status`, `created`, and `lastUpdated`. The values for these properties in the PUT request body are ignored.- Parameters:
appId
- Application ID (required)application
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Application
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-