# Managed Service for Microsoft Active Directory v1 API - Class ManagedIdentitiesService (3.4.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.4.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.3.0/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.2.0/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.1.0/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/3.0.0/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/2.3.0/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/2.2.0/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService)

    public static class ManagedIdentitiesService

Reference documentation and code samples for the Managed Service for Microsoft Active Directory v1 API class ManagedIdentitiesService.

API Overview

The `managedidentites.googleapis.com` service implements the Google Cloud
Managed Identites API for identity services
(e.g. Microsoft Active Directory).

The Managed Identities service provides methods to manage
(create/read/update/delete) domains, reset managed identities admin password,
add/remove domain controllers in GCP regions and add/remove VPC peering.

Data Model

The Managed Identities service exposes the following resources:

- Locations as global, named as follows:
  `projects/{project_id}/locations/global`.

- Domains, named as follows:
  `/projects/{project_id}/locations/global/domain/{domain_name}`.

The `{domain_name}` refers to fully qualified domain name in the customer
project e.g. mydomain.myorganization.com, with the following restrictions:

- Must contain only lowercase letters, numbers, periods and hyphens.
- Must start with a letter.
- Must contain between 2-64 characters.
- Must end with a number or a letter.
- Must not start with period.
- First segement length (mydomain form example above) shouldn't exceed 15 chars.
- The last segment cannot be fully numeric.
- Must be unique within the customer project.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ManagedIdentitiesService

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ManagedIdentities.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1)

## Assembly

Google.Cloud.ManagedIdentities.V1.dll

## Methods

### BindService(ManagedIdentitiesServiceBase)

    public static ServerServiceDefinition BindService(ManagedIdentitiesService.ManagedIdentitiesServiceBase serviceImpl)

Creates service definition that can be registered with a server

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `serviceImpl` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService.ManagedIdentitiesServiceBase` An object implementing the server-side handling logic. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerServiceDefinition.html` |   |

### BindService(ServiceBinderBase, ManagedIdentitiesServiceBase)

    public static void BindService(ServiceBinderBase serviceBinder, ManagedIdentitiesService.ManagedIdentitiesServiceBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceBinder` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServiceBinderBase.html` Service methods will be bound by calling `AddMethod` on this object. |
| `serviceImpl` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ManagedIdentities.V1/latest/Google.Cloud.ManagedIdentities.V1.ManagedIdentitiesService.ManagedIdentitiesServiceBase` An object implementing the server-side handling logic. |