service_type: loadbalancer
service_name: octavia
prefix: '/v2(\.0)?'

resources:
  lbaas:
    singleton: true
    children:
      healthmonitors:
        type_uri: network/loadbalancer/healthmonitors
      loadbalancers:
        type_uri: network/loadbalancers
        children:
          stats:
            singleton: true
          status:
            singleton: true
          failover:
            singleton: true
      listeners:
        type_uri: network/loadbalancer/listeners
        children:
          stats:
            singleton: true
      pools:
        type_uri: network/loadbalancer/pools
        children:
          members:
      l7policies:
        type_uri: network/loadbalancer/l7policies
        el_type_uri: network/loadbalancer/l7policy
        # the unique ID of an l7policy is located in attribute 'l7policy_id' (not 'id')
        custom_id: l7policy_id
        children:
          rules:
      quotas:
        type_uri: network/loadbalancer/quotas
        children:
          defaults:
            singleton: true
      flavors:
        type_uri: network/loadbalancer/flavors
      flavorprofiles:
        type_uri: network/loadbalancer/flavorprofiles
      availabilityzoneprofiles:
        type_uri: network/loadbalancer/availabilityzoneprofiles
      providers:
        type_uri: network/loadbalancer/providers
        children:
          flavor_capabilities:
            singleton: true
          availability_zone_capabilities:
            singleton: true

  octavia:
    singleton: true
    children:
      amphorae:
        type_uri: network/loadbalancer/amphorae
        children:
          stats:
            singleton: true
          config:
            singleton: true
          failover:
            singleton: true


service_type: loadbalancer
service_name: octavia
prefix: '/v2(\.0)?(/lbaas|/octavia)?'

resources:
  healthmonitors:
    type_uri: network/loadbalancer/healthmonitors
  loadbalancers:
    type_uri: network/loadbalancers
    children:
      stats:
        singleton: true
      status:
        singleton: true
      failover:
        singleton: true
  listeners:
    type_uri: network/loadbalancer/listeners
    children:
      stats:
        singleton: true
  pools:
    type_uri: network/loadbalancer/pools
    children:
      members:
  l7policies:
    type_uri: network/loadbalancer/l7policies
    el_type_uri: network/loadbalancer/l7policy
    # the unique ID of an l7policy is located in attribute 'l7policy_id' (not 'id')
    custom_id: l7policy_id
    children:
      rules:
  quotas:
    type_uri: network/loadbalancer/quotas
    children:
      defaults:
        singleton: true
  flavors:
    type_uri: network/loadbalancer/flavors
  flavorprofiles:
    type_uri: network/loadbalancer/flavorprofiles
  availabilityzoneprofiles:
    type_uri: network/loadbalancer/availabilityzoneprofiles
  providers:
    type_uri: network/loadbalancer/providers
    children:
      flavor_capabilities:
        singleton: true
      availability_zone_capabilities:
        singleton: true
  amphorae:
    type_uri: network/loadbalancer/amphorae
    children:
      stats:
        singleton: true
      config:
        singleton: true
      failover:
        singleton: true

Fix API audit map: /lbaas not part of prefix
[Octavia] Fix API audit map: /lbaas not part of prefix

/lbaas has to be part of the prefix, because it is optional; All API
endpoints work without it (e. g. /v2/loadbalancers instead of
/v2/lbaas/loadbalancers).
Since gophercloud uses all Octavia endpoints without the /lbaas part
and Limes uses gophercloud and Limes now talks directly to Octavia,
auditing for PUT /v2.0/quotas/... failed.
