:doc:`PartnerCentralChannelAPI <../../partnercentral-channel>` / Client / list_program_management_accounts

********************************
list_program_management_accounts
********************************



.. py:method:: PartnerCentralChannelAPI.Client.list_program_management_accounts(**kwargs)

  

  Lists program management accounts based on specified criteria.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/partnercentral-channel-2024-03-18/ListProgramManagementAccounts>`_  


  **Request Syntax**
  ::

    response = client.list_program_management_accounts(
        catalog='string',
        maxResults=123,
        displayNames=[
            'string',
        ],
        programs=[
            'SOLUTION_PROVIDER'|'DISTRIBUTION'|'DISTRIBUTION_SELLER',
        ],
        accountIds=[
            'string',
        ],
        statuses=[
            'PENDING'|'ACTIVE'|'INACTIVE',
        ],
        sort={
            'sortOrder': 'Ascending'|'Descending',
            'sortBy': 'UpdatedAt'
        },
        nextToken='string'
    )
    
  :type catalog: string
  :param catalog: **[REQUIRED]** 

    The catalog identifier to filter accounts.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in a single call.

    

  
  :type displayNames: list
  :param displayNames: 

    Filter by display names.

    

  
    - *(string) --* 

    

  :type programs: list
  :param programs: 

    Filter by program types.

    

  
    - *(string) --* 

    

  :type accountIds: list
  :param accountIds: 

    Filter by AWS account IDs.

    

  
    - *(string) --* 

    

  :type statuses: list
  :param statuses: 

    Filter by program management account statuses.

    

  
    - *(string) --* 

    

  :type sort: dict
  :param sort: 

    Sorting options for the results.

    

  
    - **sortOrder** *(string) --* **[REQUIRED]** 

      The sort order (ascending or descending).

      

    
    - **sortBy** *(string) --* **[REQUIRED]** 

      The field to sort by.

      

    
  
  :type nextToken: string
  :param nextToken: 

    Token for retrieving the next page of results.

    

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

    
    ::

      {
          'items': [
              {
                  'id': 'string',
                  'revision': 'string',
                  'catalog': 'string',
                  'program': 'SOLUTION_PROVIDER'|'DISTRIBUTION'|'DISTRIBUTION_SELLER',
                  'displayName': 'string',
                  'accountId': 'string',
                  'arn': 'string',
                  'createdAt': datetime(2015, 1, 1),
                  'updatedAt': datetime(2015, 1, 1),
                  'startDate': datetime(2015, 1, 1),
                  'status': 'PENDING'|'ACTIVE'|'INACTIVE'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        List of program management accounts matching the criteria.

        
        

        - *(dict) --* 

          Summary information about a program management account.

          
          

          - **id** *(string) --* 

            The unique identifier of the program management account.

            
          

          - **revision** *(string) --* 

            The current revision number of the program management account.

            
          

          - **catalog** *(string) --* 

            The catalog identifier associated with the account.

            
          

          - **program** *(string) --* 

            The program type for the management account.

            
          

          - **displayName** *(string) --* 

            The display name of the program management account.

            
          

          - **accountId** *(string) --* 

            The AWS account ID associated with the program management account.

            
          

          - **arn** *(string) --* 

            The Amazon Resource Name (ARN) of the program management account.

            
          

          - **createdAt** *(datetime) --* 

            The timestamp when the account was created.

            
          

          - **updatedAt** *(datetime) --* 

            The timestamp when the account was last updated.

            
          

          - **startDate** *(datetime) --* 

            The start date of the program management account.

            
          

          - **status** *(string) --* 

            The current status of the program management account.

            
      
    
      

      - **nextToken** *(string) --* 

        Token for retrieving the next page of results, if available.

        
  
  **Exceptions**
  
  *   :py:class:`PartnerCentralChannelAPI.Client.exceptions.ResourceNotFoundException`

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

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

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

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

  