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

*********************************
list_core_network_policy_versions
*********************************



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

  

  Returns a list of core network policy versions.

  

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


  **Request Syntax**
  ::

    response = client.list_core_network_policy_versions(
        CoreNetworkId='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type CoreNetworkId: string
  :param CoreNetworkId: **[REQUIRED]** 

    The ID of a core network.

    

  
  :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**

    
    ::

      {
          'CoreNetworkPolicyVersions': [
              {
                  'CoreNetworkId': 'string',
                  'PolicyVersionId': 123,
                  'Alias': 'LIVE'|'LATEST',
                  'Description': 'string',
                  'CreatedAt': datetime(2015, 1, 1),
                  'ChangeSetState': 'PENDING_GENERATION'|'FAILED_GENERATION'|'READY_TO_EXECUTE'|'EXECUTING'|'EXECUTION_SUCCEEDED'|'OUT_OF_DATE'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CoreNetworkPolicyVersions** *(list) --* 

        Describes core network policy versions.

        
        

        - *(dict) --* 

          Describes a core network policy version.

          
          

          - **CoreNetworkId** *(string) --* 

            The ID of a core network.

            
          

          - **PolicyVersionId** *(integer) --* 

            The ID of the policy version.

            
          

          - **Alias** *(string) --* 

            Whether a core network policy is the current policy or the most recently submitted policy.

            
          

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

            The description of a core network policy version.

            
          

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

            The timestamp when a core network policy version was created.

            
          

          - **ChangeSetState** *(string) --* 

            The status of the policy version change set.

            
      
    
      

      - **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`

  