gcloud database-migration conversion-workspaces import-rules

NAME
gcloud database-migration conversion-workspaces import-rules - import mapping rules in a Database Migration Service conversion workspace
SYNOPSIS
gcloud database-migration conversion-workspaces import-rules(CONVERSION_WORKSPACE :--region=REGION)--config-files=CONFIG_FILE,[CONFIG_FILE,…][--auto-commit][--file-format=FILE_FORMAT; default="ORA2PG"][GCLOUD_WIDE_FLAG]
DESCRIPTION
Import mapping rules in a Database Migration Service conversion workspace from aconfiguration file. For example, for Oracle to PostgreSQL migrations that couldbe an Ora2Pg config file.
EXAMPLES
To import rules in a conversion workspace:
gclouddatabase-migrationconversion-workspacesimport-rulesmy-conversion-workspace--region=us-central1--file-format=ORA2PG--config-files=PATH1/config1.conf,PATH2/config2.conf
POSITIONAL ARGUMENTS
Conversion workspace resource - The conversion workspace to import rules. Thearguments in this group can be used to specify the attributes of this resource.(NOTE) Some attributes are not given arguments in this group but can be set inother ways.

To set theproject attribute:

  • provide the argumentconversion_workspace on the command line witha fully specified name;
  • provide the argument--project on the command line;
  • set the propertycore/project.

This must be specified.

CONVERSION_WORKSPACE
ID of the conversion_workspace or fully qualified identifier for theconversion_workspace.

To set theconversion_workspace attribute:

  • provide the argumentconversion_workspace on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--region=REGION
The Cloud region for the conversion_workspace.

To set theregion attribute:

  • provide the argumentconversion_workspace on the command line witha fully specified name;
  • provide the argument--region on the command line.
REQUIRED FLAGS
--config-files=CONFIG_FILE,[CONFIG_FILE,…]
A list of files to import rules from. Either provide a single file path or ifmultiple files are to be provided, each file should correspond to one schema.Provide file paths as a comma separated list.
OPTIONAL FLAGS
--auto-commit
Auto commits the conversion workspace.
--file-format=FILE_FORMAT; default="ORA2PG"
File format type to import rules from.FILE_FORMAT mustbe (only one value is supported):ORA2PG.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-03 UTC.