policy

policy list

List of policies

jexia policy list
    [-f {csv,json,table,value,yaml}]
    [-c COLUMN]
    [--quote {all,minimal,none,nonnumeric}]
    [--noindent]
    [--max-width <integer>]
    [--fit-width]
    [--print-empty]
    [--sort-column SORT_COLUMN]
    --project PROJECT_ID
-f <FORMATTER>, --format <FORMATTER>

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated to show multiple columns

--quote <QUOTE_MODE>

when to include quotes, defaults to nonnumeric

--noindent

whether to disable indenting the JSON

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

--project PROJECT_ID

Projects ID

policy create

Create new policy

jexia policy create
    [-f {json,shell,table,value,yaml}]
    [-c COLUMN]
    [--noindent]
    [--prefix PREFIX]
    [--max-width <integer>]
    [--fit-width]
    [--print-empty]
    --project PROJECT_ID
    --description DESCRIPTION
    --action ACTION
    [--userset USERSET]
    [--api-key APY_KEY]
    --resource RESOURCE
-f <FORMATTER>, --format <FORMATTER>

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated to show multiple columns

--noindent

whether to disable indenting the JSON

--prefix <PREFIX>

add a prefix to all variable names

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

--project PROJECT_ID

Projects ID

--description DESCRIPTION

Policy description

--action ACTION

Allowed action for this resources (delete, update, create, read). This is repeatable option.

--userset USERSET

Userset that should has access to manage resources.Can be UUID of userset or “ANY” (as alias for “All users”). This is repeatable option.

--api-key APY_KEY

UUID of API key that should has access to manage resources.This is repeatable option.

--resource RESOURCE

Dataset’s or fileset’s uuid which should be as a resource in the policy. This is repeatable option.

policy update

Update the policy

jexia policy update
    [-f {json,shell,table,value,yaml}]
    [-c COLUMN]
    [--noindent]
    [--prefix PREFIX]
    [--max-width <integer>]
    [--fit-width]
    [--print-empty]
    --project PROJECT_ID
    --description DESCRIPTION
    --action ACTION
    [--userset USERSET]
    [--api-key APY_KEY]
    --resource RESOURCE
    POLICY_ID
-f <FORMATTER>, --format <FORMATTER>

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated to show multiple columns

--noindent

whether to disable indenting the JSON

--prefix <PREFIX>

add a prefix to all variable names

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

--project PROJECT_ID

Projects ID

--description DESCRIPTION

Policy description

--action ACTION

Allowed action for this resources (delete, update, create, read). This is repeatable option.

--userset USERSET

Userset that should has access to manage resources.Can be UUID of userset or “ANY” (as alias for “All users”). This is repeatable option.

--api-key APY_KEY

UUID of API kye that should has access to manage resources.This is repeatable option.

--resource RESOURCE

Dataset’s or fileset’s uuid which should be as a resource in the policy. This is repeatable option.

POLICY_ID

UUID of policy which should be changed

policy delete

Delete policy

jexia policy delete --project PROJECT_ID POLICY_ID
--project PROJECT_ID

Projects ID

POLICY_ID

UUID of policy which should be deleted