# Method: projects.locations.registrations.import

- [HTTP request](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#body.aspect)
- [Try it!](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/import#try-it)

> [!WARNING]
> This item is deprecated!

Deprecated: For more information, see [Cloud Domains feature deprecation](https://cloud.google.com/domains/docs/deprecations/feature-deprecations)

Imports a domain name from [Google Domains](https://domains.google/) for use in Cloud Domains.

To transfer a domain from another registrar, use the `registrations.transfer` method instead.

Since individual users can own domains in Google Domains, the calling user must have ownership permission on the domain.

### HTTP request

`POST https://domains.googleapis.com/v1beta1/{parent=projects/*/locations/*}/registrations:import`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource of the Registration. Must be in the format `projects/*/locations/*`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `domains.registrations.create` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "domainName": string, "labels": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `domainName` | `string` Required. The domain name. Unicode domain names must be expressed in Punycode format. |
| `labels` | `map (key: string, value: string)` Set of labels associated with the `Registration`. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/domains/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires the following OAuth scope:

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

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).