:doc:`ECR <../../ecr>` / Client / get_registry_policy

*******************
get_registry_policy
*******************



.. py:method:: ECR.Client.get_registry_policy()

  

  Retrieves the permissions policy for a registry.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_registry_policy()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'registryId': 'string',
          'policyText': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **registryId** *(string) --* 

        The registry ID associated with the request.

        
      

      - **policyText** *(string) --* 

        The JSON text of the permissions policy for a registry.

        
  
  **Exceptions**
  
  *   :py:class:`ECR.Client.exceptions.ServerException`

  
  *   :py:class:`ECR.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`ECR.Client.exceptions.RegistryPolicyNotFoundException`

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

  