NetworkManager / Client / list_core_network_policy_versions

list_core_network_policy_versions#

NetworkManager.Client.list_core_network_policy_versions(**kwargs)#

Returns a list of core network policy versions.

See also: AWS API Documentation

Request Syntax

response = client.list_core_network_policy_versions(
    CoreNetworkId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • CoreNetworkId (string) –

    [REQUIRED]

    The ID of a core network.

  • MaxResults (integer) – The maximum number of results to return.

  • NextToken (string) – The token for the next page of results.

Return type:

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

  • NetworkManager.Client.exceptions.ValidationException

  • NetworkManager.Client.exceptions.AccessDeniedException

  • NetworkManager.Client.exceptions.ResourceNotFoundException

  • NetworkManager.Client.exceptions.ThrottlingException

  • NetworkManager.Client.exceptions.InternalServerException