:doc:`VPCLattice <../../vpc-lattice>` / Client / list_service_networks

*********************
list_service_networks
*********************



.. py:method:: VPCLattice.Client.list_service_networks(**kwargs)

  

  Lists the service networks owned by or shared with this account. The account ID in the ARN shows which account owns the service network.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/vpc-lattice-2022-11-30/ListServiceNetworks>`_  


  **Request Syntax**
  ::

    response = client.list_service_networks(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return.

    

  
  :type nextToken: string
  :param nextToken: 

    A pagination token for the next page of results.

    

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

    
    ::

      {
          'items': [
              {
                  'id': 'string',
                  'name': 'string',
                  'arn': 'string',
                  'createdAt': datetime(2015, 1, 1),
                  'lastUpdatedAt': datetime(2015, 1, 1),
                  'numberOfAssociatedVPCs': 123,
                  'numberOfAssociatedServices': 123,
                  'numberOfAssociatedResourceConfigurations': 123
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Information about the service networks.

        
        

        - *(dict) --* 

          Summary information about a service network.

          
          

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

            The ID of the service network.

            
          

          - **name** *(string) --* 

            The name of the service network.

            
          

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

            The Amazon Resource Name (ARN) of the service network.

            
          

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

            The date and time that the service network was created, in ISO-8601 format.

            
          

          - **lastUpdatedAt** *(datetime) --* 

            The date and time that the service network was last updated, in ISO-8601 format.

            
          

          - **numberOfAssociatedVPCs** *(integer) --* 

            The number of VPCs associated with the service network.

            
          

          - **numberOfAssociatedServices** *(integer) --* 

            The number of services associated with the service network.

            
          

          - **numberOfAssociatedResourceConfigurations** *(integer) --* 

            The number of resource configurations associated with a service network.

            
      
    
      

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

        If there are additional results, a pagination token for the next page of results.

        
  
  **Exceptions**
  
  *   :py:class:`VPCLattice.Client.exceptions.ValidationException`

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

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

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

  