:doc:`PI <../../pi>` / Client / get_resource_metadata

*********************
get_resource_metadata
*********************



.. py:method:: PI.Client.get_resource_metadata(**kwargs)

  

  Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadata>`_  


  **Request Syntax**
  ::

    response = client.get_resource_metadata(
        ServiceType='RDS'|'DOCDB',
        Identifier='string'
    )
    
  :type ServiceType: string
  :param ServiceType: **[REQUIRED]** 

    The Amazon Web Services service for which Performance Insights returns metrics.

    

  
  :type Identifier: string
  :param Identifier: **[REQUIRED]** 

    An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its ``DbiResourceId`` value. For example, specify ``db-ABCDEFGHIJKLMNOPQRSTU1VW2X``.

    

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

    
    ::

      {
          'Identifier': 'string',
          'Features': {
              'string': {
                  'Status': 'ENABLED'|'DISABLED'|'UNSUPPORTED'|'ENABLED_PENDING_REBOOT'|'DISABLED_PENDING_REBOOT'|'UNKNOWN'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Identifier** *(string) --* 

        An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its ``DbiResourceId`` value. For example, specify ``db-ABCDEFGHIJKLMNOPQRSTU1VW2X``.

        
      

      - **Features** *(dict) --* 

        The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.

        
        

        - *(string) --* 
          

          - *(dict) --* 

            The metadata for a feature. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.

            
            

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

              The status of the feature on the DB instance. Possible values include the following:

               

              
              * ``ENABLED`` - The feature is enabled on the instance.
               
              * ``DISABLED`` - The feature is disabled on the instance.
               
              * ``UNSUPPORTED`` - The feature isn't supported on the instance.
               
              * ``ENABLED_PENDING_REBOOT`` - The feature is enabled on the instance but requires a reboot to take effect.
               
              * ``DISABLED_PENDING_REBOOT`` - The feature is disabled on the instance but requires a reboot to take effect.
               
              * ``UNKNOWN`` - The feature status couldn't be determined.
              

              
        
    
  
  
  **Exceptions**
  
  *   :py:class:`PI.Client.exceptions.InvalidArgumentException`

  
  *   :py:class:`PI.Client.exceptions.InternalServiceError`

  
  *   :py:class:`PI.Client.exceptions.NotAuthorizedException`

  