# Method: projects.locations.ipamAdminScopes.checkAvailability

- [HTTP request](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.request_body)
- [Response body](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.CheckAvailabilityIpamAdminScopesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#body.aspect_1)
- [IpamAdminScopeAvailability](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#IpamAdminScopeAvailability)
  - [JSON representation](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#IpamAdminScopeAvailability.SCHEMA_REPRESENTATION)
- [Availability](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#Availability)
- [Try it!](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#try-it)

Checks the availability of IpamAdminScopes in a given project and location.

### HTTP request

`GET https://cloudnumberregistry.googleapis.com/v1alpha/{parent=projects/*/locations/*}/ipamAdminScopes:checkAvailability`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource name, for example `projects/*/locations/*`. |

### Query parameters

| Parameters ||
|---|---|
| `scopes[]` | `string` Required. The administrative scopes to check for availability. |

### Request body

The request body must be empty.

### Response body

Response message for the `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#google.cloud.numberregistry.v1alpha.CloudNumberRegistry.CheckAvailabilityIpamAdminScopes` method.

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

| JSON representation |
|---|
| ``` { "scopeAvailabilities": [ { object (`https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#IpamAdminScopeAvailability`) } ] } ``` |

| Fields ||
|---|---|
| `scopeAvailabilities[]` | ``object (`https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#IpamAdminScopeAvailability`)`` The details of the requested scopes. |

### Authorization scopes

Requires the following OAuth scope:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `cloudnumberregistry.ipamAdminScopes.list`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## IpamAdminScopeAvailability

Availability details for a specific IpamAdminScope.

| JSON representation |
|---|
| ``` { "scope": string, "adminProject": string, "availability": enum (`https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#Availability`) } ``` |

| Fields ||
|---|---|
| `scope` | `string` The scope of the IpamAdminScope. |
| `adminProject` | `string (https://developers.google.com/discovery/v1/type-format format)` The admin project of the IpamAdminScope if it exists. |
| `availability` | ``enum (`https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.ipamAdminScopes/checkAvailability#Availability`)`` The availability of the scope. |

## Availability

Enum for the availability of a given scope.

| Enums ||
|---|---|
| `AVAILABILITY_UNSPECIFIED` | Unspecified availability. |
| `AVAILABLE` | The scope is available. |
| `UNAVAILABLE` | The scope is not available. |