:doc:`NetworkManager <../../networkmanager>` / Client / get_sites

*********
get_sites
*********



.. py:method:: NetworkManager.Client.get_sites(**kwargs)

  

  Gets information about one or more of your sites in a global network.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetSites>`_  


  **Request Syntax**
  ::

    response = client.get_sites(
        GlobalNetworkId='string',
        SiteIds=[
            'string',
        ],
        MaxResults=123,
        NextToken='string'
    )
    
  :type GlobalNetworkId: string
  :param GlobalNetworkId: **[REQUIRED]** 

    The ID of the global network.

    

  
  :type SiteIds: list
  :param SiteIds: 

    One or more site IDs. The maximum is 10.

    

  
    - *(string) --* 

    

  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next page of results.

    

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

    
    ::

      {
          'Sites': [
              {
                  'SiteId': 'string',
                  'SiteArn': 'string',
                  'GlobalNetworkId': 'string',
                  'Description': 'string',
                  'Location': {
                      'Address': 'string',
                      'Latitude': 'string',
                      'Longitude': 'string'
                  },
                  'CreatedAt': datetime(2015, 1, 1),
                  'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
                  'Tags': [
                      {
                          'Key': 'string',
                          'Value': 'string'
                      },
                  ]
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Sites** *(list) --* 

        The sites.

        
        

        - *(dict) --* 

          Describes a site.

          
          

          - **SiteId** *(string) --* 

            The ID of the site.

            
          

          - **SiteArn** *(string) --* 

            The Amazon Resource Name (ARN) of the site.

            
          

          - **GlobalNetworkId** *(string) --* 

            The ID of the global network.

            
          

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

            The description of the site.

            
          

          - **Location** *(dict) --* 

            The location of the site.

            
            

            - **Address** *(string) --* 

              The physical address.

              
            

            - **Latitude** *(string) --* 

              The latitude.

              
            

            - **Longitude** *(string) --* 

              The longitude.

              
        
          

          - **CreatedAt** *(datetime) --* 

            The date and time that the site was created.

            
          

          - **State** *(string) --* 

            The state of the site.

            
          

          - **Tags** *(list) --* 

            The tags for the site.

            
            

            - *(dict) --* 

              Describes a tag.

              
              

              - **Key** *(string) --* 

                The tag key.

                 

                Constraints: Maximum length of 128 characters.

                
              

              - **Value** *(string) --* 

                The tag value.

                 

                Constraints: Maximum length of 256 characters.

                
          
        
      
    
      

      - **NextToken** *(string) --* 

        The token for the next page of results.

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

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

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

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

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

  