# (C) Copyright 2014 Riverbed Technology, Inc.
# All rights reserved.

name: sh.inpath
version: "1.0"
title: "REST API for the In-Path Settings and Rules"
defaultAuthorization: "required"
$schema: 'http://support.riverbed.com/apis/service_def/2.2'
id: 'http://support.riverbed.com/apis/sh.inpath/1.0'
provider: 'riverbed'

resources:
    global_setting:
        description: "Global in-path settings"
        type: object
        additionalProperties: false
        required: [link_state_propagation]
        properties:
            link_state_propagation:
                description:    "Link State Propagation - Enable to shorten the recovery \
                                time of a link failure in physical in-path deployments. \
                                Link state propagation (LSP) communicates link status \
                                between the devices connected to the Steelhead \
                                appliance. When you enable this feature, RiOS monitors \
                                the link state of each Steelhead appliance LAN-WAN pair."
                type: boolean

        links:
            self:
                path: "$/global_setting"

            get:
                method: GET
                response:
                    $ref: '#/resources/global_setting'

            set:
                method: PUT
                request:
                    $ref: '#/resources/global_setting'
                response:
                    $ref: '#/resources/global_setting'
