GO SDK V2 - Describe Addresses paginator

0

Hi, I'm using the GO SDK V2 to fetch all the EIPs of an account. My goal is to get the number of EIPs in a specific account.

I couldn't find a paginator option for this API call DescribeAddresses.

There is a paginator/next token option for the DescribeAddressesAttribute API call, but for this option, I could not retrieve all the EIPs addresses of the account. Actually without attribute passed, I got an empty result [].

I have a couple of questions:

  1. Is there a way to use pagination for DescribeAddresses?
  2. Is there a parameter for DescribeAddressesAttribute to make this call to retrieve all EIPs?
  3. What is the maximal number of EIPs in an account?
  4. What is the maximal number of results that can be returned from DescribeAddresses?

Thank you, Ori Adler

1回答
0

DescribeAddresses isn't a paginated API action. It will return all Elastic IP addresses in the targeted account and region. Perhaps you are invoking it against the wrong account or region?

The maximum number of EIPs in an account and region is 5 by default, but is adjustable by issuing a service limit request.

AWS
エキスパート
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ