Examples

GET /api/permissions/resource_types
200
{
  "total": 37,
  "subtotal": 37,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "name": "Architecture"
    },
    {
      "name": "Audit"
    },
    {
      "name": "AuthSource"
    },
    {
      "name": "Bookmark"
    },
    {
      "name": "CommonParameter"
    },
    {
      "name": "ComputeProfile"
    },
    {
      "name": "ComputeResource"
    },
    {
      "name": "ConfigReport"
    },
    {
      "name": "Domain"
    },
    {
      "name": "Environment"
    },
    {
      "name": "FactValue"
    },
    {
      "name": "Host"
    },
    {
      "name": "HostClass"
    },
    {
      "name": "Hostgroup"
    },
    {
      "name": "Image"
    },
    {
      "name": "Location"
    },
    {
      "name": "Medium"
    },
    {
      "name": "Model"
    },
    {
      "name": "Operatingsystem"
    },
    {
      "name": "Organization"
    },
    {
      "name": "Parameter"
    },
    {
      "name": "ProvisioningTemplate"
    },
    {
      "name": "Ptable"
    },
    {
      "name": "Puppetclass"
    },
    {
      "name": "PuppetclassLookupKey"
    },
    {
      "name": "Realm"
    },
    {
      "name": "Report"
    },
    {
      "name": "ReportTemplate"
    },
    {
      "name": "Role"
    },
    {
      "name": "Setting"
    },
    {
      "name": "SmartProxy"
    },
    {
      "name": "Subnet"
    },
    {
      "name": "Test::Resource"
    },
    {
      "name": "Trend"
    },
    {
      "name": "User"
    },
    {
      "name": "Usergroup"
    },
    {
      "name": "VariableLookupKey"
    }
  ]
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer