# Method: projects.locations.registrations.retrieveImportableDomains

- [HTTP request](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.request_body)
- [Response body](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.RetrieveImportableDomainsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#body.aspect)
- [Domain](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#Domain)
  - [JSON representation](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#Domain.SCHEMA_REPRESENTATION)
- [ResourceState](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#ResourceState)
- [Try it!](https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#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)

Lists domain names from [Google Domains](https://domains.google/) that can be imported to Cloud Domains using the `registrations.import` method.

Since individual users can own domains in Google Domains, the list of domains returned depends on the individual user making the call.

Domains already managed by Cloud Domains are not returned.

### HTTP request

`GET https://domains.googleapis.com/v1beta1/{location=projects/*/locations/*}/registrations:retrieveImportableDomains`

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

### Path parameters

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

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Maximum number of results to return. |
| `pageToken` | `string` When set to the `nextPageToken` from a prior response, provides the next page of results. |

### Request body

The request body must be empty.

### Response body

> [!WARNING]
> This item is deprecated!

Deprecated: For more information, see [Cloud Domains feature deprecation](https://cloud.google.com/domains/docs/deprecations/feature-deprecations). Response for the `registrations.retrieveImportableDomains` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "domains": [ { object (`https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#Domain`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `domains[]` | ``object (`https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#Domain`)`` A list of domains that the calling user manages in Google Domains. |
| `nextPageToken` | `string` When present, there are more results to retrieve. Set `pageToken` to this value on a subsequent call to get the next page of results. |

### 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/).

## Domain

A domain that the calling user manages in Google Domains.

| JSON representation |
|---|
| ``` { "domainName": string, "resourceState": enum (`https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#ResourceState`), "yearlyPrice": { object (`https://docs.cloud.google.com/domains/docs/reference/rest/Shared.Types/Money`) } } ``` |

| Fields ||
|---|---|
| `domainName` | `string` The domain name. Unicode domain names are expressed in Punycode format. |
| `resourceState` | ``enum (`https://docs.cloud.google.com/domains/docs/reference/rest/v1beta1/projects.locations.registrations/retrieveImportableDomains#ResourceState`)`` The state of this domain as a `Registration` resource. |
| `yearlyPrice` | ``object (`https://docs.cloud.google.com/domains/docs/reference/rest/Shared.Types/Money`)`` Price to renew the domain for one year. Only set when `resourceState` is `IMPORTABLE`. |

## ResourceState

Possible states of a domain as a `Registration` resource.

| Enums ||
|---|---|
| `RESOURCE_STATE_UNSPECIFIED` | The assessment is undefined. |
| `IMPORTABLE` | A `Registration` resource can be created for this domain by calling `registrations.import`. |
| `UNSUPPORTED` | A `Registration` resource cannot be created for this domain because it is not supported by Cloud Domains; for example, the top-level domain is not supported or the registry charges non-standard pricing for yearly renewals. |
| `SUSPENDED` | A `Registration` resource cannot be created for this domain because it is suspended and needs to be resolved with Google Domains. |
| `EXPIRED` | A `Registration` resource cannot be created for this domain because it is expired and needs to be renewed with Google Domains. |
| `DELETED` | A `Registration` resource cannot be created for this domain because it is deleted, but it may be possible to restore it with Google Domains. |