[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Create
DescriptionCreates a new Active Directory record in the admin service, belonging to the specified org. This does not create anything in AD itself.
Request
URLURL
https://cloud.vmwarehorizon.com/admin/v2/active-directories
Request Body
Request Body
{
"bindAccounts": {
"auxiliary": {
"password": {},
"username": "sso-id-1"
},
"primary": {
"password": {},
"username": "sso-id-1"
}
},
"defaultOU": "OU=Computers",
"description": "This is a test AD",
"dnsDomainName": "example.com",
"joinAccounts": {
"auxiliary": {
"password": {},
"username": "sso-id-1"
},
"primary": {
"password": {},
"username": "sso-id-1"
}
},
"name": "TestAD",
"orgId": "0123456789"
}
string
defaultOU
Optional
OU (Organizational Unit) used by default for adding pool VMs to the domain unless specified on the pool
string
description
Optional
Description for the AD
string
dnsDomainName
Optional
Directory Domain Name
string
name
Optional
Name that helps the customer identify the record
string
orgId
Optional
Org ID that owns this record
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
201 Created returns
ActiveDirectoryTOV2
of type */*
Successfully created active directory record
{
"bindAccounts": {
"auxiliary": {
"username": "string"
},
"primary": {
"username": "string"
}
},
"createdAt": "string",
"credentialId": "5fb352ed5b19360006d8fd93",
"defaultOU": "OU=Computers",
"description": "This is a test AD",
"dnsDomainName": "example.com",
"id": "0123456789",
"joinAccounts": {
"auxiliary": {
"username": "string"
},
"primary": {
"username": "string"
}
},
"location": "US",
"name": "TestAD",
"orgId": "0123456789",
"updatedAt": "string",
"version": 0
}
string as date-time
createdAt
Optional
Record creation timestamp
string
credentialId
Optional
The credential ID to be used with the credential service
string
defaultOU
Optional
Default OU (organizational unit) for adding VMs to the domain
string
description
Optional
Description for the AD
string
dnsDomainName
Optional
Directory DNS name
string
id
Optional
Unique record ID
string
location
Optional
location
string
name
Optional
Name that helps the customer identify the record
string
orgId
Optional
Org ID that owns this record
string as date-time
updatedAt
Optional
Record update timestamp
integer as int64
version
Optional
Record version (internal)
Errors
Code Samples
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"bindAccounts":{"auxiliary":{"password":{},"username":"sso-id-1"},"primary":{"password":{},"username":"sso-id-1"}},"defaultOU":"OU=Computers","description":"This is a test AD","dnsDomainName":"example.com","joinAccounts":{"auxiliary":{"password":{},"username":"sso-id-1"},"primary":{"password":{},"username":"sso-id-1"}},"name":"TestAD","orgId":"0123456789"}' https://cloud.vmwarehorizon.com/admin/v2/active-directories
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: activeDirectory
[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
On This Page
Admin Operations
post
post
get
get
get
get
patch
patch
delete
delete