Describe a policy migration task.
PolicyMigrationTasksApi.describePolicyMigrationTask([param1, param2, ...])
PolicyMigrationTasksApi.describe_policy_migration_task([param1, param2, ...])
PolicyMigrationTasksApi.describePolicyMigrationTask([param1, param2, ...])
successful operation
The Trend Vision One Endpoint Security Link (formerly Workload Security Link) does not exist.
Not authorized to migrate policies.
The policy migration task does not exist.
Failed to connect to Trend Vision One Endpoint Security (or Workload Security).
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.PolicyMigrationTasksApi; import com.trendmicro.deepsecurity.model.PolicyMigrationTask; public class DescribePolicyMigrationTaskExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values PolicyMigrationTasksApi instance = new PolicyMigrationTasksApi(); Integer policyMigrationTaskID = 1; String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours PolicyMigrationTask result = instance.describePolicyMigrationTask(policyMigrationTaskID, apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyMigrationTasksApi.describePolicyMigrationTask"); e.printStackTrace(); } } }
{- "taskGUID": "string",
- "status": "requested",
- "created": 0,
- "lastUpdated": 0,
- "policyMappings": [
- {
- "migrateTo": {
- "policyID": 0,
- "policyName": "string"
}, - "migrateFrom": {
- "policyID": 0,
- "policyName": "string"
}
}
], - "errorCode": 0,
- "ID": 0
}
List all policy migration tasks.
PolicyMigrationTasksApi.listPolicyMigrationTasks([param1, param2, ...])
PolicyMigrationTasksApi.list_policy_migration_tasks([param1, param2, ...])
PolicyMigrationTasksApi.listPolicyMigrationTasks([param1, param2, ...])
successful operation
The Trend Vision One Endpoint Security Link (formerly Workload Security Link) does not exist.
Not authorized to migrate policies.
Failed to connect to Trend Vision One Endpoint Security (or Workload Security).
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.PolicyMigrationTasksApi; import com.trendmicro.deepsecurity.model.PolicyMigrationTasks; public class ListPolicyMigrationTasksExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values PolicyMigrationTasksApi instance = new PolicyMigrationTasksApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours PolicyMigrationTasks result = instance.listPolicyMigrationTasks(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyMigrationTasksApi.listPolicyMigrationTasks"); e.printStackTrace(); } } }
{- "policyMigrationTasks": [
- {
- "taskGUID": "string",
- "status": "requested",
- "created": 0,
- "lastUpdated": 0,
- "policyMappings": [
- {
- "migrateTo": {
- "policyID": 0,
- "policyName": "string"
}, - "migrateFrom": {
- "policyID": 0,
- "policyName": "string"
}
}
], - "errorCode": 0,
- "ID": 0
}
]
}
Create a new policy migration task.
PolicyMigrationTasksApi.createPolicyMigrationTask([param1, param2, ...])
PolicyMigrationTasksApi.create_policy_migration_task([param1, param2, ...])
PolicyMigrationTasksApi.createPolicyMigrationTask([param1, param2, ...])
successful operation
The Trend Vision One Endpoint Security Link (formerly Workload Security Link) does not exist.
Not authorized to migrate policies.
A policy migration task already exists.
Failed to connect to Trend Vision One Endpoint Security (or Workload Security).
import com.trendmicro.deepsecurity.ApiClient; import com.trendmicro.deepsecurity.Configuration; import com.trendmicro.deepsecurity.auth.ApiKeyAuth; import com.trendmicro.deepsecurity.ApiException; import com.trendmicro.deepsecurity.api.PolicyMigrationTasksApi; import com.trendmicro.deepsecurity.model.PolicyMigrationTask; public class CreatePolicyMigrationTaskExample { public static void main(String[] args) { // Setup ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("YOUR HOST"); // Authentication ApiKeyAuth DefaultAuthentication = (ApiKeyAuth) defaultClient.getAuthentication("DefaultAuthentication"); DefaultAuthentication.setApiKey("YOUR API KEY"); try { defaultClient.trustAllCertificates(false); } catch (Exception e) { System.err.println("An exception occurred when calling ApiClient.trustAllCertificates"); e.printStackTrace(); } // Initialization // Set Any Required Values PolicyMigrationTasksApi instance = new PolicyMigrationTasksApi(); String apiVersion = "YOUR VERSION"; try { // Please replace the parameter values with yours PolicyMigrationTask result = instance.createPolicyMigrationTask(apiVersion); System.out.println(result); } catch (ApiException e) { System.err.println("An exception occurred when calling PolicyMigrationTasksApi.createPolicyMigrationTask"); e.printStackTrace(); } } }
{- "taskGUID": "string",
- "status": "requested",
- "created": 0,
- "lastUpdated": 0,
- "policyMappings": [
- {
- "migrateTo": {
- "policyID": 0,
- "policyName": "string"
}, - "migrateFrom": {
- "policyID": 0,
- "policyName": "string"
}
}
], - "errorCode": 0,
- "ID": 0
}
Search for policy migration tasks using optional filters.
PolicyMigrationTasksApi.searchPolicyMigrationTasks([param1, param2, ...])
PolicyMigrationTasksApi.search_policy_migration_tasks([param1, param2, ...])
PolicyMigrationTasksApi.searchPolicyMigrationTasks([param1, param2, ...])
A collection of options used to filter the search results.
successful operation
The Trend Vision One Endpoint Security Link (formerly Workload Security Link) does not exist.
Not authorized to migrate policies.
Failed to connect to Trend Vision One Endpoint Security (or Workload Security).
{- "maxItems": 0,
- "searchCriteria": [
- {
- "fieldName": "string",
- "booleanTest": true,
- "numericTest": "less-than",
- "numericValue": 0,
- "stringTest": "equal",
- "stringValue": "string",
- "stringWildcards": true,
- "choiceTest": "equal",
- "choiceValue": "string",
- "firstDateValue": 0,
- "firstDateInclusive": true,
- "lastDateValue": 0,
- "lastDateInclusive": true,
- "nullTest": true,
- "versionTest": "less-than",
- "versionValue": "string",
- "idValue": 0,
- "idTest": "less-than"
}
], - "sortByObjectID": true
}
{- "policyMigrationTasks": [
- {
- "taskGUID": "string",
- "status": "requested",
- "created": 0,
- "lastUpdated": 0,
- "policyMappings": [
- {
- "migrateTo": {
- "policyID": 0,
- "policyName": "string"
}, - "migrateFrom": {
- "policyID": 0,
- "policyName": "string"
}
}
], - "errorCode": 0,
- "ID": 0
}
]
}