Get List of Access Controls for Other Server Type

To get a list of access controls, use the following request:

1
2
GET /billing/buckets/:bucket_id/access_controls.xml
GET /billing/buckets/:bucket_id/access_controls.json

XML Request Example

1
curl -i -X GET http://onapp.test/billing/buckets/5263/access_controls.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -i -X GET http://onapp.test/billing/buckets/5263/access_controls.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<access_controls type="array">
  <access_control>
    <bucket_id type="integer">5263</bucket_id>
    <server_type>other</server_type>
    <target_id type="integer">14</target_id>
    <type>template_groups_resource</type>
    <timing_strategy>hourly</timing_strategy>
    <target_name>RHEL</target_name>
    <limits></limits>
  </access_control>
  <access_control>
  </access_control>
</access_controls>

Where:

bucket_id - the ID of the bucket with which this access control is associated

server_type - the server type this access control is applicable to, in this case, other

target_id - the ID of the resource for which configuration is set

type - the type of the resource for which configuration is set, it can be one of the following values:

  • edge_groups_resource

  • template_groups_resource

  • recipe_groups_resource

  • service_addon_groups_resource

timing_strategy - the type of billing for each resource: hourly or monthly (on peak usage)

target_name - the label of the resource added to the access control

limits - the array of limits for the resource. The access control for Other resources does not contain limits.