JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle® ZFS Storage Appliance RESTful Application Programming Interface
Oracle Technology Network
Print View
search filter icon
search icon

Document Information

Using This Documentation

Chapter 1 Overview

Chapter 2 Working with the API

Chapter 3 Alert Service Commands

Chapter 4 Analytics Services

Chapter 5 Hardware Services

Chapter 6 Log Commands

Chapter 7 Network Commands

Networking Configuration

Network Datalinks

List Network Datalinks

Get Network Datalink

Create Network Datalink

Modify Network Datalink

Delete Network Datalink

Network Devices

List Network Devices

Get Network Device

Network Interfaces

List Network Interfaces

Get Network Interface

Create Network Interface

Modify Network Interface

Delete Network Interface

Network Routes

List Routes

Get Route

Add Route

Delete Route

Chapter 8 Problem Service Commands

Chapter 9 Role Service

Chapter 10 SAN Services

Chapter 11 Service Commands

Chapter 12 Storage Services

Chapter 13 System Commands

Chapter 14 User Service

Chapter 15 Workflow Commands

Chapter 16 RESTful Clients

Add Route

Creates a new network route. The route href values can change if other routes are added to the system. No route information is returned on a create since the returned properties would be identical to the input properties. A successful create returns HTTP Status 204 (Created).

Example Request to Create a Static Route:

POST /api/network/v1/routes HTTP/1.1
Authorization: Basic abcd1234MWE=
Content-Type: application/json
Content-Length: 164

    "family": "IPv4",
    "destination": "",
    "mask": "0",
    "gateway": "",
    "interface": "ixgbe0"

Example Result:

HTTP/1.1 201 Created