openapi: 3.0.0
info:
version: 2015-04-16
x-release: v4
title: 'AWS Directory Service #X Amz Target=DirectoryService 20150416.AcceptSharedDirectory #X Amz Target=DirectoryService 20150416.AcceptSharedDirectory #X Amz Target=DirectoryService 20150416.DescribeDirectories API'
description:
Directory Service is a web service that makes it easy for you to setup and run directories in the Amazon Web Services cloud, or connect your Amazon Web Services resources with an existing self-managed Microsoft Active Directory. This guide provides detailed information about Directory Service operations, data types, parameters, and errors. For information about Directory Services features, see Directory Service and the Directory Service Administration Guide.
Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to Directory Service and other Amazon Web Services services. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools for Amazon Web Services.
Obtains information about the directories that belong to this account.
You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.
This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.
You can also specify a maximum number of return results with the Limit parameter.
A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.
An empty list results in an InvalidParameterException being thrown.
DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.
Limit:
allOf:
- $ref: '#/components/schemas/Limit'
- description: The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.
description: Contains the inputs for the DescribeDirectories operation.
DirectoryShortName:
type: string
pattern: ^[^\\/:*?"<>|.]+[^\\/:*?"<>|]*$
AvailabilityZone:
type: string
IpAddrs:
type: array
items:
$ref: '#/components/schemas/IpAddr'
ClientException: {}
RadiusRetries:
type: integer
minimum: 0
maximum: 10
DirectoryType:
type: string
enum:
- SimpleAD
- ADConnector
- MicrosoftAD
- SharedMicrosoftAD
IpAddr:
type: string
pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
RegionsInfo:
type: object
properties:
PrimaryRegion:
allOf:
- $ref: '#/components/schemas/RegionName'
- description: The Region where the Managed Microsoft AD directory was originally created.
AdditionalRegions:
allOf:
- $ref: '#/components/schemas/AdditionalRegions'
- description: Lists the Regions where the directory has been replicated, excluding the primary Region.
description: Provides information about the Regions that are configured for multi-Region replication.
DirectoryId:
type: string
pattern: ^d-[0-9a-f]{10}$
CustomerId:
type: string
pattern: ^(\d{12})$
ShareStatus:
type: string
enum:
- Shared
- PendingAcceptance
- Rejected
- Rejecting
- RejectFailed
- Sharing
- ShareFailed
- Deleted
- Deleting
DirectoryConnectSettingsDescription:
type: object
properties:
VpcId:
allOf:
- $ref: '#/components/schemas/VpcId'
- description: The identifier of the VPC that the AD Connector is in.
SubnetIds:
allOf:
- $ref: '#/components/schemas/SubnetIds'
- description: A list of subnet identifiers in the VPC that the AD Connector is in.
CustomerUserName:
allOf:
- $ref: '#/components/schemas/UserName'
- description: The user name of the service account in your self-managed directory.
SecurityGroupId:
allOf:
- $ref: '#/components/schemas/SecurityGroupId'
- description: The security group identifier for the AD Connector directory.
AvailabilityZones:
allOf:
- $ref: '#/components/schemas/AvailabilityZones'
- description: A list of the Availability Zones that the directory is in.
ConnectIps:
allOf:
- $ref: '#/components/schemas/IpAddrs'
- description: The IP addresses of the AD Connector servers.
description: Contains information about an AD Connector directory.
Servers:
type: array
items:
$ref: '#/components/schemas/Server'
RadiusStatus:
type: string
enum:
- Creating
- Completed
- Failed
DirectoryStage:
type: string
enum:
- Requested
- Creating
- Created
- Active
- Inoperable
- Impaired
- Restoring
- RestoreFailed
- Deleting
- Deleted
- Failed
AdditionalRegions:
type: array
items:
$ref: '#/components/schemas/RegionName'
Server:
type: string
minLength: 1
maxLength: 256
UseSameUsername:
type: boolean
DesiredNumberOfDomainControllers:
type: integer
minimum: 2
RadiusAuthenticationProtocol:
type: string
enum:
- PAP
- CHAP
- MS-CHAPv1
- MS-CHAPv2
DnsIpAddrs:
type: array
items:
$ref: '#/components/schemas/IpAddr'
ShareMethod:
type: string
enum:
- ORGANIZATIONS
- HANDSHAKE
OwnerDirectoryDescription:
type: object
properties:
DirectoryId:
allOf:
- $ref: '#/components/schemas/DirectoryId'
- description: Identifier of the Managed Microsoft AD directory in the directory owner account.
AccountId:
allOf:
- $ref: '#/components/schemas/CustomerId'
- description: Identifier of the directory owner account.
DnsIpAddrs:
allOf:
- $ref: '#/components/schemas/DnsIpAddrs'
- description: IP address of the directory’s domain controllers.
VpcSettings:
allOf:
- $ref: '#/components/schemas/DirectoryVpcSettingsDescription'
- description: Information about the VPC settings for the directory.
RadiusSettings:
allOf:
- $ref: '#/components/schemas/RadiusSettings'
- description: A RadiusSettings object that contains information about the RADIUS server.
RadiusStatus:
allOf:
- $ref: '#/components/schemas/RadiusStatus'
- description: Information about the status of the RADIUS server.
description: Describes the directory owner account details that have been shared to the directory consumer account.
DirectoryIds:
type: array
description: A list of directory identifiers.
items:
$ref: '#/components/schemas/DirectoryId'
Description:
type: string
pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
minLength: 0
maxLength: 128
AvailabilityZones:
type: array
items:
$ref: '#/components/schemas/AvailabilityZone'
OSVersion:
type: string
enum:
- SERVER_2012
- SERVER_2019
RadiusSettings:
type: object
properties:
RadiusServers:
allOf:
- $ref: '#/components/schemas/Servers'
- description: An array of strings that contains the fully qualified domain name (FQDN) or IP addresses of the RADIUS server endpoints, or the FQDN or IP addresses of your RADIUS server load balancer.
RadiusPort:
allOf:
- $ref: '#/components/schemas/PortNumber'
- description: The port that your RADIUS server is using for communications. Your self-managed network must allow inbound traffic over this port from the Directory Service servers.
RadiusTimeout:
allOf:
- $ref: '#/components/schemas/RadiusTimeout'
- description: The amount of time, in seconds, to wait for the RADIUS server to respond.
RadiusRetries:
allOf:
- $ref: '#/components/schemas/RadiusRetries'
- description: The maximum number of times that communication with the RADIUS server is attempted.
SharedSecret:
allOf:
- $ref: '#/components/schemas/RadiusSharedSecret'
- description: Required for enabling RADIUS on the directory.
AuthenticationProtocol:
allOf:
- $ref: '#/components/schemas/RadiusAuthenticationProtocol'
- description: The protocol specified for your RADIUS endpoints.
DisplayLabel:
allOf:
- $ref: '#/components/schemas/RadiusDisplayLabel'
- description: Not currently used.
UseSameUsername:
allOf:
- $ref: '#/components/schemas/UseSameUsername'
- description: Not currently used.
description: Contains information about a Remote Authentication Dial In User Service (RADIUS) server.
NextToken:
type: string
DirectoryVpcSettingsDescription:
type: object
properties:
VpcId:
allOf:
- $ref: '#/components/schemas/VpcId'
- description: The identifier of the VPC that the directory is in.
SubnetIds:
allOf:
- $ref: '#/components/schemas/SubnetIds'
- description: The identifiers of the subnets for the directory servers.
SecurityGroupId:
allOf:
- $ref: '#/components/schemas/SecurityGroupId'
- description: The domain controller security group identifier for the directory.
AvailabilityZones:
allOf:
- $ref: '#/components/schemas/AvailabilityZones'
- description: The list of Availability Zones that the directory is in.
description: Contains information about the directory.
RadiusDisplayLabel:
type: string
minLength: 1
maxLength: 64
Limit:
type: integer
minimum: 0
PortNumber:
type: integer
minimum: 1025
maximum: 65535
ServiceException: {}
EntityDoesNotExistException: {}
DirectoryEdition:
type: string
enum:
- Enterprise
- Standard
VpcId:
type: string
pattern: ^(vpc-[0-9a-f]{8}|vpc-[0-9a-f]{17})$
DescribeDirectoriesResult:
type: object
properties:
DirectoryDescriptions:
allOf:
- $ref: '#/components/schemas/DirectoryDescriptions'
- description: The list of DirectoryDescription objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.
description: Contains the results of the DescribeDirectories operation.
LastUpdatedDateTime:
type: string
format: date-time
AliasName:
type: string
pattern: ^(?!D-|d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*
minLength: 1
maxLength: 62
UserName:
type: string
pattern: '[a-zA-Z0-9._-]+'
minLength: 1
InvalidParameterException: {}
DirectoryDescriptions:
type: array
description: A list of directory descriptions.
items:
$ref: '#/components/schemas/DirectoryDescription'
SsoEnabled:
type: boolean
Notes:
type: string
maxLength: 1024
format: password
AccessUrl:
type: string
minLength: 1
maxLength: 128
RadiusSharedSecret:
type: string
pattern: ^(\p{LD}|\p{Punct}| )+$
minLength: 8
maxLength: 512
format: password
StageReason:
type: string
DirectorySize:
type: string
enum:
- Small
- Large
SubnetIds:
type: array
items:
$ref: '#/components/schemas/SubnetId'
RegionName:
type: string
minLength: 8
maxLength: 32
DirectoryDescription:
type: object
properties:
DirectoryId:
allOf:
- $ref: '#/components/schemas/DirectoryId'
- description: The directory identifier.
Name:
allOf:
- $ref: '#/components/schemas/DirectoryName'
- description: The fully qualified name of the directory.
ShortName:
allOf:
- $ref: '#/components/schemas/DirectoryShortName'
- description: The short name of the directory.
Size:
allOf:
- $ref: '#/components/schemas/DirectorySize'
- description: The directory size.
Edition:
allOf:
- $ref: '#/components/schemas/DirectoryEdition'
- description: The edition associated with this directory.
Alias:
allOf:
- $ref: '#/components/schemas/AliasName'
- description: The alias for the directory. If no alias has been created for the directory, the alias is the directory identifier, such as d-XXXXXXXXXX.
AccessUrl:
allOf:
- $ref: '#/components/schemas/AccessUrl'
- description: The access URL for the directory, such as http://<alias>.awsapps.com. If no alias has been created for the directory, <alias> is the directory identifier, such as d-XXXXXXXXXX.
Description:
allOf:
- $ref: '#/components/schemas/Description'
- description: The description for the directory.
DnsIpAddrs:
allOf:
- $ref: '#/components/schemas/DnsIpAddrs'
- description: The IP addresses of the DNS servers for the directory. For a Simple AD or Microsoft AD directory, these are the IP addresses of the Simple AD or Microsoft AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in your self-managed directory to which the AD Connector is connected.
Stage:
allOf:
- $ref: '#/components/schemas/DirectoryStage'
- description: The current stage of the directory.
ShareStatus:
allOf:
- $ref: '#/components/schemas/ShareStatus'
- description: Current directory status of the shared Managed Microsoft AD directory.
ShareMethod:
allOf:
- $ref: '#/components/schemas/ShareMethod'
- description: The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a shared directory request (HANDSHAKE).
ShareNotes:
allOf:
- $ref: '#/components/schemas/Notes'
- description: A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.
LaunchTime:
allOf:
- $ref: '#/components/schemas/LaunchTime'
- description: Specifies when the directory was created.
StageLastUpdatedDateTime:
allOf:
- $ref: '#/components/schemas/LastUpdatedDateTime'
- description: The date and time that the stage was last updated.
Type:
allOf:
- $ref: '#/components/schemas/DirectoryType'
- description: The directory size.
VpcSettings:
allOf:
- $ref: '#/components/schemas/DirectoryVpcSettingsDescription'
- description: A DirectoryVpcSettingsDescription object that contains additional information about a directory. This member is only present if the directory is a Simple AD or Managed Microsoft AD directory.
ConnectSettings:
allOf:
- $ref: '#/components/schemas/DirectoryConnectSettingsDescription'
- description: A DirectoryConnectSettingsDescription object that contains additional information about an AD Connector directory. This member is only present if the directory is an AD Connector directory.
RadiusSettings:
allOf:
- $ref: '#/components/schemas/RadiusSettings'
- description: A RadiusSettings object that contains information about the RADIUS server configured for this directory.
RadiusStatus:
allOf:
- $ref: '#/components/schemas/RadiusStatus'
- description: The status of the RADIUS MFA server connection.
StageReason:
allOf:
- $ref: '#/components/schemas/StageReason'
- description: Additional information about the directory stage.
SsoEnabled:
allOf:
- $ref: '#/components/schemas/SsoEnabled'
- description: Indicates if single sign-on is enabled for the directory. For more information, see EnableSso and DisableSso.
DesiredNumberOfDomainControllers:
allOf:
- $ref: '#/components/schemas/DesiredNumberOfDomainControllers'
- description: The desired number of domain controllers in the directory if the directory is Microsoft AD.
OwnerDirectoryDescription:
allOf:
- $ref: '#/components/schemas/OwnerDirectoryDescription'
- description: Describes the Managed Microsoft AD directory in the directory owner account.
RegionsInfo:
allOf:
- $ref: '#/components/schemas/RegionsInfo'
- description: Lists the Regions where the directory has replicated.
OsVersion:
allOf:
- $ref: '#/components/schemas/OSVersion'
- description: The operating system (OS) version of the directory.
description: Contains information about an Directory Service directory.
InvalidNextTokenException: {}
LaunchTime:
type: string
format: date-time
parameters:
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/ds/
x-hasEquivalentPaths: true