Network Manager/helpers
copyright: |
|
---|---|
license: | MIT, see LICENSE for more details. |
Manage Networks
Reference to the SoftLayer_Account API object.
Adds a global IP address to the account.
Parameters: |
|
---|
Assigns a global IP address to a specified target.
Parameters: |
|
---|
Cancels the specified global IP address.
Parameters: | id (int) – The ID of the global IP to be cancelled. |
---|
Cancels the specified subnet.
Parameters: | id (int) – The ID of the subnet to be cancelled. |
---|
A valid SoftLayer.API.Client object that will be used for all actions.
Returns the RWhois information about the current account.
Returns: | A dictionary containing the account’s RWhois information. |
---|
Returns information about a single subnet.
Parameters: | id (string) – Either the ID for the subnet or its network identifier |
---|---|
Returns: | A dictionary of information about the subnet |
Returns information about a single VLAN.
Parameters: | id (int) – The unique identifier for the VLAN |
---|---|
Returns: | A dictionary containing a large amount of information about the specified VLAN. |
Looks up an IP address and returns network information about it.
Parameters: | ip (string) – An IP address. Can be IPv4 or IPv6 |
---|---|
Returns: | A dictionary of information about the IP |
Returns a list of all global IP address records on the account.
Parameters: | version (int) – Only returns IPs of this version (4 or 6). |
---|
Display a list of all subnets on the account.
This provides a quick overview of all subnets including information about data center residence and the number of devices attached.
Parameters: |
|
---|
Display a list of all VLANs on the account.
This provides a quick overview of all VLANs including information about data center residence and the number of devices attached.
Parameters: |
|
---|
Takes a string and tries to resolve to a list of matching ids. What exactly ‘identifier’ can be depends on the resolvers
Parameters: | identifier (string) – identifying string |
---|---|
Returns list: |
Provides a dictionary with a summary of all network information on the account, grouped by data center.
The resultant dictionary is primarily useful for statistical purposes. It contains count information rather than raw data. If you want raw information, see the list_vlans() method instead.
Returns: | A dictionary keyed by data center with the data containing a series of counts for hardware, subnets, CCIs, and other objects residing within that data center. |
---|
Unassigns a global IP address from a target.
Parameters: | id (int) – The ID of the global IP being unassigned |
---|
Reference to the SoftLayer_Network_Vlan object.