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

***********
create_site
***********



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

  

  Creates a new site in a global network.

  

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


  **Request Syntax**
  ::

    response = client.create_site(
        GlobalNetworkId='string',
        Description='string',
        Location={
            'Address': 'string',
            'Latitude': 'string',
            'Longitude': 'string'
        },
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type GlobalNetworkId: string
  :param GlobalNetworkId: **[REQUIRED]** 

    The ID of the global network.

    

  
  :type Description: string
  :param Description: 

    A description of your site.

     

    Constraints: Maximum length of 256 characters.

    

  
  :type Location: dict
  :param Location: 

    The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.

     

    
    * ``Address``: The physical address of the site.
     
    * ``Latitude``: The latitude of the site.
     
    * ``Longitude``: The longitude of the site.
    

    

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

      The physical address.

      

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

      The latitude.

      

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

      The longitude.

      

    
  
  :type Tags: list
  :param Tags: 

    The tags to apply to the resource during creation.

    

  
    - *(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.

        

      
    

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

    
    ::

      {
          'Site': {
              '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'
                  },
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Site** *(dict) --* 

        Information about the 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.

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

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

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

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

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

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

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

  