:doc:`VerifiedPermissions <../../verifiedpermissions>` / Client / get_schema

**********
get_schema
**********



.. py:method:: VerifiedPermissions.Client.get_schema(**kwargs)

  

  Retrieve the details for the specified schema in the specified policy store.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/GetSchema>`_  


  **Request Syntax**
  ::

    response = client.get_schema(
        policyStoreId='string'
    )
    
  :type policyStoreId: string
  :param policyStoreId: **[REQUIRED]** 

    Specifies the ID of the policy store that contains the schema.

    

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

    
    ::

      {
          'policyStoreId': 'string',
          'schema': 'string',
          'createdDate': datetime(2015, 1, 1),
          'lastUpdatedDate': datetime(2015, 1, 1),
          'namespaces': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policyStoreId** *(string) --* 

        The ID of the policy store that contains the schema.

        
      

      - **schema** *(string) --* 

        The body of the schema, written in Cedar schema JSON.

        
      

      - **createdDate** *(datetime) --* 

        The date and time that the schema was originally created.

        
      

      - **lastUpdatedDate** *(datetime) --* 

        The date and time that the schema was most recently updated.

        
      

      - **namespaces** *(list) --* 

        The namespaces of the entities referenced by this schema.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`VerifiedPermissions.Client.exceptions.ValidationException`

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

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

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

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

  