execute-policy

subtitle

Execute a policy on a table.

version

0.9.159

Description

Execute a policy on a table. If dry-run flag is set to true, then it will only do the policy evaluation without actually performing any action on the table.

Synopsis

  execute-policy
--datahub-crn <value>
--namespace <value>
--table-name <value>
--policy-name <value>
[--dry-run | --no-dry-run]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--datahub-crn (string)

The CRN of the Cloudera Lakehouse Optimizer Data Hub.

--namespace (string)

Namespace name.

--table-name (string)

Table name.

--policy-name (string)

Policy name.

--dry-run | --no-dry-run (boolean)

Flag to indicate if the execution is a dry run. If true, it will perform a dry run else actual execution.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

dryRunResult -> (object)

The dry run result metadata.

actions -> (array)

The list of actions that would be performed on the table if the policy is executed.

item -> (string)

details -> (blob)

The detailed output of the dry run in a base64 encoded string.

executionResult -> (object)

The execution result metadata.

taskId -> (string)

The unique identifier for the maintenance task in UUID format.

details -> (blob)

The detailed output of the execution task metadata in a base64 encoded string.

Form Factors

public