All URIs are relative to https://SSC:8080/ssc/api/v1
Method | HTTP request | Description |
---|---|---|
createLdapServer | POST /ldapServers | create |
deleteLdapServer | DELETE /ldapServers/{id} | delete |
doCollectionActionLdapServer | POST /ldapServers/action | doCollectionAction |
listLdapServer | GET /ldapServers | list |
multiDeleteLdapServer | DELETE /ldapServers | multiDelete |
readLdapServer | GET /ldapServers/{id} | read |
testLdapServer | POST /ldapServers/action/test | test |
updateLdapServer | PUT /ldapServers/{id} | update |
ApiResultLdapServerDto createLdapServer(resource)
create
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
LdapServerDto resource = new LdapServerDto(); // LdapServerDto | resource
try {
ApiResultLdapServerDto result = apiInstance.createLdapServer(resource);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#createLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
resource | LdapServerDto | resource |
- Content-Type: application/json
- Accept: application/json
ApiResultVoid deleteLdapServer(id)
delete
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
Long id = 789L; // Long | id
try {
ApiResultVoid result = apiInstance.deleteLdapServer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#deleteLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | id |
- Content-Type: application/json
- Accept: application/json
ApiResultApiActionResponse doCollectionActionLdapServer(collectionAction)
doCollectionAction
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
ApiCollectionActionlong collectionAction = new ApiCollectionActionlong(); // ApiCollectionActionlong | collectionAction
try {
ApiResultApiActionResponse result = apiInstance.doCollectionActionLdapServer(collectionAction);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#doCollectionActionLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
collectionAction | ApiCollectionActionlong | collectionAction |
- Content-Type: application/json
- Accept: application/json
ApiResultListLdapServerDto listLdapServer(fields, start, limit)
list
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
String fields = "fields_example"; // String | Output fields
Integer start = 0; // Integer | A start offset in object listing
Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied
try {
ApiResultListLdapServerDto result = apiInstance.listLdapServer(fields, start, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#listLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Output fields | [optional] |
start | Integer | A start offset in object listing | [optional] [default to 0] |
limit | Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] |
- Content-Type: application/json
- Accept: application/json
ApiResultVoid multiDeleteLdapServer(ids)
multiDelete
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
String ids = "ids_example"; // String | A comma-separated list of resource identifiers
try {
ApiResultVoid result = apiInstance.multiDeleteLdapServer(ids);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#multiDeleteLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
ids | String | A comma-separated list of resource identifiers |
- Content-Type: application/json
- Accept: application/json
ApiResultLdapServerDto readLdapServer(id, fields)
read
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
Long id = 789L; // Long | id
String fields = "fields_example"; // String | Output fields
try {
ApiResultLdapServerDto result = apiInstance.readLdapServer(id, fields);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#readLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | id | |
fields | String | Output fields | [optional] |
- Content-Type: application/json
- Accept: application/json
ApiResultVoid testLdapServer(resource)
test
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
LdapServerTestRequest resource = new LdapServerTestRequest(); // LdapServerTestRequest | resource
try {
ApiResultVoid result = apiInstance.testLdapServer(resource);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#testLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
resource | LdapServerTestRequest | resource |
- Content-Type: application/json
- Accept: application/json
ApiResultLdapServerDto updateLdapServer(id, resource)
update
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.LdapServerControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
LdapServerControllerApi apiInstance = new LdapServerControllerApi();
Long id = 789L; // Long | id
LdapServerDto resource = new LdapServerDto(); // LdapServerDto | resource
try {
ApiResultLdapServerDto result = apiInstance.updateLdapServer(id, resource);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LdapServerControllerApi#updateLdapServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | Long | id | |
resource | LdapServerDto | resource |
- Content-Type: application/json
- Accept: application/json