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

已提问 2 年前279 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则