APIv1 - VLAN Module
ProVision's APIv1 system has been replaced by APIv2, and is now considered deprecated.
VLAN
getById
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=getById |
||||||||
|
Description |
get information of a vlan |
||||||||
|
Returns |
Examples
|
||||||||
|
Required Parameters |
|
||||||||
|
Optional Parameters |
None |
||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=getById&id=11190 |
||||||||
getDomains
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=getDomains |
||||||||
|
Description |
get list and info of all domains or a specific domain. When specifying the domain the results will include tag info |
||||||||
|
Returns |
Examples
|
||||||||
|
Required Parameters |
None
|
||||||||
|
Optional Parameters |
|
||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=getDomains&id=2 |
||||||||
enable
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=enable |
||||||||||||
|
Description |
enable vlans in a domain |
||||||||||||
|
Returns |
Examples
|
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
None |
||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=enable&domainId=1&vlan=18,19,20 |
||||||||||||
addDomain
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=addDomain |
||||||||||||
|
Description |
add a domain |
||||||||||||
|
Returns |
Examples
|
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
None |
||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=addDomain&domain=test.com&range=S |
||||||||||||
getAvailable
|
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=getAvailable |
||||||||||||||||
|
Description |
get VLANs in a domain that have not been named yet (even names that are '', or just uses their number as a name) |
||||||||||||||||
|
Returns |
Examples
|
||||||||||||||||
|
Required Parameters |
|
||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=getAvailable&domainId=1&tags=111,112&min=2&max=23 |
||||||||||||||||
get
|
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=get |
||||||||||||||||
|
Description |
Searches enabled VLANs. When not given options, returns all enabled VLANs. Note: an optional parameter, unavailable, is used to get available (un-enabled) VLANs as well |
||||||||||||||||
|
Returns |
Examples
|
||||||||||||||||
|
Required Parameters |
None |
||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=get&id=4&unavailable=true |
||||||||||||||||
deleteDomain
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=deleteDomain |
||||||||
|
Description |
Deletes a VLAN domain. |
||||||||
|
Returns |
Examples
|
||||||||
|
Required Parameters |
|
||||||||
|
Optional Parameters |
None |
||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=deleteDomain&domainId=7 |
||||||||
updateDomain
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=updateDomain |
||||||||||||
|
Description |
Updates a VLAN domain. |
||||||||||||
|
Returns |
Examples
|
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
None. |
||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=updateDomain&domain=DefaultDomainnn&range=S&id=1 |
||||||||||||
update
|
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=update |
||||||||||||||||
|
Description |
Update properties of a VLAN: name, tags, or both. |
||||||||||||||||
|
Returns |
Examples
|
||||||||||||||||
|
Required Parameters |
|
||||||||||||||||
|
Optional Parameters |
|
||||||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=update&id=11735&name=OReilly&tags=156,159 api/v1/api.php?target=vlan&action=update&id=11735&name=OReilly api/v1/api.php?target=vlan&action=update&id=11735&tags=156,159 api/v1/api.php?target=vlan&action=update&id=11735&name= api/v1/api.php?target=vlan&action=update&id=11735&tags= |
||||||||||||||||
removeTags
|
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=removeTags |
||||||||||||||||
|
Description |
Remove tags from a domain's VLAN(s). |
||||||||||||||||
|
Returns |
Examples
|
||||||||||||||||
|
Required Parameters |
|
||||||||||||||||
|
Optional Parameters |
None |
||||||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=removeTags&domainId=1&vlan=500-510&tagId=159 api/v1/api.php?target=vlan&action=removeTags&domainId=1&vlan=400,406,500-510&tagId=159,160 |
||||||||||||||||
addTags
|
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api/v1/api.php?target=vlan&action=addTags |
||||||||||||||||
|
Description |
Add tags to a domain's VLAN(s). |
||||||||||||||||
|
Returns |
Examples
|
||||||||||||||||
|
Required Parameters |
|
||||||||||||||||
|
Optional Parameters |
None |
||||||||||||||||
|
Example URL |
api/v1/api.php?target=vlan&action=addTags&domainId=1&vlan=500-510&tagId=159 api/v1/api.php?target=vlan&action=addTags&domainId=1&vlan=400,406,500-510&tagId=159,160 |
||||||||||||||||
smartAssign
|
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
URL |
api.php?target=vlan&action=smartAssign |
||||||||||||
|
Description |
Finds and enables an unassigned VLAN matching the provided search parameters and optionally renames it. |
||||||||||||
|
Returns |
Examples
|
||||||||||||
|
Required Parameters |
|
||||||||||||
|
Optional Parameters |
|
||||||||||||
|
Example URL |
api.php?target=vlan&action=smartAssign&domainId=21&name=RESERVED_DEV&tags=5,7,12 |
||||||||||||