Domains - Create Domain
Note
This API is in preview.
Creates a new domain.
Permissions
The caller must be a Fabric administrator.
Required Delegated Scopes
Tenant.ReadWrite.All.
Limitations
Maximum 25 requests per one minute per principal.
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
Identity | Support |
---|---|
User | Yes |
Service principal and Managed identities | No |
Interface
POST https://api.fabric.microsoft.com/v1/admin/domains
Request Body
Name | Required | Type | Description |
---|---|---|---|
displayName | True |
string |
The domain display name. The display name cannot contain more than 40 characters. |
description |
string |
The domain description. The description cannot contain more than 256 characters. |
|
parentDomainId |
string |
The domain parent object ID. |
Responses
Name | Type | Description |
---|---|---|
201 Created |
Domain created successfully. |
|
Other Status Codes |
Common error codes:
|
Examples
Create a domain example
Sample request
POST https://api.fabric.microsoft.com/v1/admin/domains
{
"displayName": "Finance",
"description": "This domain is used for identifying financial data and reports.",
"parentDomainId": "5f6552c3-816c-43e7-8289-842f8b35f9df"
}
Sample response
{
"id": "9eba6944-daff-4441-b9b5-630ce34238fd",
"displayName": "Finance",
"description": "This domain is used for identifying financial data and reports.",
"parentDomainId": "5f6552c3-816c-43e7-8289-842f8b35f9df",
"contributorsScope": "AllTenant"
}
Definitions
Name | Description |
---|---|
Contributors |
The contributor scope. Additional contributor scopes may be added over time. |
Create |
The request payload for creating a domain or subdomain. |
Domain |
Represents a domain or subdomain. |
Error |
The error related resource details object. |
Error |
The error response. |
Error |
The error response details. |
ContributorsScopeType
The contributor scope. Additional contributor scopes may be added over time.
Name | Type | Description |
---|---|---|
AdminsOnly |
string |
Tenant and domain admins only. |
AllTenant |
string |
All the tenant's users. |
SpecificUsersAndGroups |
string |
Specific users and groups. |
CreateDomainRequest
The request payload for creating a domain or subdomain.
Name | Type | Description |
---|---|---|
description |
string |
The domain description. The description cannot contain more than 256 characters. |
displayName |
string |
The domain display name. The display name cannot contain more than 40 characters. |
parentDomainId |
string |
The domain parent object ID. |
Domain
Represents a domain or subdomain.
Name | Type | Description |
---|---|---|
contributorsScope |
The domain contributors scope. |
|
description |
string |
The description of the domain. |
displayName |
string |
The name of the domain. |
id |
string |
The domain object ID. |
parentDomainId |
string |
The domain parent object ID. |
ErrorRelatedResource
The error related resource details object.
Name | Type | Description |
---|---|---|
resourceId |
string |
The resource ID that's involved in the error. |
resourceType |
string |
The type of the resource that's involved in the error. |
ErrorResponse
The error response.
Name | Type | Description |
---|---|---|
errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
message |
string |
A human readable representation of the error. |
moreDetails |
List of additional error details. |
|
relatedResource |
The error related resource details. |
|
requestId |
string |
ID of the request associated with the error. |
ErrorResponseDetails
The error response details.
Name | Type | Description |
---|---|---|
errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
message |
string |
A human readable representation of the error. |
relatedResource |
The error related resource details. |