# REST Resource: projects.locations.spaces.catalogs.shares

- [Resource: Share](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares#Share)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares#Share.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares#State)
- [Methods](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares#METHODS_SUMMARY)

## Resource: Share

A catalog share between spaces.

| JSON representation |
|---|
| ``` { "name": string, "destinationSpace": string, "createTime": string, "state": enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The share name in the following format: `projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share` |
| `destinationSpace` | `string` Required. The space resource path to which the catalog is shared. Format is `projects/$project/locations/$location/spaces/$space` |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The share creation timestamp. 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"`. |
| `state` | ``enum (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares#State`)`` Output only. The state of the share. |

## State

The share status, which indicates whether the catalog is in sync.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The state of the share is unknown. |
| `IN_SYNC` | The share is in sync with the shared template catalog. |
| `OUT_OF_SYNC` | The share is out of sync with the shared template catalog. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares/create` | Shares a catalog from one space to another space. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares/delete` | Deletes a catalog share. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares/get` | Get catalog share object for the space. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares/list` | Lists catalog share objects for the space. |
| ### `https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1alpha/projects.locations.spaces.catalogs.shares/sync` | Synchronizes a share and updates the destination workspace to reflect. |