Themanagedidentites.googleapis.comservice 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.
Themanagedidentites.googleapis.comservice 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.
A pager for iterating throughlist_domainsrequests.
This class thinly wraps an initialListDomainsResponseobject, and
provides an__aiter__method to iterate through itsdomainsfield.
If there are more pages, the__aiter__method will make additionalListDomainsrequests and continue to iterate
through thedomainsfield on the
corresponding responses.
All the usualListDomainsResponseattributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.
A pager for iterating throughlist_domainsrequests.
This class thinly wraps an initialListDomainsResponseobject, and
provides an__iter__method to iterate through itsdomainsfield.
If there are more pages, the__iter__method will make additionalListDomainsrequests and continue to iterate
through thedomainsfield on the
corresponding responses.
All the usualListDomainsResponseattributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.
Represents the direction of trust. SeeSystem.DirectoryServices.ActiveDirectory.TrustDirection <https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.trustdirection?view=netframework-4.7.2>__
for more information.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Package Classes (1.12.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.12.2 (latest)](/python/docs/reference/managedidentities/latest/summary_class)\n- [1.12.0](/python/docs/reference/managedidentities/1.12.0/summary_class)\n- [1.11.0](/python/docs/reference/managedidentities/1.11.0/summary_class)\n- [1.10.1](/python/docs/reference/managedidentities/1.10.1/summary_class)\n- [1.9.5](/python/docs/reference/managedidentities/1.9.5/summary_class)\n- [1.8.0](/python/docs/reference/managedidentities/1.8.0/summary_class)\n- [1.7.2](/python/docs/reference/managedidentities/1.7.2/summary_class)\n- [1.6.0](/python/docs/reference/managedidentities/1.6.0/summary_class)\n- [1.5.4](/python/docs/reference/managedidentities/1.5.4/summary_class)\n- [1.4.2](/python/docs/reference/managedidentities/1.4.2/summary_class)\n- [1.3.1](/python/docs/reference/managedidentities/1.3.1/summary_class)\n- [1.2.0](/python/docs/reference/managedidentities/1.2.0/summary_class)\n- [1.1.3](/python/docs/reference/managedidentities/1.1.3/summary_class)\n- [1.0.0](/python/docs/reference/managedidentities/1.0.0/summary_class)\n- [0.2.2](/python/docs/reference/managedidentities/0.2.2/summary_class)\n- [0.1.0](/python/docs/reference/managedidentities/0.1.0/summary_class) \nSummary of entries of Classes for managedidentities. \n\nClasses\n-------\n\n### [ManagedIdentitiesServiceAsyncClient](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.services.managed_identities_service.ManagedIdentitiesServiceAsyncClient)\n\nAPI Overview\n\nThe `managedidentites.googleapis.com` service implements the\nGoogle Cloud Managed Identites API for identity services (e.g.\nMicrosoft Active Directory).\n\nThe Managed Identities service provides methods to manage\n(create/read/update/delete) domains, reset managed identities admin\npassword, add/remove domain controllers in GCP regions and\nadd/remove VPC peering.\n\nData Model\n\nThe Managed Identities service exposes the following resources:\n\n- Locations as global, named as follows:\n `projects/{project_id}/locations/global`.\n\n- Domains, named as follows:\n `/projects/{project_id}/locations/global/domain/{domain_name}`.\n\nThe `{domain_name}` refers to fully qualified domain name in the\ncustomer project e.g. mydomain.myorganization.com, with the\nfollowing restrictions:\n\n- Must contain only lowercase letters, numbers, periods and hyphens.\n- Must start with a letter.\n- Must contain between 2-64 characters.\n- Must end with a number or a letter.\n- Must not start with period.\n- First segement length (mydomain form example above) shouldn't exceed 15 chars.\n- The last segment cannot be fully numeric.\n- Must be unique within the customer project.\n\n### [ManagedIdentitiesServiceClient](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.services.managed_identities_service.ManagedIdentitiesServiceClient)\n\nAPI Overview\n\nThe `managedidentites.googleapis.com` service implements the\nGoogle Cloud Managed Identites API for identity services (e.g.\nMicrosoft Active Directory).\n\nThe Managed Identities service provides methods to manage\n(create/read/update/delete) domains, reset managed identities admin\npassword, add/remove domain controllers in GCP regions and\nadd/remove VPC peering.\n\nData Model\n\nThe Managed Identities service exposes the following resources:\n\n- Locations as global, named as follows:\n `projects/{project_id}/locations/global`.\n\n- Domains, named as follows:\n `/projects/{project_id}/locations/global/domain/{domain_name}`.\n\nThe `{domain_name}` refers to fully qualified domain name in the\ncustomer project e.g. mydomain.myorganization.com, with the\nfollowing restrictions:\n\n- Must contain only lowercase letters, numbers, periods and hyphens.\n- Must start with a letter.\n- Must contain between 2-64 characters.\n- Must end with a number or a letter.\n- Must not start with period.\n- First segement length (mydomain form example above) shouldn't exceed 15 chars.\n- The last segment cannot be fully numeric.\n- Must be unique within the customer project.\n\n### [ListDomainsAsyncPager](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.services.managed_identities_service.pagers.ListDomainsAsyncPager)\n\nA pager for iterating through `list_domains` requests.\n\nThis class thinly wraps an initial\n[ListDomainsResponse](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ListDomainsResponse) object, and\nprovides an `__aiter__` method to iterate through its\n`domains` field.\n\nIf there are more pages, the `__aiter__` method will make additional\n`ListDomains` requests and continue to iterate\nthrough the `domains` field on the\ncorresponding responses.\n\nAll the usual [ListDomainsResponse](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ListDomainsResponse)\nattributes are available on the pager. If multiple requests are made, only\nthe most recent response is retained, and thus used for attribute lookup.\n\n### [ListDomainsPager](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.services.managed_identities_service.pagers.ListDomainsPager)\n\nA pager for iterating through `list_domains` requests.\n\nThis class thinly wraps an initial\n[ListDomainsResponse](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ListDomainsResponse) object, and\nprovides an `__iter__` method to iterate through its\n`domains` field.\n\nIf there are more pages, the `__iter__` method will make additional\n`ListDomains` requests and continue to iterate\nthrough the `domains` field on the\ncorresponding responses.\n\nAll the usual [ListDomainsResponse](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ListDomainsResponse)\nattributes are available on the pager. If multiple requests are made, only\nthe most recent response is retained, and thus used for attribute lookup.\n\n### [AttachTrustRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.AttachTrustRequest)\n\nRequest message for\nAttachTrust\n\n### [CreateMicrosoftAdDomainRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.CreateMicrosoftAdDomainRequest)\n\nRequest message for\nCreateMicrosoftAdDomain\n\n### [DeleteDomainRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.DeleteDomainRequest)\n\nRequest message for\nDeleteDomain\n\n### [DetachTrustRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.DetachTrustRequest)\n\nRequest message for\nDetachTrust\n\n### [Domain](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Domain)\n\nRepresents a managed Microsoft Active Directory domain.\n\n### [LabelsEntry](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Domain.LabelsEntry)\n\nThe abstract base class for a message.\n\n### [State](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Domain.State)\n\nRepresents the different states of a managed domain.\n\n### [GetDomainRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.GetDomainRequest)\n\nRequest message for\nGetDomain\n\n### [ListDomainsRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ListDomainsRequest)\n\nRequest message for\nListDomains\n\n### [ListDomainsResponse](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ListDomainsResponse)\n\nResponse message for\nListDomains\n\n### [OpMetadata](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.OpMetadata)\n\nRepresents the metadata of the long-running operation.\n\n### [ReconfigureTrustRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ReconfigureTrustRequest)\n\nRequest message for\nReconfigureTrust\n\n### [ResetAdminPasswordRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ResetAdminPasswordRequest)\n\nRequest message for\nResetAdminPassword\n\n### [ResetAdminPasswordResponse](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ResetAdminPasswordResponse)\n\nResponse message for\nResetAdminPassword\n\n### [Trust](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust)\n\nRepresents a relationship between two domains. This allows a\ncontroller in one domain to authenticate a user in another\ndomain.\n\n### [State](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust.State)\n\nRepresents the different states of a domain trust.\n\n### [TrustDirection](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust.TrustDirection)\n\nRepresents the direction of trust. See\n`System.DirectoryServices.ActiveDirectory.TrustDirection \u003chttps://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.trustdirection?view=netframework-4.7.2\u003e`__\nfor more information.\n\n### [TrustType](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.Trust.TrustType)\n\nRepresents the different inter-forest trust types.\n\n### [UpdateDomainRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.UpdateDomainRequest)\n\nRequest message for\nUpdateDomain\n\n### [ValidateTrustRequest](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.types.ValidateTrustRequest)\n\nRequest message for\nValidateTrust\n\nModules\n-------\n\n### [pagers](/python/docs/reference/managedidentities/latest/google.cloud.managedidentities_v1.services.managed_identities_service.pagers)\n\nAPI documentation for `managedidentities_v1.services.managed_identities_service.pagers` module."]]