...
Unassign |
---|
URL | /api/v1/api.php?target=ipam&action=unassign |
Description | Reclaims the specified block to be reassigned in the future |
Returns | Examples: SUCCESSFUL | { "success":1,"message":"192.168.0.0/24 unassigned", "id":12345, "data":{ "id":12345, "cidr":192.168.0.0/24", ...} } | ERROR | { "success":0, "message":"error message" } |
|
Required Parameters | Name | Type | Example | Description |
---|
block* | STRING | 213.37.29.0/24 | CIDR block description | id* | INTEGER | 125 | ID of the IP block | *Either block or id can be used, but only one must be provided |
|
Optional Parameters | Name | Type | Example | Description |
---|
skipHolding | BOOL | true | If set to true (skipHolding=true) then the holding tank is skipped. If set to false, or not included, normal holding tank rules apply. Acceptable values: "true" or "false" |
|
Example URL | /api/v1/api.php?target=ipam&action=unassign&block=213.37.29.0/24 |
Simple Reassign |
---|
URL | /api/v1/api.php?target=ipam&action=simpleReassigngetTagList |
DescriptionARIN SWIP - simple reassign. Creates an ARIN customer record for the assigned resource and reassigns the block to the ARIN customer record | Returns a list of all valid IP Tags in the database. |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"Sent ARIN SWIP with action simpleReassign for 67.221.244.0/28 for Acme, Message: Success" } | ERROR | { "success":0, "message":"error message" } |
|
Required Parameters | Name | Type | Example | Description |
---|
blockId | INTEGER | 1234 | ID of the block to reassing | resourceId | INTEGER | 1234 | ID of resource representing the customer to reassign to | lirId | INTEGER | 1234 | ID of the LIR to use for reassignment | entityHandle | STRING | CONNE-81 | The Org ID for the LIR. |
|
Tags Retrieved.","data":[{"value":"IT","name":"IT"},{"value":"LTE","name":"LTE Mobile"},{"value":"PTP","name":"Point to Point"},{"value":"Prod","name":"Production"},{"value":"VM","name":"Virtual Machines"},{"value":"VOIP","name":"VOIP"},{"value":"ANY","name":"ANY"}]} | ERROR | {'success':0, 'message':'error message'} |
|
Add Tag To List |
---|
URL | /api/v1/api.php?target=ipam&action=addTagToList |
Description | Adds a tag to the IPAM tag list |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"Tag Added."} | ERROR | {'success':0, 'message':'error message'} |
|
Required Optional Parameters | Name | Type | Example | Description |
---|
netName newTag | STRING | NET-ACME-67-221-244-0-28 | Optional name for the network to override the default. The default net name will be created using the Net Name Prefix and IP address for the block. | Loopback C | The value to add to the list of name/value pairs which make up the list of available regions |
|
Optional Parameters | None |
Example | Example URL | /api/v1/api.php?target=ipam&action= | simpleReassignaddTagToList& | resourceId=121&blockId=31559&lirId=95&entityHandle=CONNE-81&&netName=NET-ACME-67-221-244-0-28newTag=Loopback C |
Get Regions Get Tags List |
---|
URL | /api/v1/api.php?target=ipam&action=getTagListgetRegionList |
Description | Returns a list of all valid IP Tags Regions in the database. |
Returns | Examples: |
Get RIRs List |
---|
URL | /api/v1/api.php?target=ipam&action=getRIRList |
Description | Returns a list of all valid RIRs in the database. |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"Tags Regions Retrieved.","data":[{"value":"ITANY","name":"ITAny Region"},{"value":"LTEASH1","name":"LTE MobileAshburn, VA"},{"value":"PTPBOS","name":"Point to PointBoston, MA"},{"value":"ProdCHI","name":"ProductionChicago, IL"},{"value":"VMDAL","name":"Virtual MachinesDallas, TX"},{"value":"VOIPDEN","name":"VOIPDenver, CO"},{"value":"ANYFRKT","name":"ANY"}]} | ERROR | {'success':0, 'message':'error message'} |
|
Add Tag To List |
---|
URL | /api/v1/api.php?target=ipam&action=addTagToList |
Description | Adds a tag to the IPAM tag list |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"Tag Added."} | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
newTag | STRING | Loopback C | The value to add to the list of name/value pairs which make up the list of available regions |
|
Optional Parameters | None |
Example URL | /api/v1/api.php?target=ipam&action=addTagToList&newTag=Loopback C |
{"success":1,"message":"RIRs Retrieved.","data":[{"value":"ARINFrankfurt, DE"},{"value":"LON1","name":"London, UK"},{"value":"MIA","name":"Miami, FL"},{"value":"PAR","name":"Paris, FR"},{"value":"SFO","name":"San Francisco, CA"},{"value":"SEA","name":"Seattle, WA"},{"value":"Tokyo","name":"ARINTokyo"},{"value":"1918Singapore","name":"1918Singapore"},{"value":"AfriNICJakarta","name":"AfriNIC"},{"value":"APNIC","name":"APNIC"},{"value":"LACNIC","name":"LACNIC"},{"value":"RIPE","name":"RIPE"},{"value":"1918-SJC","name":"1918-SJC"}Jakarta"}]} | ERROR | {'success':0, 'message':'error message'} |
|
Get Regions Add Region To List |
---|
URL | /api/v1/api.php?target=ipam&action= getRegionListaddRegionToList |
Description | Returns Adds a list of all valid Regions in the database.region to the IPAM region list |
Returns | Returns | Examples: SUCCESSFUL | {"success":1,"message":" Regions RetrievedRegion Added." ,"data":[{"value":"ANY","name":"Any Region"},{"value":"ASH1","name":"Ashburn, VA"},{"value":"BOS","name":"Boston, MA"},{"value":"CHI","name":"Chicago, IL"},{"value":"DAL","name":"Dallas, TX"},{"value":"DEN","name":"Denver, CO"},{"value":"FRKT","name":"Frankfurt, DE"},{"value":"LON1","name":"London, UK"},{"value":"MIA","name":"Miami, FL"},{"value":"PAR","name":"Paris, FR"},{"value":"SFO","name":"San Francisco, CA"},{"value":"SEA","name":"Seattle, WA"},{"value":"Tokyo","name":"Tokyo"},{"value":"Singapore","name":"Singapore"},{"value":"Jakarta","name":"Jakarta"}]}}
| ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
newRegion | STRING | SFO | The value to add to the list of name/value pairs which make up the list of available regions |
|
Optional Parameters | None |
Example URL | /api/v1/api.php?target=ipam&action=addRegionToList&newRegion=SFO |
Get Utilization |
---|
URL | /api/v1/api.php?target=ipam&action=utilization |
Description | Gets the utilization percentages for a specific ip block or ip block and mask combination. |
Returns | Examples: SUCCESSFUL | { "success": 1, "totalBlocks": 1, "totalHosts": "256", "hostsAssigned": 0, "hostsAllocated": "256", "hostsAvailable": "256", "hostsInHolding": 0, "availablePercentage": "100.00", "assignedPercentage": "0.00", "allocatedPercentage": "100.00", "inHoldingPercentage": "0.00", "resources": [{ "id": 351, "name": "Customer 1", "type": "entry", "hosts": "256", "blocks": "1", "percentage": "100.00" }], "blocksAssigned":0, "blocksAllocated": 1, "blocksAvailable": "1", "blocksInHolding": null, "blocksAssignedPercentage": "0.00", "blocksAllocatedPercentage": "100.00", "blocksAvailablePercentage": "100.00", "blocksInHoldingPercentage": "0.00" } | ERROR | {'success | ERROR | {'success':0, 'message':'error message'} |
|
Add Region To List |
---|
URL | /api/v1/api.php?target=ipam&action=addRegionToList |
Description | Adds a region to the IPAM region list |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"Region Added."}
| ERROR | {'success':0, 'message':'error message'} |
|
|
Required Parameters | Name | Type | Example | Description |
---|
block* | STRING | 213.37.29.0/24 | CIDR block description | id* | INTEGER | 125 | ID of the IP block | *Either block or id can be used, but only one must be provided |
|
Optional | Required Parameters | Name | Type | Example | Description |
---|
| newRegion | STRING | SFO | value to add to the list of name/value pairs which make up the list of available regionsOptional Parameters | Nonespecific mask size to retrieve utilization for. If using this parameter, the id parameter should be the id of the aggregate. |
|
Example URL | /api/v1/api.php?target=ipam&action=addRegionToListutilization&newRegionid=SFO125 |
Get Host Utilization |
---|
URL | /api/v1/api.php?target=ipam&action=utilizationgetHostUtilization |
Description | Gets the host utilization percentages for a specific ip block or ip block and mask combinationstatistics with support for filters. |
Returns | Examples: SUCCESSFUL | { "success": 1, "totalBlocks": 1,"totalHosts": "256", "hostsAssigned": 0, "hostsAllocated": "256", "hostsAvailable": "256", "hostsInHolding": 0, "availablePercentage": "100.00", "assignedPercentage": "0.00", "allocatedPercentage": "100.00", "inHoldingPercentage": "0.00", "resources": [{ "id": 351, "name": "Customer 1", "type": "entry", "hosts": "256", "blocks": "1", "percentage": "100.00" }] , "blocksAssigned":0,"blocksAllocated": 1, "blocksAvailable": "1", "blocksInHolding": null, "blocksAssignedPercentage": "0.00", "blocksAllocatedPercentage": "100.00", "blocksAvailablePercentage": "100.00", "blocksInHoldingPercentage": "0.00" } | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
block*type | STRING | 213.37.29.0/24 | CIDR block description | id* | INTEGER | 125 | ID of the IP block | *Either block or id can be used, but only one must be provided | "ipv4" or "ipv6" | IP type |
|
Optional Parameters | Name | Type | Example | Multiple Values | Description |
---|
maskcode | INTEGER | 24 | The specific mask size to retrieve utilization for. If using this parameter, the id parameter should be the id of the aggregate. |
|
Example URL | /api/v1/api.php?target=ipam&action=utilization&id=125 |
Get Host Utilization |
---|
URL | /api/v1/api.php?target=ipam&action=getHostUtilization |
Description | Gets the host utilization statistics with support for filters. |
Returns | Examples: SUCCESSFUL | { "success": 1, "totalHosts": "256", "hostsAssigned": 0, "hostsAllocated": "256", "hostsAvailable": "256", "hostsInHolding": 0, "availablePercentage": "100.00", "assignedPercentage": "0.00", "allocatedPercentage": "100.00", "inHoldingPercentage": "0.00", "resources": [{ "id": 351, "name": "Customer 1", "type": "entry", "hosts": "256", "blocks": "1", "percentage": "100.00" }] } | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
type | STRING | "ipv4" or "ipv6" | IP type |
|
STRING | "code-1" | Yes | User-defined block code as defined in Admin-IPAM settings: Generic Code Per Block Name | region | STRING | "SFO" | Yes | Region to assign from | rir | STRING | ARIN | No | Acceptable values: ARIN, RIPE, APNIC, AfriNIC, LACNIC, 1918 | tags | STRING | "Customer" | Yes | Comma separated string of tags | vlan | INTEGER | 1000 | Yes | VLAN designated to a given block |
NOTE: to filter using multiple values, pass the values as a JSON-encoded string representation of an array. For example, to get utilization data for multiple tags, you could use the following URL: /api/v1/api.php?target=ipam&action=getHostUtilization&type=ipv4&tags=["Customer","PTP"] |
Example URL | /api/v1/api.php?target=ipam&action=getHostUtilization&type=ipv4&tags=["Customer","PTP"]®ion=SMF |
Aggregate |
---|
URL | /api/v1/api.php?target=ipam&action=aggregate |
Description | Aggregates a selected block to the mask specified. If no mask specified, re-aggregates blocks to next parent. IE. calling aggregate on a /25 will aggregate both children back to the parent /24. All child blocks must be Available for aggregation to succeed. |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"10.2.0.128\/25 aggregated into 10.2.0.0\/24","id":16326}
| ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
id* | INTEGER | 125 | ID of the IP block. | block* | STRING | 213.37.29.0/24 | CIDR block. | *Either block or id can be used, but only one must be provided |
|
Optional Parameters | Name | Type | Example | Description |
---|
autoAggregateToMask | INTEGER | 24 | All blocks and IPs smaller than this netmask will be aggregated. | ignoreAssignments | BOOL | TRUE | If the ignoreAssignment flag is not set the aggregation operation will fail if any children beneath the supplied autoAggregateToMask are assigned or otherwise unavailable. If this option is set, it will unassign blocks prior to reaggregation. |
|
Example URL | Optional Parameters | Name | Type | Example | Multiple Values | Description |
---|
code | STRING | "code-1" | Yes | User-defined block code as defined in Admin-IPAM settings: Generic Code Per Block Name |
region | STRING | "SFO" | Yes | Region to assign from |
rir | STRING | ARIN | No | Acceptable values: ARIN, RIPE, APNIC, AfriNIC, LACNIC, 1918 |
tags | STRING | "Customer" | Yes | Comma separated string of tags |
vlan | INTEGER | 1000 | Yes | VLAN designated to a given block |
NOTE: to filter using multiple values, pass the values as a JSON-encoded string representation of an array.
For example, to get utilization data for multiple tags, you could use the following URL: | /api/v1/api.php?target=ipam&action= | getHostUtilizationaggregate& | typeid= | ipv4125& | tags=["Customer","PTP"]Example autoAggregateToMask=24 |
Split |
---|
URL | /api/v1/api.php?target=ipam&action= | getHostUtilization&type=ipv4&tags=["Customer","PTP"]®ion=SMF
split |
Description | Splits a selected |
Aggregate |
---|
URL | /api/v1/api.php?target=ipam&action=aggregate |
Description | Aggregates a selected block to the mask specified. If no mask specified, re-aggregates it split blocks to next parentchild. IE. calling aggregate on a /25 24 will aggregate split both children back parent to the parent child /2425s. All child parent blocks must be Available for aggregation , or have Allow Sub Assignments on for a split to succeed. |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"10. 212825aggregated224","id":1632625 and 10.1.0.128\/25","data":{"child1":23441
,"child2":23451}}
| ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
id* | INTEGER | 125 | ID of the IP block. | block* | STRING | 213.37.29.0/24 | CIDR block. | *Either block or id can be used, but only one must be provided |
|
Optional Parameters | Name | Type | Example | Description |
---|
autoAggregateToMaskautoSplitToMask | INTEGER | 24 | All blocks and IPs smaller than this netmask will be aggregated. | Auto aggregate the block back to this mask size. Note all blocks up this mask size must be Available or call will fail. | autoSplitLimit | INTEGER | 4 | A number the power of 2 (^2). | ignoreAssignments | BOOL | TRUE | If the ignoreAssignment flag is not set the aggregation operation will fail if any children beneath the supplied autoAggregateToMask are assigned or otherwise unavailable. If this option is set, it will unassign blocks prior to reaggregation. |
|
Example URL | /api/v1/api.php?target=ipam&action=aggregatesplit&id=125&autoAggregateToMask=24block=213.37.29.0/24&autoSplitLimit=4 |
Scan BlockSplit |
---|
URL | /api/v1/api.php?target=ipam&action=splitscanBlock |
Description | Splits a selected block to the mask specified. If no mask specified, it split blocks to next child. IE. calling aggregate on a /24 will split both parent to the child /25s. All parent blocks must be Available, or have Allow Sub Assignments on for a split to succeed.Initiates an asynchronous ping (ICMP) scan of the target block specified. Results of the scan can be checked with get. |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"10.1.0.0\/24 split into 10.1.0.0\/25 and 10.1.0.128\/25","data":{"child1":23441
,"child2":23451}}
Ping scan started for 8.8.8.0\/27"} | ERROR | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
id* | INTEGER | 125 | ID of the IP block. | block* | STRING | 213.37.29.0/24 | CIDR block. | *Either block or id can be used, but only one must be provided |
|
Optional Parameters | Name | Type | Example | Description |
---|
autoSplitToMask | INTEGER | 24 | Auto aggregate the block back to this mask size. Note all blocks up this mask size must be Available or call will fail. | autoSplitLimit | INTEGER | 4 | A number the power of 2 (^2). |
| None |
Example | /api/v1/api.php?target | Example URL | /api/v1/api.php?target=ipam&action=splitscanBlock&block=213.37.29.0/24&autoSplitLimit=4 |
Get Scan BlockResults |
---|
URL | /api/v1/api.php?target=ipam&action=scanBlockgetScanResults |
Description | Initiates an asynchronous ping (ICMP) scan of the target block specified. Results of the scan can be checked with get. |
Returns | Examples: SUCCESSFUL | {"success":1,"data":{"messageblock":"Ping scan started for 8.8.8.0\/27"},"date":"07\/14\/2014 11:07:10", "data":[{"address":"8.8.8.8","host":"google-public-dns-a.google.com","status":"Up"}],"status":"completed","hostsScanned":4,"activeHosts":4}} | ERROR | {'success':0, 'message':' | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
id* | INTEGER | 125 | ID of the IP block. | block* | STRING | 213.37.29.0/24 | CIDR block. | *Either block or id can be used, but only one must be provided |
|
Optional Parameters | None |
Example | /api/v1/api.php?target=ipam&action=scanBlockgetScanResults&block=213.37.29.0/24 |
Get Scan ResultsOptions |
---|
URL | /api/v1/api.php?target=ipam&action= getScanResultsgetOptions |
Description | Initiates an asynchronous ping (ICMP) scan of the target block specified. Results of the scan can be checked with getReturns a list of options available for the block |
Returns | Examples: SUCCESSFUL | {"success":1," | datamessage": | {"block":"8.8.8"Options for 14.0.0.0\/ | 2725 (125)"," | dateoptions": | "07\/14\/2014 11:07:10","data{"actions":["aggregate"],"templates":[{" | addressname":" | 8.8.8.8Auto Split"," | host":"google-public-dns-a.google.com","status":"Up"}],"status":"completed","hostsScanned":4,"activeHosts":4masks":[26,27,28,29,30,31,32]}]}} | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
| block | STRING | 213.37.29.0/24 | INTEGER | 125 | ID of the IP block |
| CIDR block. |
Optional Parameters | None |
Example URL | /api/v1/api.php?target=ipam&action=getScanResultsgetOptions&block=213.37.29.0/24id=125 |
Get Resource HierarchyGet Options |
---|
URL | /api/v1/api.php?target=ipam&action=getOptionsgetResourceHierarchy |
Description | Returns a list of options available the resource hierarchy for the block |
Returns | Examples: SUCCESSFUL | {"success":"1,"message":"Options for 14.0.0.0\/25 (125)","optionsdata":[{"actionsid":["aggregate402"],"templates":[{"name":"Auto Split","masks":[26,27,28,29,30,31,32]}]}6connect Labz"}]} | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | Name | Type | Example | Description |
---|
id | INTEGER | 125 | ID of the IP block |
|
Optional Parameters | None |
Example URL | /api/v1/api.php?target=ipam&action=getOptionsgetResourceHierarchy&id=125 |
Get |
Resource HierarchyVLAN |
---|
URL | /api/v1/api.php?target=ipam&action= |
getResourceHierarchygetVlan |
Description | Returns the |
resource hierarchy VLAN for the block |
Returns |
Examples:
| Examples: SUCCESSFUL | {"success":1,"message":"Found VLAN 1002 (14.0.0.0\/25)","data":{"id":125,"type":"ipv4","top_aggregate":81532,"cidr":"14.0.0.0\/25","formatted_ip":"14.0.0.0\/25","address":"234881024","end_address":"234881151","mask":25,"netmask":"255.255.255.128","child1":null,"child2":null,"is_assigned":0,"is_swipped":0,"is_aggregate":1,"custid":402,"resource_id":402,"resource_name":"6connect Labz","last_updated_time":"2015-01-22 12:30:37","description":null,"parent":81532,"rir":"ARIN","lir_id":"1062","notes":"Test Notes","generic_code":"Datacenter2","code":"Datacenter2","region":"ATL","region_name":"Atlanta, GA","vlan":1002,"arin_net_id":null,"arin_cust_id":null,"org_id":null,"arin_swip_time":null,"assigned_time":"2015-01-14 10:30:31","asn":"143","allowSubAssignments":true,"permissions":{"permissionIPAMRead":"1","permissionIPAMUpdate":"1","permissionIPAMCreate |
|
SUCCESSFUL | {"success |
data |
[{"id |
402 |
name |
6connect Labz"}]1"},"range":"14.0.0.0 - 14.0.0.127","tags":["Customer"]}} | ERROR | {'success':0, 'message':'error message'} |
|
125 | ID of the IP blockRequired Parameters | Name | Type | Example | Description |
---|
id* | INTEGER |
|
| 125 | ID of the IP block | block* | STRING | 213.37.29.0/24 | CIDR block. | *Either block or id can be used, but only one must be provided |
|
|
Optional Parameters | None |
Example URL | /api/v1/api.php?target=ipam&action= |
getResourceHierarchygetVlan&id=125 | Get VLAN
Process Holding Tank |
---|
URL | /api/v1/api.php?target=ipam&action= |
getVlanprocessHoldingTank |
Description |
Returns the VLAN for the blockProcesses the Holding Tank, returning held blocks to available status |
Returns | Examples: SUCCESSFUL | {"success":1,"message":" |
|
Found VLAN 1002 (14.0.0.0\/25)1 IPv4 and 0 IPv6 blocks would be moved to the available pool. ","data":[{"id": |
|
12577712,"type":"ipv4","top_aggregate": |
|
81532 |
14 |
0 |
0 |
25 |
14 |
0 |
0 |
25 |
234881024391905344","end_address":" |
|
234881151 |
2526,"netmask":"255.255.255. |
|
128192","child1":null,"child2":null,"is_assigned":0,"is_swipped":0,"is_aggregate":1,"custid": |
|
402 |
402188,"resource_name":"6connect |
|
Labzholding","last_updated_time":" |
|
2015 |
01 |
22 12 |
30 |
3741","description":null,"parent": |
|
8153277682,"rir":"ARIN","lir_id":" |
|
1062 |
"Test Notes" |
"Datacenter2" |
"Datacenter2" |
ATL |
Atlanta |
GA |
1002null,"arin_net_id":null,"arin_cust_id":null,"org_id":null,"arin_swip_time":null,"assigned_time":" |
|
2015 |
01-14 10:30:31","asn":"143","allowSubAssignments":true,"permissions":{"permissionIPAMRead":"1","permissionIPAMUpdate":"1","permissionIPAMCreate":"1","permissionIPAMDelete":"1","permissionSWIP":"1","permissionAdmin":"1"},"range":"14.0.0.0 - 14.0.0.127","tags":["Customer"]}}ERROR | {'success':0, 'message':'error message'10-29 11:20:34","asn":null,"allowSubAssignments":false,"permissions":{"permissionIPAMRead":"1","permissionIPAMUpdate":"1","permissionIPAMCreate":"1","permissionIPAMDelete":"1","permissionSWIP":"1","permissionAdmin":"1"},"range":"23.92.0.64 - 23.92.0.127","tags":["Customer","DSL"]}]} | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | None |
Optional Parameters | Name | Type | Example | Description |
---|
preview | BOOL | true | Shows what is going to be removed from the holding tank. Acceptable values: "true" or "false" |
|
Example URL | /api/v1/api.php?target=ipam&action=processHoldingTank&preview=true |
IPAM SWIP Calls:
Deassign |
---|
URL | /api/v1/api.php?target=ipam&action=deassign |
Description | Performs a SWIP deassignment for the indicated IPAM block. |
Returns | Examples: SUCCESSFUL | { "success":1,"message":"success message" } | ERROR | { "success":0, "message":"error message" } |
|
Required Parameters | Name | Type | Example | Description |
---|
|
id* |
125 |
IP |
* |
213 |
37 |
29 |
block.of the block being de-assigned | resourceId | INTEGER | 1234 | ID of resource representing the customer to deassign | lirId | INTEGER | 1234 | The ProVision id of the LIR which is performing the de-assignment | entityHandle | STRING | CONNE-81 | The Org ID for the LIR. |
|
Optional Parameters | Name | Type | Example | Description |
---|
netName | STRING | 6CONN-67-221-241-0-24 | Optional name for the network to override the default. The default net name will be created using the Net Name Prefix and IP address for the block. |
|
Example URL | /api/v1/api.php?target=ipam&action=deassign&resourceId=1234&blockId=1234&lirId=1234&entityHandle=CONNE-81&block=67.221.241.0/24&netName=6CONN-67-221-241-0-24 |
Get RIR List |
---|
URL | /api/v1/api.php?target=ipam&action=getRIRList |
Description | Returns a list of all valid RIRs in the database. |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"RIRs Retrieved.","data":[{"value":"ARIN","name":"ARIN"},{"value":"1918","name":"1918"},{"value":"AfriNIC","name":"AfriNIC"},{"value":"APNIC","name":"APNIC"},{"value":"LACNIC","name":"LACNIC"},{"value":"RIPE","name":"RIPE"},{"value":"1918-SJC","name":"1918-SJC"}]} | ERROR | {'success':0, 'message':'error message'} |
|
Simple Reassign |
---|
URL | /api/v1/api.php?target=ipam&action=simpleReassign |
Description | ARIN SWIP - simple reassign. Creates an ARIN customer record for the assigned resource and reassigns the block to the ARIN customer record. |
Returns | Examples: SUCCESSFUL | { "success":1,"message":"Sent ARIN SWIP with action simpleReassign for 67.221.244.0/28 for Acme, Message: Success" } | ERROR | { "success":0, "message":"error message" } |
|
Required Parameters | Name | Type | Example | Description |
---|
blockId | INTEGER | 1234 | ID of the block to reassign | resourceId | INTEGER | 1234 | ID of resource representing the customer to reassign to | lirId | INTEGER | 1234 | The ProVision id of the LIR to use for reassignment | entityHandle | STRING | CONNE-81 | The Org ID for the LIR. |
|
*Either block or id can be used, but only one must be provided
Optional Parameters | None |
Example URL | /api/v1/api.php?target=ipam&action=getVlan&id=125 |
Process Holding Tank |
---|
URL | /api/v1/api.php?target=ipam&action=processHoldingTank |
Description | Processes the Holding Tank, returning held blocks to available status |
Returns | Examples: SUCCESSFUL | {"success":1,"message":"1 IPv4 and 0 IPv6 blocks would be moved to the available pool. ","data":[{"id":77712,"type":"ipv4","top_aggregate":77552,"cidr":"23.92.0.64\/26","formatted_ip":"23.92.0.64\/26","address":"391905344","end_address":"391905407","mask":26,"netmask":"255.255.255.192","child1":null,"child2":null,"is_assigned":0,"is_swipped":0,"is_aggregate":1,"custid":188,"resource_id":188,"resource_name":"6connect holding","last_updated_time":"2014-10-29 11:25:41","description":null,"parent":77682,"rir":"ARIN","lir_id":"451","notes":null,"generic_code":null,"code":null,"region":"PHX","region_name":"Phoenix, AZ","vlan":null,"arin_net_id":null,"arin_cust_id":null,"org_id":null,"arin_swip_time":null,"assigned_time":"2014-10-29 11:20:34","asn":null,"allowSubAssignments":false,"permissions":{"permissionIPAMRead":"1","permissionIPAMUpdate":"1","permissionIPAMCreate":"1","permissionIPAMDelete":"1","permissionSWIP":"1","permissionAdmin":"1"},"range":"23.92.0.64 - 23.92.0.127","tags":["Customer","DSL"]}]} | ERROR | {'success':0, 'message':'error message'} |
|
Required Parameters | None |
Optional Parameters | Name | Type | Example | Description |
---|
previewnetName | BOOL | true | Shows what is going to be removed from the holding tank. Acceptable values: "true" or "false" | STRING | NET-ACME-67-221-244-0-28 | Optional name for the network to override the default. The default net name will be created using the Net Name Prefix and IP address for the block. |
|
Example URL | /api/v1/api.php?target=ipam&action= | processHoldingTank&preview=truesimpleReassign&resourceId=121&blockId=31559&lirId=95&entityHandle=CONNE-81&&netName=NET-ACME-67-221-244-0-28 |
IPAM API Calls Subject to Change:
Calls below this point are subject to change, and are not recommended for use in production code.
...