Parts of a subscribe message

A subscribe message is the message sent when a subscriber requests a subscription to a topic on a switch. The subscribe message is in JSON format.

Subscribe message example

{ "type": "subscribe", "topics": [ { "name": "/rest/v10.04/system/vrfs" }, { "name": "/rest/v10.04/system/vlans/1?attributes=admin,oper_state_reason" } ] }

Components of a subscribe message

type

必需的。订阅消息,你必须specify the following value:subscribe

topics

必需的。The value is a comma-separated list of one or more topics in JSON key-value format. A topic includes one component:

name

必需的。The name of the topic, identified by the URI of the switch resource, including the optional query string.

NOTE:

Wildcard andhintare not supported in theAOS-CX10.06 release of REST API v10.04.