# REST Resource: projects.locations.global.domains.backups

- [Resource: Backup](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#Backup)
  - [JSON representation](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#Backup.SCHEMA_REPRESENTATION)
- [Type](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#Type)
- [State](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#State)
- [Methods](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#METHODS_SUMMARY)

## Resource: Backup

Represents a Managed Microsoft Identities backup.

| JSON representation |
|---|
| ``` { "name": string, "labels": { string: string, ... }, "createTime": string, "updateTime": string, "type": enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#Type`), "state": enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#State`), "statusMessage": string, "description": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The unique name of the Backup in the form of projects/{projectId}/locations/global/domains/{domainName}/backups/{name} |
| `labels` | `map (key: string, value: string)` Optional. Resource labels to represent user provided metadata. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The time the backups was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Last update time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `type` | ``enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#Type`)`` Output only. Indicates whether it's an on-demand backup or scheduled. |
| `state` | ``enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups#State`)`` Output only. The current state of the backup. |
| `statusMessage` | `string` Output only. Additional information about the current status of this backup, if available. |
| `description` | `string` Optional. A short description of the backup. |

## Type

Represents type of Backup.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | Backup type not specified. |
| `ON_DEMAND` | Backup was manually created. |
| `SCHEDULED` | Backup was automatically created. |
| `SCHEMA_EXTENSION` | Backup was taken as part of Schema Extension request. |

## State

Represents the different states of a Cloud AD Backup.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Not set. |
| `CREATING` | Backup is being created. |
| `ACTIVE` | Backup has been created and validated. |
| `FAILED` | Backup has been created but failed validation. |
| `DELETING` | Backup is being deleted. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/create` | Creates a Backup for a domain. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/delete` | Deletes identified Backup. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/get` | Gets details of a single Backup. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/list` | Lists Backup in a given project. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/patch` | Updates the labels for specified Backup. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1beta1/projects.locations.global.domains.backups/testIamPermissions` | Returns permissions that a caller has on the specified resource. |