Get a virtual network by its identifier
GET/projects/:projectId/zones/:zoneName/virtualnetworks/:virtualNetworkId
Return Virtual Network resource with its identifier (in the path).
Request
Path Parameters
Project Identifier
Zone name
Virtual network 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.
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 500
- 503
Ok
- application/json
- Schema
- Example (from schema)
Schema
- creating: resource creation in progress
- updating: resource update in progress
- deleting: resource deletion in progress
- active: resource created/updated successfully
- error: resource in error because the last creation/update/deletion failed
Array [
]
Array [
- true: from first address of subnet
- false: from last address of subnet
Array [
]
Array [
]
]
Array [
]
Array [
]
Id of the Virtual Network.
HREF of the Virtual Network.
Possible values: <= 40 characters
, Value must match regular expression [A-Za-z0-9-]
Name of the Virtual Network. Must be unique within the project for a zone. Cannot be updated.
Description of the Virtual Network
tags
object
Tags associated with the virtual network.
Date when the Virtual Network was created.
Date when the Virtual Network was last modified.
User name (CUID or SIUID) associated with the last modification request (creation, update or deletion).
Possible values: [creating
, updating
, deleting
, active
, error
]
Provisioning state of the resource. Possible state:
vpns
object[]
Possible values: <= 99
List of VPNs attached to the VN. Impact if VPN are modified or removed.
VPN name. This attribute can not be updated.
Possible values: [any-to-any
, client
, server
]
VN role in the VPN.
subnets
object[]
required
List of subnets. It is not possible to remove a subnet from this list once an IP has been allocated from this subnet.
Subnet in CIDR format. Cannot be updated. IPv6 not available yet.
Default value: true
Enable DHCP on subnet. This attribute can not be updated.
Default value: true
Subnet IP allocation rule for DHCP process:
IP address of the primary DNS server (applicable to IPV4 subnets only).
IP address of the secondary DNS server (applicable to IPV4 subnets only).
allocationPools
object[]
List of pools of IP addresses belonging to the subnet that can be used by DHCP allocation process. If not defined, the entire subnet is used. After addition of the subnet, it is only possible to add pools.
First IP address of the pool.
Last IP address of the pool.
hostRoutes
object[]
Host routes, configured for the subnet, that are sent to the VM by DHCP. Changes are not taken into account until a new DHCP request is sent. NB: this option is usually used in combination with IRT (Interface Route Table) or NRT (Network Route Table).
Prefix of the route in CIDR format. This attribute can not be updated.
Next hop IP address of the route. This attribute can not be updated.
IP address of the Contrail vRouter to be used for its "gateway" role. If not defined, Contrail uses the first usable address of the subnet (from start or from end depending on the value of the parameter allocateIpAddressFromStart). This attribute can not be updated. Ipv6 not available yet.
IP address that the vRouter must use to configure its service interface on this VN. If not defined, Contrail uses the second usable address of the subnet (from start or from end depending on the value of the parameter allocateIpAddressFromStart). Ipv6 not available yet.
hostRoutes
object[]
Host routes, configured for the subnet, that are sent to the VM by DHCP. Changes are not taken into account until a new DHCP request is sent. NB: this option is usually used in combination with IRT (Interface Route Table) or NRT (Network Route Table).
Prefix of the route in CIDR format. This attribute can not be updated.
Next hop IP address of the route. This attribute can not be updated.
Network routes that are pushed on the vrouter. In a general case, this option is used in combination with host routes. NB: impact service if routes are removed.
routingPolicyRefs
object[]
List of routing policies applied on the VN, identified either by their name or their resource id. NB: the order in the list is the order in which the routing policies will be applied.
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.
{
"id": "string",
"hRef": "string",
"name": "string",
"description": "string",
"tags": {},
"createdDate": "string",
"lastModifiedDate": "string",
"lastRequester": "string",
"provisioningState": "creating",
"vpns": [
{
"vpnName": "string",
"vnRole": "any-to-any"
}
],
"subnets": [
{
"subnet": "string",
"enableDhcp": true,
"allocateIpAddressFromStart": true,
"dnsPrimary": "string",
"dnsSecondary": "string",
"allocationPools": [
{
"start": "string",
"end": "string"
}
],
"hostRoutes": [
{
"prefix": "string",
"nextHop": "string"
}
],
"gatewayIpAddress": "string",
"serviceIpAddress": "string"
}
],
"hostRoutes": [
{
"prefix": "string",
"nextHop": "string"
}
],
"networkRoutes": [
{
"prefix": "string",
"nextHop": "string",
"communityTags": [
"string"
]
}
],
"routingPolicyRefs": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"hRef": "string"
}
]
}
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"
}