:doc:`ControlTower <../../controltower>` / Client / get_baseline_operation

**********************
get_baseline_operation
**********************



.. py:method:: ControlTower.Client.get_baseline_operation(**kwargs)

  

  Returns the details of an asynchronous baseline operation, as initiated by any of these APIs: ``EnableBaseline``, ``DisableBaseline``, ``UpdateEnabledBaseline``, ``ResetEnabledBaseline``. A status message is displayed in case of operation failure. For usage examples, see `the Amazon Web Services Control Tower User Guide <https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOperation>`_  


  **Request Syntax**
  ::

    response = client.get_baseline_operation(
        operationIdentifier='string'
    )
    
  :type operationIdentifier: string
  :param operationIdentifier: **[REQUIRED]** 

    The operation ID returned from mutating asynchronous APIs (Enable, Disable, Update, Reset).

    

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

    
    ::

      {
          'baselineOperation': {
              'operationIdentifier': 'string',
              'operationType': 'ENABLE_BASELINE'|'DISABLE_BASELINE'|'UPDATE_ENABLED_BASELINE'|'RESET_ENABLED_BASELINE',
              'status': 'SUCCEEDED'|'FAILED'|'IN_PROGRESS',
              'startTime': datetime(2015, 1, 1),
              'endTime': datetime(2015, 1, 1),
              'statusMessage': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **baselineOperation** *(dict) --* 

        A ``baselineOperation`` object that shows information about the specified operation ID.

        
        

        - **operationIdentifier** *(string) --* 

          The identifier of the specified operation.

          
        

        - **operationType** *(string) --* 

          An enumerated type ( ``enum``) with possible values of ``ENABLE_BASELINE``, ``DISABLE_BASELINE``, ``UPDATE_ENABLED_BASELINE``, or ``RESET_ENABLED_BASELINE``.

          
        

        - **status** *(string) --* 

          An enumerated type ( ``enum``) with possible values of ``SUCCEEDED``, ``FAILED``, or ``IN_PROGRESS``.

          
        

        - **startTime** *(datetime) --* 

          The start time of the operation, in ISO 8601 format.

          
        

        - **endTime** *(datetime) --* 

          The end time of the operation (if applicable), in ISO 8601 format.

          
        

        - **statusMessage** *(string) --* 

          A status message that gives more information about the operation's status, if applicable.

          
    
  
  **Exceptions**
  
  *   :py:class:`ControlTower.Client.exceptions.ValidationException`

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

  
  *   :py:class:`ControlTower.Client.exceptions.AccessDeniedException`

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

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

  