public class NetworkSystems extends AbstractCoreBulkResources<NetworkSystemRestRep> implements TopLevelResources<NetworkSystemRestRep>, TaskResources<NetworkSystemRestRep>
Base URL: /vdc/network-systems
Constructor and Description |
---|
NetworkSystems(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
Task<NetworkSystemRestRep> |
activateSanZones(java.net.URI id,
java.lang.String fabric,
SanZones input)
Activates the current active zoneset of the fabric.
|
Task<NetworkSystemRestRep> |
addAliases(java.net.URI id,
WwnAliasesCreateParam input)
Adds WWN Aliases to the given network system by ID and fabric name.
|
Task<NetworkSystemRestRep> |
addSanZones(java.net.URI id,
java.lang.String fabric,
SanZoneCreateParam input)
Adds SAN zones to the given network system by ID and fabric name.
|
Task<NetworkSystemRestRep> |
create(NetworkSystemCreate input)
Begins creating a network system.
|
Task<NetworkSystemRestRep> |
deactivate(java.net.URI id)
Begins deactivating a network system by ID.
|
Task<NetworkSystemRestRep> |
deleteAliases(java.net.URI id,
WwnAliasesDeleteParam input)
Removes WWN Aliases from the given network system by ID.
|
NetworkSystemRestRep |
deregister(java.net.URI id)
Deregisters the given network system by ID.
|
Task<NetworkSystemRestRep> |
discover(java.net.URI id)
Begins discovery of the given network system by ID.
|
java.util.List<? extends WwnAliasParam> |
getAliases(java.net.URI id,
java.lang.String fabric)
Gets the list of WWN Aliases in the given network system by ID and fabric name.
|
java.util.List<NetworkSystemRestRep> |
getAll()
Gets the list of all network systems.
|
java.util.List<NetworkSystemRestRep> |
getAll(ResourceFilter<NetworkSystemRestRep> filter)
Gets the list of all network systems, optionally filtering the results.
|
java.util.List<FCEndpointRestRep> |
getFCEndpoints(java.net.URI id,
java.lang.String fabricId)
Gets the list of FC endpoints in the given network system by ID.
|
java.util.List<java.lang.String> |
getSanFabrics(java.net.URI id)
Gets the list of SAN fabric names in the given network system by ID.
|
java.util.List<SanZone> |
getSanZones(java.net.URI id,
java.lang.String fabric)
Gets the list of SAN zones in the given network system by ID and fabric name.
|
Task<NetworkSystemRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<NetworkSystemRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all network systems.
|
NetworkSystemRestRep |
register(java.net.URI id)
Registers the given network system by ID.
|
Task<NetworkSystemRestRep> |
removeSanZones(java.net.URI id,
java.lang.String fabric,
SanZonesDeleteParam input)
Removes a SAN zone from the given network system by ID and fabric name.
|
Task<NetworkSystemRestRep> |
update(java.net.URI id,
NetworkSystemUpdate input)
Begins updating a network system by ID.
|
Task<NetworkSystemRestRep> |
updateAliases(java.net.URI id,
WwnAliasUpdateParams input)
Updates WWN Aliases from the given network system by ID.
|
Task<NetworkSystemRestRep> |
updateSanZones(java.net.URI id,
java.lang.String fabric,
SanZoneUpdateParams input)
Updates a SAN zone from the given network system by ID and fabric name.
|
NetworkSystems |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
NetworkSystems |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, search, updateTags
public NetworkSystems(ViPRCoreClient parent, RestClient client)
public NetworkSystems withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<NetworkSystemRestRep>
inactive
- whether to include inactive resources.public NetworkSystems withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<NetworkSystemRestRep>
internal
- whether to include internal resources.public Tasks<NetworkSystemRestRep> getTasks(java.net.URI id)
TaskResources
API Call: GET baseUrl/{id}/tasks
getTasks
in interface TaskResources<NetworkSystemRestRep>
id
- the resource ID.public Task<NetworkSystemRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResources
API Call: GET baseUrl/{id}/tasks/{taskId}
getTask
in interface TaskResources<NetworkSystemRestRep>
id
- the resource ID.taskId
- the task ID.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/network-systems
list
in interface TopLevelResources<NetworkSystemRestRep>
public java.util.List<NetworkSystemRestRep> getAll()
getAll
in interface TopLevelResources<NetworkSystemRestRep>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public java.util.List<NetworkSystemRestRep> getAll(ResourceFilter<NetworkSystemRestRep> filter)
getAll
in interface TopLevelResources<NetworkSystemRestRep>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public Task<NetworkSystemRestRep> create(NetworkSystemCreate input)
API Call: POST /vdc/network-systems
input
- the create configuration.public Task<NetworkSystemRestRep> update(java.net.URI id, NetworkSystemUpdate input)
API Call: PUT /vdc/network-systems/{id}
id
- the ID of the network system to update.input
- the update configuration.public Task<NetworkSystemRestRep> deactivate(java.net.URI id)
API Call: POST /vdc/network-systems/{id}
id
- the ID of the network system to deactivate.public NetworkSystemRestRep register(java.net.URI id)
API Call: POST /vdc/network-systems/{id}/register
id
- the ID of the network system to register.public NetworkSystemRestRep deregister(java.net.URI id)
API Call: POST /vdc/network-systems/{id}/deregister
id
- the ID of the network system to deregister.public Task<NetworkSystemRestRep> discover(java.net.URI id)
API Call: POST /vdc/network-systems/{id}/discover
id
- the ID of the network system to discover.public java.util.List<FCEndpointRestRep> getFCEndpoints(java.net.URI id, java.lang.String fabricId)
API Call: GET [?fabric-id={fabric-id}]
id
- the ID of the network system.fabricId
- the fabric ID, or null
if there is no fabric.public java.util.List<java.lang.String> getSanFabrics(java.net.URI id)
API Call: GET
id
- the ID of the network system.public java.util.List<SanZone> getSanZones(java.net.URI id, java.lang.String fabric)
API Call: GET
id
- the ID of the network system.fabric
- the name of the fabric.public Task<NetworkSystemRestRep> addSanZones(java.net.URI id, java.lang.String fabric, SanZoneCreateParam input)
API Call: POST
id
- the ID of the network system.fabric
- the name of the fabric.input
- the SAN zones configuration.public Task<NetworkSystemRestRep> removeSanZones(java.net.URI id, java.lang.String fabric, SanZonesDeleteParam input)
API Call: POST /remove
id
- the ID of the network system.fabric
- the name of the fabric.input
- the SAN zones configuration.public Task<NetworkSystemRestRep> updateSanZones(java.net.URI id, java.lang.String fabric, SanZoneUpdateParams input)
API Call: PUT
id
- the ID of the network system.fabric
- the name of the fabric.input
- the SAN zones configuration.public Task<NetworkSystemRestRep> activateSanZones(java.net.URI id, java.lang.String fabric, SanZones input)
API Call: POST /activate
id
- the ID of the network system.fabric
- the name of the fabric.input
- the SAN zones configuration.public java.util.List<? extends WwnAliasParam> getAliases(java.net.URI id, java.lang.String fabric)
API Call: GET [?fabric-id={fabric}]
id
- the ID of the network system.fabric
- the name of the fabric, or null
if there is no fabric.public Task<NetworkSystemRestRep> addAliases(java.net.URI id, WwnAliasesCreateParam input)
API Call: POST
id
- the ID of the network system.input
- the WWN Aliases configuration.public Task<NetworkSystemRestRep> deleteAliases(java.net.URI id, WwnAliasesDeleteParam input)
API Call: POST /remove
id
- the ID of the network system.input
- the WWN Aliases configuration.public Task<NetworkSystemRestRep> updateAliases(java.net.URI id, WwnAliasUpdateParams input)
API Call: PUT
id
- the ID of the network system.input
- the WWN Aliases configuration.