NicApi
Last updated
Last updated
All URIs are relative to https://api.ionos.com/cloudapi/v5
Method | HTTP request | Description |
---|---|---|
object datacentersServersNicsDelete(datacenterId, serverId, nicId, opts)
Delete a Nic
Deletes the specified NIC.
object
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
datacentersServersNicsFindById(datacenterId, serverId, nicId, opts)
Retrieve a Nic
Retrieves the attributes of a given NIC
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
object datacentersServersNicsFirewallrulesDelete(datacenterId, serverId, nicId, firewallruleId, opts)
Delete a Firewall Rule
Removes the specific Firewall Rule
object
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
datacentersServersNicsFirewallrulesFindById(datacenterId, serverId, nicId, firewallruleId, opts)
Retrieve a Firewall Rule
Retrieves the attributes of a given Firewall Rule.
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
datacentersServersNicsFirewallrulesGet(datacenterId, serverId, nicId, opts)
List Firewall Rules
Retrieves a list of firewall rules associated with a particular NIC
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
datacentersServersNicsFirewallrulesPatch(datacenterId, serverId, nicId, firewallruleId, firewallrule, opts)
Partially modify a Firewall Rule
You can use update attributes of a resource
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
datacentersServersNicsFirewallrulesPost(datacenterId, serverId, nicId, firewallrule, opts)
Create a Firewall Rule
This will add a Firewall Rule to the NIC
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
datacentersServersNicsFirewallrulesPut(datacenterId, serverId, nicId, firewallruleId, firewallrule, opts)
Modify a Firewall Rule
You can use update attributes of a resource
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
datacentersServersNicsGet(datacenterId, serverId, opts)
List Nics
Retrieves a list of NICs.
Basic Authentication, Token Authentication
Content-Type: Not defined
Accept: application/json
datacentersServersNicsPatch(datacenterId, serverId, nicId, nic, opts)
Partially modify a Nic
You can use update attributes of a Nic
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
datacentersServersNicsPost(datacenterId, serverId, nic, opts)
Create a Nic
Adds a NIC to the target server. Combine count of Nics and volumes attached to the server should not exceed size 24.
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
datacentersServersNicsPut(datacenterId, serverId, nicId, nic, opts)
Modify a Nic
You can use update attributes of a Nic
Basic Authentication, Token Authentication
Content-Type: application/json
Accept: application/json
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
Name | Type | Description | Notes |
---|---|---|---|
DELETE /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Delete a Nic
GET /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Retrieve a Nic
DELETE /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Delete a Firewall Rule
GET /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Retrieve a Firewall Rule
GET /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules
List Firewall Rules
PATCH /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Partially modify a Firewall Rule
POST /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules
Create a Firewall Rule
PUT /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}/firewallrules/{firewallruleId}
Modify a Firewall Rule
GET /datacenters/{datacenterId}/servers/{serverId}/nics
List Nics
PATCH /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Partially modify a Nic
POST /datacenters/{datacenterId}/servers/{serverId}/nics
Create a Nic
PUT /datacenters/{datacenterId}/servers/{serverId}/nics/{nicId}
Modify a Nic
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
firewallruleId
string
The unique ID of the Firewall Rule
[default to undefined]
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
firewallruleId
string
The unique ID of the Firewall Rule
[default to undefined]
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
offset
number
the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
[optional][default to 0]
limit
number
the maximum number of elements to return (use together with <code>offset</code> for pagination)
[optional][default to 1000]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
firewallruleId
string
The unique ID of the Firewall Rule
[default to undefined]
firewallrule
Modified Firewall Rule
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
firewallrule
Firewall Rule to be created
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
firewallruleId
string
The unique ID of the Firewall Rule
[default to undefined]
firewallrule
Modified Firewall Rule
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
offset
number
the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
[optional][default to 0]
limit
number
the maximum number of elements to return (use together with <code>offset</code> for pagination)
[optional][default to 1000]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
nic
Modified properties of Nic
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nic
Nic to be created
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]
datacenterId
string
The unique ID of the datacenter
[default to undefined]
serverId
string
The unique ID of the Server
[default to undefined]
nicId
string
The unique ID of the NIC
[default to undefined]
nic
Modified Nic
pretty
boolean
Controls whether response is pretty-printed (with indentation and new lines)
[optional][default to true]
depth
number
Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
[optional][default to 0]
xContractNumber
number
Users having more than 1 contract need to provide contract number, against which all API requests should be executed
[optional][default to undefined]