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
-
-cCOLUMN,--columnCOLUMN¶ 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-columnSORT_COLUMN¶ specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
-
--projectPROJECT_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]
[--namespace NAMESPACE]
[--api-key APY_KEY]
--resource RESOURCE
-
-f<FORMATTER>,--format<FORMATTER>¶ the output format, defaults to table
-
-cCOLUMN,--columnCOLUMN¶ 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.
-
--projectPROJECT_ID¶ Projects ID
-
--descriptionDESCRIPTION¶ Policy description
-
--actionACTION¶ Allowed action for this resources (delete, update, create, read). This is repeatable option.
-
--usersetUSERSET¶ UUID of Userset that should has access to manage resources.This is repeatable option.
-
--namespaceNAMESPACE¶ UUID of Namespace that should has access to manage resources. This is repeatable option.
-
--api-keyAPY_KEY¶ UUID of API key that should has access to manage resources.This is repeatable option.
-
--resourceRESOURCE¶ 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]
[--namespace NAMESPACE]
[--api-key APY_KEY]
--resource RESOURCE
POLICY_ID
-
-f<FORMATTER>,--format<FORMATTER>¶ the output format, defaults to table
-
-cCOLUMN,--columnCOLUMN¶ 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.
-
--projectPROJECT_ID¶ Projects ID
-
--descriptionDESCRIPTION¶ Policy description
-
--actionACTION¶ Allowed action for this resources (delete, update, create, read). This is repeatable option.
-
--usersetUSERSET¶ UUID of Userset that should has access to manage resources.This is repeatable option.
-
--namespaceNAMESPACE¶ UUID of Namespace that should has access to manage resources. This is repeatable option.
-
--api-keyAPY_KEY¶ UUID of API key that should has access to manage resources.This is repeatable option.
-
--resourceRESOURCE¶ 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