GET /api/permissions 200 { "total": 162, "subtotal": 162, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "name": "view_architectures", "id": 350275019, "resource_type": "Architecture" }, { "name": "create_architectures", "id": 912770095, "resource_type": "Architecture" }, { "name": "edit_architectures", "id": 874798611, "resource_type": "Architecture" }, { "name": "destroy_architectures", "id": 586604735, "resource_type": "Architecture" }, { "name": "view_authenticators", "id": 687843582, "resource_type": "AuthSource" }, { "name": "create_authenticators", "id": 956119309, "resource_type": "AuthSource" }, { "name": "edit_authenticators", "id": 395314704, "resource_type": "AuthSource" }, { "name": "destroy_authenticators", "id": 1067518973, "resource_type": "AuthSource" }, { "name": "view_bookmarks", "id": 995886532, "resource_type": "Bookmark" }, { "name": "create_bookmarks", "id": 435712857, "resource_type": "Bookmark" }, { "name": "edit_bookmarks", "id": 978016136, "resource_type": "Bookmark" }, { "name": "destroy_bookmarks", "id": 1027408783, "resource_type": "Bookmark" }, { "name": "view_compute_resources", "id": 524255159, "resource_type": "ComputeResource" }, { "name": "create_compute_resources", "id": 673360498, "resource_type": "ComputeResource" }, { "name": "edit_compute_resources", "id": 385985960, "resource_type": "ComputeResource" }, { "name": "destroy_compute_resources", "id": 382135357, "resource_type": "ComputeResource" }, { "name": "view_compute_profiles", "id": 944771383, "resource_type": "ComputeProfile" }, { "name": "create_compute_profiles", "id": 1035871455, "resource_type": "ComputeProfile" }, { "name": "edit_compute_profiles", "id": 884230802, "resource_type": "ComputeProfile" }, { "name": "destroy_compute_profiles", "id": 932164668, "resource_type": "ComputeProfile" } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
paginate results Validations:
|
per_page optional |
number of entries per request Validations:
|
resource_type optional |
Validations:
|
name optional |
Validations:
|
Field name | Type | Possible values |
---|---|---|
name | string | |
resource_type | string |
GET /api/permissions/350275019 200 { "name": "view_architectures", "id": 350275019, "resource_type": "Architecture" }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
GET /api/permissions/resource_types 200 { "total": 38, "subtotal": 38, "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": "MyPlugin" }, { "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" } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|