Este contenido no está disponible en el idioma seleccionado.
Chapter 37. filter
Manage permission filters
Usage
# hammer filter [OPTIONS] SUBCOMMAND [ARG] ...
Options
-
-h,--help– Print help
37.1. filter available-permissions Copiar enlaceEnlace copiado en el portapapeles!
List all permissions
Usage
# hammer filter available-permissions [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--order VALUE– Sort and order by a searchable field, e.g.<field> DESC -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--page NUMBER– Page number, starting at 1 -
--per-page VALUE– Number of results per page to return,allto return all results -
--search VALUE– Filter results -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Id | x | x | x |
| Name | x | x | x |
| Resource | x | x |
Search and order fields
-
id– integer -
name– string -
resource_type– string
37.2. filter available-resources Copiar enlaceEnlace copiado en el portapapeles!
List available resource types
Usage
# hammer filter available-resources [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Name | x | x | x |
37.3. filter create Copiar enlaceEnlace copiado en el portapapeles!
Create a filter
Usage
# hammer filter create [OPTIONS]
Options
-
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--permission-ids LIST -
--permissions LIST -
--role VALUE– User role name -
--role-id VALUE -
--search VALUE -
-h,--help– Print help
37.4. filter delete Copiar enlaceEnlace copiado en el portapapeles!
Delete a filter
Usage
# hammer filter <delete|destroy> [OPTIONS]
Options
-
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-h,--help– Print help
37.5. filter info Copiar enlaceEnlace copiado en el portapapeles!
Show a filter
Usage
# hammer filter <info|show> [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Id | x | x | x |
| Resource type | x | x | |
| Search | x | x | |
| Role | x | x | |
| Permissions | x | x | |
| Created at | x | x | |
| Updated at | x | x | |
| Locations/ | x | x | |
| Organizations/ | x | x |
37.6. filter list Copiar enlaceEnlace copiado en el portapapeles!
List all filters
Usage
# hammer filter <list|index> [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--order VALUE– Sort and order by a searchable field, e.g.<field> DESC -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--page NUMBER– Page number, starting at 1 -
--per-page VALUE– Number of results per page to return,allto return all results -
--search VALUE– Filter results -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Id | x | x | x |
| Resource type | x | x | |
| Search | x | x | |
| Role | x | x | |
| Permissions | x | x |
Search and order fields
-
id– integer -
permission– string -
resource– string -
role– string -
role_id– integer -
search– text
37.7. filter update Copiar enlaceEnlace copiado en el portapapeles!
Update a filter
Usage
# hammer filter update [OPTIONS]
Options
-
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--permission-ids LIST -
--permissions LIST -
--role VALUE– User role name -
--role-id VALUE -
--search VALUE -
-h,--help– Print help