:doc:`ServiceCatalog <../../servicecatalog>` / Client / list_portfolios_for_product

***************************
list_portfolios_for_product
***************************



.. py:method:: ServiceCatalog.Client.list_portfolios_for_product(**kwargs)

  

  Lists all portfolios that the specified product is associated with.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosForProduct>`_  


  **Request Syntax**
  ::

    response = client.list_portfolios_for_product(
        AcceptLanguage='string',
        ProductId='string',
        PageToken='string',
        PageSize=123
    )
    
  :type AcceptLanguage: string
  :param AcceptLanguage: 

    The language code.

     

    
    * ``jp`` - Japanese
     
    * ``zh`` - Chinese
    

    

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

    The product identifier.

    

  
  :type PageToken: string
  :param PageToken: 

    The page token for the next set of results. To retrieve the first set of results, use null.

    

  
  :type PageSize: integer
  :param PageSize: 

    The maximum number of items to return with this call.

    

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

    
    ::

      {
          'PortfolioDetails': [
              {
                  'Id': 'string',
                  'ARN': 'string',
                  'DisplayName': 'string',
                  'Description': 'string',
                  'CreatedTime': datetime(2015, 1, 1),
                  'ProviderName': 'string'
              },
          ],
          'NextPageToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PortfolioDetails** *(list) --* 

        Information about the portfolios.

        
        

        - *(dict) --* 

          Information about a portfolio.

          
          

          - **Id** *(string) --* 

            The portfolio identifier.

            
          

          - **ARN** *(string) --* 

            The ARN assigned to the portfolio.

            
          

          - **DisplayName** *(string) --* 

            The name to use for display purposes.

            
          

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

            The description of the portfolio.

            
          

          - **CreatedTime** *(datetime) --* 

            The UTC time stamp of the creation time.

            
          

          - **ProviderName** *(string) --* 

            The name of the portfolio provider.

            
      
    
      

      - **NextPageToken** *(string) --* 

        The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

        
  
  **Exceptions**
  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidParametersException`

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

  