CloudDirectory / Client / list_directories
list_directories#
- CloudDirectory.Client.list_directories(**kwargs)#
- Lists directories created within an account. - See also: AWS API Documentation - Request Syntax- response = client.list_directories( NextToken='string', MaxResults=123, state='ENABLED'|'DISABLED'|'DELETED' ) - Parameters:
- NextToken (string) – The pagination token. 
- MaxResults (integer) – The maximum number of results to retrieve. 
- state (string) – The state of the directories in the list. Can be either Enabled, Disabled, or Deleted. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'Directories': [ { 'Name': 'string', 'DirectoryArn': 'string', 'State': 'ENABLED'|'DISABLED'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } - Response Structure- (dict) – - Directories (list) – - Lists all directories that are associated with your account in pagination fashion. - (dict) – - Directory structure that includes the directory name and directory ARN. - Name (string) – - The name of the directory. 
- DirectoryArn (string) – - The Amazon Resource Name (ARN) that is associated with the directory. For more information, see arns. 
- State (string) – - The state of the directory. Can be either - Enabled,- Disabled, or- Deleted.
- CreationDateTime (datetime) – - The date and time when the directory was created. 
 
 
- NextToken (string) – - The pagination token. 
 
 
 - Exceptions- CloudDirectory.Client.exceptions.InternalServiceException
- CloudDirectory.Client.exceptions.InvalidArnException
- CloudDirectory.Client.exceptions.RetryableConflictException
- CloudDirectory.Client.exceptions.ValidationException
- CloudDirectory.Client.exceptions.LimitExceededException
- CloudDirectory.Client.exceptions.AccessDeniedException
- CloudDirectory.Client.exceptions.InvalidNextTokenException