:doc:`ApiGatewayV2 <../../apigatewayv2>` / Client / get_model

*********
get_model
*********



.. py:method:: ApiGatewayV2.Client.get_model(**kwargs)

  

  Gets a Model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetModel>`_  


  **Request Syntax**
  ::

    response = client.get_model(
        ApiId='string',
        ModelId='string'
    )
    
  :type ApiId: string
  :param ApiId: **[REQUIRED]** 

    The API identifier.

    

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

    The model ID.

    

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

    
    ::

      {
          'ContentType': 'string',
          'Description': 'string',
          'ModelId': 'string',
          'Name': 'string',
          'Schema': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Success

      
      

      - **ContentType** *(string) --* 

        The content-type for the model, for example, "application/json".

        
      

      - **Description** *(string) --* 

        The description of the model.

        
      

      - **ModelId** *(string) --* 

        The model identifier.

        
      

      - **Name** *(string) --* 

        The name of the model. Must be alphanumeric.

        
      

      - **Schema** *(string) --* 

        The schema for the model. For application/json models, this should be JSON schema draft 4 model.

        
  
  **Exceptions**
  
  *   :py:class:`ApiGatewayV2.Client.exceptions.NotFoundException`

  
  *   :py:class:`ApiGatewayV2.Client.exceptions.TooManyRequestsException`

  