:doc:`PcaConnectorAd <../../pca-connector-ad>` / Client / get_directory_registration

**************************
get_directory_registration
**************************



.. py:method:: PcaConnectorAd.Client.get_directory_registration(**kwargs)

  

  A structure that contains information about your directory registration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pca-connector-ad-2018-05-10/GetDirectoryRegistration>`_  


  **Request Syntax**
  ::

    response = client.get_directory_registration(
        DirectoryRegistrationArn='string'
    )
    
  :type DirectoryRegistrationArn: string
  :param DirectoryRegistrationArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) that was returned when you called `CreateDirectoryRegistration <https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateDirectoryRegistration.html>`__.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'DirectoryRegistration': {
              'Arn': 'string',
              'CreatedAt': datetime(2015, 1, 1),
              'DirectoryId': 'string',
              'Status': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED',
              'StatusReason': 'DIRECTORY_ACCESS_DENIED'|'DIRECTORY_RESOURCE_NOT_FOUND'|'DIRECTORY_NOT_ACTIVE'|'DIRECTORY_NOT_REACHABLE'|'DIRECTORY_TYPE_NOT_SUPPORTED'|'INTERNAL_FAILURE',
              'UpdatedAt': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DirectoryRegistration** *(dict) --* 

        The directory registration represents the authorization of the connector service with a directory.

        
        

        - **Arn** *(string) --* 

          The Amazon Resource Name (ARN) that was returned when you called CreateDirectoryRegistration.

          
        

        - **CreatedAt** *(datetime) --* 

          The date and time that the directory registration was created.

          
        

        - **DirectoryId** *(string) --* 

          The identifier of the Active Directory.

          
        

        - **Status** *(string) --* 

          Status of the directory registration.

          
        

        - **StatusReason** *(string) --* 

          Additional information about the directory registration status if the status is failed.

          
        

        - **UpdatedAt** *(datetime) --* 

          The date and time that the directory registration was updated.

          
    
  
  **Exceptions**
  
  *   :py:class:`PcaConnectorAd.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`PcaConnectorAd.Client.exceptions.ValidationException`

  
  *   :py:class:`PcaConnectorAd.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`PcaConnectorAd.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PcaConnectorAd.Client.exceptions.InternalServerException`

  