Developer Network

Documentação

Informações e instruções das APIs dos produtos Locaweb.

Interfaces de Rede

Manipulando Interfaces de Rede em servidores via API.

Listagem

Lista todas as Interfaces de Rede de um servidor (Cloud ou Dedicado).

GET:
• https://DOMINIO/v1/cloud/servers/SERVER_NAME/network_interfaces
• https://DOMINIO/v1/dedicated/servers/SERVER_NAME/network_interfaces

Retorno:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
  "data": [
    {
      "type": "network_interfaces",
      "id": "eth0",
      "attributes": {
        "ips": ["186.202.182.196"],
        "mac_address": "d8:9d:67:5b:fa:60",
        "status": "connected",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth1",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:64",
        "status": "reserved",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth2",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:61",
        "status": "available",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth3",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:65",
        "status": "available",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth4",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:62",
        "status": "available",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth5",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:66",
        "status": "available",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth6",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:63",
        "status": "available",
        "network_version": "2.0"
      }
    },
    {
      "type": "network_interfaces",
      "id": "eth7",
      "attributes": {
        "ips": [],
        "mac_address": "d8:9d:67:5b:fa:67",
        "status": "available",
        "network_version": "2.0"
      }
    }
  ]
}