Create a new interface of the given virtual machine
POST/projects/:projectId/zones/:zoneName/virtualmachines/:virtualMachineId/interfaces
The interface is inserted into the interface list of the virtual machine.
Request
Path Parameters
Project Identifier
Zone name
Virtual machine Identifier
Header Parameters
Your SIU token if you use this API through Orange Developer.
Bearer access token authentication if you use this API through Orange Developer or Orange Developer Inside.
Your SIU Id if you use this API through Orange Developer Inside.
- application/json
Body
required
Interface parameters.
Array [
- "true": the IP address cannot be routed outside the local network (NB: not compatible with BGPaaS)
- "false": the IP address can be routed outside the local network
]
Array [
]
Array [
]
Array [
]
Array [
- "true": the IP address cannot be routed outside the local network (NB: not compatible with BGPaaS)
- "false": the IP address can be routed outside the local network
]
Array [
]
Array [
]
Possible values: <= 40 characters
, Value must match regular expression [A-Za-z0-9-]
Name of the interface, must be unique on the VM.
Description of the interface.
Default value: true
Enable the interface. The interface can be disabled/enabled by updating this parameter or by using the disable/enable actions. By default, the interface is enabled.
virtualNetworkRef
object
required
Identifier of the virtual network to which the interface is linked. This attribute can not be updated.
Identifier of the referred resource. If not provided, either name or hRef must be filled. This parameter can not be updated.
Possible values: non-empty
and <= 40 characters
Name of the referred resource. If not provided, either hRef or identifier must be filled. This parameter can not be updated.
hRef of the referred resource. If not provided, either name or identifier must be filled. This parameter can not be updated.
ipAddresses
object[]
required
Possible values: >= 1
List of the IP addresses of the interface.
Possible values: Value must match regular expression ^(?:(?:(?:1\d{2}|[1-9]?\d|2[0-4]\d|25[0-5])(?:\.(?!$)|$)){4})|(?:(?:(?:[a-f1-9A-F][a-fA-F\d]{1,3}|[a-fA-F\d])(?::(?!$)|$)){8})$
IP address.
Possible values: [ipv4
, ipv6
]
IP Family Enum (ipv6 not available yet).
Scope of the IP address:
Possible values: Value must match regular expression ^(?:(?:(?:1\d{2}|[1-9]?\d|2[0-4]\d|25[0-5])(?:\.(?!$)|$)){4})|(?:(?:(?:[a-f1-9A-F][a-fA-F\d]{1,3}|[a-fA-F\d])(?::(?!$)|$)){8})$
Floating IP address reserved with Orange associated with the interface. This attribute can not be updated.
Possible values: Value must match regular expression ^(?:(?:(?:1\d{2}|[1-9]?\d|2[0-4]\d|25[0-5])(?:\.(?!$)|$)){4})|(?:(?:(?:[a-f1-9A-F][a-fA-F\d]{1,3}|[a-fA-F\d])(?::(?!$)|$)){8})$
Fixed IP address mapped to the public IP address used as floating IP
securityGroupRefs
object[]
Identifiers of the security group.
Identifier of the referred resource. If not provided, either name or hRef must be filled. This parameter can not be updated.
Possible values: non-empty
and <= 40 characters
Name of the referred resource. If not provided, either hRef or identifier must be filled. This parameter can not be updated.
hRef of the referred resource. If not provided, either name or identifier must be filled. This parameter can not be updated.
allowedIpAddressPairs
object[]
Other IP address pairs to realize nominal/backup
Virtual IP address.
Possible values: [active-active
, active-standby
]
VRRP mode.
Possible values: Value must match regular expression ^[\da-fA-F]{2}(?:-[\da-fA-F]{2}){5}$
MAC address associated to the Virtual IP address. If not provided, the MAC address of the active interface will be used.
Possible values: Value must match regular expression ^[\da-fA-F][02468aACEce](?:-[\da-fA-F]{2}){5}$
Mac address of the interface. Automatically assigned by system if not provided. Automatically calculated with md5sum on the interface name if empty.
interfaceRoutes
object[]
Interface loopback prefixe(s) and attributes to advertise.
Subnet in CIDR format.
Community Tags.
subInterfaces
object
Subinterfaces supported on the interface
Possible values: <= 40 characters
, Value must match regular expression [A-Za-z0-9-]
Name of the subinterface. Must be unique for the interface. This attribute can not be updated.
Possible values: <= 100 characters
, Value must match regular expression ^[ -Za-zà-ë_]
Subinterface description.
Default value: true
Enable the subinterface. The interface can be disabled/enabled by updating this parameter.
virtualNetworkRef
object
required
The class represents a reference to a unique resource in API. Such reference refers to an resource either by its identifier, or by its name, or by both.
Identifier of the referred resource. If not provided, either name or hRef must be filled. This parameter can not be updated.
Possible values: non-empty
and <= 40 characters
Name of the referred resource. If not provided, either hRef or identifier must be filled. This parameter can not be updated.
hRef of the referred resource. If not provided, either name or identifier must be filled. This parameter can not be updated.
802.1Q VLAN tag (range [100-199] recommended). This attribute can not be updated.
ipAddresses
object[]
required
List of the IP addresses of the subinterface.
Possible values: Value must match regular expression ^(?:(?:(?:1\d{2}|[1-9]?\d|2[0-4]\d|25[0-5])(?:\.(?!$)|$)){4})|(?:(?:(?:[a-f1-9A-F][a-fA-F\d]{1,3}|[a-fA-F\d])(?::(?!$)|$)){8})$
IP address.
Possible values: [ipv4
, ipv6
]
IP Family Enum (ipv6 not available yet).
Scope of the IP address:
The floating IP is used to configure 1-to-1 NAT on the subinterface. This parameter specifies the Public IP address to use for NAT. This attribute can not be updated.
The floating IP is used to configure 1-to-1 NAT on the subinterface. This parameter specifies the Private IP address to use for NAT in case multiple IP addresses have been configured (this is recommended in this case, otherwise the private IP address will be selected randomly).
securityGroupRefs
object
The class represents a reference to a unique resource in API. Such reference refers to an resource either by its identifier, or by its name, or by both.
Identifier of the referred resource. If not provided, either name or hRef must be filled. This parameter can not be updated.
Possible values: non-empty
and <= 40 characters
Name of the referred resource. If not provided, either hRef or identifier must be filled. This parameter can not be updated.
hRef of the referred resource. If not provided, either name or identifier must be filled. This parameter can not be updated.
allowedIpAddressPairs
object[]
List of Virtual IP addresses (VRRP protocol).
Virtual IP address.
Possible values: [active-active
, active-standby
]
VRRP mode.
Possible values: Value must match regular expression ^[\da-fA-F]{2}(?:-[\da-fA-F]{2}){5}$
MAC address associated to the Virtual IP address. If not provided, the MAC address of the active interface will be used.
Possible values: Value must match regular expression ^[\da-fA-F][02468aACEce](?:-[\da-fA-F]{2}){5}$
Mac address of the subinterface. Only Unicast MAC addresses are accepted. If not provided, the MAC address will be calculated automatically from a md5 hash of the subinterface name.
interfaceRoutes
object[]
Subinterface loopback prefixe(s) and attributes to advertise.
Subnet in CIDR format.
Community Tags.
bgpaas
object
BGPAAS option
Peer Autonomous System (2 or 4 bytes). Modifying it will cause a BGP flap.
Possible values: [up
, down
]
Bgpaas session admin state.
AS override replaces all occurrences of the peer ASN in the AS-path with the system AS. NB: This is a tricky option, do not use without prior knowledge.
Local Autonomous System used for this particular session. If configured, this overrides the backbone Autonomous System. Modifying it will cause a BGP flap.
Possible values: [inet
, inet6
]
List of BGP address families supported on this session (v6 is implemented according to RFC 2545). By default, this list contains only "inet"
Default value: 10000
Maximum number of BGP routes allowed by the BGPaaS session. This attribute can not be updated.
Possible values: <= 3
Default value: 0
Allows the vRouter to accept its own AS system in the AS path, a certain number of times defined by the loop count.
Possible values: >= 45
and <= 65535
Default value: 60
BGP hold time (standard BGP) (seconds). Max time to detect liveliness of peer.
bgpaas
object
BGPAAS option
Peer Autonomous System (2 or 4 bytes). Modifying it will cause a BGP flap.
Possible values: [up
, down
]
Bgpaas session admin state.
AS override replaces all occurrences of the peer ASN in the AS-path with the system AS. NB: This is a tricky option, do not use without prior knowledge.
Local Autonomous System used for this particular session. If configured, this overrides the backbone Autonomous System. Modifying it will cause a BGP flap.
Possible values: [inet
, inet6
]
List of BGP address families supported on this session (v6 is implemented according to RFC 2545). By default, this list contains only "inet"
Default value: 10000
Maximum number of BGP routes allowed by the BGPaaS session. This attribute can not be updated.
Possible values: <= 3
Default value: 0
Allows the vRouter to accept its own AS system in the AS path, a certain number of times defined by the loop count.
Possible values: >= 45
and <= 65535
Default value: 60
BGP hold time (standard BGP) (seconds). Max time to detect liveliness of peer.
Responses
- 201
- 400
- 401
- 403
- 404
- 405
- 500
- 503
Created
Response Headers
X-Job-Href
string
Href of the asynchronous job that will process the request, in order to track its status.
X-Retry-After
integer
The number of seconds to wait before checking the status of the job.
- application/json
- Schema
- Example (from schema)
- ok
Schema
Hypertext reference of the resource.
{
"hRef": "string"
}
{ "hRef": "/projects/{projectId}/zones/{zoneName}/virtualmachines/{virtualMachineId}/interfaces/{interfaceName}" }
Bad Request
Request is not valid
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Unauthorized
Credentials are missing
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Forbidden
Valid credentials but not enough privileges to perform the operation
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Not Found
Unknown resource or service
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Method Not Allowed
Operation is not valid according to the state of the resource
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Internal Server Error
Unexpected error, please contact support
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}
Service Unavailable
Service probably in maintenance. Please retry later.
- application/json
- Schema
- Example (from schema)
Schema
An integer coding the error type. This is given to caller so he can translate them if required.
A short localized string that describes the error.
(optional) A long localized error description if needed. It can contain precise information about which parameter is missing, or what are the identifier acceptable values.
{
"code": 0,
"message": "string",
"description": "string"
}