create_computer(**kwargs)¶Creates an Active Directory computer object in the specified directory.
See also: AWS API Documentation
Request Syntax
response = client.create_computer(
DirectoryId='string',
ComputerName='string',
Password='string',
OrganizationalUnitDistinguishedName='string',
ComputerAttributes=[
{
'Name': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The identifier of the directory in which to create the computer account.
[REQUIRED]
The name of the computer account.
[REQUIRED]
A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
Represents a named directory attribute.
The name of the attribute.
The value of the attribute.
dict
Response Syntax
{
'Computer': {
'ComputerId': 'string',
'ComputerName': 'string',
'ComputerAttributes': [
{
'Name': 'string',
'Value': 'string'
},
]
}
}
Response Structure
(dict) --
Contains the results for the CreateComputer operation.
Computer (dict) --
A Computer object that represents the computer account.
ComputerId (string) --
The identifier of the computer.
ComputerName (string) --
The computer name.
ComputerAttributes (list) --
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
(dict) --
Represents a named directory attribute.
Name (string) --
The name of the attribute.
Value (string) --
The value of the attribute.
Exceptions
DirectoryService.Client.exceptions.AuthenticationFailedExceptionDirectoryService.Client.exceptions.DirectoryUnavailableExceptionDirectoryService.Client.exceptions.EntityAlreadyExistsExceptionDirectoryService.Client.exceptions.EntityDoesNotExistExceptionDirectoryService.Client.exceptions.InvalidParameterExceptionDirectoryService.Client.exceptions.UnsupportedOperationExceptionDirectoryService.Client.exceptions.ClientExceptionDirectoryService.Client.exceptions.ServiceException