Creating Multiple Configuration Objects
The REST API requires a separate API call for each object you want to create, whereas a single configuration document can hold the definition for the entire Traffic Manager configuration.
Configuration documents can contain sections for multiple object types, and multiple objects of the same type can be specified as list items beneath the object type definition (using the "-" array item identifier in YAML, or array syntax in JSON). For example:
version: 6.1
bandwidth:
- name: my_bandwidth_class
properties:
basic:
maximum: 10000
sharing: machine
persistence:
- name: my_ip_persistence_class
properties:
basic:
type: ip
- name: my_transparent_persistence_class
properties:
basic:
type: transparent