Method: projects.locations.conversionWorkspaces.mappingRules.create

Creates a new mapping rule for a given conversion workspace.

HTTP request

POST https://datamigration.googleapis.com/v1/{parent}/mappingRules

Path parameters

Parameters
parent

string

Required. The parent which owns this collection of mapping rules.

Query parameters

Parameters
mappingRuleId

string

Required. The ID of the rule to create.

requestId

string

A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.

It is recommended to always set this value to a UUID.

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.

Request body

The request body contains an instance of MappingRule.

Response body

If successful, the response body contains a newly created instance of MappingRule.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.