create-data-share

subtitle

Create a Data Share for Data Sharing.

version

0.9.157

Description

Create a Data Share to enable sharing of data both within and outside of Cloudera environments.

Synopsis

  create-data-share
--datalake-crn <value>
--environment-crn <value>
--data-share-name <value>
--assets <value>
[--summary <value>]
[--terms-of-use <value>]
[--keywords <value>]
[--expiry-time <value>]
[--external-users <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--datalake-crn (string)

The CRN of the Data Lake where the Data Share will be created.

--environment-crn (string)

The CRN of the Environment where the Data Share will be created.

--data-share-name (string)

The name of the Data Share to be created (Max length is 512 characters).

--assets (array)

List of assets to be included in the Data Share.

Shorthand Syntax:

databaseName=string,tableName=string,guid=string,columns=string,string ... (separate items with spaces)

JSON Syntax:

[
  {
    "databaseName": "string",
    "tableName": "string",
    "guid": "string",
    "columns": ["string", ...]
  }
  ...
]

--summary (string)

A brief summary of the Data Share.

--terms-of-use (string)

The terms of use for the Data Share.

--keywords (array)

List of keywords associated with the Data Share.

Syntax:

"string" "string" ...

--expiry-time (datetime)

The date and time when the Data Share will expire.

--external-users (array)

List of external users to be granted access to the Data Share.

Shorthand Syntax:

externalUserId=integer,expiryTime=datetime ... (separate items with spaces)

JSON Syntax:

[
  {
    "externalUserId": integer,
    "expiryTime": datetime
  }
  ...
]

--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

dataShareId -> (string)

The unique identifier of the created Data Share.

dataShareName -> (string)

The name of the created Data Share.

datalakeCrn -> (string)

The CRN of the Data Lake where the Data Share was created.

Form Factors

public