Skip to main content

Update the subnet list of an existing virtual network

PUT 

/projects/:projectId/zones/:zoneName/virtualnetworks/:virtualNetworkId/subnets

Update subnets in a Virtual Network.

Request

Path Parameters

    projectId stringrequired

    Project Identifier

    zoneName stringrequired

    Zone name

    virtualNetworkId stringrequired

    Virtual network Identifier

Header Parameters

    X-API-Key string

    Your SIU token if you use this API through Orange Developer.

    Authorization string

    Bearer access token authentication if you use this API through Orange Developer or Orange Developer Inside.

    X-Requester-Id string

    Your SIU Id if you use this API through Orange Developer Inside.

Body

array

required

Attributes in update subnets request.

  • Array [

  • subnet stringrequired

    Subnet in CIDR format. Cannot be updated. IPv6 not available yet.

    enableDhcp boolean

    Default value: true

    Enable DHCP on subnet. This attribute can not be updated.

    allocateIpAddressFromStart boolean

    Default value: true

    Subnet IP allocation rule for DHCP process:

    • true: from first address of subnet
    • false: from last address of subnet
    dnsPrimary string

    IP address of the primary DNS server (applicable to IPV4 subnets only).

    dnsSecondary string

    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.

  • Array [

  • start stringrequired

    First IP address of the pool.

    end stringrequired

    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).

  • Array [

  • prefix stringrequired

    Prefix of the route in CIDR format. This attribute can not be updated.

    nextHop stringrequired

    Next hop IP address of the route. This attribute can not be updated.

  • ]

  • gatewayIpAddress string

    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.

    serviceIpAddress string

    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.

  • ]

Responses

Ok

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.

Schema

    id uuidrequired

    Resource identifier.

    hRef urirequired

    Hypertext reference of the resource.

Loading...