public interface NuageVspApiClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
NuageVspApiClient.ExistingDhcpOptionStrategy |
| Modifier and Type | Method and Description |
|---|---|
List<NuageVspObject> |
addVMInterfaceToVM(VspNetwork vspNetwork,
VspVm vspVm,
VspNic vspNic,
NetworkDetails attachedNetworkDetails,
NuageVspObject vm,
DhcpOptions dhcpOptions) |
String |
allocateFIPToVPortInVsp(NetworkDetails attachedNetworkDetails,
String vportId,
String vspSharedNetworkId,
String staticNatIp,
String staticNatIpUuid,
String nicSecondaryIp4Address,
String nicSecondaryIpUuid) |
String |
applyStaticNatInVsp(NetworkDetails attachedNetworkDetails,
String vportId,
VspStaticNat vspStaticNat) |
List<NuageVspObject> |
buildVmInterfacesList(VspVm vspVm,
VspNic... vspNics) |
void |
cleanUpDomainAndTemplate(String enterpriseId,
String networkUuid,
String domainTemplateName) |
void |
createDhcpOptions(NuageVspApiClient.ExistingDhcpOptionStrategy existingOptionStrategy,
NetworkDetails attachedNetworkDetails,
VspNetwork vspNetwork,
DhcpOptions dhcpOptions)
Depending on the option strategy new dhcp options get created on the vsd for a subnet
|
void |
createDhcpOptions(NuageVspApiClient.ExistingDhcpOptionStrategy existingOptionStrategy,
NuageVspEntity nuageVspEntity,
String nuageVspEntityUuid,
String nuageVspEntityId,
VspNetwork vspNetwork,
DhcpOptions dhcpOptions)
Depending on the option strategy new dhcp options get created on the vsd for the specified vsd entity (vport or subnet)
|
String |
createEnterpriseInVSP(String enterpriseExternalUuid,
String enterpriseDescription) |
NuageVspObject |
createGroupInEnterprise(String projectOrAccountName,
String projectOrAccountUuid,
String vsdEnterpriseId) |
NetworkRelatedVsdIds |
createIsolatedL2NetworkWithDefaultACLs(VspNetwork vspNetwork) |
NetworkRelatedVsdIds |
createNetworkConfigurationWithDefaultACLs(VspNetwork vspNetwork,
VspDhcpDomainOption vspDhcpOptions) |
String |
createUserInEnterprise(String vsdEnterpriseId,
String userNameUuid,
String firstName,
String lastName,
String email,
String password) |
List<NuageVspObject> |
createVMInVSP(VspNetwork vspNetwork,
VspVm vspVm,
VspNic vspNic,
NetworkDetails attachedNetworkDetails,
DhcpOptions dhcpOptions) |
void |
createVportInVsp(VspNic vspNic,
VspNetwork vspNetwork,
List<NuageVspObject> vmInterfaceList,
NetworkDetails attachedNetworkDetails,
DhcpOptions dhcpOptions) |
void |
deleteEnterpriseInVsp(String enterpriseExternalUuid,
String enterpriseDescription) |
void |
deleteQuietly(NuageVspEntity entityType,
String entityId) |
void |
deleteSharedResourceInVSP(NuageVspConstants.SharedNetworkType resourceType,
String staticNatNetworkUuid,
String staticNatVlanGateway,
String staticNatVlanNetmask) |
void |
deleteVM(String vmUuid,
String vmId) |
void |
deleteVmInterface(String vmUuid,
String macAddr,
String vmInterfaceID) |
boolean |
entityExists(NuageVspEntity entityType,
String entityUuid)
Check if an entity exists in the VSD
|
String |
findEntityByExternalUuid(NuageVspEntity entityType,
String entityId,
NuageVspEntity childEntityType,
String externalId) |
String |
findEntityIdByExternalUuid(NuageVspEntity entityType,
String entityId,
NuageVspEntity childEntityType,
String externalId) |
String |
findEntityUsingFilter(NuageVspEntity entityType,
String entityId,
NuageVspEntity childEntityType,
NuageVspAttribute filterAttr,
Object filterAttrValue) |
String |
findEntityUsingFilter(NuageVspEntity entityType,
String entityId,
NuageVspEntity childEntityType,
NuageVspFilter filter) |
<T> T |
findFieldValueByExternalUuid(NuageVspEntity entityType,
String entityId,
NuageVspEntity childEntityType,
String externalId,
NuageVspAttribute fieldName) |
VspNetwork |
findIsolatedL3Network(VspNetwork vspNetwork) |
Pair<Boolean,String> |
findOrCreateSharedResource(boolean findByExternalId,
NuageVspConstants.SharedNetworkType resourceType,
String staticNatNetworkUuid,
String staticNatVlanGateway,
String staticNatVlanNetmask,
boolean staticNatVlanUnderlay,
String networkName) |
String |
generateCmsIdForNuageVsp(String cmsName) |
String |
getEnterprise(String domainUuid) |
String |
getEnterpriseName(String domainName,
String domainPath) |
String |
getEntityId(String jsonString,
NuageVspEntity entityType) |
String |
getIsolatedDomain(boolean throwExceptionWhenNotFound,
String enterpriseId,
NuageVspEntity attachedNetworkType,
String vpcOrSubnetUuid) |
String |
getIsolatedDomain(String enterpriseId,
NuageVspEntity attachedNetworkType,
String vpcOrSubnetUuid) |
Pair<String,String> |
getIsolatedSubNetwork(boolean throwExceptionWhenNotFound,
String enterpriseId,
VspNetwork vspNetwork) |
Pair<String,String> |
getIsolatedSubNetwork(String enterpriseId,
VspNetwork vspNetwork) |
String |
getOrCreateVSPEnterprise(String domainUuid,
String domainName,
String domainPath) |
Pair<String,String> |
getOrCreateVSPEnterpriseAndGroup(String networksDomainName,
String networksDomainPath,
String networksDomainUuid,
String networksAccountName,
String networksAccountUuid,
Optional<String> maybeEnterpriseId) |
NuageVspObject |
getResource(NuageVspEntity nuageEntityType,
String entityId) |
String |
getResources(NuageVspEntity entityType) |
<T> T |
getResources(NuageVspEntity entityType,
Class<T> type) |
String |
getResources(NuageVspEntity enterprise,
NuageVspFilter filter) |
String |
getResources(NuageVspObject parent,
NuageVspEntity childEntityType) |
NuageVspObject |
getVMDetails(String vmUuid) |
boolean |
isExistingResource(NuageVspEntity entity,
String entiyId)
Checks if the entity with the specified entityId is present on the VSD.
|
boolean |
isKnownCmsIdForNuageVsp(String cmsId) |
void |
login()
Login to the Nuage VSP
|
List<NuageVspObject> |
parseJsonString(NuageVspEntity entity,
String json) |
<T> T |
parseJsonString(NuageVspEntity entity,
String json,
Class<T> type) |
void |
releaseFIPFromVsp(NetworkDetails attachedNetworkDetails,
String vportId,
String staticNatIpUuid,
String nicSecondaryIpUuid) |
void |
removeAllDhcpOptionsWithCode(NuageVspEntity nuageVspEntity,
String externalUuid,
String entityId,
Set<Integer> dhcpOptionCodesToRemove)
Removes all specified dhcp options from the specified nic.
|
boolean |
removeCmsIdForNuageVsp(String cmsId) |
void |
updateVPortWithFloatingIPId(String vportId,
String floatingIPId) |
List<NuageVspObject> createVMInVSP(VspNetwork vspNetwork, VspVm vspVm, VspNic vspNic, NetworkDetails attachedNetworkDetails, DhcpOptions dhcpOptions) throws NuageVspException
NuageVspExceptionList<NuageVspObject> addVMInterfaceToVM(VspNetwork vspNetwork, VspVm vspVm, VspNic vspNic, NetworkDetails attachedNetworkDetails, NuageVspObject vm, DhcpOptions dhcpOptions) throws NuageVspException
NuageVspExceptionPair<Boolean,String> findOrCreateSharedResource(boolean findByExternalId, NuageVspConstants.SharedNetworkType resourceType, String staticNatNetworkUuid, String staticNatVlanGateway, String staticNatVlanNetmask, boolean staticNatVlanUnderlay, String networkName) throws NuageVspException
NuageVspExceptionvoid deleteSharedResourceInVSP(NuageVspConstants.SharedNetworkType resourceType, String staticNatNetworkUuid, String staticNatVlanGateway, String staticNatVlanNetmask) throws NuageVspException
NuageVspExceptionString applyStaticNatInVsp(NetworkDetails attachedNetworkDetails, String vportId, VspStaticNat vspStaticNat) throws NuageVspException
NuageVspExceptionNuageVspObject getResource(NuageVspEntity nuageEntityType, String entityId) throws NuageVspApiException
NuageVspApiExceptionboolean isExistingResource(NuageVspEntity entity, String entiyId)
entity - entiyId - void login()
throws NuageVspApiException
boolean entityExists(NuageVspEntity entityType, String entityUuid) throws NuageVspException
entityType - The type of the entityentityUuid - The UUID of the entityNuageVspExceptionList<NuageVspObject> buildVmInterfacesList(VspVm vspVm, VspNic... vspNics)
void deleteVmInterface(String vmUuid, String macAddr, String vmInterfaceID) throws NuageVspException
NuageVspExceptionNuageVspObject getVMDetails(String vmUuid) throws NuageVspException
NuageVspExceptionString getOrCreateVSPEnterprise(String domainUuid, String domainName, String domainPath) throws NuageVspException
NuageVspExceptionPair<String,String> getOrCreateVSPEnterpriseAndGroup(String networksDomainName, String networksDomainPath, String networksDomainUuid, String networksAccountName, String networksAccountUuid, Optional<String> maybeEnterpriseId) throws NuageVspException
NuageVspExceptionString createEnterpriseInVSP(String enterpriseExternalUuid, String enterpriseDescription) throws NuageVspException
NuageVspExceptionvoid deleteEnterpriseInVsp(String enterpriseExternalUuid, String enterpriseDescription) throws NuageVspException
NuageVspExceptionString createUserInEnterprise(String vsdEnterpriseId, String userNameUuid, String firstName, String lastName, String email, String password) throws NuageVspException
NuageVspExceptionNuageVspObject createGroupInEnterprise(String projectOrAccountName, String projectOrAccountUuid, String vsdEnterpriseId) throws NuageVspException
NuageVspExceptionNetworkRelatedVsdIds createNetworkConfigurationWithDefaultACLs(VspNetwork vspNetwork, VspDhcpDomainOption vspDhcpOptions) throws NuageVspException
NuageVspExceptionvoid createDhcpOptions(NuageVspApiClient.ExistingDhcpOptionStrategy existingOptionStrategy, NetworkDetails attachedNetworkDetails, VspNetwork vspNetwork, DhcpOptions dhcpOptions) throws NuageVspException
existingOptionStrategy - FETCH, FETCH_AND_DELETE, IGNOREattachedNetworkDetails - vspNetwork - dhcpOptions - NuageVspExceptionvoid createDhcpOptions(NuageVspApiClient.ExistingDhcpOptionStrategy existingOptionStrategy, NuageVspEntity nuageVspEntity, String nuageVspEntityUuid, String nuageVspEntityId, VspNetwork vspNetwork, DhcpOptions dhcpOptions) throws NuageVspException
existingOptionStrategy - nuageVspEntity - nuageVspEntityUuid - nuageVspEntityId - vspNetwork - dhcpOptions - NuageVspExceptionvoid removeAllDhcpOptionsWithCode(NuageVspEntity nuageVspEntity, String externalUuid, String entityId, Set<Integer> dhcpOptionCodesToRemove) throws NuageVspException
nuageVspEntity - externalUuid - entityId - dhcpOptionCodesToRemove - NuageVspExceptionVspNetwork findIsolatedL3Network(VspNetwork vspNetwork)
NetworkRelatedVsdIds createIsolatedL2NetworkWithDefaultACLs(VspNetwork vspNetwork) throws NuageVspException
NuageVspExceptionString getEnterprise(String domainUuid) throws NuageVspException
NuageVspExceptionPair<String,String> getIsolatedSubNetwork(String enterpriseId, VspNetwork vspNetwork) throws NuageVspException
NuageVspExceptionPair<String,String> getIsolatedSubNetwork(boolean throwExceptionWhenNotFound, String enterpriseId, VspNetwork vspNetwork) throws NuageVspException
NuageVspExceptionString getIsolatedDomain(String enterpriseId, NuageVspEntity attachedNetworkType, String vpcOrSubnetUuid) throws NuageVspException
NuageVspExceptionString getIsolatedDomain(boolean throwExceptionWhenNotFound, String enterpriseId, NuageVspEntity attachedNetworkType, String vpcOrSubnetUuid) throws NuageVspException
NuageVspExceptionString allocateFIPToVPortInVsp(NetworkDetails attachedNetworkDetails, String vportId, String vspSharedNetworkId, String staticNatIp, String staticNatIpUuid, String nicSecondaryIp4Address, String nicSecondaryIpUuid) throws NuageVspException
NuageVspExceptionvoid updateVPortWithFloatingIPId(String vportId, String floatingIPId) throws NuageVspException
NuageVspExceptionvoid releaseFIPFromVsp(NetworkDetails attachedNetworkDetails, String vportId, String staticNatIpUuid, String nicSecondaryIpUuid) throws NuageVspException
NuageVspExceptionString findEntityUsingFilter(NuageVspEntity entityType, String entityId, NuageVspEntity childEntityType, NuageVspFilter filter) throws NuageVspException
NuageVspExceptionString getResources(NuageVspEntity entityType) throws NuageVspException
NuageVspException<T> T getResources(NuageVspEntity entityType, Class<T> type) throws NuageVspException
NuageVspExceptionString findEntityUsingFilter(NuageVspEntity entityType, String entityId, NuageVspEntity childEntityType, NuageVspAttribute filterAttr, Object filterAttrValue) throws NuageVspException
NuageVspExceptionString findEntityIdByExternalUuid(NuageVspEntity entityType, String entityId, NuageVspEntity childEntityType, String externalId) throws NuageVspException
NuageVspException<T> T findFieldValueByExternalUuid(NuageVspEntity entityType, String entityId, NuageVspEntity childEntityType, String externalId, NuageVspAttribute fieldName) throws NuageVspException
NuageVspExceptionString findEntityByExternalUuid(NuageVspEntity entityType, String entityId, NuageVspEntity childEntityType, String externalId) throws NuageVspException
NuageVspExceptionString getEntityId(String jsonString, NuageVspEntity entityType) throws NuageVspException
NuageVspExceptionvoid cleanUpDomainAndTemplate(String enterpriseId, String networkUuid, String domainTemplateName) throws NuageVspException
NuageVspExceptionvoid createVportInVsp(VspNic vspNic, VspNetwork vspNetwork, List<NuageVspObject> vmInterfaceList, NetworkDetails attachedNetworkDetails, DhcpOptions dhcpOptions) throws NuageVspException
NuageVspExceptionString generateCmsIdForNuageVsp(String cmsName) throws NuageVspException
NuageVspExceptionboolean removeCmsIdForNuageVsp(String cmsId) throws NuageVspException
NuageVspExceptionboolean isKnownCmsIdForNuageVsp(String cmsId) throws NuageVspException
NuageVspExceptionList<NuageVspObject> parseJsonString(NuageVspEntity entity, String json) throws NuageVspException
NuageVspException<T> T parseJsonString(NuageVspEntity entity, String json, Class<T> type) throws NuageVspException
NuageVspExceptionvoid deleteQuietly(NuageVspEntity entityType, String entityId)
String getResources(NuageVspEntity enterprise, NuageVspFilter filter) throws NuageVspApiException
NuageVspApiExceptionString getResources(NuageVspObject parent, NuageVspEntity childEntityType) throws NuageVspApiException
NuageVspApiExceptionCopyright © 2016–2017 Nuage Networks. All rights reserved.