# REST Resource: projects.locations.global.peerings

- [Resource: Peering](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#Peering)
  - [JSON representation](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#Peering.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#State)
- [Methods](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#METHODS_SUMMARY)

## Resource: Peering

Represents a Managed Service for Microsoft Active Directory Peering.

| JSON representation |
|---|
| ``` { "name": string, "labels": { string: string, ... }, "authorizedNetwork": string, "domainResource": string, "createTime": string, "updateTime": string, "state": enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#State`), "statusMessage": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Unique name of the peering in this scope including projects and location using the form: `projects/{projectId}/locations/global/peerings/{peeringId}`. |
| `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" }`. |
| `authorizedNetwork` | `string` Required. The full names of the Google Compute Engine [networks](https://docs.cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Caller needs to make sure that CIDR subnets do not overlap between networks, else peering creation will fail. |
| `domainResource` | `string` Required. Full domain resource path for the Managed AD Domain involved in peering. The resource path should be in the form: `projects/{projectId}/locations/global/domains/{domainName}` |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The time the instance 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"`. |
| `state` | ``enum (`https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.peerings#State`)`` Output only. The current state of this Peering. |
| `statusMessage` | `string` Output only. Additional information about the current status of this peering, if available. |

## State

Represents the different states of a Peering.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Not set. |
| `CREATING` | Peering is being created. |
| `CONNECTED` | Peering is connected. |
| `DISCONNECTED` | Peering is disconnected. |
| `DELETING` | Peering is being deleted. |

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