public class RestAPIAdminImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
ApiClient |
apiAdminClient |
ApplicationPolicyCollectionApi |
applicationPolicyCollectionApi |
static String |
appName |
static String |
appOwner |
static String |
callBackURL |
static String |
grantType |
static String |
password |
String |
tenantDomain |
static String |
tokenScope |
static String |
username |
WorkflowCollectionApi |
workflowCollectionApi |
WorkflowsIndividualApi |
workflowsIndividualApi |
| Constructor and Description |
|---|
RestAPIAdminImpl(String username,
String password,
String tenantDomain,
String adminURl) |
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<AdvancedThrottlePolicyDTO> |
addAdvancedThrottlingPolicy(AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO)
This method is used to create an advanced throttling policy.
|
ApiResponse<APICategoryDTO> |
addApiCategory(APICategoryDTO apiCategoryDTO)
This method is used to add an API category.
|
ApiResponse<ApplicationThrottlePolicyDTO> |
addApplicationThrottlingPolicy(ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO)
This method is used to create an application throttling policy.
|
ApiResponse<CustomRuleDTO> |
addCustomThrottlingPolicy(CustomRuleDTO customRuleDTO)
This method is used to create an custom throttling policy.
|
ApiResponse<BlockingConditionDTO> |
addDenyThrottlingPolicy(BlockingConditionDTO denyPolicyDTO)
Creates an deny throttling policy.
|
ApiResponse<EnvironmentDTO> |
addEnvironment(EnvironmentDTO environmentDTO)
This method is used to add an environment.
|
ApiResponse<KeyManagerDTO> |
addKeyManager(KeyManagerDTO keyManagerDTO) |
ApiResponse<LabelDTO> |
addLabel(LabelDTO labelDTO)
This method is used to add a label.
|
ApiResponse<SubscriptionThrottlePolicyDTO> |
addSubscriptionThrottlingPolicy(SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO)
This method is used to create a subscription throttling policy.
|
ApiResponse<Void> |
changeApplicationOwner(String newOwner,
String applicationId)
This method is used to change the owner of an application.
|
ApiResponse<Void> |
deleteAdvancedThrottlingPolicy(String policyId)
This method is used to delete an advanced throttling policy.
|
ApiResponse<Void> |
deleteApiCategory(String uuid)
This method is used to delete an API category.
|
ApiResponse<Void> |
deleteApplicationThrottlingPolicy(String policyId)
This method is used to delete an application throttling policy.
|
ApiResponse<Void> |
deleteCustomThrottlingPolicy(String policyId)
This method is used to delete a custom throttling policy.
|
ApiResponse<Void> |
deleteDenyThrottlingPolicy(String policyId)
Deletes a deny throttling policy.
|
ApiResponse<Void> |
deleteEnvironment(String environmentId)
This method is used to delete an environment.
|
void |
deleteKeyManager(String uuid) |
ApiResponse<Void> |
deleteLabel(String labelId)
This method is used to delete a label.
|
ApiResponse<Void> |
deleteSubscriptionThrottlingPolicy(String policyId)
This method is used to delete a subscription throttling policy.
|
ApiResponse<AdvancedThrottlePolicyDTO> |
getAdvancedThrottlingPolicy(String policyId)
This method is used to retrieve an advanced throttling policy.
|
ApiResponse<APICategoryListDTO> |
getApiCategories()
This method is used to retrieve all API categories.
|
ApiResponse<ApplicationListDTO> |
getApplications(String user,
Integer limit,
Integer offset,
String appTenantDomain)
This method is used to retrieve applications.
|
ApiResponse<ApplicationThrottlePolicyDTO> |
getApplicationThrottlingPolicy(String policyId)
This method is used to retrieve an application throttling policy.
|
ApiResponse<CustomRuleDTO> |
getCustomThrottlingPolicy(String policyId)
This method is used to retrieve a custom throttling policy.
|
ApiResponse<BlockingConditionDTO> |
getDenyThrottlingPolicy(String policyId)
Retrieves a deny throttling policy.
|
ApiResponse<EnvironmentListDTO> |
getEnvironments()
This method is used to retrieve all environments.
|
KeyManagerDTO |
getKeyManager(String uuid) |
KeyManagerListDTO |
getKeyManagers() |
ApiResponse<LabelListDTO> |
getLabels()
This method is used to retrieve all labels.
|
SettingsDTO |
getSettings() |
ApiResponse<SubscriptionThrottlePolicyDTO> |
getSubscriptionThrottlingPolicy(String policyId)
This method is used to retrieve a subscription throttling policy.
|
HttpResponse |
getWorkflowByExternalWorkflowReference(String externalWorkflowRef) |
HttpResponse |
getWorkflows(String workflowType) |
ApiResponse<AdvancedThrottlePolicyDTO> |
updateAdvancedThrottlingPolicy(String policyId,
AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO)
This method is used to update an advanced throttling policy.
|
ApiResponse<APICategoryDTO> |
updateApiCategory(String uuid,
APICategoryDTO apiCategoryDTO)
This method is used to update an API category
|
ApiResponse<ApplicationThrottlePolicyDTO> |
updateApplicationThrottlingPolicy(String policyId,
ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO)
This method is used to update an application throttling policy.
|
ApiResponse<CustomRuleDTO> |
updateCustomThrottlingPolicy(String policyId,
CustomRuleDTO customRuleDTO)
This method is used to update a custom throttling policy.
|
ApiResponse<EnvironmentDTO> |
updateEnvironment(String environmentId,
EnvironmentDTO environmentDTO)
This method is used to update an environment.
|
KeyManagerDTO |
updateKeyManager(String uuid,
KeyManagerDTO keyManagerDTO) |
ApiResponse<LabelDTO> |
updateLabel(String labelId,
LabelDTO labelDTO)
This method is used to update a label.
|
ApiResponse<SubscriptionThrottlePolicyDTO> |
updateSubscriptionThrottlingPolicy(String policyId,
SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO)
This method is used to update a subscription throttling policy.
|
HttpResponse |
updateWorkflowStatus(String workflowReferenceId) |
public ApiClient apiAdminClient
public WorkflowCollectionApi workflowCollectionApi
public WorkflowsIndividualApi workflowsIndividualApi
public ApplicationPolicyCollectionApi applicationPolicyCollectionApi
public static final String appName
public static final String callBackURL
public static final String tokenScope
public static final String appOwner
public static final String grantType
public static final String username
public static final String password
public String tenantDomain
public ApiResponse<APICategoryDTO> addApiCategory(APICategoryDTO apiCategoryDTO) throws ApiException
apiCategoryDTO - API category DTO to be addedApiException - Throws if an error occurred while adding the new API category.public ApiResponse<APICategoryDTO> updateApiCategory(String uuid, APICategoryDTO apiCategoryDTO) throws ApiException
uuid - UUID of the API category to be updatedapiCategoryDTO - API category DTO to be updatedApiException - Throws if an error occurred while updating the new API category.public ApiResponse<APICategoryListDTO> getApiCategories() throws ApiException
ApiException - Throws if an error occurred while retrieving all API categories.public ApiResponse<Void> deleteApiCategory(String uuid) throws ApiException
uuid - uuid of the API category to be deleted.ApiException - if an error occurs while deleting the API category.public ApiResponse<KeyManagerDTO> addKeyManager(KeyManagerDTO keyManagerDTO) throws ApiException
ApiExceptionpublic KeyManagerListDTO getKeyManagers() throws ApiException
ApiExceptionpublic KeyManagerDTO getKeyManager(String uuid) throws ApiException
ApiExceptionpublic KeyManagerDTO updateKeyManager(String uuid, KeyManagerDTO keyManagerDTO) throws ApiException
ApiExceptionpublic void deleteKeyManager(String uuid) throws ApiException
ApiExceptionpublic SettingsDTO getSettings() throws ApiException
ApiExceptionpublic ApiResponse<ApplicationThrottlePolicyDTO> addApplicationThrottlingPolicy(ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO) throws ApiException
applicationThrottlePolicyDTO - Application throttling policy DTO to be added.ApiException - if an error occurs while creating the application throttling policy.public ApiResponse<ApplicationThrottlePolicyDTO> getApplicationThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the application throttling policy.public ApiResponse<ApplicationThrottlePolicyDTO> updateApplicationThrottlingPolicy(String policyId, ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO) throws ApiException
policyId - Policy Id of the application throttling policy to be updated.applicationThrottlePolicyDTO - Application throttling policy DTO which contains the update content.ApiException - if an error occurs while updating the application throttling policy.public ApiResponse<Void> deleteApplicationThrottlingPolicy(String policyId) throws ApiException
policyId - Policy Id of the application throttling policy to be deleted.ApiException - if an error occurs while deleting the application throttling policy.public ApiResponse<SubscriptionThrottlePolicyDTO> addSubscriptionThrottlingPolicy(SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
subscriptionThrottlePolicyDTO - Subscription throttling policy DTO to be added.ApiException - Throws if an error occurred while creating the new subscription throttling policy.public ApiResponse<SubscriptionThrottlePolicyDTO> getSubscriptionThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the subscription throttling policy.public ApiResponse<SubscriptionThrottlePolicyDTO> updateSubscriptionThrottlingPolicy(String policyId, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
policyId - Policy Id of the subscription throttling policy to be updated.subscriptionThrottlePolicyDTO - Subscription throttling policy DTO which contains the updated content.ApiException - if an error occurs while updating the subscription throttling policy.public ApiResponse<Void> deleteSubscriptionThrottlingPolicy(String policyId) throws ApiException
policyId - Subscription throttling policy Id.ApiException - Throws if an error occurred while deleting the subscription throttling policy.public ApiResponse<CustomRuleDTO> addCustomThrottlingPolicy(CustomRuleDTO customRuleDTO) throws ApiException
customRuleDTO - Custom throttling policy DTO to be added.ApiException - if an error occurs while creating the custom throttling policy.public ApiResponse<CustomRuleDTO> getCustomThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the custom throttling policy.public ApiResponse<CustomRuleDTO> updateCustomThrottlingPolicy(String policyId, CustomRuleDTO customRuleDTO) throws ApiException
policyId - Policy Id of the custom throttling policy to be updated.customRuleDTO - Custom throttling policy DTO which contains the updated content.ApiException - if an error occurs while updating the custom throttling policy.public ApiResponse<Void> deleteCustomThrottlingPolicy(String policyId) throws ApiException
policyId - Policy Id of the custom throttling policy to be deleted.ApiException - if an error occurs while deleting the custom throttling policy.public ApiResponse<BlockingConditionDTO> addDenyThrottlingPolicy(BlockingConditionDTO denyPolicyDTO) throws ApiException
denyPolicyDTO - deny throttling policy DTO to be added.ApiException - if an error occurs while creating the deny throttling policy.public ApiResponse<BlockingConditionDTO> getDenyThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the deny throttling policy.public ApiResponse<Void> deleteDenyThrottlingPolicy(String policyId) throws ApiException
policyId - policy id of the deny throttling policy to be deleted.ApiException - if an error occurs while deleting the deny throttling policy.public ApiResponse<AdvancedThrottlePolicyDTO> addAdvancedThrottlingPolicy(AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
advancedThrottlePolicyDTO - Advanced throttling policy DTO to be added.ApiException - Throws if an error occurred while creating the new advanced policy.public ApiResponse<AdvancedThrottlePolicyDTO> getAdvancedThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the advanced throttling policy.public ApiResponse<AdvancedThrottlePolicyDTO> updateAdvancedThrottlingPolicy(String policyId, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
policyId - Policy Id of the advanced throttling policy to be updated.advancedThrottlePolicyDTO - Advanced throttling policy DTO which contains the updated content.ApiException - if an error occurs while updating the advanced throttling policy.public ApiResponse<Void> deleteAdvancedThrottlingPolicy(String policyId) throws ApiException
policyId - Policy Id of the advanced throttling policy to be deleted.ApiException - if an error occurs while deleting the advanced throttling policy.public ApiResponse<LabelDTO> addLabel(LabelDTO labelDTO) throws ApiException
labelDTO - Label DTO to be added.ApiException - Throws if an error occurred while adding the new label.public ApiResponse<LabelListDTO> getLabels() throws ApiException
ApiException - Throws if an error occurred while retrieving all labels.public ApiResponse<LabelDTO> updateLabel(String labelId, LabelDTO labelDTO) throws ApiException
labelId - Label Id of the label to be updated.labelDTO - Label DTO which contains the updated content.ApiException - if an error occurs while updating the label.public ApiResponse<Void> deleteLabel(String labelId) throws ApiException
labelId - Label Id of the label to be updated.ApiException - if an error occurs while deleting the label.public ApiResponse<EnvironmentDTO> addEnvironment(EnvironmentDTO environmentDTO) throws ApiException
environmentDTO - Environment DTO to be added.ApiException - Throws if an error occurred while adding the new environment.public ApiResponse<EnvironmentListDTO> getEnvironments() throws ApiException
ApiException - Throws if an error occurred while retrieving all environments of tenant.public ApiResponse<EnvironmentDTO> updateEnvironment(String environmentId, EnvironmentDTO environmentDTO) throws ApiException
environmentId - Environment Id of the label to be updated.environmentDTO - Environment DTO which contains the updated content.ApiException - if an error occurs while updating the environment.public ApiResponse<Void> deleteEnvironment(String environmentId) throws ApiException
environmentId - Environment Id of the label to be deleted.ApiException - if an error occurs while deleting the environment.public ApiResponse<ApplicationListDTO> getApplications(String user, Integer limit, Integer offset, String appTenantDomain) throws ApiException
user - Username of the application creator.limit - Maximum number of applications to return.offset - Starting point within the complete list of applications qualified.appTenantDomain - Tenant domain of the applications to get.ApiException - if an error occurs while retrieving applications.public ApiResponse<Void> changeApplicationOwner(String newOwner, String applicationId) throws ApiException
newOwner - New owner of the application.applicationId - Application ID of the application.ApiException - if an error occurs while changing the owner of an application.public HttpResponse getWorkflowByExternalWorkflowReference(String externalWorkflowRef) throws ApiException
ApiExceptionpublic HttpResponse getWorkflows(String workflowType) throws ApiException
ApiExceptionpublic HttpResponse updateWorkflowStatus(String workflowReferenceId) throws ApiException
ApiExceptionCopyright © 2021 WSO2 Inc. All rights reserved.