# REST Resource: projects.locations.registryBooks

- [Resource: RegistryBook](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#RegistryBook)
  - [JSON representation](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#RegistryBook.SCHEMA_REPRESENTATION)
- [AggregatedData](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#AggregatedData)
  - [JSON representation](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#AggregatedData.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#METHODS_SUMMARY)

## Resource: RegistryBook

A RegistryBook organizes and manages IP address space. It claims specific scopes (such as projects) and groups related Realms and Ranges.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "claimedScopes": [ string ], "isDefault": boolean, "aggregatedData": { object (`https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#AggregatedData`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Identifier. The resource name of the RegistryBook. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which the RegistryBook was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which the RegistryBook was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. User-defined labels. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `claimedScopes[]` | `string` Optional. List of scopes claimed by the RegistryBook. In Preview, Only project scope is supported. Each scope is in the format of projects/{project}. Each scope can only be claimed once. |
| `isDefault` | `boolean` Output only. Whether the RegistryBook is the default one. |
| `aggregatedData` | ``object (`https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks#AggregatedData`)`` Output only. Aggregated data for the RegistryBook. Populated only when the view is AGGREGATE. |

## AggregatedData

Aggregated data for the RegistryBook.

| JSON representation |
|---|
| ``` { "uniqueScopesCount": integer, "discoveredRealmsCount": integer, "discoveredRangesCount": integer, "customRealmsCount": integer, "customRangesCount": integer } ``` |

| Fields ||
|---|---|
| `uniqueScopesCount` | `integer` Output only. Number of scopes unique to the RegistryBook. |
| `discoveredRealmsCount` | `integer` Output only. Number of discovered Realms in the RegistryBook. |
| `discoveredRangesCount` | `integer` Output only. Number of DiscoveredRanges in the RegistryBook. |
| `customRealmsCount` | `integer` Output only. Number of custom Realms in the RegistryBook. |
| `customRangesCount` | `integer` Output only. Number of CustomRanges in the RegistryBook. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks/create` | Creates a new RegistryBook in a given project and location. |
| ### `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks/delete` | Deletes a single RegistryBook. |
| ### `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks/get` | Gets details of a single RegistryBook. |
| ### `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks/list` | Lists RegistryBooks in a given project and location. |
| ### `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks/patch` | Updates the parameters of a single RegistryBook. |
| ### `https://docs.cloud.google.com/number-registry/reference/rest/v1alpha/projects.locations.registryBooks/searchIpResources` | Searches IP resources in a given RegistryBook. |