MediaLive / Client / list_networks

list_networks#

MediaLive.Client.list_networks(**kwargs)#

Retrieve the list of Networks.

See also: AWS API Documentation

Request Syntax

response = client.list_networks(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – The maximum number of items to return.

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

Return type:

dict

Returns:

Response Syntax

{
    'Networks': [
        {
            'Arn': 'string',
            'AssociatedClusterIds': [
                'string',
            ],
            'Id': 'string',
            'IpPools': [
                {
                    'Cidr': 'string'
                },
            ],
            'Name': 'string',
            'Routes': [
                {
                    'Cidr': 'string',
                    'Gateway': 'string'
                },
            ],
            'State': 'CREATING'|'CREATE_FAILED'|'ACTIVE'|'DELETING'|'IDLE'|'IN_USE'|'UPDATING'|'DELETE_FAILED'|'DELETED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) – An array of networks.

    • Networks (list) – An array of networks that you have created.

      • (dict) – Used in ListNetworksResult.

        • Arn (string) – The ARN of this Network. It is automatically assigned when the Network is created.

        • AssociatedClusterIds (list) – Placeholder documentation for __listOf__string

          • (string) – Placeholder documentation for __string

        • Id (string) – The ID of the Network. Unique in the AWS account. The ID is the resource-id portion of the ARN.

        • IpPools (list) – An array of IpPools in your organization’s network that identify a collection of IP addresses in your organization’s network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.

          • (dict) – Used in DescribeNetworkResult, DescribeNetworkSummary, UpdateNetworkResult.

            • Cidr (string) – A CIDR block of IP addresses that are reserved for MediaLive Anywhere.

        • Name (string) – The name that you specified for this Network.

        • Routes (list) – An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.

          • (dict) – Used in DescribeNetworkResult, DescribeNetworkSummary, UpdateNetworkResult.

            • Cidr (string) – A CIDR block for one Route.

            • Gateway (string) – The IP address of the Gateway for this route, if applicable.

        • State (string) – The current state of the Network. Only MediaLive Anywhere can change the state.

    • NextToken (string) – Token for the next ListNetworks request.

Exceptions

  • MediaLive.Client.exceptions.BadRequestException

  • MediaLive.Client.exceptions.InternalServerErrorException

  • MediaLive.Client.exceptions.ForbiddenException

  • MediaLive.Client.exceptions.BadGatewayException

  • MediaLive.Client.exceptions.GatewayTimeoutException

  • MediaLive.Client.exceptions.TooManyRequestsException