[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Manage domains\n\nThis article shows you how to list your existing Managed Service for Microsoft Active Directory domains,\nget information about them, and delete domains you no longer need.\n\nGetting domain info\n-------------------\n\nYou can query for more information about a specific domain, including its\ncurrent state. This is especially useful when creating a new domain.\n\nTo get domain info: \n\n### Console\n\n1. Open the Managed Microsoft AD page in the Google Cloud console.\n\n\n [Open the Managed Microsoft AD page](https://console.cloud.google.com/security/cloud-ad)\n\n2. Select a domain from the list to see detailed info on it.\n\n### gcloud\n\nRun the following command, replacing \\[DOMAIN-NAME\\] with the name of your\ndomain (such as *ad.mycompany.com*): \n\n gcloud active-directory domains describe [DOMAIN-NAME]\n\nThe response is YAML describing the\n[domain](/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains). \n\n```\nadmin: setupadmin\nauthorizedNetworks:\n- projects/my-project/global/networks/my-vpc\ncreateTime: '2019-03-27T22:35:58.135726571Z'\nfqdn: ad.mycompany.com\nlocations:\n- us-west1\nname: projects/my-project/locations/global/domains/ad.mycompany.com\nreservedIpRange: 172.16.0.0/26\nstate: READY\nupdateTime: '2019-03-29T23:58:12.249298693Z'\n```\n\nPossible domain states include:\n\nListing domains\n---------------\n\n### Console\n\nOpen the Managed Microsoft AD page in the Google Cloud console.\nIt contains a list of all domains in the project.\n\n\n[Open the Managed Microsoft AD page](https://console.cloud.google.com/security/cloud-ad)\n\n### gcloud\n\nRun the following command: \n\n gcloud active-directory domains list\n\nThe response is a list of domains in the project: \n\n```\nDOMAIN_NAME DOMAIN_STATE RESERVED_IP_RANGE REGIONS LABELS ADMIN_NAME CREATE_TIME\ncorporate.company.com READY 172.16.0.0/26 [u'us-west1'] setupadmin 2019-01-01T22:00:00\npartners.company.com READY 192.168.0.0/26 [u'us-east1'] CustomAdminName 2019-02-01T22:00:00\n```\n\nDeleting a domain\n-----------------\n\n**Warning:** Deleting a domain is permanent. All data associated with the domain will be permanently lost (including users, groups, backups, etc). \n\n### Console\n\n1. Open the Managed Microsoft AD page in the Google Cloud console. \n\n [Open the Managed Microsoft AD page](https://console.cloud.google.com/security/cloud-ad)\n\n2. Select the domain to delete.\n\n3. Click the delete **Delete** button,\n and accept the confirmation prompt.\n\n### gcloud\n\nRun the following command, replacing \\[DOMAIN-NAME\\] with the\nname of your domain (such as *ad.mycompany.com*) \n\n gcloud active-directory domains delete [DOMAIN-NAME]"]]