All URIs are relative to https://nsxmanager.your.domain/api/v1
| Method | HTTP request | Description |
|---|---|---|
| getDiscoveredSwitches | GET /migration/discovered-switches | Get the list of discovered switches (DVS, VSS) |
| getMigratedSwitches | GET /migration/migrated-switches | Get the list of migrated switches (DVS, VSS) |
| getMigrationSwitch | GET /migration/switch | Get the switch set as current scope for migration |
| setMigrationSwitch | PUT /migration/switch | Set the switch as current scope for migration |
MigrationSwitchListResult getDiscoveredSwitches(cursor, includedFields, pageSize, sortAscending, sortBy)
Get the list of discovered switches (DVS, VSS)
Get the list of discovered switches (DVS, VSS) for the selected VC.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ManagementPlaneApiMigrationUserInputsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ManagementPlaneApiMigrationUserInputsApi apiInstance = new ManagementPlaneApiMigrationUserInputsApi();
String cursor = "cursor_example"; // String | Opaque cursor to be used for getting next page of records (supplied by current result page)
String includedFields = "includedFields_example"; // String | Comma separated list of fields that should be included in query result
Long pageSize = 789L; // Long | Maximum number of results to return in this page (server may return fewer)
Boolean sortAscending = true; // Boolean |
String sortBy = "sortBy_example"; // String | Field by which records are sorted
try {
MigrationSwitchListResult result = apiInstance.getDiscoveredSwitches(cursor, includedFields, pageSize, sortAscending, sortBy);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ManagementPlaneApiMigrationUserInputsApi#getDiscoveredSwitches");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| cursor | String | Opaque cursor to be used for getting next page of records (supplied by current result page) | [optional] |
| includedFields | String | Comma separated list of fields that should be included in query result | [optional] |
| pageSize | Long | Maximum number of results to return in this page (server may return fewer) | [optional] [enum: ] |
| sortAscending | Boolean | [optional] | |
| sortBy | String | Field by which records are sorted | [optional] |
- Content-Type: Not defined
- Accept: application/json
MigrationSwitchListResult getMigratedSwitches(cursor, includedFields, pageSize, sortAscending, sortBy)
Get the list of migrated switches (DVS, VSS)
Get the list of migrated switches (DVS, VSS) for the selected VC.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ManagementPlaneApiMigrationUserInputsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ManagementPlaneApiMigrationUserInputsApi apiInstance = new ManagementPlaneApiMigrationUserInputsApi();
String cursor = "cursor_example"; // String | Opaque cursor to be used for getting next page of records (supplied by current result page)
String includedFields = "includedFields_example"; // String | Comma separated list of fields that should be included in query result
Long pageSize = 789L; // Long | Maximum number of results to return in this page (server may return fewer)
Boolean sortAscending = true; // Boolean |
String sortBy = "sortBy_example"; // String | Field by which records are sorted
try {
MigrationSwitchListResult result = apiInstance.getMigratedSwitches(cursor, includedFields, pageSize, sortAscending, sortBy);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ManagementPlaneApiMigrationUserInputsApi#getMigratedSwitches");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| cursor | String | Opaque cursor to be used for getting next page of records (supplied by current result page) | [optional] |
| includedFields | String | Comma separated list of fields that should be included in query result | [optional] |
| pageSize | Long | Maximum number of results to return in this page (server may return fewer) | [optional] [enum: ] |
| sortAscending | Boolean | [optional] | |
| sortBy | String | Field by which records are sorted | [optional] |
- Content-Type: Not defined
- Accept: application/json
MigrationSwitchInfo getMigrationSwitch()
Get the switch set as current scope for migration
The user is returned the switch (DVS/VSS) set as current scope of migration.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ManagementPlaneApiMigrationUserInputsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ManagementPlaneApiMigrationUserInputsApi apiInstance = new ManagementPlaneApiMigrationUserInputsApi();
try {
MigrationSwitchInfo result = apiInstance.getMigrationSwitch();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ManagementPlaneApiMigrationUserInputsApi#getMigrationSwitch");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
MigrationSwitchInfo setMigrationSwitch(body)
Set the switch as current scope for migration
The user specifies a DVS / VSS as the current scope of migration.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.ManagementPlaneApiMigrationUserInputsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ManagementPlaneApiMigrationUserInputsApi apiInstance = new ManagementPlaneApiMigrationUserInputsApi();
MigrationSwitchInfo body = new MigrationSwitchInfo(); // MigrationSwitchInfo |
try {
MigrationSwitchInfo result = apiInstance.setMigrationSwitch(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ManagementPlaneApiMigrationUserInputsApi#setMigrationSwitch");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | MigrationSwitchInfo |
- Content-Type: application/json
- Accept: application/json